06-30-2009 7:05 AM
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.
06-30-2009 7:32 AM
Please debug and check whether all the values are passed to the FM from the internal table.
Regards,
Bhanu
06-30-2009 7:40 AM
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
06-30-2009 8:13 AM
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
06-30-2009 9:54 AM
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