SAPSCRIPT - Print Address

Hi All,
I'm using ADDRESS and ENDADDRESS command to display vendor address in my Sapscript. I would like to know how to add text (eg: To) before display the address out? Kindly see below format layout I would like to print out.
To: <Address Line 1>
      <Address Line 2>
Date:<Date>

Hi Michael,
I would suggest to have an IF condition to achieve this.
I believe you need this requirement only for Hungary & for other countries,
Pseudo code :
If Country code = 'hungary'
Name
Postcode City
Street Streetnumber.
else.
Name
Street Streetnumber
Postcode City
endif.
Hope this will throw a light.
-Sujatha

Similar Messages

  • SAPscript printing address from FK03

    Hi everyone
    I haven't dealt with tables and structures yet so please bear with me
    We have a SAPscript that prints checks to our venders which prints the address with only 3 lines.
    When I look at the SAPscript the address is coming from the table REGUH.
    Inside tcode FK03 there are 2 lines for street.  The first field is labeled STREET 2 and the second is
    STREET/HOUSE NUMBER.  Street/House number is printing on the check just fine and I can see that it
    is being pulled into the table REGUH as field ZSTRA problem is I don't see the STREET 2 being pulled into
    table REGUH at all, and if I check inside FK03 all the fields under the STRUCTURE ADDR1_DATA.
    So I'm not sure where REGUH is getting its data or how to get my extra street information onto the SAPscript
    Thanks in advance

    I'm still a bit confused by your approach since it seems that you're referring to the ADDRESS command but the only thing you show in your example is a direct field output.
    As far as the 'Pay to...' line goes, though I'm not familiar with your specific design, since it seems that you're working with blank check stock, let me recommend that you separate the 'Pay to' text window from the actual payee information with the name & address.  In your payee address window, you would use the address command similar to the following:
    /:           ADDRESS PARAGRAPH L8
    /:             NAME        &REGUD-ZNM1S&, &REGUH-ZNME2&, &REGUH-ZNME3&, &REGUH-ZNME4&
    /:             STREET      &REGUH-ZSTRA& &WA_ADRC-STR_SUPPL1&
    /:             POBOX       &REGUH-ZPFAC& CODE &REGUH-ZPST2&
    /:             POSTCODE    &REGUH-ZPSTL&
    /:             REGION      &REGUH-ZREGI&
    /:             CITY        &REGUH-ZORT1&, &REGUH-ZORT2&
    /:             COUNTRY     &REGUH-ZLAND&
    /:             FROMCOUNTRY &T001-LAND1&
    /:           ENDADDRESS
    Now I realize that your case is a bit different in that you have 2 streets but won't want them to appear on the same line, so you may want to play with moving the first street value up to the name line.  The values wrap as well if too long.
    You can use additional specifications such as LINES to control the output.  You'll want to refer to the help files.

  • ADDRESSNUMBER to print address  in sapscript.

    Hi all,
    This is the code in my sapscript, currently it is printing the 'PO Box Addresss'. I know this method calls the function module 'address_into_printform' for printing address. In FM 'address_into_printform' there is a parameter through which we cans set 'Priority to street address' . Is there a way i can pass the same parameter here in the sapscrip to 'ADDRESSNUMBER', so that it prints 'Street Address' with higher priority.
    I dont want to write an extra perform and call the FM 'address_into_printform'.
    Thanks

    Hi,
    This is format of the command.
    /: ADDRESS [DELIVERY] [PARAGRAPH a] [PRIORITY p] [LINES l]
    /: TITLE title
    /: NAME name1[,name2[,name3[,name4]]]
    /: STREET street
    /: POBOX PO box [CODE zip code]
    /: POSTCODE zip code
    /: CITY town1[,town2]
    /: REGION region
    /: COUNTRY country
    /: FROMCOUNTRY from country
    /: ENDADDRESS
    PRIORITY tells program which address lines can be omitted if there is not enough space on the output.
    Values for Prioirty
         A     form of address
         P     mandatory blank line 1
         Q     mandatory blank line 2
         2     name2
         3     name3
         4     name4
         L     country name
         S     line for the street
         O     line for the city
    Hope this helps
    Regards
    Abhi

  • AP check printing address format

    SAPscript in ADDRESS window of F110_PRENUM_CHEK I removed reference to name 4 next to NAME but it still prints.  I found I also had to remove reference to address number before name 4 of the payee would not print.  Why?

    see reply

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

  • How can I print address labels from numbers spread sheet

    How can I print address labels from numbers spread sheet

    CAB,
    The 5163 template has the following dimensional specs:
    Dimensions & Info
    Length: 4.00000"          Height: 2.00000"
    Top Margin: 0.50000"          Bottom Margin: 0.50000"
    Left Margin: 0.18000"          Right Margin: 0.18000"
    Hor. Spacing (gutter): 0.14000"          Vert. Spacing (gutter): 0.00000"
    Intended Use: Mailing Labels, Shipping Labels, Address Labels
    There's a great vendor site with this data readily available, better than the Avery site in my opinion. But, you can get the same info in the Contacts Print dialog pane.
    You can grab a template matching these dimensions from that vendor site, Copy the table after opening the Word Template in Pages and drop the into a blank Numbers Sheet.
    I found that Sheet side margins of 0.15" worked better than 0.18. For some reason the table wanted to flow to the next page to the right with 0.18". Turning off the Headers and Footers and setting Top and Bottom Margins to 0.5" worked well. These adjustments are made in the Sheets Inspector.
    So, that will put the template you specified into a Numbers document and you can print labels properly aligned from there. Since your problem statement is a bit lacking in detail, that's all I can offer you at this point.
    Jerry

  • Printing address book on day-timer portable page

    Anyone have any suggestions for the page layout to print address book to Day-Timer Portable page format? They don't give any options (like Avery 5160, etc). My wife still likes her addresses printed out for her Day-Timer book. The old app that she previously used on her old Mac no longer works on the new OS on her MacAir.

    I used to have the Palm Desktop application on my old Mac and that what we used to printout the Day-Timer Portable page format. Of course the Palm Desktop app no longer works on the new Mac OS. I guess if I could get the page layout for that app, I could duplicate the layout.

  • How do i print address returns on envelopes with hp officejet pro 8500

    how do i print address returns on envelopes with hp officejet pro 8500

    This is done with your software that you have to print the envelopes.   MS Word can do this, just use their help facility.
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • 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

  • I am using Pages to print addresses but they  print too low on the envelope. How do I change this?

    I am using Pages to print addresses but they  print too low on the envelope. How do I change this?
    Help please!!!
    ANN

    Hi Isk8ter,
    Welcome to the Support Communities!
    What version of Pages are you working with?  I'm assuming '09 since you reference OS X 10.7.4 above.
    I've included the link to the Pages User Manual for you below.
    Page 253 starts the chapter on Printing, Shareing and Exporting your document.
    Pages '09 User Manual
    manuals.info.apple.com/MANUALS/0/MA663/en_US/Pages09_UserGuide.pdf
    Setting the Paper Size and Orientation
    Before you print, you should make sure the paper size and orientation are set the way you want by opening the Page Setup dialog.
    To set paper size and orientation:
    1 Choose File > Page Setup.
    2 In the Page Setup dialog, choose the printer you will use from the “Format for” popup
    menu.
    3 Choose a standard paper size from the Paper Size pop-up menu.
    Also, see page 266 of the Pages User Manual for more specific instructions for creating a custom template for envelopes.
    Hope this helps ...
    Judy

  • SAPscript printing (Works Fine in Preview, Disappear in Print Out)

    Dear Guru,
      i have a problem in SAPscript printing, especially i use ULINE(90) inside forms,  it's works fine in Preview, but when i print it out after 89 of ULINE showed, it's show blank area and the 90th uline appear in next line.
    any expert in this area can tell me what happen?
    thanks.
    Howard

    Hi Howard,
    this is printer problem.
    Appart from regular settings we have left margin and right margin settings for printer.
    If you rememmber we can do this setting if we print MS WORD document.
    There is no setting available in SAP.
    So solution is to increase right margin on your laout and try to fit your contents in same.
    The preview is dependening on device type in SAP so u get previeew right.
    Hope this will help.
    Thanks,
    Dhiraj.

  • Printing address in chinese

    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
    The following statement Printing the address like
    ABC Ltd,
    Attn. Ms.Suziki,
    Waren electronics
    Dongguan, China
    5-6 Huafa RD, Yongkou, houjie.
    China
    /: ADDRESS PARAGRAPH AF PRIORITY P LINES 10
    /: ADDRESSNUMBER &DKADR-ADRNR&
    /: FROMCOUNTRY &T001-LAND1&
    /: ENDADDRESS
    anyone explain me, how the above statement working.

  • SAPScript - Print Preview 2 Pages - Physical Print overlap as 1 Page

    HI Experts,
    I have a problem with Invoice SAPScript Printing - where the print preview is good with 2 Pages,
    But when it physical prints out - Only 1 page and overlapping the Second page content to the first.
    Any idea where did I miss out?
    Thank you in Advance.
    Regards,
    CWLIM

    HI ,
    Sheelesh  is right.
    I had both SAPScript and Smartform issue with the overlapping printing.
    What you need to do is to check your page format to see if it is the correct size for the specific printer.
    If it is too big for the printer paper size - it will overlap the printing as 1 page.
    For example : A4 Lanscape printing on normal HP Laser Printer - DINA4 Landscape should be used.
    Or at least when you define your own page format - refer to the correct size and orientation.
    HOpe this helps.
    Thank you all

  • SAPscript print program for multiple pages

    Hello friends,
    How to write SAPscript print program for multiple pages? please help me.
    Thanks and regards,
    Shivanand.

    I believe you have posted this question in the wrong forum.  There is an ABAP Forms Printing Forum.

  • Printing addresses on envelopes

    Want to print addresses on half-card envelopes. Set the program for 8.25x5.75 inches. Insert envelope on right side of printer tray. Snug it in. Click on "print." Get a message that says paper size or type is incorrect. Go to devices/printers>select HP>select printer actions>view, pause, or cancel>printing defaults>features>resizing options>custom>set size. Will not let me click on OK.  Other than buying a printer from someone else, how do I address my Christmas cards. Please do not suggest writing. Mine is so bad, I can't read it.

    I have a HP Photosmart C6280 All-In-One and am also having the same problems.  I didn't have these problems before I got Windows 7.  However, I have discovered that after I have set my envelope size (custom or whatever) , I then  go to "properties" and select "fast and economical printing" and it prints it out correctly!  Hope this solution works for you too!

Maybe you are looking for

  • Unbounded task flow call from another ADF application

    Hi, I have two different ADF applications having unbounded taskFlow , and requirement is to call that task flow from another one with some parameters . how to do that , please . Regards, Parvez

  • Batch demux program?

    I have a about 30 muxed mpeg1's that I need to demux, so I'm looking for a free program that will let me batch demux them. As far as I know mpeg streamclip will only do one at a time, which would take up several hours of my time just to demux them al

  • Log4J Error Message

    Hello, I have this code: public static final String LOGGER_NAME="email_notifier_implementation"; emailAppender=new SMTPAppender(new TriggeringEventEvaluator() public boolean isTriggeringEvent(LoggingEvent loggingEvent)      { return true; } logger=Lo

  • There was on error oping the page

    i keep getting the error file:///Users/patrickfederico/Library/Application%20Support/Safari%20Enhancer/li nkcolours.css (file dosen't exsist) how can i correct this?

  • HT1212 I did what the instructions told me to do but it still won't work. What do I do now?

    I did what the instructions said to do. I turned it off and blah blah blah. But when i never got the restore part, it just said the same thing before. I have the ipod touch 5, and am using the most current itunes available at this time. What can i do