‎2007 Nov 20 12:01 PM
Hi Friends,
Using BAPI_MATERIAL_SAVEDATA i am trying to extend the material from source plant to target plant.
In the tables parameter lt_return all the messages are stored.
returnmessages = lt_return .
In lt_return there are 4 entries.
lt_return-type lt_return-MESSAGE
1. H Trying to create: ACINSTREN 6020 ____ 6020
2. S The material cannot be maintained since no maintainable data
transferred
3. H Trying to change: ACINSTREN 6020 ____ 6020
4. S No changes made
it is giving the above messages and the material is not extended to target plant.
what is the error due to which the material is not getting extended.
Please help me its urgent.
Thanks in advance
Arundhathi.
‎2007 Nov 20 1:12 PM
Hi,
Please use the FM BAPI_TRANSACTION_COMMIT after your BAPI_MATERIAL_SAVEDATA call.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'.
and also
pass this
BAPI_HEAD-PURCHASE_VIEW = 'X'.
It may work for u.
Regards,
Amit.