11-09-2011 11:01 AM
Hi ,
In a BDC PROGRAM , using CALL TRANSACTION for MM02 for updating field KONDM in the table MVKE, the update is not happening. When we are manually updating the MM02 transaction, the field is getting saved successfully. While running through the program using the recording that has been done for that material, the update is not happening and also the CALL TRANSACTION is not returning any messages though subrc is reading zero after executing the statement-CALL TRANSACTION.
Kindly suggest some solution.
Thanks,
Mamatha
11-09-2011 11:30 AM
Could you post the coding done for the BDC so we know where exactly the issue is arising? Use the coding tag while posting your code
11-09-2011 11:51 AM
Hi,
p_tcode = 'MM02'
p_pupda = 'A'
lt_ltab_mess TYPE STANDARD TABLE OF bdcmsgcoll.
CALL TRANSACTION p_tcode USING gt_gtab_bdc MODE p_pmode
UPDATE p_pupda MESSAGES INTO lt_ltab_mess.
After executing this CALL TRANSACTION, no data is being filled in the message
table-lt_ltab_mess even though subrc is reading zero.MKVE table is not updating.
Is there any issue with this code or is it with recording??
gt_gtab_bdc ,this internal table has the recorded data.
11-09-2011 2:30 PM
I hope you have mentioned the material number, the sales org and the distribution channel somewhere to enable SAP to find the record that shall be updated.
11-10-2011 9:43 AM
11-10-2011 4:37 PM
Hi Mamtha,
Why don't you try it with BAPI "BAPI_MATERIAL_SAVE_DATA or BAPI_MATERIAL_SAVE_REPLICA or even LSMW using standard direct input method using program RMDATIND which is a standard Direct Input Program for the creation of Material which will be faster and will improve the performance
Regards,
Rahul