Need some example of  'SET DATE MASK'.

Hi Gurus,
I need come example of 'SET DATE MASK ' & 'SET TIME MASK'.
Thanking you.
Subash

Hi Subasha,
/ : SET DATE MASK = 'MMMM DD, YY'
This displays the date as : September 26, 07.
YY Year (2 digits)
YYYY Year (4 Digits)
MM Month (2 Digits)
MMM Month Name (Abbreviated)
MMMM Month Name (Full)
DD Day as two digits
DDD Day name (Abbreviated)
DDDD Day name
Using the SET DATE MASK causes the subsequent date fields to be displayed using the same formatting. To return to the default formatting use the following command:
/: SET DATE MASK = ' '
/: SET TIME MASK = 'HH hrs MM min SS sec'
This displays the time as : 11 hrs 43 min 37 sec'
The following are the codes that can be used in the time mask:
HH Hours
MM Minutes
SS Seconds
The time formatting can be reset to the default setting using:
/: SET TIME MASK = ' '

Similar Messages

  • Need some examples for smartforms and scripts

    hi
    now i am working in scripts and smartforms. so i need some examples and some information for scripts and smartforms. where i can find that information.

    hi jyothsna,
    i have given below a simple example
    this is the report program,
    *& Report  ZSCRIPT1                                                    *
    REPORT  ZSCRIPT1                                .
    TABLES : EKKO,
             EKPO,
             KNA1,
             USR01,
             MARA,
             MAKT.
    DATA : BEGIN OF ZOPTION.
            INCLUDE STRUCTURE ITCPO.
    DATA : END OF ZOPTION.
    PARAMETERS: P_EBELN LIKE EKKO-EBELN,
                P_EBELP LIKE EKPO-EBELP.
    CLEAR EKPO.
    SELECT SINGLE * FROM EKPO
           WHERE EBELN = P_EBELN AND
                 EBELP = P_EBELP.
    CLEAR KNA1.
    SELECT SINGLE NAME1 FROM KNA1
                  INTO KNA1-NAME1
                  WHERE KUNNR = EKPO-KUNNR.
    CLEAR MAKT.
    SELECT SINGLE MAKTX FROM MAKT
                  INTO MAKT-MAKTX
                  WHERE MATNR = EKPO-MATNR AND
                        SPRAS = SY-LANGU.
    CLEAR USR01.
    SELECT SINGLE * FROM USR01 WHERE BNAME = SY-UNAME.
    ZOPTION-TDDEST    = USR01-SPLD.        "Output device (printer)
    ZOPTION-TDIMMED   = 'X'.               "Print immediately
    ZOPTION-TDDELETE  = 'X'.               "Delete after printing
    ZOPTION-TDPROGRAM = 'ZPQRPRNT'.        "Program Name
    CALL FUNCTION 'OPEN_FORM'
         EXPORTING
             APPLICATION        = 'TX'
            ARCHIVE_INDEX      = ' '
            ARCHIVE_PARAMS     = ' '
             DEVICE             = 'PRINTER'
             DIALOG             = ' '
             FORM               = 'ZFORM1'
             LANGUAGE           = SY-LANGU
             OPTIONS            = ZOPTION
         IMPORTING
              LANGUAGE           = SY-LANGU
           EXCEPTIONS
             OTHERS     = 1.
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
             ELEMENT       = 'HEADER'
            FUNCTION      = 'SET'
            TYPE          = 'BODY'
             WINDOW        = 'HEADER'
         EXCEPTIONS
              ELEMENT       = 1.
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
             ELEMENT       = 'MAIN'
            FUNCTION      = 'SET'
            TYPE          = 'BODY'
             WINDOW        = 'MAIN'
         EXCEPTIONS
              ELEMENT       = 1.
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
             ELEMENT       = 'FOOTER'
            FUNCTION      = 'SET'
            TYPE          = 'BODY'
             WINDOW        = 'FOOTER'
         EXCEPTIONS
              ELEMENT       = 1.
    CALL FUNCTION 'CLOSE_FORM'
         EXCEPTIONS
              UNOPENED = 1
              OTHERS   = 2.
    This is the layout Set
    Layout set           Z_TESTSCRIPT
    Description          Test SAP script
    Standard attributes
      First page          FIRST
      Default paragraph   P1
      Tab-stop            1.00 CH
      Page format         DINA4
      Orientation         Landscape
      Lines/inch            6.00
      Characters/inch      10.00
    Font attributes
      Font family         COURIER
      Font size           12.0 Point
      Bold                No
      Italic              No
      Underlined          No
    Characters    Attributes
      B           Character String Bold
                  Standard attributes
                  Marker            No
                  Font attributes
                  Bold              Yes
    Paragraphs    Attributes
      P1          Default Paragraph
                  Standard attributes
                  Line spacing      1.00 LN
                  Left margin       1.00 CM
                  Alignment         Left-aligned
                  Font attributes
                  Font family       TIMES
                  Font size         12.0 Point
      P2          Header Paragraph
                  Standard attributes
                  Line spacing      1.00 LN
                  Left margin       4.50 CM
                  Alignment         Left-aligned
                  Font attributes
                  Font family       TIMES
                  Font size         18.0 Point
                  Bold              Yes
      P3          Undelined paragraph
                  Standard attributes
                  Line spacing      1.00 LN
                  Alignment         Left-aligned
                  Font attributes
                  Font family       TIMES
                  Font size         12.0 Point
                  Underlined        Yes
    Windows       Attributes
      MAIN        Main window
                  Window type       MAIN
      HEADER      Main window
                  Window type       CONSTANT
      FOOTER      Main window
                  Window type       CONSTANT
    Pages         Attributes
      FIRST       First Page
                  Standard attributes
                  Next page         FIRST
                  Page counter
                  Mode              START
                  Numbering type    Arabic numerals
                  Page window
                  HEADER               Left margin          00.00 CM
                                       Upper margin         00.00 CM
                                       Window width         20.00 CM
                                       Window height        04.00 CM
                  MAIN                 Left margin          00.00 CM
                                       Upper margin         05.00 CM
                                       Window width         20.00 CM
                                       Window height        20.00 CM
                  FOOTER               Left margin          00.00 CM
                                       Upper margin         25.00 CM
                                       Window width         20.00 CM
                                       Window height        04.00 CM
    Text elements for following windows:
    HEADER
    Element HEADER
    /: POSITION XORIGIN 2 CM YORIGIN '-0.5 CM'
    /: BOX XPOS 1 CM YPOS 1 CM WIDTH 18 CM HEIGHT 1 CM FRAME 10 TW INTENSITY 10
    P2     ,,<B>TEST PURCHASE ORDER</>
    MAIN
    Element MAIN
    P1  <B>Customer/Supplier:</>,,&KNA1-NAME1&
    P1  <B>PO No:</>,,&EKPO-EBELN&
    P1  <B>Part No:</>,,&MAKT-MATNR&
    P1  <B>Description:</>,,&MAKT-MAKTX&
    P1  <B>Quantity:,,</>&EKPO-MENGE&
    P1  <B>Sign:</>&uline(81)&
    P1  <B>Date:</>&EKKO-AEDAT&
    FOOTER
    Element FOOTER
    /: POSITION XORIGIN 2 CM YORIGIN '-0.5 CM'
    /: BOX XPOS 1 CM YPOS 1 CM WIDTH 18 CM HEIGHT 1 CM FRAME 10 TW INTENSITY 10
    P2     ,,<B>PLEASE SIGN THE PO BEFORE DISPATCH</>
    <b>reward if useful :)</b>

  • Set date mask

    Hi Gurus, I have to set date as per the company code REGUP-BUKRS using sap-script.  I am unable to get the date..
    /: IF &REGUP-BURKS& EQ 2000
    /: SET DATE MASK = 'DD/MM/YYYY'
    &REGUP-BLDAT&
    /: ENDIF
    This there is anything wrong in this code  ?

    Please use below syntax in SE71 Text editor ( Before displaying date)
    /:  PERFORM GET_DATE_FORMAT IN PROGRAM ZGET_DATE
    /:  USING &REGUP-BLDAT&
    /:  CHANGING &DATE&
    /:  ENDPERFORM
    Now goto SE38 -> create program(ZGET_DATE) -> now use below syntax
    FORM GET_DATE_FORMAT
      tables in_tab  structure itcsy
             out_tab structure itcsy.
    lOCAL VARIABLES
    data: LV_DATE(10) TYPE C,
             LV_DAY(2),
            LV_MON(2),
           LV_YEAR(4),
           LV_FDATE(10) TYPE C.
    CLEAR : LV_DATE,
                     LV_DAY,
                    LV_MON,
                    LV_YEAR,
                    LV_FDATE.
    read table in_tab with key NAME = 'REGUP-BLDAT'.
      if sy-subrc eq 0.
        LV_DATE = IN_TAB-VALUE
      endif.
    Date Formatting
    lv_year = lv_date+0(4).
    lv_mon = lv_date+5(2).
    lv_day = lv_date+8(2).
    concatenate lv_day '/' lv_mon '/'  lv_year into lv_fdate.
    read table out_tab with key NAME = 'DATE'.
      if sy-subrc eq 0.
        out_tab-value = lv_fdate.
    modify out_tab index sy-tabix.
      endif.
    ENDFORM.
    You can use same logic for all dates.
    Thanks
    Seshu

  • Set date Mask in Sapscript

    hi all,
    Requirement is to diplay todays date in MM.DD.YYYY format in a smartform layout.
    We have used the command
    /:SET DATE MASK = 'MM.DD.YYYY'
    /:SET COUNTRY 'US'
      &sy-datum&
    But the date appears in the user format DD.MM.YYYY.
    Whys the set date command not working here as expected ?
    Your ideas appreciated.
    Rgds,
    stock

    Hi  Stock Sys,
    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.
    Eshwar.

  • Need some examples how to handle execptions in bpm

    hi guys,
    can any one provide an link where i can get some examples how to handle exceptions and fork etc., in bpm
    regrds
    viswa

    Hi,
    Check this SAP help.
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/33/4a773f12f14a18e10000000a114084/content.htm">http://help.sap.com/saphelp_nw04s/helpdata/en/33/4a773f12f14a18e10000000a114084/content.htm</a>
    Regards,
    Sudharshan.

  • I need some examples of invoice templates

    Hi, i'm new in xml publihser and i would like to receive some examples of complex templates (exemplos of invoice, order purchasing or others. Send to my email [email protected]
    Thanks

    Not sure if this would fit in your definition of complex templates, but here is link that provides a zip file with the RTF and sample XML file.
    Blog by Tim Dexter: http://blogs.oracle.com/xmlpublisher/2007/10/here_are_my_terms_conditions.html
    Look for this statement at the end of the post: 'All files available here and the pertinent bits in the template highlighted in red.' and get the zip file.
    Thanks!

  • Need some logic for displaying data from Internal Table

    Hi Guys,
                  I have a Internal Table with multiple entries.
    My ITAB looks like below.
    PN  VBELN  MATNR MATKX
    1     111       P-101    XXX
    2     121       P-102    XYZ
    2     112       P-103    ABC
    3     134       P-104    DEF
    3     124       P-105    EFG
    Now my requirement is I need to display the out put as follows through ALV or normal display.
    <Header>                                                  <Date>
                                                                      <Time>
    PN = 1
    VBELN   MATNR  MATKX
    111         P-101   XXX
    <Footer>
    Some gap (May be a line to differentiate)
    <Header >                                                <Date>
                                                                     <Time>
    PN = 2
    VBELN   MATNR  MATKX
    121         P-102   XYZ
    112         P-102   ABC
    <Footer>
    Some gap (May be a line to differentiate)
    <Header >                                                <Date>
                                                                     <Time>
    PN = 3
    VBELN   MATNR  MATKX
    134         P-104   DEF
    124         P-105   EFG
    <Footer>
    Thanks in Advance.
    Prasad.

    HI,
    Use:
    Data: W_PNlike PN.
    LOOP AT ITAB.
    If Itab-PN ne W_PN.
    <Header> <Date>
    <Time>
    PN = 1.
    VBELN MATNR MATKX   >>>>>>>>>>>>>>>First Line enter
    ELSE.
    VBELN MATNR MATKX  > line Next entry
    ENDIF.
    W_PN = ITAB-PN.
    AT-END PN.
    <Footer>
    ENDAT.
    ENDLOOP.
    Hope this resolve your issue.
    Regards,
    Gurpreet

  • I need some examples

    Does one know where I can find some well documented examples how to use OWF, how to create plsql code with ?
    The documentaitions from oracle are not usable.
    regards

    Hi! I'm new in this, Where I find this Zip File?? If some one have any example I try with Oracle Workflow Designer, and try with OW4J and Jdev 9.05 , 10.1.3 but I don't understand how work the Oracle Workflow Some one have any documentation or functional example????
    Please I need Help :'( Pleaaaseeeeeeee some one.

  • Need some advice on setting up network through distribution panel

    We just moved into a new house with a distributed wiring panel and I currently have my wireless network up and running. Problem is, I also have ethernet jacks throughout the house that I would like to use for Internet connectivity (the panel didn't include a network module so they just dumped the cabling runs in there). I currently have a cheapo cable modem in the panel, with one ethernet port, and I ran it out to my jack where my Time Capsule is located, so Airport is working fine. Now I need to get some of those other ports working in the house so I can use them for wired connections if I need them.
    I tried using an 8-port switch in the panel. and I get connectivity out to the jacks, but I can't connect to the Internet on our Macbooks. So, I'm guessing I would need to use a router in the panel instead. So my questions are ... Would my Airport network through the TC still work when connected through a router, or would I need to reconfigure a bunch of stuff? And do routers usually require a lot of setup, or are they pretty much PNP? I'm fairly new at this stuff and know about enough to get me into trouble. Thanks!
    Message was edited by: Jimintexas1

    Hi Jimintexas,
    My home is also wired with 37 data jacks and 32 video, with 3 distributed panels( w/16 port gigabit switches) in various areas. My cable modem is also in a different location than the airport. I found that instead of adding routers and such, that as long as I had 2 jacks in the same location, I could connect the cable modem ethernet port directly to the WAN port for the AEBS (TC in your case) by patching the jacks at the panel, and then I connected the LAN port back to any of the switches (that are all connected) through the second jack at the location. I don't know what your distribution panel setup is but chances are it is just 110 punchdowns with standard cable patches so this is fairly easy to accomplish.
    Hope this helps,
    Jamy
    Message was edited by: Jamy

  • Need some hints for evaluating data from Central Performance History

    Hi Experts,
    I am pretty new to all the BI-stuff and hopefully someone can provide some hints. I got the requirement to read data (CPU usage/peaks) from central performance history of "system a" into "bi system" to generate overviews/charts/etc
    Now I guess there might be a standard report/info cubes and stuff which will help to solve this.
    I would really appreciate if someone could throw me a few keywords about this topic.
    Thanks in advance!

    Hi David,
    Thanks, I hadn't looked at the note.
    Section 2 - history of all connected systems showed me what to do to collect the data. I had seen that in the setup but not understood the implications of it fully. The note explained it much clearly than the SAP help.
    Thanks again,
    Gareth

  • Need some example to study but could not find sh.rpd and sh folder

    Dear all,
    I am new for OBIEE and want to use sh example to study.
    But I am so puzzle that I searched each space of the computer and could not find sh.rpd and sh folder.
    For some reason, I can't re-install dataware house.
    Is there someone could attach the sh folder and sh.rpd?
    Million thanks for any helps!

    hi
    see this
    http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/bi_admin/biadmin.html
    here you can download the sh rpd.. .

  • Neede some example

    Hi guys,
    can anyone give an example for IDOC to FILE scenario?
    like for FILE 2 IDOC posting purchase orders form a third party system to SAP R/3 system.like this can anyone give an example for IDOC to FILE?

    Refer the below link
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters - IDoc to File
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit - File to RFC
    /people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping - Any flat file to any Idoc
    Pls reward if useful

  • Need code example for setting a label text

    Hello,
    Lets say I have a label called testLabel and I would like to put it's text at the doInit() method of my view.
    How do I do that?

    Hi Roy,
    if you want to set the label directly without setting it thru context variable then its part of the dynamic programming of WD. So u can do that only in wdDoModifyView method. Obtain the reference of the label object from the view object and set the text property of it with the desired value.. like below
    public static void wdDoModifyView(IPrivateImageAppView wdThis, IPrivateImageAppView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
        //@@begin wdDoModifyView
        IWDLabel myLabel = (IWDLabel)view.getElement("testLabel");
        myLabel.setText("Hello this is a Label");
        //@@end
    this should solve ur problem...
    regards,
    Shubhadip

  • Need some help regarding value date

    hiii experts...i want little clarification about value date and its effects... i searched scn and google but my issue is like...when we receive cheque today i.e 11/06/2014... it will be come in bank a/cs nearly on 14/06/2014... so if we write the value date 14/06/2014... will that bank ledger show effect on 14/06/2014... moreoveer the user posted a entry development server for 1/3/2014 and gave value date of 1/4/2014.. now in faglb03... how it will reflect..i know its basic question but i didnt find any solution through searching soo posted... please guide me..
    Regards
    Abhay

    hey mani... thankss for the reply... its shows the meaning which i understood but the effect in ledger... when it will show... value date or posting date??
    e.g
    a customer gives cheque today 11/6/2014.. user deposits cheque today and it will come into bank account near on 14/6.2014..
    IN SAP
    user does entry today i.e 11/06/2014
    in bank g/l... he gives value date 14/06/2014... now when he posts the entry... the entry will shown in ledger on 11/06/2014... but the actual amount will come in 14/06/2014... soo my question is ... whts the user of value date then if he is posting the document on posting date

  • Need some help with setting up paypal cart

    working on a site and we are usin paypal for the payment
    process...
    the site is setup to allow multiple selections of items and
    options per
    item..
    If we use the Add to cart option i have to issue a button for
    each item /
    option so that the costs are correct once its time to
    checkout.
    If we use the Cart upload method, i can send the details up
    to paypal, but
    the transaction has to be completed then and they cannot
    continue shopping
    if there are more items they want to purchase..
    can anyone offer any suggestions.. maybe some good sites on
    how to gather
    all item selections thru-out the site so once they are done
    they can be
    taken to a confirmation page that has everything listed and
    if correct they
    can complete at once... or is there a way to post items to
    paypal based on
    item selections.. in other words...
    I select item #1 and option #1 for that item
    on the same page i select another option for that item..
    So when i click on the add to cart i want the shopping cart
    to have the
    following show up on the cart
    #1 Item big picture $25.00
    #1 - Nice frame $15.00
    #2 - Glass cover $5.00
    So i would like to be able to submit 3 seperate items to
    paypal with 1
    button... currently each button is configured per item..
    I can add option fields to the submission, but those do not
    have prices
    associated with them, so the nice frame and glass cover just
    show up as
    options and no cost so the customer will not be charged.
    any help would be great.
    ASP, SQL2005, DW8 VBScript, Access

    Please list each step that you are performing.
    What happens after each step?
    It will really help us if you could provide the operating system that your Mac or PC is using....or whether you are trying to setup the Time Capsule with an iPhone or iPad.

Maybe you are looking for

  • Error during PO creation "Total BED % rate exceeds 100 % "

    Hi. Its concerned to Indian Excice. Error during the creation of PO is " Total BED % rate exceeds 100 % " , ( Message no. 8I453). And you pls note in J1ID its 16% maintained for that perticular chapter id and its 100% for BED in tax code. Can you pls

  • Mail attachment .ics is transformed to .msg and lost content

    Hello, I've a little problem in sending a mail with attachment with SO_NEW_DOCUMENT_ATT_SEND_API1 The System is ECC6 I've made a little function to generate and send a mail with an ICS file attached (iCal, i send a meeting request) My problem is when

  • Line break as SQL terminator?

    Hi, I typically build up a large worksheet of SQL statements and it is a pain in the neck to have all of them as properly formed SQL along with a semi-colon. Sometimes also plain text is pasted in to be used as literal values in SQL but in itself is

  • I am getting an error message about the bit size on my computer. How can I find out this information

    Hi I am having difficulty installing adobe pro on my computer. I am getting an error about the bit size on my computer. How do I find that information?

  • Stop of Weblogic Server- WLS_Forms !

    Hi all, I m working on Forms/reports 11gr2 64-bit with Weblogic Server 10.3.6. To stop of Weblogic Server - WSL_Forms/Reports, it has two option; 1. Stop Weblogic Server - WLS_FORMS    (option under Classic Instance/Form Services)., which asks for us