SAP Certification
SAP Download
SAP Companies India
SAP Books
SAP JOBS
SAP jobs in India
SAP ABAP jobs in India
SAP BASIS jobs in India
SAP BI jobs in India
SAP CRM jobs in India
SAP FICO jobs in India
SAP Fresher jobs in India
SAP HR jobs in India
SAP MM jobs in India
SAP PM jobs in India
SAP PP jobs in India
SAP SD jobs in India
SAP XI jobs in India
|
Sample ABAP Program for learning how to Submit report with selection table
Show Full Details
REPORT submit_with_selection_table. TABLES QMSM. * Work area for internal table IQMSM DATA: BEGIN OF WQMSM, QMNUM LIKE QMSM-QMNUM, MNGRP LIKE QMSM-MNGRP, MNCOD LIKE QMSM-MNCOD, ZZSTAT LIKE QMSM-ZZSTAT, END OF WQMSM.
* WORK Area for internal table iseltab. DATA: WSELTAB LIKE RSPARAMS. *----------------------------------------------------------------------* * Internal tables *----------------------------------------------------------------------* * selection table to pass to RIQMEL30 DATA: ISELTAB LIKE TABLE OF WSELTAB. * Table of notification numbers selected - will be passed to riqmel30 DATA: IQMSM LIKE TABLE OF WQMSM. *----------------------------------------------------------------------* START-OF-SELECTION. *----------------------------------------------------------------------* REFRESH IQMSM. SELECT QMNUM MNGRP MNCOD ZZSTAT FROM QMSM INTO CORRESPONDING FIELDS OF TABLE IQMSM WHERE MNGRP = 'ACTION' AND MNCOD = 'CALL' and ( zzqmart = 'ZE' or zzqmart = 'ZI' ) AND ZZSTAT = ' '.
* create selection table entries for field QMART
WSELTAB-SELNAME = 'QMART'. WSELTAB-KIND = 'S'. WSELTAB-SIGN = 'I'. WSELTAB-OPTION = 'EQ'. WSELTAB-LOW = 'ZE'. APPEND WSELTAB TO ISELTAB. WSELTAB-LOW = 'ZI'. APPEND WSELTAB TO ISELTAB.
* Create selection table entries for QMNUM
CLEAR WSELTAB. WSELTAB-SELNAME = 'QMNUM'. WSELTAB-KIND = 'S'. WSELTAB-SIGN = 'I'. WSELTAB-OPTION = 'EQ'. LOOP AT IQMSM INTO WQMSM. WSELTAB-LOW = WQMSM-QMNUM. APPEND WSELTAB TO ISELTAB. ENDLOOP * * SUBMIT program with parameters passed in table ISELTAB * Other parameters passed explicitly
SUBMIT RIQMEL30 WITH SELECTION-TABLE ISELTAB WITH MNGRP = 'ACTION' WITH MNCOD = 'CALL' WITH DATUV = '00000000' WITH DATUB = '99991231' WITH STAI1 = 'TSRL'.
Show Most Readed SAP Tutorials
Most readed SAP Tutorials
Show Latest Added SAP Tutorials
Latest Added SAP documents
|
"Site covers most of the SAP technical and functional tutorials, articles, interview questions and PDF study materials . List and details of SAP transaction codes ( tcodes ), Tables, report names, Bapi, ABAP programming syntax and keywords are also available in the site.
Information on SAP Certification and training, latest SAP jobs in India, ABAP interview questions are useful for SAP professionals seeking for a career in SAP as a fresher or experienced.ABAP tutorial downloads on BDC, LSMW, BAPI, ALE, IDOC, Smartforms, Sapscripts etc etc are also added.Now you can read from this page about ABAP Program for Submitting report with selection table" |