Special display pattern of date and numbers in ADOBE

Hi,
    I have a doubt regarding the adobe form printing. I want a field which displays the date in a peculiar format. The format is like each digit in the date should come in each cell without any delimiter.
eg:- 12/02/2009, it should be displayed like 1 2 0 2 2 0 0 9. where each digit should be diplayed in a cell.
Regards,
Trishna

REPORT  zztest                                  .
DATA: BEGIN OF ls_split,
  1  TYPE c LENGTH 1,
  2  TYPE c LENGTH 1,
  3  TYPE c LENGTH 1,
  4  TYPE c LENGTH 1,
  5  TYPE c LENGTH 1,
  6  TYPE c LENGTH 1,
  7  TYPE c LENGTH 1,
  8  TYPE c LENGTH 1,
END OF ls_split.
DATA: lv_date       TYPE dats VALUE '20090212'.
DATA: lv_date_swap  TYPE n LENGTH 8.
DATA: lv_index      TYPE syst-tabix.
FIELD-SYMBOLS: <field>        TYPE ANY.
lv_date_swap = lv_date.
DO 8 TIMES.
  ASSIGN COMPONENT sy-index OF STRUCTURE ls_split TO <field>.
  IF <field> IS ASSIGNED.
    lv_index = sy-index - 1.
    <field> = lv_date_swap+lv_index(1).
  ENDIF.
ENDDO.
now you got every single digit of your date in a single variable, so it should be trivial now to print em like you need it.
Edited by: Florian Kemmer on Aug 31, 2010 10:09 AM

