+ -

Pages

Saturday, July 26, 2014

Calling a dialog screen from a report and passing data

Make a report
  • Add a pf-status with a botton to call the dialog screen
  • Make the dialog screen.
  • For every field in the dialog screen you want to pass to the report, mark the SET parameter checkbox, and apply a ParameterID in the attrubutes window of the screen.
  • Create a transaction code for the dialog screen

Place the following code in the report:
* p_rc is for receiving data from the dialog screen
data: p_rc type i.

at user-command.
* Call the dialog screen. ZRE1 is the transaction code of the screen
  call transaction 'ZRE1'.

* Get parameter from the dialog screen. ZRZ is the parameterID for the field in the dialog
* screen you want to pass to the report.
  get parameter id 'ZRC' field p_rc.
5 ABAP Tips: Calling a dialog screen from a report and passing data Make a report Add a pf-status with a botton to call the dialog screen Make the dialog screen. For every field in the dialog screen you...

No comments:

Post a Comment

< >