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

BAPI_MATERIAL_SAVEDATA

Former Member
0 Likes
308

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.

1 REPLY 1
Read only

Former Member
0 Likes
282

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.