Address -Endaddress in Sap Script

Hi
Requirement is to  add District field in new line in SAP Script.
I am using Address End address :
/:          ADDRESS
/:            TITLE       &DKADR-ANRED&
/:            NAME        &DKADR-NAME1&, &DKADR-NAME2&, &DKADR-NAME3&, &DKADR-NAME4&
/:            STREET      &DKADR-STRAS&
/:            POBOX       &DKADR-PFACH& CODE &DKADR-PSTL2&
/:            CITY          &DKADR-ORT02& ,  &DKADR-ORT01&
/:            POSTCODE    &DKADR-PSTLZ&
/:            COUNTRY     &DKADR-LAND1&
/:            REGION      &DKADR-REGIO&
/:            FROMCOUNTRY &DKADR-INLND&
/:          ENDADDRESS
So basically I would like to put  &DKADR-ORT02& in new line.
I cannot use District  field.If I use CITY field again it is not showing the value.
How do we add this new field?

Try like this not sure it will work or not.
/: ADDRESS
/: TITLE &DKADR-ANRED&
/: NAME &DKADR-NAME1&, &DKADR-NAME2&, &DKADR-NAME3&, &DKADR-NAME4&
/: STREET &DKADR-STRAS&
/: POBOX &DKADR-PFACH& CODE &DKADR-PSTL2&
<b>/: CITY &DKADR-ORT02&</b>
<b>/: CITY &DKADR-ORT01&</b>
/: POSTCODE &DKADR-PSTLZ&
/: COUNTRY &DKADR-LAND1&
/: REGION &DKADR-REGIO&
/: FROMCOUNTRY &DKADR-INLND&
/: ENDADDRESS
Regards,
SaiRam

