on 10-07-2008 12:33 PM
hi all,
i need to show customer address in the smartform for tht i need to fetch address no from table vbpa on the basis of vbeln n according to tht address no i need to fetch address from adrc
how to write the query for this
hi,
u can write like,
select single adrnr from vbpa into zadrnr
where vbeln = ur doc. no.
select single * from adrc into zadrc where
adrcnumber = zadrnr.
declare 1. zadrnr type adrnr
2 . zadrc type adrc
in global definition.
take o/p of req fields from zadrc.
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
data:v_adrnr type adrnr.
select ADRNR
from vbpa
into v_adrnr
up to 1 rows
where vbeln = '0000010106'
and parvw = '1A'.
endselect.
if sy=subrc eq 0 and V_adrnr is not intial.
Select <Fields>
from adrc
into table <Internal tbale>
where adrnr = v_adrnr.
endif.
Regards
Jana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
In the program lines in smartform, write a select statement to pick up the address number..
Then under the program lines,Right Click on the program lines node and in create select Address...
Pass on the value u retreived from select statement into the address..
Regards,
Vishwa.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.