cancel
Showing results for 
Search instead for 
Did you mean: 

Ship-to-party

Former Member
0 Kudos

Hai experts,

I have an issue in smartform. Created smartform and executing for vf03. In the corresponding sales doc number in va03, i have to take sold-to-party and ship-to-party.

how to take that. please help me as soon as possible.

Thanks and regards,

Prabu.S

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

First find the Delivery Document for that Invoice.

Then by using FM SD_VBPA_READ_WITH_VBELN u can retrive the Partner Functions In the corresponding Delivery document.

CALL FUNCTION 'SD_VBPA_READ_WITH_VBELN'

EXPORTING

i_vbeln = wa_likp-vbeln "Delivery Document Number

TABLES

et_vbpa = it_vbpa.

In it_vbpa table u can get the PartnerFunctions List.

LOOP AT it_vbpa INTO wa_vbpa.

IF wa_vbpa-parvw = 'WE'.

v_ship = wa_vbpa-adrnr.

ENDIF.

IF wa_vbpa-parvw = 'AG'.

v_sold = wa_vbpa-adrnr.

ENDIF.

ENDLOOP.

kesavadas_thekkillath
Active Contributor
0 Kudos

Former Member
0 Kudos

Hi Prabhu

Take a look at the link it will help you

[http://wiki.sdn.sap.com/wiki/display/Snippets/howtogetship-topartyforasoldto+party]

regards

Nilesh Gaikwad