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

Similar Messages

  • 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

  • Aligning data in sap script

    hi guyz,
    how can i align data in sap script with spaces between..
    regards

    Hi,
    you have to create paragraph formats for this, in paragraph format you can define tab sapces.
    use that paragraph format in command box of ur window editor, where ever you want the space just use ',,'  which will apply tab space (the sapce you have declared).
    reward if useful,
    Thanks,
    Sreeram.

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

  • 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

  • Drawing Table & Displaying Data in SAP Script : Data Alignment probelm

    Hi Experts,
    I am Developing An SAP Script in Which Had to Display Data in a Table with Three column & multiple rows, i had created the Table using BOX Command in SAP SCRIPT & assigned a TEXT Element to it & calling this text element while Looping in WRITE_FORM FM.but while displaying DATA in One column the data in another columns shift to the right & if the data in 1st column is less the data in the second column shift to the left. i know these issues had been covered in the past but i am not getting any concrete results from searching in the forum.
    Also On more problem when ever i am declaring a text element in some other window & also giving the Command BOX inside it to draw outline the BOX is not drawn.
    This seem to be an alignment issue . Experts Please provide me with some alternative.
    Thanks & Regards
    Priyesh Shah

    Hi ,
    To stop columns going left and right.Use number of position in the variable .Like fix the lenght &name(10)&.Here name can print 10 characters.
    For box not appearing in other window check the box command parameters .It will draw.Not a alignment problum.

  • 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

  • Passing data to SAP script from print program-VF03

    Hi All,
    I have a stand alone print program which ahs the invoice number in its selection screen which when entered displays the layout of invoice by using a sap script.
    Now since I have to get this layout displayed from VF03, I have added the program, sap script name and a subroutine which contains the code which was initially there under the start-of-selection event in the stand alone program, in NACE. I have replaced the selection screen parameter for invoice number in my program with nast-objky which contains the invoice entered in vf03.
    But when I am entering the invoice in vf03 and selecting print preview, the data is getting captured in the internal table defined in my program but the same is not getting reflected in the layout displayed. So I am always getting the blank values in the output though I did not modify the original sap script at all. Pls help.

    Keep a breakpoint in your print program and see if your program is being triggered indeed. Do not forget to start Update debugging, otherwise it will not stop in your print program.
    Regards,
    Ravi

  • How to pass tables data from SAP script to the routine.

    Hi,
    I have standard program RPCTEAL0_01 which calls a SAP script form(Custom) to print the form.
    Now I have to add some additional functionality to change the values in the form. Since it is custom form I can add ROUTINE and then pass the values to the custom program to modify the variables.
    My concern here, I would like to pass the tables like RT,CRT to the custom program via form.
    Is this possible?  RT and CRT filled by standard progam.
    Regarsd
    Eswar
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Jan 20, 2009 9:06 AM

    Hi, The suggested option is not working.
    Actually I am using the below code in SCRIPT
    /:   PERFORM CAL_2008 IN PROGRAM ZHR_TEST1
    /:   USING &PER_NO&
    /:   CHANGING &W12&
    /:   ENDPERFORM
    and calling form in ZHR_TEST1. But this will pass only variables. Now my requirement is to pass tables also.

  • Item level data in sap script

    Hello Friends,
    I have a report which prints Normal Tax invoice & Returns Tax, I modified this report just by adding one extra "delivery channel". The report call one more program which dose the printing job based on the delivery no.
    The issue, I can able to see the header data in th the print preview of the tax invoice, and not able to see item level data.
    Please help me how to resolve this issue.
    Regards,
    Shreekant

    Hi,
    You need to pass the line item data to the smartform/script. Please check in debug mode whether the data is passed correctly.
    Best regards,
    Prashant

  • Address Data for SAP user

    hi Guys,
    I maintained a user using SU01. I entered some value in the Department field in the Address Tab.
    Is there any function module which can get me the address details based on the SAP user name?
    Please advise.
    Thanks.

    SUSR_USER_ADDRESS_READ or SUSR_SHOW_USER_DETAILS

  • 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

  • Can we get back the SAP Script data

    Hi friends,
       I would like to know can we can get the data of SAP Script Forms ?i want to show it in PDF.
       I did in same way for SMART FORMS, can i do with SAP SCRIPT FORMS also?

    Hell Shiva,
    yes you can.
    In OPEN_FORM you must set TDGETOTF='X' in the Options(Structure ITCPO).
    Then you get OFTDATA in CLOSE_FORM.
    CALL FUNCTION 'CLOSE_FORM'
    TABLES
    OTFDATA = itab.
    After that you can do the OTF->PDF Conversion as you know it from smartforms.
    Regards
    Frank

  • Same set of data should print twice on same page in SAP SCRIPT

    Hi Experts,
    I come across a requirement where I need same set of data in sap script should print twice as it is on same page.
    and if first page overflow, then same scenario should continue till complete data is printed. Basically main window data should print twice in two blocks on same page.
    E.g.
    If I have 10 line item which is to be printed on top window on  first page. Now I want that same 10 lines should be printed in a block below the first block. Data should flow similarly across multiple pages.
    Hope my question is pretty clear. I am expecting suitable answers from experts.
    Thanks in advance.
    Regards,
    Vijay

    Hi
    I had the same request for a check form in Canada. I solved it by writing the line item output into variables and print these variables in a second window. It was ~10 hours of effort, not a real nice technical solution but it worked.
    If you require I can send you a PDF of the sap script form definition. You can contact me at [email protected] Answers can take 1 week or more. 
    Best regards
    JD

  • How to display in sap-script the data which is input in selection screen by the user.

    Hii,
        I want to display the data in sap-script that has been input by the user in selection screen.
    Suppose the the user has done input for posting date from 25.1.2001 to 25.1.2005,what i want is to display this date in sap script.
    How can i do it.
    please help asap.
    Regards.

    Hi,
    If select-option name is s_erdat.
    then from value will be s_erdat-low and to value will be s_erdat-high.
    Arivazhagan S

Maybe you are looking for