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

MK02 - BDC

Former Member
0 Likes
620

Hi experts,

I am working on MK02 BDC.

I need to update few fields in the Address screen, among them e-mail is one field. All other fields are updating successfully

except e-mial field. Can any one plz help me in this regard.

2 REPLIES 2
Read only

Former Member
0 Likes
551

The code is as mentioned below...

loop at it_mk02 into wa_mk02.

refresh it_bdcdata.

perform bdc_dynpro using 'SAPMF02K' 0108.

perform bdc_field using 'RF02K-LIFNR' wa_mk02-lifnr.

perform bdc_field using 'RF02K-EKORG' c_ekorg.

perform bdc_field using 'RF02K-D0110' 'X'.

perform bdc_field using 'RF02K-D0310' 'X'.

perform bdc_field using 'BDC_OKCODE' '/00'.

perform bdc_dynpro using 'SAPMF02K' 0110.

perform bdc_field using 'BDC_OKCODE' '=VW'.

perform bdc_field using 'LFA1-TELF1' wa_mk02-TEL_NUMBER.

perform bdc_field using 'LFA1-TELFX' wa_mk02-FAX_NUMBER.

perform bdc_field using 'LFA1-LFURL' wa_mk02-SMTP_ADDR.

perform bdc_dynpro using 'SAPMF02K' 0310.

perform bdc_field using 'LFM1-VERKF' wa_mk02-VERKF.

perform bdc_field using 'LFM1-TELF1' wa_mk02-MOB_NUMBER.

perform bdc_field using 'BDC_OKCODE' '=UPDA'.

call transaction 'MK02' using it_bdcdata mode 'A' update 'A'

messages into it_bdcmsgcoll.

if sy-subrc = 0.

  • write : / 'SUCCESS'.

endif.

endloop.

Read only

Former Member
0 Likes
551

this has been solved by self....need to check 'Use central address Management' check box in the SHDB transaction.