Smart form Date formate

Hi All,
      I am new to smartforms.I want to position the  date on page top corner of the left side of the form such as day month year(Tuesday,january 01,2008).how to get this formate in smart form?
Thanks & Reagrds
HB

Hi,
Check this  it may be useful to u
Formatting Date Fields: SET DATE MASK
To define the formatting of date fields, use the SET DATE MASK control command. Executing this command causes all subsequent date fields to be printed using the specified format.
Syntax:
/: SET DATE MASK = 'date_mask'
In the date mask, you can use the following codes:
DD: day (two digits)
DDD: day name - abbreviated
DDDD: day name - written out in full
MM: month (two digits)
MMM: month name - abbreviated
MMMM: month name - written out in full
YY: year (two digits)
YYYY: year (four digits)
LD: day (formatted as for the L option)
LM: month (formatted as for the L option)
LY: year (formatted as for the L option)
All other characters found in a date mask are interpreted as simple text and are copied straight into the output.
Assuming the current system date is March 1st, 1997.
/: SET DATE MASK = 'Foster City, MM/DD/YY'
&DATE& -> Foster City, 03/01/97
/: SET DATE MASK = 'MMMM DD, YYYY'
&DATE& -> March 01, 1997
The date mask may be reset to the default setting by using an empty string:
/: SET DATE MASK = ' '
The abbreviated and full forms of the names of the days and months are stored in the language dependent TTDTG table under the following keys:
%%SAPSCRIPT_DDD_dd: abbreviated day name
%%SAPSCRIPT_DDDD_dd: full form of day name
%%SAPSCRIPT_MMM_mm: abbreviated month name
%%SAPSCRIPT_MMMM_mm: full form of month name
dd: day number 01 = Monday,..., 07 = Sunday
mm: month number 01 = January,..., 12 = December
Regards

