‎2009 Aug 02 1:03 PM
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.
‎2009 Aug 02 1:05 PM
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.
‎2009 Nov 21 10:41 AM
this has been solved by self....need to check 'Use central address Management' check box in the SHDB transaction.