cancel
Showing results for 
Search instead for 
Did you mean: 

How to map a single input field with two BAPI inputs

Former Member
0 Kudos

hi

I have an input field in my view and I am using to pass that value first to one BAPI, which returns some result.

And if some conditions are met then again that input should be sent as the input parameter to another BAPI which would return some more data.

Is it possible to map one input field such that we can send that as inputs to two BAPIs.

please help me in this issue.

thanks and regards.

kris

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

closing the thread

Former Member
0 Kudos

closing the thread

Former Member
0 Kudos

Hi gopi Krishna,

Instead of Pointing Bapi Field to input. Create a context variable and condition flag at Iview Level. Based on condition Flag you can pass the Context value to whichever Bapi you want and write your business logic to get value and assign to Bapi Input.

Hope this answer Helps you.

Thanks

Madhan

Former Member
0 Kudos

hi Madan,

Thanks for ur response.

Can you be more clear on how to go ahead.If possible can u send some code snippet.

Thanks,

krishna

Former Member
0 Kudos

hi Madan,

Also please let me know how to set condition flags.

Thanks,

kris

Former Member
0 Kudos

Hi Gopi,

You create one context attribute in the view called ctx_attr1.

Now, when calling the First BAPI, assign this context value to the model attribute and then execute.

Now, based on the certain criteria to call another BAPI, assignt ctx_attr1 value to the another BAPI's model attribute and then execute that BAPI.

Regards,

Bhavik

Former Member
0 Kudos

gopi<a href="http://yahoo.com">gopi</a>