Skip to Content
avatar image
Former Member

SAPScript Issues - Page numbering and logic coding on SAPScript

Ladies and Gentlemen,

I have 2 problems with a SAPScript development for a client.

1) I am using the &PAGE& of &SAPSCRIPT-FORMPAGE&, but when the output continues over 2 or more pages, the numbering on the form continues to show 1 of x. Do I need to manually increment the &PAGE& value? I thought SAPScript managed this funtionality automatically.

and 2) I have a constant value ( '>' ) that I need to print if text is available. How do I code an if statement around the constant. I have tried

/:  if  not wa_text is initial.
ZL   >,,&wa_text&
/:  endif.

(where ZL is the paragraph type) but I get a syntax check error. Any thoughts or answers would be greatly appreciated (and rewarded).

Cheers,

Steve

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jul 09, 2007 at 01:28 AM

    Try like this :

    &PAGE& of &SAPSCRIPT-FORMPAGE(3Z)&

    /: <b>if wa_text ne ''.</b>

    ZL >,,&WA_TEXT&

    /: endif.

    I hope you will get it.

    Thanks

    Seshu

    Add comment
    10|10000 characters needed characters exceeded