Application Development 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: 

How to call BAPI in BADI

Former Member
0 Kudos

Hi,

I am calling a BAPI in BADI, but i am getting dump Beacuse RETUN structure not mach, please advice me how can i call the BAPI in BADI.

Thanks,

Karuna.

1 REPLY 1

uwe_schieferstein
Active Contributor
0 Kudos

Hello Karuna

Since your question is quite unspecific as is the answer.

Please note that BAPIs use different structures for the returned messages:

- BAPIRETURN (old)
- BAPIRETURN1 (old)
- BAPIRET1 (old)
- BAPIRET2 (most up-to-date)

If you need to convert inbetween these different return message types have a look at the function modules of group <b>BFRT</b>, e.g.:

<b>BALW_RETURN_TO_RET2</b> (maps BAPIRETURN -> BAPIRET2)

Regards

Uwe