Anda di halaman 1dari 3

6/21/2014 An SAP Consultant: Execute ABAP Report using SUBMIT statement

http://www.an-sap-consultant.com/2010/12/execute-abap-report-using-submit.html 1/3
Sunday, December 19, 2010
The SUBMIT statement accesses an executable program <report>.
We have lot of options fill the Inputs of the called programs.
With Selection-screen appearance.
SUBMIT DEMO_PROGRAM_SUBMIT_REP1 VIA SELECTION-SCREEN
WITH PARAMET EQ 'Selection 1'
WITH SELECTO IN SELTAB
WITH SELECTO NE 3
AND RETURN.
The selection screen of the called executable program (report) appears. If you transfer values to the program using
one or more of the other options, the corresponding input fields in the selections screen are filled. The user can
change these values.
Without Selection-screen appearance.
SUBMIT demo_program_submit_rep1
WITH paramet eq 'Selection 1'
WITH selecto IN seltab
WITH selecto ne 3
AND RETURN.
With selection screen appearance
DATA:
RSPAR TYPE TABLE OF RSPARAMS,
WA_RSPAR LIKE LINE OF RSPAR.
*passing all selection-screen values through rspar table .check the structure *RSPARAMS.
SUBMIT DEMO_PROGRAM_SUBMIT_REP1 VIA SELECTION-SCREEN
WITH SELECTION-TABLE RSPAR
AND RETURN.
Without selection screen appearance
DATA:
rspar TYPE TABLE OF rsparams,
wa_rspar LIKE LINE OF rspar.
" Passing all selection-screen values through rspar table .
" check the structure RSPARAMS.
SUBMIT demo_program_submit_rep1
WITH SELECTION-TABLE rspar
AND RETURN.
Using Variant created for the called program.
"With Selection screen
SUBMIT DEMO_PROGRAM_SUBMIT_REP1 VIA SELECTION-SCREEN
USING SELECTION-SET 'VAR1'
AND RETURN.
"Without selection screen
SUBMIT DEMO_PROGRAM_SUBMIT_REP1
USING SELECTION-SET 'VAR1'
AND RETURN.
After executing using SUBMIT statement, to pass data between these programs. Check the sample programs.
WanttoContribute?
If you are interested in writing about the new stuff
you learn everyday while working, please write to
the.sap.consultants@gmail.com.
Click on Contribution for more details.
Followers
Join this site
with Google Friend Connect
Members (20)
Already a member? Sign in
PopularPosts
Find us on Facebook
An SAP Consultant
474 people like An SAPConsultant.
Facebook social plugin
Like
ABAP - ALV Report example with steps
1
Execute ABAP Report using SUBMIT
statement
2
Web Dynpro ABAP ALV - ON_CLICK event
3
ABAP - Download report output as PDF file
4
ABAP - Dynamic WHERE clause
5
ABAP - Sending email with pdf attachment
6
ABAP - ALV Demo programs
7
Web dynpro abap Error / Success message
sample program
8
ABAP - Binary to String, String to XSTRING,
ExecuteABAPReportusingSUBMITstatement
AnSAPConsultant
HOME ABAP ALV SMART FORMS ADOBE FORMS HR ABAP WORKFLOW WEB DYNPRO ABAP HCM
6/21/2014 An SAP Consultant: Execute ABAP Report using SUBMIT statement
http://www.an-sap-consultant.com/2010/12/execute-abap-report-using-submit.html 2/3
REPORT REP1 NO STANDARD PAGE HEADING.
DATA:
ITAB TYPE I OCCURS 10,
NUM TYPE I.
SUBMIT REP2 AND RETURN.
IMPORT ITAB FROM MEMORY ID 'HK'.
LOOP AT ITAB INTO NUM.
WRITE / NUM.
ENDLOOP.
TOP-OF-PAGE.
WRITE 'Report 1'.
ULINE.
Report REP2.
REPORT REP2 NO STANDARD PAGE HEADING.
DATA:
NUMBER TYPE I,
ITAB TYPE I OCCURS 10.
SET PF-STATUS 'MYBACK'.
DO 5 TIMES.
NUMBER = SY-INDEX.
APPEND NUMBER TO ITAB.
WRITE / NUMBER.
ENDDO.
TOP-OF-PAGE.
WRITE 'Report 2'.
ULINE.
AT USER-COMMAND.
CASE SY-UCOMM.
WHEN 'MBCK'.
EXPORT ITAB TO MEMORY ID 'HK'.
LEAVE.
ENDCASE.
0comments:
Post a Comment
Your useful comments, suggestions are appreciated. Your comments are moderated.
Enter your comment...
Comment as:
Google Account
Publish

Preview
ABAP-Categories
SAP ABAP - (00)-Enhancement
SAP ABAP - (01)-BADIs
SAP ABAP - (02)-User Exits
SAP ABAP - ALV
SAP ABAP - Application Server
SAP ABAP - Background jobs
SAP ABAP - BDC - Batch Input Session
SAP ABAP - BDC related
SAP ABAP - Class
SAP ABAP - Control framework
SAP ABAP - Date n Time function modules
SAP ABAP - Debugging
SAP ABAP - Dialog Programming
SAP ABAP - Dictionary
SAP ABAP - Dynamic Programming
SAP ABAP - FTP related
SAP ABAP - Function Modules
SAP ABAP - General
SAP ABAP - Get Last Day of The Month
SAP ABAP - Native n Open SQL
SAP ABAP - Objects
SAP ABAP - PDF Generation
SAP ABAP - Program Variants
SAP ABAP - Sapscripts
SAP ABAP - Scripts n Smartforms
SAP ABAP - Selection Screen
SAP ABAP - Sending Mails
SAP ABAP - Smartforms
SAP ABAP - Tab. Maint.Generator
SAP ABAP - Tables
SAP ABAP - Tips n Tricks
SAP ABAP - Transport Mgmt
SAP ABAP - Zipping in ABAP

+11 Recommend this on Google
String to Binary
9
Web Dynpro ABAP - Download file
10
6/21/2014 An SAP Consultant: Execute ABAP Report using SUBMIT statement
http://www.an-sap-consultant.com/2010/12/execute-abap-report-using-submit.html 3/3
WebsitesIfollow
HTML/CSS/Javscript Generator
Easy CSS3 Generator
Digital Inspiration
Shout ME Loud
Twitter Feed
AnSAPConsultant
Contact US
About US
Privacy Policy
FollowUS
Facebook
Twitter
LinkedIn
Google
FollowbyEmail
Email address...
Bl ogger Templ ate created wi th Arti steer by .

Anda mungkin juga menyukai