Skip to Content
author's profile photo
Former Member

Sap Script Command

Hi All,

Can anyone please provide me the list of all commands used SapScript?

Thanks in Advance!!!

~Rohini.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    author's profile photo
    Former Member
    Posted on Aug 23, 2007 at 06:25 AM

    Go to SAP help,

    SAPscript" target="_blank">http://help.sap.com/saphelp_47x200/helpdata/en/d2/cb3d07455611d189710000e8322d00/frameset.htm">SAPscript help

    and navigate to 'SAPscript control commands'. This lists them all with full explanations and examples.

    Regards,

    Nick

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Aug 23, 2007 at 06:51 AM

    Hi Rohini,

    Trigger page break

    /: NEW-PAGE

    Generate header in page for Main window TOP

    /: TOP

    /: ENDTOP

    Generate Footer in page for Main window Botton

    /: BOTTOM

    /: ENDBOTTOM

    Check the conditions

    /: IF &PAGE& = 1

    /: ELSE

    /: ENDIF

    Or

    /: CASE &SY-UNAME&

    /: WHEN 'ABC'

    /: ENDCASE

    <b>Reward Points if Useful</b>

    Regards

    Gokul

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 23, 2007 at 06:54 AM

    1) /: NEW-PAGE [page_name]

    2) /: PROTECT

    :

    /: ENDPROTECT

    3)/: DEFINE &symbol_name& = 'value'

    4) /: NEW-WINDOW

    5) /: SET DATE MASK = 'date_mask'

    6) /: SET SIGN LEFT

    7) /: SET SIGN LEFT

    8) /: INCLUDE name [OBJECT o] [ID i] [LANGUAGE l] [PARAGRAPH p]

    [NEW-PARAGRAPH np]

    9) /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]

    10) /: IF condition

    :

    :

    /: ENDIF

    Close the thread if your question is answered.

    Regards,

    Sairam

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Aug 23, 2007 at 08:08 AM

    Hi Rohini I am forwarding you all the SAP ACRIPT Commands, Reward points if helpful

    SAPscript Commands Description

    ADDRESS Formatting of addresses

    BOTTOM, ENDBOTTOM Define footer text in a window

    BOX, POSITION, SIZE Boxes, lines and shading

    CASE, ENDCASE Case distinction

    DEFINE Value assignment to text symbols

    HEX, ENDHEX Hexadecimal values

    IF, ENDIF Conditional text output

    INCLUDE Include other texts

    NEW-PAGE Explicit forms feed

    NEW-WINDOW Next window MAIN

    PERFORM, ENDPERFORM Calling ABAP Subroutines

    PRINT-CONTROL I nsert print control character

    PROTECT, ENDPROTECT Protect from page break

    RESET Initialize outline paragraphs

    SET COUNTRY Country-specific formatting

    SET DATE MASK Formatting of date fields

    SET SIGN Position of +/- sign

    SET TIME MASK Formatting of time fields

    STYLE Change style

    SUMMING Summing variables

    TOP Set header text in window MAIN

    Add comment
    10|10000 characters needed characters exceeded