cancel
Showing results for 
Search instead for 
Did you mean: 

About SAPSCRIPT Standard Variables

VishwanathV
Participant
0 Kudos
152

Hello Experts,

I am currently working on SAPScript requirement.

I am encountering the following challenges during the development. I need to print a paragraph at the last page of the form, or which i am exploring the SAP Script variables - PAGE, SAPSCRIPT-FORMPAGES, SAPSCRIPT-JOBPAGES and NEXTPAGE. 

To achieve the requirement, I have done the coding in the script like this:

whatsap_6-1719394527870.png

 In my development, the layout has three pages: FIRST, NEXT and LAST.

whatsap_0-1719392439897.png

However, when i debug the script i have observed the below:

1) Though the current layout has data which will suffice for only one page, the value of &NEXTPAGE& is not zero when i am on the 'MAIN' window of the FIRST page of the layout. Instead, the value of &NEXTPAGE& is 2, whereas i am expecting 0 here.

whatsap_3-1719393428420.png

because of this discrepancy, the special instructions paragraph is not outputting on the layout.

whatsap_4-1719393599557.png

2) So, instead of NEXTPAGE i have made use of other SAPScript variables PAGE, SAPSCRIPT-FORMPAGES, SAPSCRIPT-JOBPAGES.

whatsap_7-1719394630178.png

Again, the result is same as before, and the special instructions paragraph hasn't been outputted on the layout.

Even though the value of PAGE and SAPSCRIPT-JOBPAGES is same, the special instructions are not printing on the form.

Any reason for this?

whatsap_8-1719395245838.png

3) When do we make use of SAPSCRIPT-FORMPAGES and why it is showing zero here?

 

 

 

 

 

 

 

Accepted Solutions (0)

Answers (0)