Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

calling a report from a executable program

Former Member
0 Kudos

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

5 REPLIES 5

anversha_s
Active Contributor
0 Kudos

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

0 Kudos

hi anver,

if i have 60000 open production order, and i use the same code as u suggested; this will work or not?

gopi_narendra
Active Contributor
0 Kudos

you can use of the SUBMIT statement to call a report from a executable program

Regards

- Gopi

Former Member
0 Kudos

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

Former Member
0 Kudos

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.