Skip to Content
author's profile photo Former Member
Former Member

date on sapscript

Hello All,

Our client reqirement is to print date of printing on the form not the transaction date.sy-datum is already being used which gives transaction date what should be done to print date of printing on the form.

Thanks

Mahesh

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 10, 2007 at 12:07 PM

    Hi,

    You can use same sy-datum in print date.

    Regards.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 10, 2007 at 12:08 PM

    SY-Datum is simply system date

    so it will be the date the smartform/script has been prepared.

    IF you choose to print it later from spool or archive,

    you cannot put this logic in the smartform/script as it is now in OTF / PDF format

    No longer an active smartform/script program.

    I dont think it is possible.

    I think if you are printing the smartform when u create it. SY-DATUM will do.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 10, 2007 at 12:45 PM

    Hi

    if you are using sy-datum of simply &date& then it will give the current date.but when you give the print command then it goes to sap spool with otf/pdf format.now when you get the printout of it you will get everything as it is same as the spool becouse at the time of printing you dont run ur code.it is like just taking the print of whatever is available in the spool

    if you print immediately your job is done but

    if you print after sometime or some days the it will print the old date.

    for that you can leave the date blank and go to printer and set the printer to print the current date in some specific X Y coordinates.

    thanks

    vivekanand

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.