09-07-2011 7:04 AM
HI FRIENDS,
i have 1 issue i have written to report programs one is normal input, and another is calling bapi,my requirement is to pass normal report output values to bapi report as input parameters. i have used below code but values are geeting into parameters.
SET PF-STATUS 'ZCON'.
At USER-COMMAND.
CASE SY-UCOMM.
WHEN 'BAPI'. "this is key
CALL TRANSACTION 'ZBC'.}
"zbc = my bapi tcode
endcase.
please help.
Moderator message : Duplicate post locked. Continue with original thread.
Edited by: Vinod Kumar on Sep 7, 2011 1:42 PM
09-07-2011 7:11 AM
Hi ,
Use submit statement to call the 2nd report in your program. ANd pass the selection screen parameters with values from your 1st program.
SUBMIT... [VIA SELECTION-SCREEN]
[USING SELECTION-SET var]
[WITH sel criterion]
[WITH FREE SELECTIONS freesel]
[WITH SELECTION-TABLE rspar].
09-07-2011 7:54 AM
thanks for replying but my report output consist of 4 fields A B C D that values i have to pass to bapi (automatically) input parameters so please send me sample code for this.
09-07-2011 8:10 AM
What exactly are you asking for ? ([Asking Good Questions in the Forums to get Good Answers|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/17662] [original link is broken] [original link is broken] [original link is broken]😉
- Passing parameters between transaction
- Mapping parameters to BAPI (RFC function module or BOR method)
Regards,
Raymond
09-07-2011 8:20 AM
Hi,
use call transaction with BDC. Look with F1 on CALL TRANSACTION.
Regards, Dieter