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: 

How to update Ship to Mobile Number of sales order (VA02) using bapi or any fm

Former Member
0 Kudos

Hi ABAPer's,

I am facing a silly issue where i have to update ship to Mobile no using XML.(XML Mobile No should  update the previous one stored in ship to mobile no).

I am trying it with BAPI  BAPI_SALESORDER_CHANGE.

Tried to pass the mobile no in BAPI, But did not found any place for mobile no in bapi.

use some code below but it does not fulfill my req.

its updating telephone 2 data but not mobile.

i know its a wrong  code but just tried as a hit and trial method.

CLEAR: wa_partner.

   wa_partner-partn_role 'WE'.

   wa_partner-partn_numb = wa_xml-kunnr. "P_SOLD.

   wa_partner-telephone2 = lv_mobile.

   wa_partner-country = wa_xml-country.

   APPEND wa_partner TO partner.


If there is any other method , please let me know.

early responses will be appreciated.


regards,

manish manohar

3 REPLIES 3

FredericGirod
Active Contributor
0 Kudos

Hi,

you will need to use a function module dedicated for the change of the address like : BAPI_BUPA_ADDRESS_CHANGE

regards

Fred

0 Kudos

hey,

thanks for your quick response  but it doesn't fulfill my requirement.

actually this FM is used to update address details of a business partner and not ship to customer .

Former Member
0 Kudos

Hi,

I have tried it by passing ADRNR into ADR2 table from VBPA and updating TEL_NUMBER where R3_USER = 3.