Similar Messages

  • Regarding Address EndAddress in SAP Script

    <i>Hi Abapers,
    I am having a problem while displaying the address in SAP Script through Address EndAddress.
    Problem is it is displaying the data correctly but it display the Region Code. Now the requirement is to display the Region Description instead of the Region Code.
    Can you please provide me any solution for this.
    I am sending the Address EndAddress which I have written in my code.</i>
    /:          ADDRESS DELIVERY PARAGRAPH ZC
    /:            NAME     &VBDKL-ZBTNAME1&, &VBDKL-ZBTNAME2&, &VBDKL-ZBTNAME3&, &VBDKL-
    /:            STREET   &VBDKL-ZBTSTRAS&
    /:            CITY     &VBDKL-ZBTORT01&, &VBDKL-ZBTORT02&
    /:            POSTCODE &VBDKL-ZBTPSTLZ&
    /:            COUNTRY  &VBDKL-ZBTSLAND&
    /:            REGION   &VBDKL-ZBTREGIO&
    /:            FROMCOUNTRY &VBDKL-ZBTLLAND&

    Hi
    ADDRESS and ENDADDRESS is used to specify the address which will
    be formatted according to the target country i.e the recipient country.
    e.g. /:ADDRESS sales PARAGRAPH C
    /:NAME &KNA1-NAME1&
    /:STREET &KNA1-STRAS&
    /:POSTCODE &KNA1-PSTLZ&
    /:CITY &KNA1-ORT01&
    /:COUNTRY &KNA1-LAND1&
    /:FROMCOUNTRY 'DE'
    formatting address
    http://help.sap.com/saphelp_46c/helpdata/en/d1/803238454211d189710000e8322d00/frameset.htm
    http://help.sap.com/saphelp_40b/helpdata/en/d1/803238454211d189710000e8322d00/content.htm
    <b>Reward if usefull</b>

  • Issue related to ADDRESS ... ENDADDRESS in SAP Script

    Hi All,
    I have a issue using ADDRESS .... ENDADDRESS in SAP Script.
    ADDRESS PARAGRAPH AS
      TITLE    &WA_LFA1-ANRED&
      NAME     &WA_LFA1-NAME1&, &WA_LFA1-NAME2&
      STREET   &WA_LFA1-STRAS& HOUSE &WA_ADRC2-STR_SUPPL3&
      POBOX    &WA_LFA1-PFACH&  CODE &WA_LFA1-PSTL2&
      CITY     &WA_LFA1-ORT01&, &WA_LFA1-ORT02&
      POSTCODE &WA_LFA1-PSTLZ&
      COUNTRY  &WA_LFA1-LAND1&
      REGION   &WA_LFA1-REGIO&
      FROMCOUNTRY &WA_T001-LAND1&
    ENDADDRESS
    I am using above code for printing vendor address.
    Though Name3 & Name4 are not declared but their values are getting displayed if value is available.
    Though Street2, Street3 are not declared but their values are getting displayed if value is available.
    Even title should not be displayed if available also.
    I want only below fields to be displayed:
    Name 1
    Name 2
    Street/House Number
    Street 4
    Postal Code/City
    Country Name (This one declared below ADDRESS ... ENDADDRESS)
    I don't want to dislay other fields if they have value also.
    How it is possible!
    Thanks in advance.
    Thanks,
    Deep.

    Hi Deep,
    Basically the variables that u havent mentioned in the sap script will never be printed.
    In the code u have not mentioned the variables Name3, Name4, Street2, Street3...so they will never be displayed.
    Please check your code again...i think somewhere u must have written
    &WA_LFA1-NAME3&
    &WA_LFA1-NAME3&
    etc
    if so please remove them. Otherwise the code u have written is perfectly fine.
    or else in ur driver program, dont move all the values to workarea...move only the values that u need to display and use them in ur script.
    Regards,
    Radhika

  • How to add field on into standard address window in SAP script

    Hello Exports,
            I want to add Vendor number field in between the Vendor name and vendor address in the address window in sap script.
    Address is written in standard Address and Entendres. I need to add the vendor number in thsi Address and Endaddress.
    Please guide in this.

    goto the Vendor Name field .
    Hit enter.
    A new line is created.
    Give your Vendor Num field there.
    Bhupal

  • How ADDRESS-ENDADDRESS works in script

    Hi experts,
    Could you please throw some light on how ADDRESS-ENDADDRESS works in script.
    Please let me know how the following code executes and what is the impact of the FROMCOUNTRY statemnet in that code . Also le tne know various other options it has:
    ADDRESS DELIVERY PARAGRAPH AS
    ADDRESSNUMBER &PEKKO-ADRN2(K)&
    FROMCOUNTRY &LFA1-LAND1&
    ENDADDRESS
    Thanks in advance.
    Br
    Ram

    Check the link for format
    http://help.sap.com/saphelp_47x200/helpdata/en/d1/80318f454211d189710000e8322d00/frameset.htm
    The SAP function module ADDRESS_INTO_PRINTFORM gets called
    Check its documentation in SE37
    This will help!
    Regards,
    Prashant

  • Problem in address printing in sap script in Russian language

    hi all
    I am trying to get a PO output using a sap script. The problem is that the vendor address in not coming in the required Russian language. The language in PO is Russian and the logon langauge is also Russian.
    The script uses ADDRESS ENDADDRESS statement to print the address in form. This statement
    uses the function module ADDRESS_INTO_PRINTFORM to print the address. The address can be obtained in the required language from this function module but I want the address in Russian language uses the ADDRESS ENDADDRESS statement.
    Please let me know if any body has faced this kind of problem earlier.
    Thanks.

    Hi,
    pls check that u have provided the following parameters in ADDRESS ENDADDRESS.
    /:address
    /:COUNTRY recipient country [language code]
    /: COUNTRY_IN_REC_LANG
    /: LANG_FOR_COUNTRY language key
    /:endaddress
    language codes can be know in table T002.
    Hopes this helps!!
    thanks

  • Address data in sap script

    Dear All,
    As per current layout already printing / display below information .
    Name               Already Printing     
    Street/House          Already Printing
    District               Already Printing     
    City               Already Printing     
    Region               Already Printing     
    Post Code                          Already Printing     
    now I want
    Name               Already Printing     
    Street/House          Already Printing
    Street2                          Need To Print
    Street3                          Need To Print
    District               Already Printing     
    City               Already Printing     
    Region               Already Printing     
    Post Code                          Already Printing     
    I have selected the data from adrc table.and it is selecting properly.
    Now I have wrote in adress window is
    street2   &adrc-str_suppl1&
    street3   &adrc-str_suppl2&
    but it is not printing in form.
    when i debugg it. It shows ;TEXT command street2 stree3 is not defined.
    please tell me what should i do?

    Hi
    In SAP address details can be set in the minutest way but everything is not displayed while useing ADDRESS and ENDADDRESS because it gives priorities to fields. e.g. it will not display street or ther things if POBOX is given. These setting can be changed where you maintain the address. One method to solve your peoblem if you are using ADDESS and ENDADDRESS is to use LOCATION just before STREET field.
    where you can assign Street to LOCATION and street2 to STREET.
    Try if it solves your problem.
    regards
    Vijai

  • 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

    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

  • SAP Script   ADDRESS....ENDADDRESS

    Hi,
    I have the following code in one window of my SAP Script
    /: ADDRESS
    /: NAME &SHIPINV-S2NAME1&, &SHIPINV-S2NAME2&, &SHIPINV-S2NAME3&
    All other address nodes
    /: ENDADDRESS
    All the 3 names are printed successfully.
    Now i want to add &SHIPINV-S2NAME4& to NAME node of ADDRESS. Since the length of the line in editor window is occupied by first 3 name fields I had to put my 4th field in next line.
    /: ADDRESS
    /: NAME &SHIPINV-S2NAME1&, &SHIPINV-S2NAME2&, &SHIPINV-S2NAME3&
    <b>/: &SHIPINV-S2NAME4&</b> <i>is this correct ??</i>
    All other address nodes
    /: ENDADDRESS
    But its not at all printing the 4th value (In debugger i checked the value s available in &SHIPINV-S2NAME4&). I am not sure about the syntax for next line in NAME node & also notation to use like /: or /( or space, or /= and so on. I tried many combinations but cudn't get thru it. So i am confused with NAME node of ADDRESS...ENDADDRESS
    Please help me out in this case.
    Thanks,
    Sail

    Hello if things don't work as suggested.
    Try this simple solution:
    /: DEFINE &NAME1& = &SHIPINV-S2NAME1&
    /: DEFINE &NAME2& = &SHIPINV-S2NAME2&
    /: DEFINE &NAME3& = &SHIPINV-S2NAME3&
    /: DEFINE &NAME4& = &SHIPINV-S2NAME4&
    /: ADDRESS
    /: NAME &NAME1& &NAME2& &NAME3& &NAME4&
    By the way Have you tried with this also:
    /: NAME &SHIPINV-S2NAME1& &SHIPINV-S2NAME2& ....S2NAME3& =       &SHIPINV-S2NAME4&
    Enjoy !!
    Message was edited by:
            Amarjit Singh

  • Gap between two characters in SAP Script Address EndAddress.

    Hi Abapers,
    I have one query regarding Address - EndAddress in SAPScript.
    I am putting the code :
    /: ADDRESS TYPE '1' PARAGRAPH ZI PRIORITY 'APL43' LINES 6
    /:ADDRESSNUMBER &ZPOLGORT-ADRNR&
    /:ENDADDRESS
    and  I am getting the output in this form
    <b><i>ABC Soft c/o JSI Hong Kon g
    c/o RS Logistics (Shenzhen) Limited
    6/F., DZ Zhong Tian Yuan Logistics Ctr.
    126/Xia Road, Futian Free Zone,
    Shenzhen
    China</i></b>
    But the problem is there is a gap between character "n" and 'g" in first line in word Kong.
    Can anybody suggest me how to solve this issue. Or is there any other issues to sort it out this problem.

    Hi,
    Its not the problem with Address / End Address.
    It could be probably maintained that way.
    Please check the entry in the table where it is maintained.
    reagrds,

  • Printing address in chinese char- sap script

    Hi
    I have a requirement to print address in chinese(ZH language).
    currently we need to write down the Chinese address manually on envelop if mailing address is in China.
    we would like to have the logic for the output. if there is Chinese name/address maintained in customer master, then use Chinese name/address. otherwise, use original English name/address to print on statement.
    in sap script they are passing address number to get this address
    /:   ADDRESS PARAGRAPH AF PRIORITY P LINES 10
    /:     ADDRESSNUMBER &DKADR-ADRNR&
    /:     FROMCOUNTRY &T001-LAND1&
    /:   ENDADDRESS
    Anyone help me out
    Regards
    Kumar

    Hi,
    you can use this with this format
    /: ADDRESS [DELIVERY] [TYPE t] [PARAGRAPH a] [PRIORITY p] [LINES l]
    /: TITLE title
    /: NAME name1[,name2[,name3[,name4]]]
    /: PERSON name of natural person [TITLE form of address]
    /: PERSONNUMBER number of the personen
    /: DEPARTMENT department
    /: STREET street name HOUSE house number
    /: LOCATION additional location information
    /: POBOX po box [CODE post code / zip code] [CITY city]
    /: POSTCODE post code / zip_code
    /: CITY city1[,city2]
    /: NO_UPPERCASE_FOR_CITY
    /: REGION county / state
    /: COUNTRY recipient country [LANGUAGE language code]
    /: COUNTRY_IN_REC_LANG
    /: LANG_FOR_COUNTRY language key
    /: FROMCOUNTRY sender country
    /: ADDRESSNUMBER address number
    /: ENDADDRESS
    In detail
    COUNTRY_IN_REC_LANG
    This flag tells the system to use the recipient language for the country name.
    ( COUNTRY_IN_REC_LANG u2018Xu2018 )
    ( Default: Recipient language is not used: COUNTRY_IN_REC_LANG u2018 u2018 )
    LANG_FOR_COUNTRY
    Default = Space
    Use this parameter to explicitly set the language in which to print the country name of a foreign address. By default, the system uses the language of the sending country.
    LANGUAGE
    Language code of the language of the recipient country, if it differs from that of the recipient COUNTRY. Example: addresses in Switzerland. Standard SAP language codes are used; you can display these in the initial SAPscript text processing screen or in table T002.
    FROMCOUNTRY
    Specifies the language to be used for formatting the name of the recipient country. For most European countries, the recipient country is specified by placing the international car registration letters in front of the post code and separating them from the post code with a hyphen. You must always specify the sender country.

  • Blank line in SAP-Script Address

    Hi all,
    I'm desparatly seaching for a way to leave a blank line in a SAP-Script Address (sender Germany, address Germany) between the street (or PO-BOX) and the postcode - town line.
    I'm using the SAP-Script address command:
    /: ADDRESS
    /: ENDADDRESS
    In OY01 address-format for Germay is "015".
    Everything I tried leaves to:
    "Name
    Straße
    PLZ Ort"
    but my customer wants:
    "Name
    Straße
    PLZ Ort"
    Help is appreciated.
    Thanks.

    Hi Norman,
    Ok. I got it . It is my mistake I though you need blank lines.
    OK, in ADDRESS formating .
    Please try command "/" or 'add a default paragraph Example : TD "  between your entries.
    Lanka

  • Title should not appear in Ship to Address in SAP SCRIPT

    Hi all,
              Title Information should not appear in Ship to Address in SAP Script.
    help me , what are the commands to be used in ADDRESS-ENDADDRESS.
    Regards
    R.Ragu

    Thats why I am asking you to not to print that PO tile field. Instead keep some dummy variable that does not have any value.
    /:           ADDRESS PARAGRAPH AS
    /:             TITLE    &LFA1-ANRED&
    /:             NAME     &LFA1-NAME1&, &LFA1-NAME2&, &LFA1-NAME3&, &LFA1-NAME4&
    /:             STREET   &LFA1-STRAS&
    /:             POBOX    &LFA1-PFACH&  CODE &LFA1-PSTL2&
    /:             CITY     &LFA1-ORT01&, &LFA1-ORT02&
    /:             POSTCODE &LFA1-PSTLZ&
    /:             COUNTRY  &LFA1-LAND1&
    /:             REGION   &LFA1-REGIO&
    /:             FROMCOUNTRY &T001-LAND1&
    /:           ENDADDRESS
    in the above LFA1-ANRED will have some value right .  so replace it with some other variable say v_dummy.
    Reward points if useful.
    Regards.
    Nageswar

  • In SAP Script how to hard code my Company address in footer window

    Hi All ,
    In SAP Script how to hard code my Company address in footer window .
    Ex : in YB_F140_ACC_STAT this script i want to keep my company address, i want to hard coad , i dont want to use any field from table.
    Please give me step by step.
    Thanks
    Sridhar

    Hi,
    You can make use of standard text...
    create a standard text in SO10 with your company address
    and in the footer window of your script.. use include text and provide the name of the standard text you created in SO10.
    In the text editor... goto insert > text> standard
    You get popup give the name of the text name id and language
    regards
    padma

  • PRoblem in SAP Script Address Comand

    HI Frnds,
    I am using Address command to display Vendor Address in SAP Script.
    But I am facing problem like that vendor's post code is display first rather then City name and after PO code.
    I have change alignment to display format for City and PO Code display. But it also gives same error.
    Kindly Help me out for this problem.
    Regards,
    PRiyank

    I am using same format.. then also gives such display in output as: First City then POstal code
    my code:
    /:   ADDRESS DELIVERY PARAGRAPH AN                      
    /:   NAME    &LFA1-NAME2&, &LFA1-NAME3&, &LFA1-NAME4&   
    /:   STREET   &LFA1-STRAS&                              
    /:   CITY     &LFA1-ORT01&, &LFA1-ORT02&                
    /:   POSTCODE &LFA1-PSTLZ&                              
    /:   COUNTRY  &LFA1-LAND1&                              
    /:   REGION   &LFA1-REGIO&                              
    /:   ENDADDRESS

Maybe you are looking for

  • Error Code 12 When Transport BW Request

    Dear All, I am getting a return code 12 when I execute a BW transport request from DEV to QA.  When the transport starts, it actually calls a job , RDDEXECL to run.  The job fails with the error : 01.08.2006 14:05:05 Job started 01.08.2006 14:05:05 S

  • Safari 7.0 shows blue box with ? instead of actual picture

    Hi, I upgraded my macbook air late 2013 to mavericks and since then, when i open some site like Ebay i dont get to see pictures and i get blue box with ? mark inside. Any suggestions?!?!

  • How to update Java on my iMac OS X 10.6.8?

    I need some assistance.  I cannot update to Java7 because of my four year old OS X iMac is version 10.6.8.  Can someone help me do some kind of work-around this problem.  Thanks in advance - david1114

  • How do I fully sync all music under iOS7?

    I downloaded iOS7 when it came out, since then I have lost access to my full music library, I have: 1. factory reset the iPhone and attempted to re-sync 2. saved to the Cloud and attempted re-sync 3. set the bit rate to 128, undid that 4, selected on

  • How can one submit suggestions to Adobe.

    It seems that one cannot avoid using Adobe Flash.  It offers frequent updates that are mandatory.  Whenever you select one of those updates, the default is to down load and install a McAfee security program.  I have full blown Norton security program