‎2008 Jul 23 11:26 AM
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...
‎2008 Jul 23 11:27 AM
hi,
Use IMPORT and EXPORT statement to achieve the same ..
Regards,
Santosh
‎2008 Jul 23 11:51 AM
hi santhosh!!
Pls can u just explain with one example on tat badi????
‎2008 Jul 23 11:56 AM
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
‎2008 Jul 23 12:02 PM
should i write the both import & export stmt in the same badi only??????????
‎2008 Jul 23 12:05 PM
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
‎2008 Jul 23 1:22 PM
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
‎2008 Jul 25 12:21 PM
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.