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: 

Update field KONDM in MVKE using CALL TRANSACTION for MM02

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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

0 Kudos

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.

JL23
Active Contributor
0 Kudos

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.

0 Kudos

Yes we have mentioned all those things and it is recorded also.

Former Member
0 Kudos

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