‎2008 Mar 17 4:24 PM
Hi frnds,
I need an example where i have 2 programs.
i have to use the first program to run the second one.
i need to use submit but not to use Via selection screen.
like i need to pass the selection screen values from the first proram itself and run the second program.
frnds plz help me in giving some programs.
regard,
satish
‎2008 Mar 17 4:31 PM
Check this out ... Hope this might help
http://help.sap.com/saphelp_nw70/helpdata/en/9f/dba51a35c111d1829f0000e829fbfe/content.htm
Regards,
Santosh
‎2008 Mar 17 4:34 PM
hi ,
REPORT report1.
DATA text(10) TYPE c.
SELECTION-SCREEN BEGIN OF SCREEN 1100.
SELECT-OPTIONS: selcrit1 FOR text,
selcrit2 FOR text.
SELECTION-SCREEN END OF SCREEN 1100.
...
Calling program
REPORT report2.
DATA: text(10) TYPE c,
rspar_tab TYPE TABLE OF rsparams,
rspar_line LIKE LINE OF rspar_tab,
range_tab LIKE RANGE OF text,
range_line LIKE LINE OF range_tab.
...
rspar_line-selname = 'SELCRIT1'.
rspar_line-kind = 'S'.
rspar_line-sign = 'I'.
rspar_line-option = 'EQ'.
rspar_line-low = 'ABAP'.
APPEND rspar_line TO rspar_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'H'.
APPEND range_line TO range_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'K'.
APPEND range_line TO range_tab.
SUBMIT report1 USING SELECTION-SCREEN '1100'
WITH SELECTION-TABLE rspar_tab
WITH selcrit2 BETWEEN 'H' AND 'K'
WITH selcrit2 IN range_tab
AND RETURN.
Result
After report1 has been accessed by report2, the selection tables for the selection criteria selcrit1 and selcrit2 in the program accessed contain the following entries:
SIGN OPTION LOW HIGH
selcrit1 I EQ ABAP
selcrit2 I BT H K
selcrit2 E EQ H
selcrit2 E EQ K
regards,
venkat.
‎2008 Mar 17 4:37 PM
Hi Sathish,
You can write this statment in ur first program.
SUBMIT ZVIJI_SDN AND RETURN.
Here zviji_sdn is a your calling program.
Thanks.