‎2007 Feb 05 1:14 PM
Hi Gurus,
I am using Bapi_Material_Savedata FM to update the MVKE table. When i write the code in the report its exeucting perfectly, but when i write the same code in Enhancement 'MGA00001' its going to continues loop, because the enhancemnet is internally used in Bapi_Material_Savedata.
About this Can any one give me the solution.
Thanks in Advance,
Sudheer.
‎2007 Feb 05 1:17 PM
what about implementing a flag in your enhancement point.
you may make the flag static, and set it "flagged" once in the routine the first time.
‎2007 Feb 05 1:18 PM
Hi Sudheer,
What you can do is to set a flag. and export to memory for the first time.
If the first line of the code, you can check for the flag after importing it. If it is initial, then you can proceed, else, exit.
*Import flag
Check flag.
If initial..proceed
Else exit.
But, what is the requirement? I feel that there is something wrong in the approach.
Regards,
Ravi
‎2007 Feb 05 1:22 PM
Hi,
I tried using the flag, but i have to update the <b>mvke-prodh</b> field for different sales organizations at a time for a single material number.
in this situation how can i solve it.
Best Regards,
Sudheer.
‎2007 Feb 05 1:21 PM
Hi Sudheer,
Let me know why u want this BAPI to use in MGA0001 Enhancement. Check whether it is not possible to update MVKE table using this Enchacement...
Regards,
Satya
‎2007 Feb 05 1:24 PM
Hi,
Can any FM/Enhancement other than that.
Best Regards,
Sudheer.
‎2007 Feb 05 1:57 PM
hi
good
go through this link.
/people/ramganesan.karuppaiah/blog/2006/12/14/material-creation-bapi-access-in-webdynprojava
thanks
mrutyun^