Address Paragraph in SAPSCRIPT

Hi guys,
I had a Address Paragraph which has 8 lines. How can I can display the line 6 which is the PERSON for the name of your contact person: u2018Attn: Mr. Jeffriesu2019.?
Tnx

You have to write a subroutine to get the address and then concatenate the Text you want with the contact person in the subroutine and then pass the data to Form and then Display.
Cannot conctaenate any text to Address template elements. These are standards.
Best way is get the address data from the subroutine.
Regards....

Similar Messages

  • Sapscript query ADDRESS PARAGRAPH AS...ENDADDRESS

    good day experst...
    i have a query regarding ADDRESS PARAGRAPH AS...ENDADDRESS...
    ADDRESS PARAGRAPH AS
    TITLE          &LFA1-ANRED&
    NAME         &LFA1-NAME1&, &LFA1-NAME2&, &LFA1-STRAS&, &ANAME1&,
    LOCATION  &ANAME2&,
    STREET      &ANAME1&, &ANAME2&
    POBOX       &LFA1-PFACH&  CODE &LFA1-PSTL2&
    CITY            &LFA1-ORT01&
    POSTCODE &LFA1-PSTLZ&
    REGION      &LFA1-REGIO&
    ENDADDRESS
    ADDRESS PARAGRAPH AS
    COUNTRY &LFA1-LAND1&
    ENDADDRESS
    my problem with this is i cannot display LOCATION  &ANAME2&, when i print my Purchased order form...
    &ANAME2& - Street3 address of the vendor i get this in TCODE MKVZ under Street Address
    please help how can i display this...
    thank you

    hello experts...
    im sorry i fortgot to comment the line STREET... this is the original code...
    regarding &ANAME1& and &ANAME2& is not in table LFA1...
    if u can check in tcode MKVZ we can see there the vendor Street Address.
    ANAME1 =  Street 2.
    ANAME2 = Street 3.
    In PO print preview &ANAME1& is being display but &ANAME2& which is under LOCATION is not...
    this is the original code...
    ADDRESS PARAGRAPH AS
    TITLE &LFA1-ANRED&
    NAME &LFA1-NAME1&, &LFA1-NAME2&, &LFA1-STRAS&, &ANAME1&,
    LOCATION &ANAME2&,
    POBOX &LFA1-PFACH& CODE &LFA1-PSTL2&
    CITY &LFA1-ORT01&
    POSTCODE &LFA1-PSTLZ&
    REGION &LFA1-REGIO&
    ENDADDRESS
    ADDRESS PARAGRAPH AS
    COUNTRY &LFA1-LAND1&
    ENDADDRESS
    Please help me on this...
    Thank you

  • Address print problem - sapscript

    Hello
    I have a problem with print name for example
    "Mr &Smith& and &M& company" from field &VBDKR-NAME1&. The output is "Mr and company" sapscript format the name. I use
    /: ADDRESS PARAGRAPH AS
    /: ADDRESSNUMBER &VBDKR-ADRNR(K)&
    /: FROMCOUNTRY &VBDKR-SLAND&
    /: ENDADDRESS 
    and it helps but now i want to output only street from the  address or name2 (&VBDKR-NAME2&). I try to use
    ADDRESS PARAGRAPH AS PRIORITY 6APHRT7I8LCBS5O LINES 1
    but it returns "invalid label".
    Any help ?
    Regards Bartek

    Hi,
    Instead of ADDRESSNUMBER can you use the other way like
    /: 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
    /: ENDADDRESS
    You have the STREET option here. Also find the detail help at,
    http://help.sap.com/saphelp_470/helpdata/en/d1/803238454211d189710000e8322d00/frameset.htm
    Thanks
    Vinod

  • Using ADDRESS PARAGRAPH to call International address ??

    HI Experts,
    I have an existing Sapscript to modify.
    I need to extract/retrieve the address of the customer by using the International Version address maintained by the user.
    However - in the existing Sapscript, it uses the ADDRESS PARAGRAPH to call formating address.
    Is it possible to extract the international version address using the ADDRESS PARAGRAPH function in Sapscript?
    Kindly advice.
    Thank You.
    Best Regards,
    CW
    Edited by: CW LIM on Oct 21, 2009 6:06 AM

    Close Postage

  • ZPL Commands for Address Format in SAPSCRIPT

    Hi Experts,
       Can anyone please help me..
    I am trying to print the shipto address using the address paragraph format in using ZPL commands
         FO35,650A0N,37,33CI13FR^FD
         ADDRESS PARAGRAPH L1
           ADDRESSNUMBER &VWAHN-KUADR(K)&
         ENDADDRESS
         ^FS
    In the spool, I can see the address between the above commands, but hwen it gets printed , the address is not printing in the nice format,
    part of city is coming in street name, part of street name in shipto name.
    Is there any ZPL command that will format as the way it comes
    Thanks for your help

    chk the values in ADRC table what is maintained there???

  • ADDRESS Command in SAPScript

    Dear all,
    I'm using ADDRESS ~ ENDADDRESS command in SAPScript. I pass street name to STREET as follow
    NAME name1 name2 name3 name4
    STREET &LFA1-STRAS&
    With the above, my street can be displayed out correctly.
    But i faced problem when i have street2 street3 and street4, like below:
    NAME name1 name2 name3 name4
    STREET &LFA1-STRAS& , &ADRC-STR_SUPPL1& , &ADRC-STR_SUPPL2& , &ADRC-STR_SUPPL3&
    With above, nothing printed for street.
    Could you please point me out where did i code wrong?
    Or we can not pass street2/3/4 to STREET?
    Thank you.

    Hi,
    Just Refer this:
    https://forums.sdn.sap.com/click.jspa?searchID=12447471&messageID=2301405
    Check the below link for details on Text Elements
    http://help.sap.com/saphelp_47x200/helpdata/en/d1/802e91454211d189710000e8322d00/content.htm
    Regards,
    Shiva Kumar

  • ADDRESS ENDADDRESS IN SAPSCRIPT

    Hi,
    Can we rearrange the fields being printed in PO layout? The form used the ADDRESS ENDADDRESS syntax. Only the Addressnumber was populated. After printing the form, the arrangement of fields were
    STREET CITY
    COUNTRY POSTAL_CODE CITY2.
    I want to rearrange it to be:
    STREET
    COUNTRY POSTAL_CODE CITY.
    How can I do this? And where can I do this if this is possible?
    Thanks in advance.
    Lalyn

    Hi,
    the formatting of an adress depends on the value belonging tot COUNTRY.
    SO i do not think the way you want is possible.
    Below include some help. Read and take the best solution for it
    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 parameters. Address data is formatted for output based on the COUNTRY, PRIORITY and LINES parameters. As the default, the P.O. Box is used, if it is available, rather than the street address.
         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.
         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.
         PRIORITY defines which address lines can be omitted if there is not enough space on the output.
         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     country name
         S     line for the street
         O     line for the city
         LINES define how many lines are available to format the address.
    If the address data cannot be completely 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 form window whose type is not MAIN, the lines available for the address layout are automatically calculated with the current output line item and window size.
         TITLE is a required form of address.
         NAME means that up to four separate names, separated by commas, can be defined.
         STREET means the street specification, including address number.
         POBOX is the Post Office box number.
         CODE is the P.O. box, postal, or zip code, if this code is different from the postal code of the city.
         POSTCODE is cityu2019s postal, or zip, code.
         CITY means that up to two place names can be defined.
         REGION determines the administrative area.
         COUNTRY specifies the country based on specific postal standards and the address format.
         FROMCOUNTRY defines in which language the destination countryu2019s name is formatted. In EEC countries, only the international country identification letter is placed, with a hyphen, before the postal code.
    Gr., Frank

  • Address problem in sapscript

    Hi,
    I'm creating a sapscript for Sales order, my problem is this:
    when the order is sent to foreing country I would to print the country name, else the country name hasn't is displayed.
    Thank you.

    Hi Ierardi Leo,
    To control the country name displayed in the address, please use the parameter "Sending Country".
    Set the parameter "Sending Country" as the country of your Sales Org(VKORG)/Company code(BUKRS)/Shipped from(VSTEL).
    The logic based on Sending Country followed by SAP is as follows,
    1. If Sending country is same as destination country then, Country name is not displayed
    2. If Sending country is not same as destination country then, Country name is displayed
    I hope this solves your problem.
    Regards,
    Amit

  • Dynamic paragraph for Sapscript

    Hi all,
    I need to write a sapscript that require to get the paragraph from abap program. Is this possible for sapscript?
    Normally, we only choose the desire paragraph format on the left hand side on SE71.
    Can sapscript get the paragraph format via abap program?
    Thanks in advance.

    Hi prashanti k,
    Thanks again.
    In sapscript, the paragraph is defined as paragraph P1, but the form need to be more dynamically, where it will get the paragraph format from the program.
    For example in sapscript,
    P1         &WRITE_TEXT_HERE&
    What is required was, the P1 needs to be dynamically, where it can change based on the program passing parameter, it could become P2 or P3.
    Thanks.

  • Address Layout in Sapscript

    Hi, In a Sapscript I would like to print the South Korean address as:-
    Name1 Name2
    Region
    City
    District
    Street
    Street2
    Postal Code
    This is not the same as layout for 017
    City District
    Street
    Name
    Postal code
    I have read that you need to add code into EXIT_SAPLSADR_001   ZXSADU01
    Can any one give me any ideas of what code is required please. I understand I might need to create a new address layout 917.
    But just not sure of how to code my requirements.
    Thanks for any help
    SJT

    Hi,
    You can refer this,
    Link:[http://www.se80.co.uk/sapfms/e/exit/exit_saplsadr_001.htm]
    Link:[format address in sap script;
    Link:[http://help.sap.com/saphelp_40b/helpdata/en/d1/803238454211d189710000e8322d00/content.htm]
    Thanks,
    Renuka S.

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

  • SapScript Data is not printing in Address window

    Hi all,
        I am having a problem regarding printing some values in a window of sapscript.It prints data in that window for some input and not for others input. The structure , which is being passed to this window is having values in print program all the cases.  I get into the sapscript in debugging mode and found that the structure is having values fr all the test run ..But its still not printing in some cases.The window is coming as blank.
    the code in the editor of the window is :
    POSITION WINDOW
    BOX FRAME 10 TW
    AS <B>&ztfin-fld18'/'&&t_ztfin-fld18&</>
    ADDRESS PARAGRAPH AD
    ADDRESSNUMBER &DKADR-ADRNR&
    TITLE       &DKADR-ANRED&
    NAME        &DKADR-NAME1&, &DKADR-NAME2&, &DKADR-NAME3&, &DKADR-NAME4&
    STREET      &DKADR-STRAS&
    POBOX       &DKADR-PFACH& CODE &DKADR-PSTL2&
    CITY        &DKADR-ORT01&, &DKADR-ORT02&
    POSTCODE    &DKADR-PSTLZ&
    COUNTRY     &DKADR-LAND1&
    REGION      &DKADR-REGIO&
    FROMCOUNTRY &W_CLERK_LAND&
    ENDADDRESS
    can sugest me something.
    Reward poits guranteed.

    Hi Vijay..please have look in this..
    Case: text is printed in address window
    DKADR-ADRNR     xxxx
    DKADR-NAME1     xxxx
    DKADR-STRAS     xxx
    DKADR-PFACH     xxxx
    DKADR-ORT01     xxx
    DKADR-LAND1     xxx
    DKADR-REGIO     xxx
    rest are blank
    Case: text is not printed in address window
    DKADR-ADRNR     xxxx
    DKADR-NAME1     xxxx
    DKADR-NAME2     xxxx
    DKADR-STRAS     xxxx
    DKADR-ORT01     xx
    DKADR-LAND1     xx
    rest are blank
    is the Addresss CALL IS failing because of DKADR-REGIO = space ?

  • REGION is not shown in Address to be printed in SAPSCRIPT

    Hi,
           I am trying to print the address within a sapscript .Everything is being displayed except the 'regio' ie region field. but when i replace the label region with city or something else followed by the field name it prints fine.
    The code is as follows:
    ADDRESS DELIVERY PARAGRAPH L
      TITLE    &VBDKL-KUNWE&
      NAME     &VBDKL-NAME1&, &VBDKL-NAME2&, &VBDKL-NAME3&,&VBDKL-NAME4&
      STREET   &VBDKL-STRAS&
      CITY     &VBDKL-ORT01&
      POSTCODE &VBDKL-PSTLZ&
      REGION   &VBDKL-REGIO&
      COUNTRY  &VBDKL-LAND1&
      FROMCOUNTRY 'FR '
    ENDADDRESS

    Check this out once -
    Formatting Addresses: ADDRESS
    The ADDRESS - ENDADDRESS control command formats an address according to the postal convention of the recipient country defined in the COUNTRY parameter. The reference fields are described in the structures ADRS1, ADRS2, or ADRS3, depending on the type of address. Either direct values or symbols may be assigned to the parameters.
    Syntax:
    /: 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
    The parameter values contain both formatting and address information. The address data are formatted for output according to the data in the following parameters:
    TYPE
    FROMCOUNTRY
    COUNTRY
    LANGUAGE
    PRIORITY
    DELIVERY
    LINES
    For more information, see the documentation for the SAP function module ADDRESS_INTO_PRINTFORM.
    If DELIVERY is not specified and if a POBOX is specified, then the POBOX is used in an address instead of a STREET.
    Parameters
    DELIVERY
    Means that the address should be formatted as a complete delivery address, using the street name and number rather than the P.O. Box.
    TYPE
    Specifies the type of address. The following types are possible:
    1.     Normal address (ADRS1). This is the address of a company or organization. It corresponds to the address structure that is expected in most SAP applications.
    2.     Private or personal address (ADRS2). This is the address of a natural person, a private or home address.
    3.     Company addressDienstadresse (ADRS3) with contact person. This is the address of a colleague or contact within a company or organization. The company name should be specified in the TITLE and NAME fields; the ATTN: contact person should be named in PERSON and TITLE.
    Should you enter another address type or leave the field blank, then type 1 is used for formatting.
    PARAGRAPH
    Specifies the paragraph format to be used for outputting the address. If this parameter is not given, the address will be output using the default paragraph format.
    PRIORITY
    Specifies which of the address lines may be omitted should this be necessary. Any combination of the following codes may be specified. The order in which you list the codes determines the order in which address lines are left out.
    The codes are as follows:
    A Title
    P Mandatory empty line
    4 Name4
    3 Name3
    R Region
    T Neighborhood, administrative section of a city (CITY2)l
    D Department
    L Country name
    C Post code or zip code
    2 Name2
    B P.O. Box (Japan only)
    S Street name and number or P.O. Box, depending upon DELIVERY parameter
    N Name and form of address of natural person (PERSON and TITLE)
    I Location information in LOCATION
    O City
    LINES
    Specifies how many lines may be used for formatting the address. If there are too few lines available to allow all the address data to be formatted, then the data specified in the PRIORITY parameter are omitted. If there is no LINES parameter and if this command is in a form window of a type other than MAIN, then the number of lines available for formatting the address are automatically calculated based on the current output position and the size of the window.
    TITLE
    Title or form of address. Used only with addresses of types 1 and 3.
    NAME
    Up to four names may be given, separated by commas. Used only with addresses of types 1 and 3.
    PERSON
    Name of the addressee. Used only for addresses of type 2 (private or personal address) or type 3 (company contact address). In type 3 addresses, use PERSON for the name of your contact person: ‘Attn: Mr. Jeffries’. The name fields should be used for the company address.
    PERSONNUMBER
    Personal number. Can be used only for address types 2 or 3 (private or personal address).
    TITLE (with PERSON)
    Title of the addressee. Can be used only for address types 2 or type 3 (private or personal address).
    DEPARTMENT
    Department of the addressee. Can be used only for address type 3 (company address).
    STREET
    Street name.
    HOUSE
    House number for the corresponding street.
    LOCATION
    Additional location information, such as the building, "Upstairs Apartment" and so on. Appears on its own line in the address.
    POBOX
    P. O. Box
    CODE
    The post code / zip code of the P. O. Box if this differs from the post code / zip code of the recipient.
    CITY
    The city in which the destination P.O. Box is located if this differs from the city of the recipient.
    POSTCODE
    Post code / zip code of the recipient.
    CITY
    Addressee’s city. city1 is expected to be the city; city2 is the neighborhood or administrative section, if required.
    NO_UPPERCASE_FOR_CITY
    Default = NO_UPPERCASE_FOR_CITY ‘ ‘
    Usually, the system prints the city and country names of foreign addresses in uppercase ( NO_UPPERCASE_FOR_CITY ‘ ‘ ).
    You can use this parameter to force the system to output city and country name unchanged (uppercase/lowercase).
    ( NO_UPPERCASE_FOR_CITY ‘X’ )
    REGION
    This allows an administrative region, county, province, or state etc. to be specified.
    COUNTRY
    Specifies the recipient country, i.e. the country according to whose postal conventions the address is to be formatted.
    COUNTRY_IN_REC_LANG
    This flag tells the system to use the recipient language for the country name.
    ( COUNTRY_IN_REC_LANG ‘X‘ )
    ( Default: Recipient language is not used: COUNTRY_IN_REC_LANG ‘ ‘ )
    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.
    ADDRESSNUMBER
    The number is used to index a central address file, from which the desired address is read instead of using the set of the above fields. You can find more information on this facility in the documentation for the function module ADDRESS_INTO_PRINTFORM.
    You use this one parameter instead of the set of parameters described before.
    /: ADDRESS
    /: TITLE 'Firma'
    /: NAME 'Schneider & Co', 'Finanzberatung'
    /: STREET 'Kapitalgasse 33'
    /: POBOX '12345' CODE '68499'
    /: POSTCODE '68309'
    /: CITY 'Mannheim'
    /: COUNTRY 'DE'
    /: FROMCOUNTRY 'DE'
    /: ENDADDRESS
    This produces the following output address:
    Firma
    Schneider & Co
    Finanzberatung
    Postfach 12345
    68499 Mannheim
    If the DELIVERY parameter is specified on the ADDRESS command, 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
    SAPscript makes an internal call to the ADDRESS_INTO_PRINTFORM function module for formatting the address. If the result is not as expected, you should check the settings for this function module (see the function module documentation).

  • Sapscript - email form - vendor address

    Hello all,
    we are emailing our purchase orders out of SAP to one of our email addresses, it is always the same address. As configuration, we have setup a new vendor X and use this vendor to enter the recipient email address.
    We then enter this vendor number as partner into the output message in the purchase order. Partner type is VN for vendor, medium external send and we created a new output type. Once the output is triggered, email is sent to our email address.
    The vendor address is also on the sapscript form:
    /: ADDRESS PARAGRAPH AS
    /: TITLE &LFA1-ANRED&
    /: NAME &LFA1-NAME1&, &LFA1-NAME2&,
    /: STREET &LFA1-STRAS&
    /: POBOX &LFA1-PFACH& CODE &LFA1-PSTL
    /: CITY &LFA1-ORT01&, &LFA1-ORT02&
    /: POSTCODE &LFA1-PSTLZ&
    / :REGION &LFA1-REGIO&
    Now the LFA1 table seems to contain the address of our vendor X that has been setup for email only. Meaning it prints the physical address of our email vendor on the form. But it should show the address of the actual vendor of the purchase order, which is in &EKKO-LIFNR&.
    How can we show the correct address on the form?
    Thanks
    Anne

    Hi,
    ok, I think I got it now. Please see below code. The sapscript and the subroutine pool are activated. I have set a break point into the subroutine pool, but whenever I start the output of the PO, it doesn't stop at the break point. So I guess it never reaches the subroutine.
    Any suggestions why?
    THANKS
    Anne
    :/ DEFINE &WA_ADRNR& = ' '
    :/ PERFORM GET_ADDRESSNUMBER IN PROGRAM Z_PO_VENDOR_ADDRESS
    :/ USING &EKKO-LIFNR&
    :/ CHANGING &WA_ADRNR&
    :/ ENDPERFORM
    *& Subroutine pool   Z_PO_VENDOR_ADDRESS                               *
    PROGRAM  Z_PO_VENDOR_ADDRESS.
    TABLES: LFA1.
    *&      Form  GET_ADDRESSNUMBER
    *       get the addressnumber value for EKKO-LIFNR from LFA1
    FORM GET_ADDRESSNUMBER TABLES fp_it_intab STRUCTURE itcsy
                                  fp_it_outtab STRUCTURE itcsy.
      LOOP AT fp_it_intab.  <-- BREAKPOINT
        SELECT * FROM LFA1
             WHERE LIFNR = fp_it_intab-value.
        endselect.
        IF SY-SUBRC = 0.
          MOVE LFA1-ADRNR TO fp_it_outtab.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    "GET_ADDRESSNUMBER
    Edited by: Anne on Aug 4, 2010 3:56 PM

  • SAP Script - delete paragraph between two lines or move address one line up

    Hi all,
    i have a problem concerning SAPscript and formating.
    In the address window i have an include, which provides a text in a line. after that i have a command line with address and paragraph, which sorts and formats the address. Problem is that there is a gap between my Text from the Include and the address. Is there a way to move the address one line up or any other way to delete the paragraph there?
    SAPscript looks like this:
    include ....
    endif.
    adress paragraph zz
    name  Testname
    street teststreet
    Postalcode 98788
    City  Town
    Print Form:
    Text from the include
                                          <----
    how can I get rid of this empty line?
    Testname
    teststreet
    98788 Town
    Any Suggestions?
    Thanks,
    Denis

    Hi there,
    no results yet. nothing worked so far. What does PB mean?
    The CODE looks as follows:
    /: if ....
    /: include ........ new-paragraph SA
    /: endif
    /: if ....... OR ....
    /: address Paragraph AS
    /: name  ......
    /: street ......
    /: endaddress
    Print::
    Text blablabla
                                  <---- empty line
    Name .....
    Street .....
    The include has no empty line in the end.
    I have no more clues how to delete the empty line in between the address and the include text.
    regards,
    denis

Maybe you are looking for