Application Development 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: 

BAPI_MATERIAL_MAINTAINDATA_RT to update MARA-LAEDA & MARA-AENAM

Former Member
0 Kudos

Hi, I want to update two fields Last changed on(MARA-LAEDA) AND Last changed by (MARA-AENAM) for variant and its generic article.

I am looping the internal table has 20 article , in which calling the function module 'BAPI_MATERIAL_MAINTAINDATA_RT' for each article and populating HEADDATA,CLIENTDATA and CLIENTDATAX for every record.

when it is not retuning any error excuting commit through Function module 'BAPI_TRANSACTION_COMMIT'.this function module is also giving sy-subrc equal to 0 for all article means commiting it.

Although everything is fine,Each FM is working fine..but record is updating for only first article,not for all .Please help.

4 REPLIES 4

former_member556412
Active Participant
0 Kudos

Please debug and check whether all the values are passed to the FM from the internal table.

Regards,

Bhanu

0 Kudos

I have checked already,it is passing.I have only doubt,should I populate "Function" field of CIENDDATA ,HEADDATA AND CLIENTDATAX. If yes, tell me what are taht value

0 Kudos

Hi,

For function field please check the IDoc ARTMAS01.

For your help i am listing few values that might help you.

003 Delete: Message contains objects to be deleted

004 Change: Message contains changes

005 Replace: This message replaces previous messages

009 Original: First message for process

023 Wait/Adjust: Data should not be imported

018 Resend

Hope its clear

Regards,

Bhanu

0 Kudos

hello pathak,

r u for updating just pass the function value as 0004

and juct chekc once if ur passing clientx value for all records in client table

m.a