cancel
Showing results for 
Search instead for 
Did you mean: 

ADDRESS_INTO_PRINTFORM : address with street and po_box

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member196280
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi

Check out the structure ws_adresse. It may be possible you define only one field for this structure.

Aditya