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

How to print ADDRESS in SAP Script

Hi All,

I want to print address using ADDRESS command in SAP script. I am using folowing code:

ADDRESS PARAGRAPH AS

TITLE &ADRS-ANRED&

NAME &ADRS-NAME1&, &ADRS-NAME2&,

STREET &ADRS-STRAS&

POBOX &ADRS-PFACH& CODE &ADRS- PSTL2& CITY &ADRS-PFORT&

POSTCODE &ADRS-PSTLZ&

REGION &ADRS-REGIO&

CITY &ADRS-ORT01&, &ADRS-ORT02&

COUNTRY &ADRS-LAND1&

FROMCOUNTRY &ADRS-INLND&

ENDADDRESS

Here in output I am getting Title, name1, & name2 in different lines. But I want that Title, name1 and name2 in same line.

I tried putting title, name1 and name2 in same line but then neither title nor name1, name2 are getting displayed.

Please tell me how I can do the same.

I have heard that SAP displays the address according to country standard. Please let me know in which table the country specific setting is stored.

Regards,

Vijay

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Jan 30, 2008 at 05:50 AM

    Hi,

    country code stored in this T005T. Adjust the tab positions on script then only u will get all the title, name1, name2 will get in one line.

    regards,

    ravi shankar reddy

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 05:58 AM

    Hi

    U can use Th FM

    address_into_printform in your print program .

    fetch data to an internal table loop it n pass value to script window

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 07:22 AM

    hi

    Use table T001W for country codes,

    and T005 table for country.

    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.