Skip to Content
author's profile photo Former Member
Former Member

ADDRESS_INTO_PRINTFORM : address with street and po_box

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 06:35 AM

    Hi

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

    Aditya

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 05, 2007 at 06:54 AM

    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
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.