Address in sapscript

Hello all,
  Can any body tell how to format the address in sapscript
  i want to print the name , po box and street 4 next to it. can anybody tell how define the variables in address and endaddress
Regards
srinivas

Hi,
Try using this:
/: ADDRESS PARAGRAPH AS
/:   TITLE    &LFA1-ANRED&
/:   NAME     &LFA1-NAME1&, &LFA1-NAME2&, &LFA1-NAME3
/:   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
Rgrds
Francisco Castillo
(rewards points if it helps)

Similar Messages

  • 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

  • ADDRESS in SAPSCRIPT becomes chinese

    dear people,
    i have a question, what might be the reason why a character becomes chinese in the address for some country but for some country its not. the sapscript is using the command ADDRESS to display.
    your answer will be much appreciated.
    thanks.
    den

    youre probably using a variable for  langauge and from country.
    check what are the values youre passing to them.

  • Priont address in sapscript dynamicaly

    Hi,
      I have a problem in sapscript ,in address iam displaying name1,name2,street,str_suppl1,str_suppl2,str_suppl3 etc........it is working fine but in some case the name1 have the value and name2 dont have the value,in that case i should see the space in the output.it should be like this name1,street,str_suppl1,........like that if any value is empty then in should not see the space line.How to solve this issue.
    Thanks,
    Deesanth

    Is it yuoe Address fields under ADDRESS and ENDADDRESS? If Yes
    write the Name field variable separeted by ','
    /: NAME name1[,name2[,name3[,name4]]]
    /: STREET street
    Ex
    /: ADDRESS
    /: TITLE 'Firma'
    /: NAME 'Schneider & Co', 'Finanzberatung'
    /: ENDADDRESS
    This produces the following
    Firma
    Schneider & Co
    Finanzberatung

  • Customer or Vendor address in SAPSCRIPT

    Hi ,
    From where  the address data from customer and vendor are pulled ?
    Common data or from the international address screen?
    i.e which table and how
    thanks

    Hi Bobby,
    Take the ADRNR(Addree Number) from KNA1 or LFA1 table and get the customer or vendor details from ADRC Table by giving the ADRNR value.
    Reward Points if this helps,
    Satish

  • Paragraph Format / Character Format for Variable address in SAPSCRIPT

    Dear All,
       I am trying to print variable address for ship-to-party. But the address is variable address for different vendors.
    The contents like
    /:  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
    My question is, How to assign Paragragh format or character format to the above code?
    Your reply will help alot..
    Thanks and waiting
    Regards
    Anukul

    hi,
    in ur code u already gave
    /: ADDRESS PARAGRAPH AS goto paragraph formats n define or make the required changes for the paragraph format AS.
    click on character formats n define/change the character formats as breakpoint has mentioned.

  • Control command Address in sapscript

    Hi experts ,
    Can any one explain me how Address and Endaddress work .
    I have the below script  in window presently
    ADDRESS PARAGRAPH Z1
           TITLE    &VBDKR-ANRED&
           NAME     &VBDKR-NAME1&, &VBDKR-NAME2&, &VBDKR-NAME3&, &VBDKR-NAME4&
           STREET   &VBDKR-STRAS&
           POBOX    &VBDKR-PFACH&  CODE &VBDKR-PSTL2& CITY &VBDKR-PFORT&
           POSTCODE &VBDKR-PSTLZ&
           REGION   &VBDKR-REGIO&
           CITY     &VBDKR-ORT01&, &VBDKR-ORT02&
           COUNTRY  &VBDKR-LAND1&
           FROMCOUNTRY &VBDKR-SLAND&
           ADDRESSNUMBER &VBDKR-ADRNR&
         ENDADDRESS
    I would like to know the difference between the top  and one below .
    ADDRESS DELIVERY PARAGRAPH Z1
    FROMCOUNTRY &VBDKR-SLAND&
    ADDRESSNUMBER &VBDKR-ADRNR&
    ENDADDRESS
    Is there that we set the format  For "delievey address" somewhere in system .
    If so please can I have inputs for doing
    Thanks
    Vinay

    Hi,
        If DELEVIRY is specified then the address should be formatted as a complete delivery address, using the street name and number rather than the P.O. Box.
        If DELIVERY is not specified and if a POBOX is specified, then the POBOX is used in an address instead of a STREET.
    Example
    /: ADDRESS
    /: TITLE 'Firma'
    /: NAME 'Schneider & Co', 'Finanzberatung'
    /: STREET 'Kapitalgasse 33'
    /: POBOX '12345' CODE '68499'
    /: POSTCODE '68309'
    /: CITY 'Mannheim'
    /: COUNTRY 'DE'
    /: FROMCOUNTRY 'DE'
    /: ENDADDRESS
    Without specifying DELIVERY output will be
    Firma
    Schneider & Co
    Finanzberatung
    Postfach 12345
    68499 Mannheim
    With specifying DELIVERY, then the street name and number will appear in the address in place of the    P. O. Box number.
    Firma
    Schneider & Co
    Finanzberatung
    Kapitalgasse 33
    68309 Mannheim
    Regards
    Bala Krishna

  • Address at sapscript form

    Hi,
    /:   ADDRESS PARAGRAPH AS
    /:     TITLE    &VBDKL-ANRED&
    /:     NAME     &VBDKL-NAME1&, &VBDKL-NAME2&,
    =    &VBDKL_KUNWE&/:     STREET   &VBDKL-STRAS&
    /:     POBOX    &VBDKL-PFACH& CODE &VBDKL-PSTL2&
    /:     POSTCODE &VBDKL-PSTLZ&
    /:     CITY     &VBDKL-ORT01&, &VBDKL-ORT02&
    /:    REGION   &VBDKL-REGIO&
    /:   COUNTRY  &VBDKL-LAND1&
    /:   FROMCOUNTRY &VBDKL-SLAND&
    /:   ENDADDRESS
    /:   ENDIF
    I need to display the kunwe field however, at debug it is not initial and has a value but is not displayed.
    What is the problem?
    Thanks.
    Deniz.

    I need to display the kunwe field however, at debug it is not initial and has a value but is not displayed.
    /: ADDRESS PARAGRAPH AS
    /: TITLE &VBDKL-ANRED&
    /: NAME &VBDKL-NAME1&, &VBDKL-NAME2&,
    = &VBDKL_KUNWE&/: STREET &VBDKL-STRAS&"here you are using continious line '=' is your window is wide enough to let VBDKL_KUNWE print?
    /: POBOX &VBDKL-PFACH& CODE &VBDKL-PSTL2&
    /: POSTCODE &VBDKL-PSTLZ&
    /: CITY &VBDKL-ORT01&, &VBDKL-ORT02&
    /: REGION &VBDKL-REGIO&
    /: COUNTRY &VBDKL-LAND1&
    /: FROMCOUNTRY &VBDKL-SLAND&
    /: ENDADDRESS
    /: ENDIF
    Amit.

  • Address in SAPScript Rem Statemetn

    Hi All,
    We just applied Support Packs up to 33 for HR, and have run into a small issue with our Rem Statement.  When an associate has a PO Box for his address instead of a street, the address prints as follows:
    <h4>Assoc. Name
    Some City State PO Box </h4>
    The form did not change at all, so I'd like to think it is a Support Pack issue.  Maybe a change to Rffous_T?
    Has anyone run across this or know what else I should look at?
    Thanks,
    Mary

    Linda,
    Thanks for the suggestion.  I applied that note in our Sandbox environment awhile back, but it did not fix the issue.
    Mary

  • Address printing issue in SAPSCRIPT

    Hi All,
    I am getting address printing issue in address in sapscript .
    Here is my address format in the script.
    /: ADDRESS DELIVERY PARAGRAPH ZA LINES 10
    /:    TITLE                &KNA1-ANRED&
    /:    NAME               &KNA1-NAME1&,  &KNA1-NAME2&,  &KNA1-NAME3&,  &KNA1-NAME4&
    /:    STREET            &ADRC-STREET&
    /:   LOCATION        &ADRC-STR_SUPPL1
    /:   POBOX             &KNA1-PFACH&  CODE  &KNA1-PSTL2&
    /:   POSTCODE       &KNA1-PSTLZ&
    /:  REGION              &KNA1-REGIO&
    /:  CITY                   &KNA1-ORT01&,  KNA1-ORT02&
    /:  COUNTRY          &KNA1-LAND1&
    /:  FROMCOUNTRY &T001-LAND1&
    /: ENDADDRESS
    Here in the above code I had added LOCATION and modified the STREET field value.
    Moved the changes to QAS server along with the driver program., confirmed all the related transports are moved.
    While testing in QAS , i noticed that after LOCATION print I am getting blank space and then the remaining fields are printed.
    For example:
         casa velas boutique hotel
         Attn:  Marie John
         AV.  cocoterosss
        63550 Nuevo Vallarta, Nayarit,
        MEXICO.
    In the above example the third line the LOCATION data.
    The surprise here is that I am not getting blank space in DEV , I had checked all the transports, and all are ok.
    Please advice me where I am wrong, ie why i am getting blank space in QAS whereas it not showing in DEV.
    Thanks in advance.
    Vengal Rao.

    Hi Jay,
    I fully agree with you that the address printed will be as per SAP standards.
    Currently I am looking into the country configuration in DEV - I hope may be the reason,
    I have to use the existing ADDRESS....ENDADDRESS format as our client is using  4.6 version,  he just print the financial reports using the common script.
    So anything away from the orginal one may lead to more trouble in other reports.
    Once I get a reason behind the issue, I shall definetly post them.
    Thanks,
    Vengal Rao.

  • Display address omitted postal code for all countries in sapscript

    Hi everyone
    Does anyone know how to omit the postal code for all countries(eg. US ) when displaying address in sapscript form?
    I want to avoid to display postal code even the country is US.
    coz my firm doesn't want to show postal code.....
    Also, how to use combination keys of PRIORITY parameter?
    For example, if i want PRIORITY '1' 'S' 'L' 'N' 'C'
    I cannot write like this as following....
    /:   ADDRESS DELIVERY PARAGRAPH AS <b>PRIORITY 1 S L N C</b> LINES 5
    /:   ADDRESSNUMBER &VBDKR-ADRNR_WE(K)&
    /:   FROMCOUNTRY &VBDKR-SLAND&
    /:   ENDADDRESS

    Hi,
    Bold text describes the usage of <b>Priority</b>.
    ADDRESS: Formatting of addresses
    The command ADDRESS - ENDADDRESS formats an address according to the postal standards of the
    destination country defined in the parameter COUNTRY. The reference fields are described in the
    structure ADRS. Both constants and symbols can be assigned to the parameters.
    Syntax:
    /: 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
    Both formatting data and address data are given as parameters. Address data is formatted for output in accordance with the parameters COUNTRY, PRIORITY and LINES. If available, the P.O. box is used instead of the street as the default.
    •&#61472;DELIVERY: Defines the street address. If this parameter is selected, the system prints the street address on the layout output instead of the P.O. box.
    •&#61472;PARAGRAPH: Defines in which paragraph format the address is output. If the parameter is not defined, the address is output in the default paragraph format.
    <b>•&#61472;PRIORITY: Defines which address lines can be omitted if necessary. You can enter a combination of the following values:
    A form of address
    P mandatory blank line 1
    Q mandatory blank line 2
    2 name2
    3 name3
    4 name4
    L name of country
    S line for the street
    O line for the city
    </b>
    •&#61472;LINES: Defines how many lines are available for formatting the address. If all the address data cannot be formatted due to an insufficient number of lines, the data entered in the parameter PRIORITY is omitted. If the LINES specification is missing and this command is in a layout set window whose type is not MAIN, the lines available for the address layout are then calculated automatically by means of the current output line item and window size.
    •&#61472;TITLE: Required form of address.
    •&#61472;NAME: Up to four separate names, separated by commas, can be defined.
    •&#61472;STREET: Street specification including address number.
    •&#61472;POBOX: Post Office box number.
    •&#61472;CODE: P.O. box Postal or ZIP code if it is different from the postal code of the city.
    •&#61472;POSTCODE: Postal or ZIP code of the city.
    •&#61472;CITY: Up to two place names can be defined.
    •&#61472;REGION: Determines the administrative area.
    •&#61472;COUNTRY: Specifies the country according to whose specific postal standards the address    is formatted.
    •&#61472;FROMCOUNTRY: Defines in which language the name of the destination country is formatted. In EC countries, only the international country identification letter is put before the postal code with a hyphen.
    Example:
    /: ADDRESS
    /: TITLE ‘Company’
    /: NAME ‘Widget Technology, Inc.’, ‘All Kind of Widgets’
    /: STREET ‘1005 Lido Lane’
    /: POBOX ‘2935’ CODE ‘94400’
    /: POSTCODE ‘94404’
    /: CITY ‘Foster City’
    /: REGION ‘CA’
    /: COUNTRY ‘USA’
    /: FROMCOUNTRY ‘USA’
    /: ENDADDRESS
    Generates the following address:
    Company
    Widget Technology, Inc.
    All Kind of Widgets
    PO box 2935
    Foster City, CA 94400
    If the supplement DELIVERY is specified for the command ADDRESS, then the street is entered instead of
    the PO box.
    Company
    Widget Technology, Inc.
    All Kind of Widgets
    1005 Lido Lane
    Foster City, CA 94404
    Regards,
    Sailaja.
    Reward points if answer helps you.

  • Vendor address printing

    Hi All,
    I want to print vendor address in SAPScript as per country specific format.
    The standard ADDRESS--ENDADDRESS is not printing formatted output.
    Please help me in this.
    Thanks in advance.
    RK

    HI Jagadish / All,
    Thanks for your reply.
    I have used the following statement. For South Africa country code 'ZA' and region 'GP' it is giving me some space before printing country name 'SOUTH AFRICA'.
    /:           ADDRESS PARAGRAPH AD
    /:             TITLE       &REGUH-ZANRE&
    /:             NAME        &REGUH-ZNME1&, &REGUH-ZNME2&, &REGUH-ZNME3&,  &REGUH-ZNME4&
    /:             STREET      &REGUH-ZSTRA&
    /:             POBOX       &REGUH-ZPFAC& CODE &REGUH-ZPST2& CITY &REGUH-ZPFOR&
    /:             POSTCODE    &REGUH-ZPSTL&
    /:             REGION      &REGUH-ZREGI&
    /:             CITY        &REGUH-ZORT1&, &REGUH-ZORT2&
    /:             COUNTRY     &REGUH-ZLAND&
    /:             FROMCOUNTRY &T001-LAND1&
    /:             ADDRESSNUMBER &REGUH-ZADNR&
    /:           ENDADDRESS
    Output is like as below.
    Test Company, Inc.
    PO Box 684902
    TEST
    4094
                  SOUTH AFRICA
    And for some countries like India there is a gap between address lines as below.
    TEST VENDOR
    701  Lee RD
    400135 STREET
    INDIA
    Please help me out to avoid blank spaces and blank lines in address format.
    Thanks

  • ADDRESS - ENDADDRESS  postal convention

    Hello,
    I know that the ADDRESS - ENDADDRESS control command formats an address according to the postal convention of the recipient country defined in the COUNTRY parameter.
    But where in SAP can I find/correct the postal convention for a coutry?
    Thanks
    Anne

    Check the documentation on FM ADDRESS_INTO_PRINTFORM in se37
    [Formatting Addresses: ADDRESS|http://sapscript.tripod.com/SAPScript-37.htm]
    [ SAP SCRIPT CONTROLS 4|http://thesapworld.blogspot.com/2008/05/sap-script-controls-4.html]

  • Problem with adress formating

    Hi all!
    I'm having a hard time with addresses at Sapscript and Smartforms: for some reason, some customer's addresses apear with the folowing format:
    <TITLE><NAME>
    <ADDRESS>
    <POST CODE>
    <LAND>
    Why does the NAME apear in the same lina as TITLE does?
    Can anyone help???
    Thanks!
    Carlos

    I'm still testing, but I think I've found the cause and solution for this problem:
    When configuring the Title, we have to select one type of the following:
    personal;
    company;
    When whe select "personal" SAP Adress formats the first line to appear something like: <TITLE> <NAME>;
    If we select "company" SAP formats the first line like <TITLE> in first line and <NAME> in the second line.
    The solution?! Simple: just change the type of title to be always "company".
    Thanks  Miguel Alvear (for showing me the way)!

  • Help regarindg country formatting and printer formatting in scripts

    Hi all,
      I'm facing a problem printing the address in SAPscript. Though we try to display the field T005-LAND1 within Address -endadress, the field T005T-LANDX50 gets displayed.
    For example- when we want to display countrycode as NL(netherlands), only 'Kingdom of the Netherlands' is diplayed.
    i believe this is because of the Country format used in the adress. Is there anyway we can change the country formating.
    Also the output gets different alignment when we use differnt printers for preview. is there anyway to overcome this?
    Your replies will be very helpful and thanks in advance.

    hi,
    this is quite natural that ur print preview and print out differs and it differs from printer to printer.so, u have to define the paper size correctly and check if possible the type of printer they will be usually using.
    here in ur case r u trying to pring the country key or country name.
    in fact u have to pick the country key and print the country name in that place by getting the name from check table.

Maybe you are looking for