04-06-2006 3:26 AM
Hi,
Can i call the dialog 'RKK-AUFRUFEN-BERICHT' screen 300 with parameters and then get the result ?
The transaction code is CK86_99 and it call another transaction code KKBB and screen 300.
I have tried :
set parameter id 'MAT' field '1300318301Z' .
set parameter id 'WRK' field 'NP01'.
set parameter id 'KRT' field 'ZPC2'.
call transaction 'CK86_99' AND SKIP FIRST SCREEN .
but the slection screen still display.
Any idea ?
Thanks
Wilson
04-06-2006 3:28 AM
If it is a report program, then try using a SUBMIT instead of the call transaction. If a report, you can get the result back using the extension EXPORTING TO MEMORY, then using function module LIST_FROM_MEMORY. If it is a module pool program, then you will not be able to get the result.
Regards,
Rich Heilman
04-06-2006 3:49 AM
Hi,
It is not a report program. It is a dialog program.
Thanks
Wilson
04-06-2006 3:58 AM
record the transaction via sm35 and then generate a program from this recording. You can then cut and paste code from there into your program so that the call is something like:
CALL TRANSACTION 'CK86_99' USING bdcdata
MESSAGES INTO messtab
MODE 'N'.
04-06-2006 5:52 AM
04-06-2006 9:54 AM
04-06-2006 10:08 AM
data: bdc_itab type table of bdcdata.
set parameter id 'MAT' field '1300318301Z' .
set parameter id 'WRK' field 'NP01'.
set parameter id 'KRT' field 'ZPC2'.
bdc_itab-dynpro = '300'.
bdc_tab-dynbegin = 'X'.
BDC_itab-progname = (give the dialog program name).
append bdc_itab.
call transaction 'CK86_99' using bdc_itab AND SKIP FIRST SCREEN mode 'N'.
04-06-2006 10:37 AM
Hi,
But I cannot retrive the alv internal table. I want to do caculation before display.
Thanks
Wilson
04-06-2006 1:44 PM