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>

Similar Messages

  • 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

  • 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 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

  • 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

  • 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

  • Regarding Multiple pages in SAP Script Output

    Hi All,
    I have a requirement in SAP Script where i need to print data in multiple pages. I had created 1 page - FIRST with properties <b>Next Page</b> as FIRST , <b>Mode</b> as INC.
    In the output i have multiple line items, the data will carry upto 3 pages.
    Now In the output First page data is printing correctly.
    In the second page all the windows are carried forward to print all the data correctly except in MAIN WINDOW.
    In Second page in MAIN Window i have ITEM HEADER which i want to print on every page as it is printing in First page of output, but i am not been able print ITEM HEADER though i am able to print all the ITEM DETAILS correctly on every page.
    Can anybody tell how can i print ITEM HEADER on every page which is in MAIN Window.
    Thanks in advance.
    Thanks & Regards,
    Rayeezuddin.

    Hi Shaik,
             If you are only printing Item Details in the Main Window, why don't you create a saperate window just above your main window for Item Headers.
    Hope this should solve your problem or Please elobarate your query.
    Thanks,
    Vinod.

  • Regarding Paragraph format in SAP Script

    Hi SAP Gurus,
    Can any one please tell me the use of TABS in paragraph formats in SAP Script.
    Thanks & Regards,
    Pavan Bandaru.

    Hi
    first you define you tab in paragraph formats.
    whene you must use this pharagraps you
    just insert double comma before the text.
    ,,&matnr&
    attention because if you define more than a tabulator il will take the tabulator in sequence.
    ,,(1st tab)&matnr&,,(2nd tab)&matnr&
    if i define a tabulator of 2cm and another of 3cm and you insert 4 comma
    ,,,,&matnr&
    it will take the summ of the two tabulator.

  • Regarding screen shots of  SAP SCRIPTS

    Hi Frenz,
    please help me on sending SAP Scripts step by step procedure screen shots.

    hi
    good
    check these links, this may help u....
    SAPScripts
    http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
    http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
    http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
    http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    http://www.supinfo-projects.com/fr/2005/forms_sapscript_en/introduction/
    SAPscript in Detail
    http://help.sap.com/saphelp_47x200/helpdata/en/d6/0db74a494511d182b70000e829fbfe/frameset.htm
    SAP SCRIPT FIELDS
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm
    scripts easy material
    http://www.allsaplinks.com/sap_script_made_easy.html
    reward point if helpful.
    thanks
    mrutyun^

  • 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

  • Regarding text printing in SAP Script

    Hi experts,
    I have a form already which has been developed already.
    Now I want to include the text in the footer which should appear only in the last page of the footer.
    How to achive this and how to add the following text into my Script
    All tools used during this task are present and accounted for at completion of this work order.  _______
    All loose parts are present and accounted for at completion of this work order.  ________
    Food Contact Zones are clean and suitable for Food Production at completion of this work order.  _______

    Hi,
    Adding to Chenna kesava reddy's point, if you want to include your texts taht you had mentioned above, create standard texts in SO10 with the language as EN and then include them in ur script withhte following command:
    INCLUDE <textid>  OBJECT TEXT ID ST LANGUAGE E
    Hope this helps
    Regards
    Priya

  • Page format regarding cheque printing in SAP SCRIPTS

    How to create a page format of our own....so that it prints the contents of that layout exactly into the cheque size?

    hi,
    you need to go to <b>SPAD</b> transaction.
    click of <b>full administration</b>
    and then choose tab  <b>device types</b>-> and then click on <b>format types</b>.
    Regards
    vijay

  • Urgent ......regarding date format in SAP Script

    In my MAIN WINDOW  I have date fields like Date of Manifacture, created date and Expiry date.
    So, currently  I am using SET DATE MASK = 'YYYY-MM' and it is printing same format for all fields.
    But now my requirement is I want to show date for Expiry Date like 'YYYY-MM-DD'. For this I defined one temparary variable in the form like below
    DEFINE &outdate& = &mchar-vfdat&
    SET &outdate& MASK = 'YYYY-MM-DD'.
    but still it is showing format YYYY-MM...
    Plz help me how to print my desired date format...
    I am waiting for ur reply...
    Regards,
    Kumar

    Hi Kishore kumar,
    What you can do is befor printing the Expiry date set the date Mask as 'YYYY-MM-DD' and after printing your Expiry Date again set the DATE MASK to 'YYYY-MM'
    i.e.
    /: SET DATE MASK = 'YYYY-MM-DD'
       &mchar-vfdat&
    /: SET DATE MASK = 'YYYY-MM'
    Regards,
    Sunil

  • Regarding line feed in sap script

    hi
    i had a long if statement.
    it is extending more than one line.
    IF &REGUH-RZAWE& = '2' AND ( &REGUH-LAUFI0(1)& EQ 'E' OR &REGUH-LAUFI0(1)& EQ 'G' )
    IF i use '=' Extended line  the statement in that line is printing as it is.
    If i use '/:' this command even for the next line it works fine
    what i s the correct procedure

    Hi Guys!
    I've tested it (it is really better then giving just assumptions). Only solution is the one from KK: use SHIFT+F8 - it will give You one extra line to continue Your command (but only one).
    If You try to use next line SAPScript will interpret only first line of Your command, no mater which line type will You select for second line. Example:
    /: IF &VBDKA-VKORG& EQ '0001'
    /: AND &NAST-SPRAS& EQ 'DE'
    In this case SAPScript will omit what is in second line and it will do whatever is inside this IF for every language. Whats more: If second line type is ' ' or '=', then You will get a printout of fixed text >> AND &NAST-SPRAS& EQ 'DE' <<
    BR, Michał

  • 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,

Maybe you are looking for

  • No visual of separate audio tracks

    In the beginning, iMovie opens. I see picture and hear audio from the imported footage. The audio exists in the video track. Then, I drag audio from GarageBand to the separate audio tracks. But wait! In timeline view I don't see the visible presentat

  • Album artwork missing on Ipod

    This just happened, it used to work fine. I wanted to sync a new album and after syncing, every single album cover didn't show on the Ipod. I can't find a way to fix this. Other posts or questions are very old. Tried a few with no success. I'm runnin

  • How to do Grouping columns in XL-Report (Report Composer)

    hi Guys, Can anyone explain regarding the Issue of "Grouping the Columns in XL-Report" how to do this? ie especially in Report Composer how to do Grouping in this XL-Report can any one explain briefly without  giving any URL's. Can any suggest r view

  • Randomly shuts down when closing screen...power related?

    I'm not 100% sure this is power related, but I see all kinds of other posts about similar phenomena. I'm posting anyway because I didn't find one that is exactly the same as this issue. If there is a thread I missed, please point me to it. Anyway, he

  • Liquify tool not working so well in the free trial...

    I just recentley downloaded the free trial for Adobe Photoshop. When I went into liquify everything was fine except for the picture. It was kind of inverted (mostly bright blue and barely being able to see what the picture is). It also looked like th