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

How to include date and time in sapscripts?

Former Member
0 Likes
1,243

Hi all,

Even though i included &PAGE& of &SAPSCRIPT-FORMPAGES& and &Time& for page numbers and time in the variable window,I am not getting any output when I executed print program.I included those commands as command line(/:).Could any one explain me?

What i need to do.

Hi all,

Even though i included &PAGE& of &SAPSCRIPT-FORMPAGES& and &Time& for page numbers and time in the variable window,I am not getting any output when I executed print program.I included those commands as command line(/:).Could any one explain me?

What i need to do.

6 REPLIES 6
Read only

Former Member
0 Likes
941

Check Window size and Paragraph used to print the same.

Read only

Former Member
0 Likes
941

Hi ,

Were you liniing this window with the print program using write _form where you spwecify the element of the window ? Check this .

Next check the window size . Is it capable of displaying all the items you are tryiung to display .

Regards,

Varun .

Read only

Former Member
0 Likes
941

May be there is not enough space to print the information.

Try increasing the width of the window, and try to print by adding one at time.

first print only &PAGE& and check the output and then add &SAPSCRIPT-FORMPAGES&, check the output and then add the time.

Read only

Former Member
0 Likes
941

Hi,

Those are not supposed to be Command Line (/:) symbols. You need to use those as regular variables in the paragraph.

Thanks,

Murali

Read only

Former Member
0 Likes
941

Hello Balaji,

First debug the script and check wether u the time and date are populating.

If the above thing is not there,then there is problem in ur print program or ur code.

Paste ur code,it will be more help full.

Regards

Read only

Former Member
0 Likes
941

hi balaji.

/: is not what u r supposed to put here. this is only for control commands. date and time are not control commands. they are system symbols.

since u want to display the date and time, may be u can give some paragraph format.