cancel
Showing results for 
Search instead for 
Did you mean: 

How To call BAPI Multi Times

Former Member
0 Kudos

Hi ,

I have an input filed in POPUP WHERE USER CAN ENTER ARRIVAL ID, Suppose if user enters 2312-001 it will go to FM to R/3 systems if its return any errors for that input again i will change the arrival and call the ABPI Agian ..

now the second the ABPI Wont Called to R/3 Function module .

please help in this regard ?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Venkat

You can Create one Attribute in Component Controller of type boolean map to View.

In the View you create one action contains one method which calls Component controller method which contains the Business Logic. If success case set the true value in the above attribure proceed further logic

if it is error in Business logic set to false and stop further Navigation return error message to the user using Message class.

If it returning error message to the User need to change input values click on the action again.

BR

SS

Former Member
0 Kudos

Hai ,

my issue when i call first time its calling FM .. but when i click on the same popup its not calling FM ...

ie) second The onactionok doesn't triggers the FM second time.

Regards,

venkat p

Former Member
0 Kudos

Hello Venkat

When you click button in the Pop window that action of the method take some constant variable.

Can you try like ...Based on above Constant variable put conditions in wdModify method of the view call that business logic method of Component Controller.

BR

SS

Former Member
0 Kudos

i will check & let u knw!