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

Transfer data between two badi's

Former Member
0 Likes
871

Hi,

I'm implementing two BADi's.One badi is used to display an error message and another is used to get data which is to be shown in the error message.

I'm thinking to use EXPORT and IMPORT statements to get the date from one badi  to another.Can anyone let me know if there is aome other better method to transfer data between two BADI's?

I'm new to ABAP.

2 REPLIES 2
Read only

madhu_vadlamani
Active Contributor
0 Likes
596

Hi ,

Transferring data between badis?.Which badis you are using.What is the business requirement.

Regards,

Madhu.

Read only

Former Member
0 Likes
596

Hi,

For which transaction you want to use the BADI's. You can achieve this functionality only using one BADI by using field symbols or by using FM 'DYNP_VALUES_READ' in the BADI where you are giving error message. Read on FM DYNP_VALUES_READ.

And for field symbol you can follow below steps.

field-symbols:<fs> type any,

assign ('(Main program name)variable whose data you want to access ) to <lfs>.

if <lfs> is assigned.

   in <LFS> you will get the required data.

endif.

Thanks,

Pawan