Skip to Content
author's profile photo Former Member
Former Member

how to pass repot values to bapi as input values

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 07, 2011 at 06: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].

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 07, 2011 at 07: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 07, 2011 at 07:20 AM

    Hi,

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

    Regards, Dieter

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.