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: 

how we can call forms or reports from dynpro programming(code needed)

Former Member
0 Kudos

hai all this is pradeep,

i would like to have coding for the above requirement plz help me out.

thanks and regards....

abpk

5 REPLIES 5

Former Member
0 Kudos

for text reports look into the verb

LEAVE TO LIST-PROCESSING.

Addition:

... AND RETURN TO SCREEN scr.

for grid.. look into ALV and Custom Controls on the screen.

Former Member
0 Kudos

Hi Pradeep,

In the screen place a push button and give it a function code.

create a transaction for the report.

and in the PAI module write this code

when 'REPORT'.

set parameter id 'AUN' field it_vbak-vbeln.

call transaction 'ZVA03' and skip first screen.

in the report use the statement get parameter id.

data : vbe type tpara-paramid value 'AUN'.

parameters : pr_vbeln like vbak-vbeln.

get parameter id VBE field pr_vbeln.

so if you press the button now the report will be triggered.

Regards,

Charumathi.B

0 Kudos

hai charu

ur answer is very helpful to me thank u so much..and what about the forms calling from dynpro....

0 Kudos

Hi Pradeep,

You can follow the same logic to dynpro's.

Coming to Forms,You can call the driver program by assigning a Ztransaction to it.

Regards,

Charumathi.B

Former Member
0 Kudos

You might want to explain the requirement a little further... but if you have an existing report then check into the "submit ???? and return"... if you are running a SAPScript form from a dynpro, this would also be an appropriate technique i.e. generate the form from from the report, and submit the report from the module pool.

Jonathan