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

bapi

Former Member
0 Likes
741

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.

1 ACCEPTED SOLUTION
Read only

Former Member
4 REPLIES 4
Read only

Former Member
Read only

Former Member
0 Likes
693

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

Read only

ibrahim_u
Active Participant
0 Likes
693

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.

Read only

Former Member
0 Likes
693

His Question is related WebDynpro Java, And You are Giving the BSP stuff.

This Question should post in Application server area.