Similar Messages

  • PDF Print Forms - Date format

    Hi Frnds,
    This is my first time to work in PDF print forms.
    I am using standard interface and program to print my PDF forms. The PDF form alone is customised.
    I need to format my date as dd-mmm-yyyy. how can i do it?
    can i call a subroutine from a Zprogram in the context or interface?
    Can anyone help me to solve my issue? thanks a lot.
    regards
    Suganya.

    Hi Frnds,
    I got the date format solution.
    But I need to know whether we can use the subroutine of the program inside the interface or PDF forms as like script.
    I am using the std prgm RFKORD10_PDF and my customised PDF form. but i am getting an error as "Contradiction in form".
    Can anyone help me to solve the error?
    thank in adv
    Suganya

  • Adobe Forms Date Format DD.MM.YYYY.

    Hi Experts,
    I am new to Adobe Forms(Transaction SFP) . The Client has requirement to display the data in DD.MM.YYYY format.
    I saw that the standard 'Date fields' in ADOBE forms does not have this format.
    Any Ideas.
    Thanks.

    Hi
    Drag and drop the Date/Time Field  from Library pallet into Layout. Right click on it  -> Go to Palletes -> select Object -> go to the Field tab ->
    In Display Pattern you simply specify the date format as   DD.MM.YYYY and the active it and test it.
    Try this once. It will work.
    Thanks
    Sriiiiiiiii(Srikanth)

  • SMART FORMS- data from  internal table issue

    Hi ,
           I have a smart form in which I have to print three types of materials of Material Types say M1, M2 ,M3.
    In the SMART FORM,Main Window, I have created 3 TABLES for 3 types of Materials ie,
               TableM1,
               TableM2,
               TableM3.
    The internal tables to populate these TABLES are
    ( passing from Print program ).
                t_M1,
                t_M2,
                t_M3
    The Number of FIELDS vary in all the tables ,thats why I have created 3 internal tables for Diff Material Types.
    But only first TABLE is getting printed ie data inside TableM2, TableM3 are not getting printed.
    Can any SMARTFORM Gurus please let me know how I can solve this issue.
    Regards
    Avi

    Hi,
       Check whether you are mentioning any condition on the data. There are different possibilites of not getting printed. Like the way your displaying, data is in table.
    Can you please clearly mention how did you populated the internal table and kept the logic to print the values in the table. So that it problem would be  more clearly nown.
    Br,
    Laxmi

  • Smart Form, Data Element and Parameters

    1.- I created an Smart Form with an import parameter. The import's parameter type is a data element.
    2.- I create an executable to call the Smart Form, I need to declare a parameter of the type of the same data element.
    The problem is that when I try to compile I receive an error message:
    The deep data type "ZTEXTOLIBRE" is not allowed. not allowed.          
    The type of the parameter must be of this type because if not, i'd receive an error when i send the parameter to the function that call the Smart Form. Any idea?
    Thanx

    Hi Jose,
            check with this smartform LB_BIL_INVOICE declaration and with the driver program declaration.
    like IS_BIL_INVOICE TYPE LBBIL_INVOICE in the form Interface and
    like  DATA: ls_bil_invoice TYPE lbbil_invoice in the driver program RLB_INVOICE.
    Hope this will help.
    Thanks,
    Vamsi.

  • SMART Forms , paragraph format.

    Dear Expert,
    First of all, please refer to this. [here|http://wkokwei.googlepages.com/paragraph.jpg]
    I am trying to eliminate blank lines of the Text in the smart forms.
    example:
    &text1&
    &text2&
    &text3&
    &text4&
    Those text are variable, if it have no value, i dont want to print the empty line.
    "IF - ELSE " statements doesnt work.
    say if text1 is "AAA", text2 is " ", text3 is "CCC", text4 is "DDD".
    It will print as:
    AAA
    CCC
    DDD
    instead of:
    AAA
    CCC
    DDD
    and i found there is a setting in the paragraph format (refer to the link above),
    "No blank lines" option.
    Where to change this? I have tried to look into SMARTSTYES, didnt find it.
    gosh.... smartform is ******* smart..... this is making me crazy .....

    Hi,
    If you don't have too many texts, you can create one text element for each and print it only if your variable if filled, that is &text1& is not initial in the condition tab.
    This way you'll get no blank lines and don't have to bother with styles.
    Regards,
    S

  • XML FORMS - Date Format

    Hi,
    I have a problem that I am sure is just config, but when opening any xmlforms and displaying they only appear with american date format.
    Has anyone changed this format, from what appears the standard?
    Will award points for any help.
    Thanks
    Kai Chalker

    Hi Kai,
    You can create a custom property in KM and assign a different date format to it.
    Then if u use that in your XML Forms, probably u can get the new date format.
    In the Additional Metadata row of the KM Property u can enter
    customFormat=dd-MMM-yyyy
    Please follow this [Help|http://help.sap.com/saphelp_nw04/helpdata/en/42/e646150fbc3ee6e10000000a1553f7/frameset.htm] link to get more info on the formats
    Regards
    BP

  • Forms date format hegira

    Dear sirs,
    please i need help to show the date on form in format of hegira (as islamic calender)
    thanks in advance

    Hi
    u can use the NLS_CALENDAR parameter system pls check the following link
    ALTER SESSION SET NLS_CALENDAR='Arabic Hijrah'; http://docs.oracle.com/cd/B14117_01/server.101/b10749/ch3globenv.htm
    Amatu Allah

  • Download Smart form data for 6000 Invoice documents into Excel

    Hi,
    Using RSNAST000 program currently we are printing samrtform.
    Instead of printing data in smartform i need to write into excel.
    Please let me know the logic to do this i need to write 6000 smartforms(Invoice documents) data into Excel.
    Thanks
    Bhuvana

    Ask him how he thinks smart forms can be embedded in Excel, and why he wants Excel (for which benefit, for using which functions of Excel?). He has an idea, for sure.
    Technical possibilities of Excel to embed graphical documents are very limited, I mean 2 solutions: either storing the whole document as an image (rather easy), or split the document into pieces of text (into cells) and boxes and images (stored as Excel graphical elements) with a rather bad render (highly complex, I mean unfeasible).
    - If his idea is to embed them as images (PDFs), then show him the result : 50 kb to 500 kb for each smart form = excel of several mega bytes. He will certainly regret. Moreover I don't see the interest.
    On the other way, propose him to store smart forms in a single spool, so he will be able to display (it's then equivalent to preview) all of them at the same time. He'll surely agree that it's the most efficient way.
    Propose him proofs of concepts.

  • In XML Forms Date Format want to display like this (dd-MMM-YY)

    Hi All,
    I created one Custom Property for Date and use that property in XML Form Builder. In the RenderList that Date Field Display as (Medium Format) showing like this Apr 21, 2009 Format.
    But i requirement is to display Date Field as like this 21-Apr-2009 (DD-MON-YEAR) Format.
    In the Custom Property i set the
    Additional Metadata (csv): +   customFormat=dd.MMM.yyyy but this way is not working for XML Forms.(Refered this SAP NOTES:816761)
    when the IE Browser language is English(United States) [en-us] Date Field Display as (Medium Format) showing like this Apr 21, 2009 Format.
    But when the IE Browser language is English(canada) [en-ca] Date Field Display as (Medium Format) showing like this 21-Apr-2009 Format. so this way is not a right way..
    I need to achieve this..  please help me.. Appreciate for helpful answer.
    Regards
    Thillai J

    Thillai:
    Refer to this post:
    https://www.sdn.sap.com/irj/scn/thread?messageID=1166540
    Hope this helps!

  • Understanding Margins in Smart Forms/Page Formats

    Okay I have completed all my forms by rendering out all the data and now need to adjust the style to my liking.  One issue that I am having is understanding the margins of a smartform and how they are defined?  From what I have researched, the page formats are defined in T-code SPAD where the width and height of the page is set.  However, I don't understand where the margins are determined.
    I have placed a window that contains a table at x-position 0 with the width of the window and table the full page width (DINA4 = 210mm).  In print preview, the document renders out fine with the table row stretching from end to end, but when I actually print it there is a 7mm left margin and a 10mm right margin, which cuts off the end of my table row.
    So my question is, where are these margins set?  Or is this because I have not/did not configure my printer settings correctly to communicate with the printer correctly?  Once again I would like to reiterate that my print preview works correctly but the print output does not.

    Okay from what you just said, translated to simple terms is pretty much: You cannot set the margins of the ACTUAL printout.
    Here are my current settings:
    Page format = LETTER
    Left margin of all windows = 0.0
    Window width = 21.00cm
    device type = LX4039 (Lexmark Optra T616)
    On the print preview The tables are left justified with no left margin, and there is a right margin that appears to be 8mm wide.  This is great if it actually printed this.
    When I actually print it though, I get this output:
    Left margin of all windows = 7mm
    Right margin of all windows = 5mm
    All windows that were on the right side of my document are cut off early and the tables only have a width of about 20.7cm.
    I could shrink my tables to make them fit but then they will not look centered, and I am trying to make every aspect of this form as professional as possible since our customers will see them.  Can anyone fix or acknowledge that there is no setting I can alter to fix this?

  • Smart form page format.

    Daer All,
    A very good  morning to all of you......
    I want to know that If I have dot matrix printer. Then which page format do i need to select to print data in smartforms. As I need in urgent. Plz give me the answer.
    Thanks & regards.....

    Hi
    We use DINA4 page format for most of the times.
    check with that format and see.I think page format doesn't have much effect on the printer.
    Check the print out on 2 to 3 printers and see.
    Reward points if useful
    Regards
    Anji

  • With in smart forms   i need time format like 12:26:37

    hi,
    in smart forms time format is coming to one variable time in this format 122637, but i need this format  12:26:37
    plz tell me the answer.
    thanks.

    Hi
    Check this:
    REPORT  ztest_time_conv.
    DATA: hour(2) TYPE n,
          min(2) TYPE n,
          sec(2) TYPE n,
          tim TYPE i.
    DATA: time TYPE p DECIMALS 2.
    DATA: timeformat TYPE sy-uzeit.
    time = '1.38'.
    tim = time * 3600.
    hour = tim DIV 3600.
    tim = tim MOD 3600.
    min = tim DIV 60.
    sec = tim MOD 60.
    CONCATENATE hour min sec INTO timeformat.
    WRITE timeformat.
    BREAK-POINT.
    PS:Code given by Vijay Babu Dudla in other thread..in ABAP general..when I pasted the link,it did not work..so I am giving it here like this.
    Regards,
    VIshwa.
    Edited by: Vishwa Sri Hari on Nov 5, 2008 1:01 PM

  • Date format in smart form

    How can we change the date format in a smart form.

    define a var of type string in global
    1)get the req date use edit mask function to modify it
    2)convert tthe date as u wanted in program lines in smart form
    3)assign the same to the string variable & then u can display the same
    i hope this works
    close the thred if problem is solved

  • How to convert Smart Form into PDF format and return the result in BAPI?

    I want to convert a Smart Form into PDF format and return the result in BAPI.
    can anyone tell me how it can be done with related example
    regards
    pranay

    hi,
    smart form to pdf--
    All you have to do is call your SF to get OTF and then concert it to PDF. Works like charm:
    DATA: p_output_options TYPE ssfcompop,
    p_control_parameters TYPE ssfctrlop.
    p_control_parameters-no_dialog = 'X'.
    p_control_parameters-getotf = 'X'.
    CALL FUNCTION v_func_name "call your smartform
    EXPORTING
    output_options = p_output_options
    control_parameters = p_control_parameters
    IMPORTING
    job_output_info = s_job_output_info.
    call function 'CONVERT_OTF_2_PDF'
    tables
    otf = s_job_output_info-otfdata
    lines = t_pdf
    and if u need more u can check below links also
    Check the below links..
    Re: Smartforms to PDF
    Re: smartform (otf) as pdf and sending as email-attachment
    VISIT THIS LINK
    Re: Smartforms to PDF
    PLZ REWARD POINTS IF IT HELPS YOU
    rgds
    anver

Maybe you are looking for

  • [SOLVED] No Sound on Fresh Install

    Well, I decided to try Arch. I was very proud of myself for managing to install everything. I even loaded KDE. I wanted to try a KDE only OS for a while. Well, all my pride was stomped out quicjky, in that I have no sound.  I did the following: 1. in

  • Flex SDK & Flash Pro

    I don't program in Flex or Flash Builder. I tend to build my app interfaces as I go, So coding in flash professional seems the way to go. It seems to me that there are a lot of extra steps designing the interface, converting it to a flex component, a

  • Saved documents showing up blank/can't type on a new document

    I went to open up a previously saved document and the error message popped up like when a file contains fonts not available on your computer, only the font on it was one I do have downloaded and had been using. The entire document was then blank and

  • Get scroll position

    hey, i'm using jdeveloper11g and I use a RichTable to display data of a ViewObject. The data associated with the view object changes and i need to update RichTable accordingly. However, as I update using Poll the scroll position of the table is chang

  • Oracle 11g stop working after installing Patch 1

    I'm new to Oracle. I installed Oracle 11g Database this weekend. The installation went well with no problems. However, after installing the base system I then installed Patch1. I had no problems installing the patch. I restarted my system and then st