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

MIGO Create or Update Flag

Former Member
0 Likes
829

Hello all,

I am using the BADI MB_DOCUMENT_BADI to add custom code when posting the Material Document using Transaction Code MIGO. I would like to ask is there any default field that helps to check if the current action is "Create" or "Update". I try to search through Structure "SYST" but could find any suitable fields. Please kindly assist.

Thanks.

Hello all,

I am using the BADI MB_DOCUMENT_BADI to add custom code when posting the Material Document using Transaction Code MIGO. I would like to ask is there any default field that helps to check if the current action is "Create" or "Update". I try to search through Structure "SYST" but could find any suitable fields. Please kindly assist.

Thanks.

4 REPLIES 4
Read only

Former Member
0 Likes
768

There seems to be no field with the action in.

Can you just select on MKPF for the document details, and if it exists, then you can assume an update, if it does not exist then assume a create.

Read only

former_member404244
Active Contributor
0 Likes
768

Hi,

I too agree with paul... Also see if you use this badi " MB_MIGO_ITEM_BADI" for your requirement and see if any field is there in the structure.

Regards,

Nagaraj

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
768

Doesnt the transaction differentiate this ?

sy-tcode.

Oops .. Now i got your question exactly !!!!

Edited by: Keshav.T on Mar 3, 2010 12:48 AM

Read only

0 Likes
768

Thanks.