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

bapi

Hi,

The scenario is, by giving two input parameters such as customer Id and Month and when submit button is pressed in EP a bapi should be called from EP which displays the details stored in the ztable which is in R/3.

IF the import parameter is taken as 'submit' . If submit = 'X', then bapi should be called from EP itself. How can we call the bapi.Bapi is in R/3.How do we link that when submit button is pressed, bapi to be called.Please explain.

Rgds,

khadeer.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jul 25, 2008 at 02:38 PM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 25, 2008 at 02:45 PM

    this is related to WebDynpro for Java. you can do that with the help of model.

    I hope you know the Model and how to call and use the Model check in.

    Tutorials...

    Tutorials & Samples for Web Dynpro Java

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 25, 2008 at 03:20 PM

    I think youre taking about Enterprise Portal and developing applications using WebDynpro.

    If so, you can use one of these two methods.

    1 - You can use "on input processing" event in Event Handler tab in WebDynpro

    for example,

    Page x.htm layout:

    <html>
    <body>
    <form method="POST">
        <input type=submit name="oninputprocessing(whatdoyouwant)" value="Submit">
    </form>
    </body>
    </html>

    Page x.htm Event of On Iput Processing :

    case event_id.
      when 'WHATDOYOUWANT'.
        call function 'BAPI_XXX'.
    endcase.

    2 - You can use form action property to redirect another page.

    Page x.htm layout:

    <html>
    <body>
    <form method="GET" action="y.htm" >
        <input type=submit name="submit" value="X">
    </form>
    </body>
    </html>

    Page y.htm Event of On Request:

    value = navigation->get_parameter('submit').
    if value = 'X'.
        call function 'BAPI_XXX'.
    endif.

    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.