hi all,
i am using the following code to submit report.
SUBMIT :rko7co88 USING SELECTION-SET 'ZTEST_PS'
WITH SELECTION-TABLE seltab
WITH perio = v_month
WITH gjahr = v_year
WITH vaart = c_1.
the table seltab is being populated as shown below.
LOOP AT i_aufnr INTO i_aufnr_wa.
seltab_wa-selname = 'AUFNR'.
seltab_wa-sign = 'I'.
seltab_wa-kind = 'S'.
seltab_wa-option = 'EQ'.
seltab_wa-low = i_aufnr_wa-aufnr.
APPEND seltab_wa TO seltab.
CLEAR seltab_wa.
ENDLOOP.
but when i run this program it gives a short dump saying program has excceded the maximum time permited.
the problem seems to be with passing table seltab to select option, because when i run the program witout that statemant "WITH SELECTION-TABLE seltab" . it works fine.
in seltab i have selected only open orders which r confirmed, when i run the program without passing seltab it takes all the orders and works fine but according to my requirement i have to run the program for only open orders.
pls suggest the way out.
thanks
pankaj sharma
Try to submit in background.
Refer the following links:
submit-a-program-to-execute-in-background
to-run-a-program-in-background-using-submit
Regards,
Ravi
hi pankaj,
chk this sample code.
*Code used to populate 'select-options' & execute report
DATA: seltab type table of rsparams,
seltab_wa like line of seltab.
seltab_wa-selname = 'PNPPERNR'.
seltab_wa-sign = 'I'.
seltab_wa-option = 'EQ'.
load each personnel number accessed from the structure into
parameters to be used in the report
loop at pnppernr.
seltab_wa-low = pnppernr-low.
append seltab_wa to seltab.
endloop.
SUBMIT zreport with selection-table seltab
via selection-screen.
rgds
anver
if hlpful pls mark points
Hi,
The structure of the internal table you are using seems strange. It is not the structre of the SELECT-OPTIONS. It has only option, low , high and sign components.
I think you need to change that.
Regards,
Sesh
Hi pankaj,
1. I tried the same thing, and now its working fine.
2. I also used the extension of submit
<b> via selection-screen.</b>
to temporarily check what values are going in the screen.
3. just copy paste to get a taste of it.
4. Values 11111, 2222 will come in AUFNR.
5.
report abc.
*----
DATA : SELTAB LIKE RSPARAMS OCCURS 0 WITH HEADER LINE.
*----
SELTAB-SELNAME = 'AUFNR'.
SELTAB-KIND = 'S'.
SELTAB-SIGN = 'I'.
SELTAB-OPTION = 'EQ'.
SELTAB-LOW = '11111'.
APPEND SELTAB.
SELTAB-SELNAME = 'AUFNR'.
SELTAB-KIND = 'S'.
SELTAB-SIGN = 'I'.
SELTAB-OPTION = 'EQ'.
SELTAB-LOW = '222222'.
APPEND SELTAB.
*----
submit RKO7CO88
WITH perio = '001'
WITH gjahr = '2006'
WITH vaart = '1'
WITH SELECTION-TABLE SELTAB
via selection-screen.
regards,
amit m.
Hi Pankaj,
TRY like this..
SELTAB-SELNAME = 'AUFNR'.
SELTAB-KIND = 'S'.
SELTAB-SIGN = 'I'.
SELTAB-OPTION = BT''.
SELTAB-LOW = '11111'.
SELTAB-HIGH = '12000'.
APPEND SELTAB.
submit RKO7CO88
WITH perio = '001'
WITH gjahr = '2006'
WITH vaart = '1'
WITH SELECTION-TABLE SELTAB
via selection-screen.
regards,
nagaraj
Add a comment