‎2007 May 25 11:40 AM
Hi All,
Message Type - WMMBXY
Idoc Type - WMMBID02
Segment name - E1MBXYI
Type - Inbound.
1) The Basic requirement is while running Inbound idoc for the
transaction MB1A,where i will be getting material & plant as a
inbound,In MB1A for the coming material & plant if the stock type
equalt to 'K',then vendor field become Mandatory.
In that case we need to pass Vendor Number.
These vendor field will not come from externally through idoc.
For that i am picking vendor fron RESB table based on Material & plant
and i am updating the vendor in the above mentioned Segment.
In debuging i could able to see vendor field in segment getting updated,but it is not getting displayed in IDOC list.
2)EDI_DOCUMENT_OPEN_FOR_EDIT
EDI_CHANGE_DATA_SEGMENTS
EDI_DOCUMENT_CLOSE_EDIT
By using above function modules i could able to update the vendor in
the displayed IDOC list.
but the problem is i am getting two IDOC's at atime ,
one idoc is with status 70 i.e 'This IDoc is saved as the original of
an edited document'
second idoc is with status 51 or 53.
vanitha.
‎2007 May 25 12:56 PM
Hi,
Please make sure that whil Opening the Idoc you should not supposed to get any error Then only you should go ahead to Update the Idoc.
As per my undersanding Whenever we Edit the Idoc we always gets two Idoc one Edited one and one with Saved one.
Thanks
PK