Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP Script problem

Former Member
0 Likes
812

Hi all i am novice on this script thing. I have this script form which is called OperationControlTicket. any how the problem is when it prints even the first page got huge blank space it prints the signature thing on the 2nd. can anyone please help me where to look for. many many thanks in advance

Here is the code:

well can't copy the code either...

Message was edited by:

Anwarul Kabir

6 REPLIES 6
Read only

Former Member
0 Likes
786

Look at Form Main window ,some of the text elements triggering with blank ,

Activate debugger and see the main window operation.

Read only

Former Member
0 Likes
786

I think you shoude be delete the page window on first page.

Page window can be inserted on each page.

If you don't want to write page window on first page then you can delete

the page window on first page.

But you are carefule that is not delete it on second page.

Do you inserte the page window on first page and 2'nd page.

I wish that will be solved.

Read only

Former Member
0 Likes
786

HI,

check once the declared variables in the script page.

Remove,if any blank line between variable declaration to another variable.

check are u passing the business data to varibale in proper manner or not.

remove if any &SKIP&, sytem variable exisisting in script editor.

ragards,

Ashokreddy.

Read only

0 Likes
786

I have checked for the all the things you guys mentioned here.. I couldn't find any. Unfortunately i don't know which program uses this script.

The way it uses is there r bunch of CLASS in there by using /E and then the program calls it.

I can't find the debugger option here can anyone tell me how to do debug in script?

Read only

0 Likes
786

Hi,

you can verify which print program is using your sapscript program by checking either table TNAPR or T001F. Else , you may verify this in transaction NACE provided that you know the output type.

Debugging: Goto SE71 , put your form name , gotot Utilities and click activate debugger. Then run your tests normally, it will trigger sapscript debugger automatically.

Reegards,

Sooness

Read only

0 Likes
786

thanks for the help I couldn't find the program from the tables you mentioned but i was able to debug it and found the following code when it execudes it calls a function for a new page...

/E External_work

And then when it returns to the script it starts with the title and then it puts that signeture thing there.

I tried to comment that line out but it stops the second page but i don't see my signute thing in the first page.

Any Idea how I can edit that function to do nothing or instead of doing a new oage call the line where i have the signutre thing...

My signutre line strats like this

/E END_OF_REPORT

T2

/ ................................._________________________ ______________

/................................... Customer Signature..................Date

/ <IB> End of report </>