Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9080

Re: how to call an alv report from another program and return back

$
0
0

Dear Seema,

 

When u call a Report B from Report A,

 

You Export a variable to Memory Id in Report A and read the same in Report B.

 

For Example:

 

Im in Report A now okay, before you call Report B use the below code in Report A

 

Data: var_report Type char1.

var_report= 'A'.

Free memory id 'ZREPORT'.

Export var_report to memory id 'ZREPORT'.

*****the below code call the report B

SUBMIT Prgrm B VIA SELECTION-SCREEN

                      WITH SELECTION-TABLE rspar

                      EXPORTING LIST TO MEMORY

                      AND RETURN.

 

 

When u moved to report B, In reprot B add the below code.

 

Data: var_report Type char1.

import var_report from memory id 'ZREPORT'.

Free memory id 'ZREPORT'.

 

if var_report eq 'A'.

********* this will solve your problem

*********The EXPORT statement runs only when you execute Prgrm B via Prgrm A and not when you execute

*********Prgrm B independently.

endif.

 

Hope this will help you.

 

regards,

Rajesh Sadula.


Viewing all articles
Browse latest Browse all 9080

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>