on 11-07-2009 5:23 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.