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

updating mvke database table

Former Member
0 Likes
2,500

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.

6 REPLIES 6
Read only

Former Member
0 Likes
1,348

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.

Read only

Former Member
0 Likes
1,348

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

Read only

0 Likes
1,348

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.

Read only

Former Member
0 Likes
1,348

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

Read only

0 Likes
1,348

Hi,

Can any FM/Enhancement other than that.

Best Regards,

Sudheer.

Read only

Former Member
0 Likes
1,348

hi

good

go through this link.

/people/ramganesan.karuppaiah/blog/2006/12/14/material-creation-bapi-access-in-webdynprojava

thanks

mrutyun^