10-17-2006 8:06 AM
Hi All,
i want to call a report which is generated by tcode CO88 from a executable program. I want to pass the values of order from the exe program only. But my requirement is such that i want co88 to process only open orders, so please suggest how can i do that.
thanks in advance.
Pankaj Sharma
10-17-2006 8:09 AM
hi,
chk this sample.
*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.
*Code used to populate 'parameters' & execute report
SUBMIT zreport with p_param1 = 'value'
with p_param2 = 'value'.
Other additions for SUBMIT
*Submit report and return to current program afterwards
SUBMIT zreport AND RETURN.
*Submit report via its own selection screen
SUBMIT zreport VIA SELECTION-SCREEN.
*Submit report using selection screen variant
SUBMIT zreport USING SELECTION-SET 'VARIANT1'.
*Submit report but export resultant list to memory, rather than
*it being displayed on screen
SUBMIT zreport EXPORTING LIST TO MEMORY.
Once report has finished and control has returned to calling
program, use function modules LIST_FROM_MEMORY, WRITE_LIST and
DISPLAY_LIST to retrieve and display report.
rgds
anver
if hlped pls mark points
10-17-2006 9:22 AM
hi anver,
if i have 60000 open production order, and i use the same code as u suggested; this will work or not?
10-17-2006 8:11 AM
you can use of the SUBMIT statement to call a report from a executable program
Regards
- Gopi
10-17-2006 8:11 AM
hi pankaj,
u can use submit and subit and retun as per as open pocess order u need to do coding and check and down load the pick list fom co27
rahul
10-17-2006 8:13 AM
Hi,
Based on your given brief information I would say,
You should create one new executable program.
Select all open orders only.
Using BDC functionality call transaction CO88.
and pass necessary parameters.
Hope this may help you to start working on your requirement.
Palak.