Hello,
I use function module 'ADDRESS_INTO_PRINTFORM' to format vendor adress :
CALL FUNCTION 'ADDRESS_INTO_PRINTFORM'
EXPORTING
ADDRESS_TYPE = '1'
ADDRESS_NUMBER = zxpekko-adrn2
SENDER_COUNTRY = 'FR'
IMPORTING
ADDRESS_PRINTFORM = ws_adresse
.
In the vendor address, street and po-box are filled but only the po-box is in structure ws_adresse.
I would like to have street and po-box in structure ws_adresse.
In my system, land 'FR' has '001' for 'Address layout key' in OY01.
Can you help me ?
Thanks for your help.
Sébastien
If function module is giving problem get the address using below code...
SELECT SINGLE adrnr
FROM LFA1
INTO LFA1-adrnr
WHERE LIFNR EQ W_LIFNR.
if sy-subrc eq 0.
select single *
from adrc
into adrc
where ADDRNUMBER eq LFA1-ADRNR.
Close the thread once your question is answered.
Regards,
SaiRam
Add a comment