Similar Messages

  • How to display the current Date and time in xslt version 1

    i am using xslt version 1 .i want to display the current date and time in the output xml using xslt(Jdeveloper) ..i just added the namespace xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
         xmlns:ns1="urn:oracle:integration:b2b:7D30046DC68A4FA689956D8241FA3B99">
    and used thsi function <xsl:value-of select = "xp20:current-date()"/>
    but it does not works for me ..help needed????
    Edited by: user9519185 on Jan 20, 2009 3:04 AM

    Use a formula: =NOW()
    Format the cell for Date and Time, with both the Date part and the Time part displayed. Format the two parts as you wish, using the choices in the Inspector's menus.
    The cell will update each time the table is recalculated.
    (Description is for Numbers '09 (Mac), Numbers for iOS will be similar, but not necessarly identical in details.)
    Regards,
    Barry

  • Default format pattern for Date and Number

    Hi everybody,
    I'm finding it very hard: my java app runs on Tomcat 5.5, I'd like to format dates and numbers with a specific format. For example: with Locale it_it date format is "dd-mm-yyyy", my wish is to display "dd/mm/yyyy" without changing the Locale (it_it is correct). Is there an env variable to set?
    Thanks.

    gianoele wrote:
    How cai I set with a proprerty? Like -Ddate.format="dd/mm/yyyy" -Dnumber.format="###.00"?You could do that.
    Then fetch it from your app and feed it to SimpleDateFormat.

  • Format of date and numbers

    Hi,
    in Italy the format of date is DD/MM/YYYY e the formato of numbers is NNN,DD (DD means Decimal).
    I use Excel for IPAD but when I write for instance 28/03/2015 the field shows 03/28/2015, the same problem is for numbers where the comma and the dot are inverted.
    How do I change the format of date and numbers?
    Thank you in advance.
    Max

    The general format of the date is tied to the language...use US english, get US date formatting.
    You may want to poke around in excel's settings. I know the desktop version allows you to alter the date formatting, but I'm not sure if the iPad app has that. Look for 'cell formatting' in the settings and see if it's alterable.
    If not, you can try to make your template on a PC, then put that excel onto your iPad and see if it honors the cell formatting already in place.

  • I'm trying to display the current date and time on my iPad.

    First, I'm not sure this is a valid post to this forum.  If not, I'd appreciate knowg in where I can get help. 
    I have tried several ways to display the current date and time on my iPad.  None  work.  Most things I try give me complier errors but the latest code compiles but won't display the correct time. 
    Here's the dispatch code in my ViewController.m file:
    dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0ul);
        dispatch_async(queue, ^{
            [NSTimer scheduledTimerWithTimeInterval:NSTimeInterval)1.0f target:self selector:@selector(updateLabel:) userInfo:nil repeats:YES];
    Here's the updateLabel code: (which never gets executed).
    - (void)updateLabel:(id) sender {
        dispatch_sync(dispatch_get_main_queue(), ^{
        NSLog(@"Datefield Update Called");
        NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
        [dateFormatter setDateFormat:@"EEEE, MMMM dd, yyyy 'at' HH:mm  ZZZZ"];
        NSDate *dayTime = [NSDate date];
        NSString *formattedDateString = [dateFormatter stringFromDate:dayTime];
            _dateField.text = formattedDateString;
        [self.view addSubview:_dateField];
        NSLog(@"Datefield %@",_dateField.text);

    Your code is needlessly complicated and has a few problems:
    // These objects should be created only once.
    NSTimer *dateAndTimeTimer; (You might need to make this a property with a strong reference).
    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init];
    [dateFormatter setDateFormat:@"EEEE, MMMMM dd, yyyy 'at' HH:mm ZZZZ"];
    // The subview should only be added once.
    [self.view addSubview:_dateField];
    [self performSelectorOnMainThread:@selector(startDateAndTimeTimer)
                            withObject:nil
                         waitUntilDone:YES];
    -(void)startDateAndTimeTimer
        NSTimer *timer = [NSTimer scheduledTimerWithTimeInterval:1
                                                          target:self
                                                        selector:@selector(updateLabel)
                                                        userInfo:nil
                                                         repeats:YES];
        dateAndTimeTimer = timer;
        [[NSRunLoop mainRunLoop] addTimer:dateAndTimeTimer forMode:NSRunLoopCommonModes];
    -(void)updateLabel
         NSDate *dateTime = [NSDate date];
         NSString *formattedDataString = [dateFormatter stringFromDate:dateTime];
         _dateField.text = formattedDateString;
         NSLog(@"_dateField.text=%@", _dateField.text);

  • How to display planned movement date and actual movement date together?

    Hi, Professionals,
    My purpose is to list delayed outbound deliveries.
    Anyone could tell me how to display planned movement date and actual movement date?
    Appreciate your help.

    Thanks Shiva.
    I tried another way to do it. It works only for a short period of time.
    By using VL06O, I list all outbound deliveries by limiting both planned goods movement dates and actual goods movements dates to the same week I would like to inspect. Say both from 7th/11 to 14th/11.
    then I list outbound delivery list with planned goods movement date to 7th/11 but left out actual goods movements dates this time.
    In excel, I compare those two lists and filter out those unique ones because those unique documents means delayed deliveries which cannot delivery according to planned date.
    However, the "delayed" list generated by this method has some noises. Not all of documents are really delayed although most of them do.
    I'm also looking for a way to list sales documents number of these delayed delivery documents so i can retrieve order details from it such as order value.
    Help still needed.

  • How we will display the header data and item data seperately in lists

    how we will display the header data and item data seperately in lists

    REPORT z_alv_list_block.
    TYPE-POOLS: slis. " ALV Global types
    SELECTION-SCREEN :
    SKIP,
    BEGIN OF LINE,
    COMMENT 5(27) v_1 FOR FIELD p_max. "#EC NEEDED
    PARAMETERS p_max(2) TYPE n DEFAULT '02' OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    DATA:
    1st Table
    BEGIN OF gt_kna1 OCCURS 0, " Data displayed
    kunnr LIKE kna1-kunnr, " Customer number
    ernam LIKE kna1-ernam, " Name of Person who Created
    erdat LIKE kna1-erdat, " Creation date
    name1 LIKE kna1-name1, " Name 1
    END OF gt_kna1,
    2nd Table
    BEGIN OF gt_mara OCCURS 0,
    ernam LIKE mara-ernam, " Name of Person who Created
    matnr LIKE mara-matnr, " Material number
    ersda LIKE mara-e rsda, " Creation date
    brgew LIKE mara-brgew, " Gross weight
    END OF gt_mara,
    3rd Table
    BEGIN OF gt_vbak OCCURS 0,
    vkorg LIKE vbak-vkorg, " Sales organization
    kunnr LIKE vbak-kunnr, " Sold-to party
    vbeln LIKE vbak-vbeln, " Sales document
    netwr LIKE vbak-netwr, " Net Value of the Sales Order
    waerk LIKE vbak-waerk, " SD document currency
    END OF gt_vbak.
    INITIALIZATION.
    v_1 = 'Maximum of records to read'.
    START-OF-SELECTION.
    Read data
    SELECT * FROM kna1
    UP TO p_max ROWS
    INTO CORRESPONDING FIELDS OF TABLE gt_kna1.
    SELECT * FROM mara
    UP TO p_max ROWS
    INTO CORRESPONDING FIELDS OF TABLE gt_mara.
    SELECT * FROM vbak
    UP TO p_max ROWS
    INTO CORRESPONDING FIELDS OF TABLE gt_vbak.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
    EXPORTING
    i_callback_program = sy-cprog
    i_callback_user_command = 'USER_COMMAND'.
    PERFORM list_append TABLES gt_kna1
    USING '1'
    'GT_KNA1'.
    PERFORM list_append TABLES gt_mara
    USING '2'
    'GT_MARA'.
    PERFORM list_append TABLES gt_vbak
    USING '3'
    'GT_VBAK'.
    PERFORM f_list_display.
    FORM USER_COMMAND *
    FORM user_command USING i_ucomm LIKE sy-ucomm
    is_selfield TYPE slis_selfield. "#EC CALLED
    CASE i_ucomm.
    WHEN '&IC1'. " Pick
    CASE is_selfield-tabname.
    WHEN 'GT_MARA'.
    WHEN 'GT_KNA1'.
    WHEN 'GT_VBAK'.
    READ TABLE gt_vbak INDEX is_selfield-tabindex.
    IF sy-subrc EQ 0.
    Sales order number
    SET PARAMETER ID 'AUN' FIELD gt_vbak-vbeln.
    Display Sales Order
    CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
    ENDIF.
    ENDCASE.
    ENDCASE.
    ENDFORM. " USER_COMMAND
    ----< /div>
    Form list_append
    FORM list_append TABLES ut_table
    USING u_no TYPE char1
    u_tabname TYPE slis_tabname.
    Macro definition
    DEFINE m_fieldcat.
    ls_fieldcat-fieldname = &1.
    ls_fieldcat-ref_tabname = &2.
    append ls_fieldcat to lt_fieldcat.
    END-OF-DEFINITION.
    DEFINE m_sort.
    ls_sort-fieldname = &1.
    ls_sort-up = 'X'.
    append ls_sort to lt_sort.
    END-OF-DEFINITION.
    DATA :
    ls_fieldcat TYPE slis_fieldcat_alv,
    lt_fieldcat TYPE slis_t_fieldcat_alv, " Field catalog
    ls_sort TYPE slis_sortinfo_alv,
    lt_sort TYPE slis_t_sortinfo_alv. " Sort table
    DATA:
    lt_events TYPE slis_t_event,
    ls_event TYPE slis_alv_event,
    ls_layout TYPE slis_layout_alv.
    ls_layout-group_change_edit = 'X'.
    ls_layout-colwidth_optimize = 'X'.
    ls_layout-zebra = 'X'.
    ls_layout-detail_popup = 'X'.
    ls_layout-get_selinfos = 'X'.
    ls_layout-max_linesize = '200'.
    CASE u_no.
    WHEN '1'.
    Build field catalog and sort table
    m_fieldcat 'KUNNR' 'KNA1'.
    m_fieldcat 'ERNAM' 'KNA1'.
    m_fieldcat 'ERDAT' 'KNA1'.
    m_fieldcat 'NAME1' 'KNA1'.
    m_sort 'KUNNR'.
    WHEN '2'.
    m_fieldcat 'MATNR' 'MARA'.
    m_fieldcat 'ERNAM' 'MARA'.
    m_fieldcat 'ERSDA' 'MARA'.
    m_fieldcat 'BRGEW' 'MARA'.
    m_sort 'MATNR'.
    WHEN '3'.
    m_fieldcat 'VBELN' 'VBAK'.
    m_fieldcat 'VKORG' 'VBAK'.
    m_fieldcat 'KUNNR' 'VBAK'.
    m_fieldcat 'NETWR' 'VBAK'.
    m_fieldcat 'WAERK' 'VBAK'.
    m_sort 'VBELN'.
    ENDCASE.
    IF u_no CA '13'.
    MOVE 'TOP_OF_PAGE' TO ls_event-name.
    CONCATENATE 'TOP_OF_PAGE' u_no INTO ls_event-form.
    APPEND ls_event TO lt_events.
    ELSE.
    MOVE 'TOP_OF_LIST' TO ls_event-name.
    CONCATENATE 'TOP_OF_LIST' u_no INTO ls_event-form.
    APPEND ls_event TO lt_events.
    ENDIF.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
    EXPORTING
    it_fieldcat = lt_fieldcat
    is_layout = ls_layout
    i_tabname = u_tabname
    it_events = lt_events
    it_sort = lt_sort
    i_text =
    TABLES
    t_outtab = ut_table
    EXCEPTIONS
    program_error = 1
    maximum_of_appends_reached = 2
    OTHERS = 3.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDFORM. " LIST_APPEND
    Form f_list_display
    FORM f_list_display.
    DATA ls_print TYPE slis_print_alv.
    ls_print-no_print_selinfos = 'X'. " Display no selection infos
    ls_print-no_print_listinfos = 'X'. " Display no listinfos
    ls_print-reserve_lines = 2. " Lines reserved for end of page
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
    EXPORTING
    i_interface_check = ' '
    is_print = ls_print
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDFORM. " F_LIST_DISPLAY
    FORM top_of_page1 *
    FORM top_of_page1. "#EC CALLED
    PERFORM top_of_page.
    ENDFORM.
    FORM top_of_page3 *
    FORM top_of_page3. "#EC CALLED
    PERFORM top_of_page.
    ENDFORM.
    FORM top_of_page *
    FORM top_of_page.
    ULINE.
    WRITE : sy-uname, sy-title(56) CENTERED, sy-datum.
    ULINE.
    ENDFORM.
    FORM top_of_list2 *
    FORM top_of_list2. "#EC CALLED
    WRITE 'TOP OF LIST2'.
    ENDFORM.
    END OF PROGRAM Z_ALV_LIST_BLOCK ***********************

  • Is there currently a way to change this back to displaying the actually date and

    New helpdesk in version 7.4 seems to have gone back to using '1 week ago', '2 months ago' time stamps for ticket comments.
    Is there currently a way to change this back to displaying the actually date and time?
    This topic first appeared in the Spiceworks Community

    New helpdesk in version 7.4 seems to have gone back to using '1 week ago', '2 months ago' time stamps for ticket comments.
    Is there currently a way to change this back to displaying the actually date and time?
    This topic first appeared in the Spiceworks Community

  • Data display - aligning group data and carry over on new page logic - 11G

    I am fairly new to BI Publisher, so any help would be much appreciated. I am working with a standard pdf form to display Purchase Order Data. I have saved the image of the pdf as the background of the page. I have a simple table where I am inserting all the data and aligning it on the page so it appears to be in the correct place on the form.
    The form has a section containing 10 blank lines to display the PO data. Each line is .25 inches.
    The problem occurs that at the line description can have 254 characters but the space on the line allows for 51 characters. So I need to display the data something like this (for simplicity sake)
    TableA.id TableA.Description254
    Line 1 1 Blah, 1-51 characters of line descr
    Line 2 Blah blah, 52 - 102 characters
    Line 3 2 Blah, 1-51 characters of line descr
    Line 4 3 Blah, 1-51 characters of line descr
    Line 5 Blah blah, 52 - 102 characters
    Line 6 Blah blah, 103 - 153 characters
    anything that carries over needs to go to a second page with a different background image. So I have several questions.
    1. Any suggestions on how to display the PO Line, so I can substring the PO line description and display the remaining data on a following line? A second line would write the next 51 characters of data if it exists, and would not display the first column, (TableA.Id)
    2. Any suggestions on how to load the carry over data (anything over the 10 lines on the first page) and display on the following page.
    I am including a screen shot so this might make more sense. I have lightly dashed orange lines showing of my table which I use for aligning the data. It is only for reference.
    [ http://www.fifthq.com/bi.jpg|Pdf image]
    http://www.fifthq.com/bi.jpg

    Ok, just in case anyone runs into the same issue. Here was my solution.
    I added a made up record to the existing xsd template that served as a place holder for my dynamic content.
    I created an app package that has two properties.
    1. Full String
    2. Single Line String
    The Method takes in the column width as a parameter. It searches through the Full String until it finds the last available word before the column width. It then returns that as the Single Line String and updates the Full String to what's remaining.
    If I have any of the Full String remaining I keep calling the method.
    I can provide more specific details about the method if anyone needs it.

  • How can I change the language of the time and date and numbers?

    Hey
    I bought the iPhone 5 and when I setted the settings I chose the country where I live now but the time and date and other numbers because in the language of the country and not in the language that I chose which Is english
    so how can I change them?

    Go to settings >> general and checkout keyboard, international and date &amp; time.

  • Sample XSLT code to Display the Current date and time

    Hi all,
    Please Let me know code to display the system date in my target in xslt mapping.
    I am trying fn:current-datetime() function for the same.but could not get how to use it .Is it  function right  function.If so please send me the examples on the same.
    Thanks and Regards,
    Srini

    hey
    use this date:date-time()
    also have a look at this
    http://www.w3.org/TR/xpath-functions/#func-current-dateTime
    thanx
    ahmad

  • How to display absence start date and end date in workflow notification?

    Hi,
    I would like to display the absence start date and end date at
    1) Subject of workflow email notification/worklist notification OR/AND
    2) Content of workflow email notification/worklist notification.
    Appreciate if anyone can advise on this as this information is very crucial to our client.
    Thank you.
    Regards,
    Shiau Chin, Teo

    1) Subject of workflow email notification/worklist notification OR/ANDyou have to customize the subject of notification message. You can find the message using following query.
    SELECT message_type, message_name
       FROM wf_notifications notif
      where notification_id = <your notification>;> 2) Content of workflow email notification/worklist notification.
    its already there I think.

  • How do I display today's date and a date 1 month from today in livecycle designer

    Hello,
    Does anyone know how to display a future dates in 3 date fields that would be 1 month; 2 months and 3 months from today?
    I am making a sales contract form and in a date field is today's date (which can be altered if the user needs to change it).  The javascript I have is:
    if 
    (this.rawValue == null){
    var  
    msNow = (new Date()).getTime();
    var  
    d1 = new Date(msNow); this.rawValue
    = util.printd("mmm/dd/yyyy", d1);}
    else  
    { this.rawValue
    = rawValue;
    Then in the next date field i need to display the date 1 month from today
    The third date field 2 months from today
    the fourth date filed 3 months from today.
    Any suggestions would be greatly appreciated.

    Hi Peter,
    If you need to be more exact than adding 30 days then you can use the following code;
    function 
    addMonth(date){
      var year = date.getFullYear();  
      var month = date.getMonth();  
      var day = date.getDate();  month= (month % 12) + 1;  year
    += parseInt(month / 12); 
      var days = daysInMonth(month, year);  
      if (day > days)  {
        day= days;   }
      return new Date(year, month, day);}
     function  daysInMonth(iMonth, iYear){
      return 32 - new Date(iYear, iMonth, 32).getDate();}
    You need to pass in a Date object to addMonth so (assuming DateTimeField1 is your date field);
    NextMonth.rawValue= util.printd("mmm/dd/yyyy", addMonth(
    = util.printd("mmm/dd/yyyy", addMonth(
    Date.parse(DateTimeField1.formattedValue));
    Bruce

  • Display current system date and time in a form

    Hello experts from around the world,
    I have this little minor challenge that i am having difficulty cornering.
    I have a form and i want to display the current system date and time so that when i save the form its saves it with the date displayed.
    I have tried sysdate, &sysdate and &sysdate. in the default part with static text with sessions state submissions.
    So any help or suggestions would be of great help :)
    Thanks

    hi kevin
    write the below script in HTML header.
    <script type="text/javascript">
    <!--
    var d = new Date();
    var curr_hour = d.getHours();
    var curr_min = d.getMinutes();
    document.write(curr_hour + " : " + curr_min);
    </script>
    it will give the time u can assign this variable to text box item variable.
    or else check the below java script link
    http://www.mcfedries.com/JavaScript/datetime.asp
    cheers,
    Shan

  • How to display application server date and time?

    Hi Friends,
                    I am getting error when i am trying to display default date,time and client.
    I have designed a screen where DATE, TIME and CLIENT are 3 fields in the screen this 3 fields i have to display defaultly date,time and client of the application server.
    In the data declarations i have declared like...
    DATA: DATE LIKE SY-DATUM,
               TIME LIKE SY-UZEIT,
              CLIENT LIKE SY-MANDT.
    In the PBO screen source code i am writeing like...
    write: 'DATE', SY-DATUM, / 'TIME', SY-UZEIT, / 'CLIENT', SY-MANDT.
    But i am not able to display the output please can anyone point my mistake where i am going useful will be rewarded.
    Thks

    Hi Reddy,
    I will tell u how to get this done .
    Check all these screen shots .No work at all .
    [Screen shot 1|http://bp3.blogger.com/_O5f8iAlgdNQ/R-icwCm1qvI/AAAAAAAAA9k/7gshn3AKOZ0/s1600-h/date1-715845.jpg]
    [Screen shot 2.|http://bp1.blogger.com/_O5f8iAlgdNQ/R-icwim1qwI/AAAAAAAAA9s/QMtdiWyB-nY/s1600-h/date2-718517.jpg]
    [Screen shot 3|http://bp2.blogger.com/_O5f8iAlgdNQ/R-icwym1qxI/AAAAAAAAA90/4GnH-bwAPEo/s1600-h/date3-719013.jpg]
    There is no work at all . only onething what u have to do is, give field length 8 on the screen for Time field. thats it .
    Regards,
    Venkat.O

Maybe you are looking for

  • Error message - can't open up current catalog

    I am getting this error out of nowhere. yesterday I could get into Lightroom fine. Then last night I started getting an error that pops-up with a "ringing bell" sound and I have to CTRL ALT DELETE out of the program because none of the buttons work.

  • Invoice details..

    HI pals, I have just done a tutorial in SAP XI. The Scenario was to Get Material from SAP R/3 into a thrid party system. So the appropriate BAPI called was BAPI_MATERIAL_GET_DETAIL. Now I have to try another Scenario, I am jotting down the Scenario b

  • Master Table for Work Items from BSP Application

    hello guys, just want to ask if there is a master table for work items (and other details) from BSP application?

  • 2 AIR applications directly communicating with each other in real time

    Building a installation that requires 2 different kiosks to communicate with each other. I'd like to use Adobe AIR to create the individual applications. My question is Is it possible for 2 separate AIR applications to DIRECTLY communicate with each

  • Add alias with rules file

    I have existing members and I want to add an alias to the members. Two columns in the data file, the Customer_ID and the Customer_Name. Customer_ID already exists in Essbase, I want to add Customer_Name as the alias. I have built a rules file to use