Skip to Content
0

SAP MIGO - Update Asset Fields

Oct 27, 2016 at 07:22 AM

114

avatar image
Former Member

Dear All,

When I post GR in MIGO, I am using BAPI_FIXEDASSET_CHANGE in BADI(MB_MIGO_BADI-POST_DOCUMENT) to update asset master field (eg: INVNR). I'm failed to update this asset master field in MIGO for newly created asset.

The value seems to be cleared out after reached the following codes in standard program LMIGOKG1. Once reached 'commit work', the data updated earlier in ANLA table get deleted. However, if I did second GR to same asset and update the new value for field anla-invnr, these data is able to update into Asset master even reached the same code below. Any idea on this? Appreciate your advice. Thanks.

* note 201156:
* Read the flag stored by TA_AUTOMATISCH (MM07MLVS) to determine
* whether a direct call to LT06 (create transport request) is
* set up in customizing of table T321.
* In this case, we execute COMMIT WORK AND WAIT, so that the
* material document is surely on the database as LT06 reads it.
IMPORT lvs_tafkz = l_tafkz FROM MEMORY ID 'MIGO'.
ENHANCEMENT-SECTION GOODS_MOVEMENT_FILL_04 SPOTS ES_SAPLMIGO.
IF l_tafkz = x.
COMMIT WORK AND WAIT.
CALL METHOD reset.
CALL TRANSACTION 'LT06'.
ELSE.
COMMIT WORK.
CALL METHOD reset.
ENDIF.
END-ENHANCEMENT-SECTION.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers