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: 

Call dialog screen and get the result

0 Kudos

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

8 REPLIES 8

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

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

0 Kudos

Hi,

It is not a report program. It is a dialog program.

Thanks

Wilson

0 Kudos

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'.

0 Kudos

Hi,

Can I get the ALV result table ?

Thanks

Wilson

0 Kudos

Hi,

Anyone have the idea ?

Thanks

Wilson

hymavathi_oruganti
Active Contributor
0 Kudos

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'.

0 Kudos

Hi,

But I cannot retrive the alv internal table. I want to do caculation before display.

Thanks

Wilson

0 Kudos

No you cannot retrieve the result, just the messages.

Regards,

Rich Heilman