Skip to Content
author's profile photo Former Member
Former Member

Queries Regarding SAP Scripts

Hi,

I have the following queries on SAP Scripts:

1.Is it possible to loop into any window other than the 'MAIN' window?

2.We have a requirement to print a text at the end of each main window.Is there some variable/function that keeps check on the no: of lines printed in the main window?

3.We have noticed that while printing the formatted address,the 'Street' does not get printed even though the corresponding value is fetched from the DB table.Are Address formats SAP Version specific?

Thanks in Advance!

Regards,

Nejuma Iqbal

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 26, 2006 at 11:17 AM

    hi,

    1. yes, it is. in write from have the window name and text element name correctly.

    2. i think u must have some counter and then print it.

    3. ---

    reward if useful...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 26, 2006 at 11:24 AM

    Hello,

    1.U can loop any window upon ur requirement

    2.U can print using

    Syntax:

    /: BOTTOM

    :

    :

    /: ENDBOTTOM

    3. Check ADRC table, this address table

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 26, 2006 at 11:28 AM

    hi,

    While using Address.. Endaddress, if you are passing country code 'US', then we will be getting POBOX but not Street.

    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 [<b>DELIVERY</b>] [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. <b>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.</b>

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

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

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

    REgards,

    Sailaja.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.