Application Development and Automation 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: 
Read only

how to pass repot values to bapi as input values

Former Member
0 Likes
1,027

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

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

4 REPLIES 4
Read only

Former Member
0 Likes
877

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

Read only

0 Likes
877

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.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
877

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

Read only

Former Member
0 Likes
877

Hi,

use call transaction with BDC. Look with F1 on CALL TRANSACTION.

Regards, Dieter