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

Badi

Former Member
0 Likes
1,058

is it possible to transfer a variable from the badi Badi_material_check to another badi Badi_Screen_logic_rt???

Pls reply me asap......

Thanks in advance...

7 REPLIES 7
Read only

Former Member
0 Likes
1,013

hi,

Use IMPORT and EXPORT statement to achieve the same ..

Regards,

Santosh

Read only

0 Likes
1,013

hi santhosh!!

Pls can u just explain with one example on tat badi????

Read only

Former Member
0 Likes
1,013

hi,

Implement the badi Badi_material_check and Badi_Screen_logic_rt ... for implementation check out the below related thread

then in the implemented badi of Badi_material_check use the export statement as shown below ...


export v_field to memory id 'TEST'. 

then in the implemented badi of Badi_material_check use the import

statement ...


import v_field from memory id 'TEST'. 

Regards,

Santosh

Read only

0 Likes
1,013

should i write the both import & export stmt in the same badi only??????????

Read only

0 Likes
1,013

hi,

No the import statement should be in the other implemented badi ...

i.e, Badi_Screen_logic_rt the place where you wanted the value of it ...


import v_field from memory id 'TEST'.  

...

Regards,

Santosh

Read only

0 Likes
1,013

hi!!!

I m not able to import tat stmt in tat badi... it says sme error like dytxt is not a data like tat.. because in badi_material_check this dytxt is not there... so only i want it to transfer from BADI_SCREEN_LOGIC_RT ..

can u clear it asap..

Thanks in advance

Read only

Former Member
0 Likes
1,013

Hi Raj,

There is one way u can transfer variable from one BADI to another BADI That is using Memory ID Statement in ABAP.

U should Export the parameter in Badi_material_check and import parameter in the BADI Badi_Screen_logic_rt...

In Badi_material_check use

EXPORT value to memory id 'TEST'.

In Badi_Screen_logic_rt use

IMPORT value from memory id 'TEST'.

Thanks.

Prashanth P.