09-23-2008 7:18 AM
Hi Experts,
I'm using a self-made program to distribute Material-BOMs and Changes.
To explain the problem, here is an example:
I have the following BOM in the Source system:
BOM 1234.567.890 ( at Day 0 )
-- Pos. 0100 - TEXT - Text-ID
-- Pos. 0110 - STOCK ITEM - 9999.888.888
-- Pos. 0120 - STOCK ITEM - 9898.999.999
I made a Change into this BOM, by adding a new position:
BOM 1234.567.890 ( at Day + 1 )
-- Pos. 0100 - TEXT - Text-ID
-- Pos. 0110 - STOCK ITEM - 9999.888.888
-- Pos. 0120 - STOCK ITEM - 9898.999.999
-- Pos. 0130 - STOCK ITEM - 8888.888.999
Now I want to distribute it.
I send the first version ( Day 0 ) by using 'MASTER_IDOC_CREATE_BOMMAT' with MESCOD = 'CRE' and DATUV / ALE_DATUV = STKO-DATE.
Then I send the "Change" version ( Day + 1) with MESCOD = 'CNG' and DATUV / ALE_DATUV = AENR-DATUV.
In the Target system, the BOM is OK at Day 0. At Day + 1, I see the new position with his change number, but the Text-Position has been deleted ?!?!?!?!?
We are using Text-Objects (ID) into Text-Positions. But in the Target system, we don't have these Objects.
Is it possible that the Inbound Processing for BOMMAT IDoc check if the Text-Object exist, and if not, delete the position ?
Rewards for support. Thanks.
Regards,
David
09-24-2008 1:41 PM
I think I have to modify function "convert_update_logic" called into IDOC_INPUT_BOMMAT.
Regards,
David
10-08-2008 12:31 PM
Any idea ? Nobody ?
PS : I have the same problem with L-Position, not only Text-Postion...
Regards,
David
10-08-2008 1:41 PM
David,
use an own ZIDoc_INPUT_ Fuction.
1. check textobject id for BOM
2. move changed data to Fm IDOC_INPUT_BOMMAT.
Edited by: Gordon Breuer on Oct 8, 2008 2:41 PM
10-09-2008 1:19 PM
Hi Gordon,
I've decided to copy Function idoc_input_bommat and to make some modifications and now it works fine !
I think the standard function isn't ok.
Regards,
David