10-16-2008 7:29 AM
Dear ABAPers,
I have created the BDC Program.I want to run this in Background job.
I want to call this program using SUBMIT Statement.How to do this.I
Thanks & Regards,
Ashok.
10-16-2008 7:33 AM
hi
SUBMIT zreport1 USING SELECTION-SCREEN '1100'
WITH SELECTION-TABLE rspar_tab
WITH selcrit2 BETWEEN 'H' AND 'K'
WITH selcrit2 IN range_tab
AND RETURN.
here the report1 is the calling program
if u dont want to call with scelection screen
SUBMIT zreport1 and return.
now zreport1 will accesseb by your porgram
Regards.
10-16-2008 7:33 AM
hi
SUBMIT zreport1 USING SELECTION-SCREEN '1100'
WITH SELECTION-TABLE rspar_tab
WITH selcrit2 BETWEEN 'H' AND 'K'
WITH selcrit2 IN range_tab
AND RETURN.
here the report1 is the calling program
if u dont want to call with scelection screen
SUBMIT zreport1 and return.
now zreport1 will accesseb by your porgram
Regards.
10-16-2008 7:39 AM
HI,
REPORT zzreport1.
DATA text TYPE c LENGTH 10.
SELECTION-SCREEN BEGIN OF SCREEN 1100.
SELECT-OPTIONS: selcrit1 FOR text,
selcrit2 FOR text.
SELECTION-SCREEN END OF SCREEN 1100.
...
Calling program
REPORT zzreport2.
DATA: text TYPE c LENGTH 10,
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.
...
10-24-2008 12:44 PM
Dear All,
Your Answers helped me to Solve the Problems.
Thanks & Regards,
Ashok.