cancel
Showing results for 
Search instead for 
Did you mean: 

FM to change addresses in SD

marcin_cholewczuk
Active Contributor
0 Kudos

Hi all

I've a little problem. I'm trying to change address in SD document inside of my report. I've tried to look for FM by debuging transaction VA02, but I was unable to find any. Looking through system I've found two FM that cought my eye

SD_SALES_PARTNER_MAINTAIN

SD_PARTNER_ADDRESS_SET

What I have is address number. From VBPA I'm able to get some data like position in SD document, partner function and customer number, but I have no idea what is object type (FIC_OBJECTTYPE TYPE SWO_OBJTYP

) and object key (FIC_OBJECTKEY TYPE SWO_TYPEID) nor from were I can get these values.

If anyone has done something that I'm trying to do I would be grateful for any tips.

BR

Accepted Solutions (0)

Answers (2)

Answers (2)

claudia_neudeck
Active Contributor
0 Kudos

Hello,

you can use the function module BAPI_SALESORDER_CHANGE. Here you have the following tables:

PARTNERS

PARTNERCHANGES

PARTNERADDRESSES

I hope that the information are helpful.

Regards

Claudia

marcin_cholewczuk
Active Contributor
0 Kudos

Answer is BAPI_SALESORDER_CHANGE