Name_in(date field) is converted in which format

using name_in with a date parameter is automatically converted to dd-mon-yyyy character format. How to change this returning format?

Can you please give us some more information . I mean elaborate your question
using name_in with a date parameter is automatically converted to dd-mon-yyyy character format. How to change this returning format?
in my library
IF par_param_block IS NOT NULL THEN
GO_BLOCK(par_param_block);
ls_first_item := par_param_block||'.'||NAME_IN('system.current_item');
ls_current_item := NAME_IN('system.current_item');
--Dynamically get parameters from PARAM block (from forms)
--pass on ITEM NAME / ITEM VALUE in (From the PARAM block into  the sy_print form - as parameters !!!!)
i := 0;
LOOP
IF GET_ITEM_PROPERTY(par_param_block||'.'||ls_current_item, ITEM_TYPE) IN ('LIST', 'TEXT ITEM', 'RADIO GROUP', 'CHECKBOX') THEN
i := i + 1;
ADD_PARAMETER(pck_report_pl, 'PL'||i, TEXT_PARAMETER, ls_current_item);
ADD_PARAMETER(pck_report_pl, 'PV'||i, TEXT_PARAMETER ,
NAME_IN(par_param_block||'.'||ls_current_item));
--- for date fields the name_in returns the date in this format dd-mon-yyyy ----
END IF;
NEXT_ITEM;
ls_current_item := NAME_IN('system.current_item');
EXIT WHEN ls_first_item = par_param_block||'.'||ls_current_item;
END LOOP;

Similar Messages

  • I am working in Adobe Acrobat 9 Pro and just created a pdf form from a MS Word document. I need to find out how to have a date field in my form which will update automatically. Can some one out there help me?

    I am working in Adobe Acrobat 9 Pro and just created a pdf form from a MS Word document. I need to find out how to have a date field in my form which will update automatically.

    Update automatically under which circumstances, exactly?

  • Internal table data 1E2 automatically convert to scientific format

    Dear all,
    I have been searched for solution moths from the forums and tried all possible methods, but still no way to solve my above problem.  I found a way to solve it partially for us, but may be very helpful for others who meet similly case like mine, so I posted here.
    my problem is when I export my internal table data to Excel, the Cell data with 1E2 auto becomes 1.00E02, and 1E8 becomes 1.00E08, we need it to be 1E2 and 1E8 in excel.
    you can recreate my problem by
    1,  input 1E2 into your Microsoft Excel, then Enter, it will auto change into scientific format. which is we do not want.
    2, use any of your SAP system open any table as long as there is a Char (>3) field in that table. add some
    data entry in that field in the form "any amount (<15) of numeric 1 to 9"E"any one or two numeric 1 to 9". such as, 123E2, 1234E12 etc. then save this table's data to local file spread sheet, or use any FM to download it to a Excel file, when you open this
    file by Excel, the cell with above form will display as scientific. but
    if you put three or more numeric after the "E", such as 123E123 it will
    display correctly.
    what I have done:
    I searched in SCN for similar thread:
        Export to Excel 2007 - item number problem
        Exceding the limit of numbers in Excel at target side
        Excel download cell format problem
        Formating as Text in excel through SAP
        Converting of amount field into excel file through GUI DOWNLOAD
        Data downloaded to excel gets converted to exponential format.
        Problem with Excel download   and scientific number
        Re: Issue in displaying numbers in Excel?
        CSV Flat File Data Problem (Number converting to Scientific Notation)
    Tested accordingly, But none of these works in our case. because our
    ultimate receiver of email attachment will be external third party, we cannot ask
    them to change anything in their Excel.
    Search Microsoft help about Excel, http://support.microsoft.com/kb/214233,
    and it says this "Automatic Number Formatting" is a normal behaviour of excel.
    no way to turn it off, the "work-around" way that Microsoft provides is not suitable for our
    case.
    We test CL_iXML recently arrording to weblog http://wiki.sdn.sap.com/wiki/display/Snippets/FormattedExcelasEmailAttachment
    it successful controled the format. so this could be a solution for others whose internal table size is small. but our 2MB internal table bocome 6MB when converted to xml file attachment, which cannot be received by our end user's mail box. too big.
    So please advise your ideas.
    Many thanks in advance!
    Peter Ding
    Thank you very much for your time!

    Hi,
    You can achieve this by describing the spreadsheet in XML with the help of the DOM classes.
    The later releases of Excel can read and save spreadsheets as XML, providing your release supports this you can achieve it.
    Check out the following Wiki
    [Excel - XML|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/exporting%2bdata%2bto%2bexcel%2b-%2bxml%2bto%2bthe%2brescue]
    Regards,
    Darren

  • Formating Invoice Date field to display in Japanese format 2012年2月22日

    Hi ,
    I need expert help in Crystal reports for formatting a field which contains date in Japanese format.
    I need to develop a Japan report that has invoice date as 2012年2月22日 which means 22-Feb-2012.
    Thanks,
    Ravi

    Thanks.. you saved my time.
    I have found the solution for this issue
    totext(year({shiphead.ShipDate}),0) & '年' & totext(month({shiphead.ShipDate}),0) & '月' & totext(day({shiphead.ShipDate}),0) & '日'
    However your solution looks good. Short and sweet.
    totext({shiphead.ShipDate}, 'yyyy年MM月dd日')
    Thanks,
    Ravi

  • Date field in DD.MM.YYYY format printing as MM.DD.YYYY

    HI all,
    There is a DATE field FKDAT in an invoice whose value is in DD.MM.YYYY format (01.07.2010).
    In the print program, this value is being passed into a CHAR field. However, when it gets printed it prints in MM.DD.YYYY format (07.01.2010).
    I have already checked the user settings under Own Data and it is in the DD.MM.YYYY format.
    Please advise.
    Thanks and regards,
    Anishur
    Moderator message: date formatting questions = FAQ, please search before posting.
    locked by: Thomas Zloch on Aug 12, 2010 4:08 PM

    Hi ,
    In the invoice printing program you should use 'WRITE'  syntax  which will write the date as per user's date format.
    e.g  write it_tab-fkdat to gv_date.
    Declare gv_date as character 10.
    Narayan

  • Data is not converting in XML format in output while download in report

    Hi All,     While downloading the report in XML format value '&' is not changing its XML format '&amp', but showing in debug mode and sam thing while download its not showing in output. showing in debug like; MS NA - DCS Tooling & Automation but in output showing the data like:  MS NA - DCS Tooling & Automation because of this getting issue. Please help me out . Thanks and Regards Sankil

    In that case, it is correct.
    Try replacing & with &amp; before downloading xml in case you want & to appear as &amp; in web browser view.

  • Update Date field with mm/dd/yyyy format

    I have a Field with Date Type then I have to update it with sysdate but only with the mm/dd/yyyy (not TIME)
    I make:
    UPDATE TABLE
    SET DATE_FIELD = to_date(to_char(sysdate, 'mm/dd/yyyy'),'mm/dd/yyyy')
    Is There a better way to do it?????
    Thanks!

    You can use
    trunc(sysdate)
    for the insert.
    Regards,
    Gerd

  • Camcorder tapes converted to watch on Apple TV-convert to which format/size

    A friend has asked me to transfer several old sony camcorder tapes to DVD. He also has an Apple TV and wants to store the tape footage as a digital file, so he can watch on Apple TV.
    I have a Mac Pro and FCE4. What is the recommended file format and size I should produce video files for Apple TV. On a large cinema screen tv, the footage has to be of a reasonable quality. I was thinking about 2 - 3 GB per 90 mins of footage. I am new to producing files for Apple TV, so any help much appreciated.
    Thanks in advance, Matt

    MATT-MAC wrote:
    A friend has asked me to transfer several old sony camcorder tapes to DVD. He also has an Apple TV and wants to store the tape footage as a digital file, so he can watch on Apple TV.
    I have a Mac Pro and FCE4. What is the recommended file format and size I should produce video files for Apple TV. On a large cinema screen tv, the footage has to be of a reasonable quality. I was thinking about 2 - 3 GB per 90 mins of footage. I am new to producing files for Apple TV, so any help much appreciated.
    Thanks in advance, Matt
    I could be wrong but I thought that an AppleTV output format was built-in with Apple's video editing software? If you use that you should have no issues.

  • How to display date field in ALV in format 'YYYY-MM-DD'?

    Hi experts,
    I am not getting displayed the date field in ALV in the format 'YYYY-MM-DD' if it is different than my user setting's format (DD.MM.YYYY).
    Tried with the edit mask
    LVC_S_FCAT-EDIT_MASK = '____-__-__'  but it does not work.
    I could not find the conversion routine for this. Is it possible to write customer conversion routine?
    I have to use DATE field, otherwise if I display this format in CHAR10 field , sorting in ALV does not work for this field.
    PLEASE ANY HELP!
    Kind regards,
    Danijela

    Hi,
    Use FM FORMAT_DATE_4_OUTPUT.
    TYPE-POOLS : slis, KKBLO.
    TYPES: BEGIN OF t_data,
           sel     TYPE char1,
           matnr   TYPE matnr,
           bldat   type char10,
           END OF t_data.
    DATA: it_tab TYPE STANDARD TABLE OF t_data,
          it_fcat TYPE slis_t_fieldcat_alv.
    DATA: wa_tab TYPE t_data,
          wa_fcat TYPE slis_fieldcat_alv,
          wa_layout type SLIS_LAYOUT_ALV.
    data: lv_repid    TYPE syrepid.
    data : lv_date    type NLEI-IBGDT,
           lv_outdate type RN1DATUM-DATEX,
           lv_format  type RN1DATUM-FORMAT value 'YYYY-MM-DD'.
    lv_repid = sy-repid.
    lv_date = sy-datum.
    CALL FUNCTION 'FORMAT_DATE_4_OUTPUT'
      EXPORTING
        datin         = lv_date
        format        =  lv_format
    IMPORTING
       DATEX         = lv_outdate.
       move lv_outdate to wa_tab-bldat.
    wa_tab-matnr = '0000001'.
    APPEND wa_tab TO it_tab.
    lv_date = sy-datum + 1.
    CALL FUNCTION 'FORMAT_DATE_4_OUTPUT'
      EXPORTING
        datin         = lv_date
        format        =  lv_format
    IMPORTING
       DATEX         = lv_outdate.
       move lv_outdate to wa_tab-bldat.
    wa_tab-matnr = '0000002'.
    APPEND wa_tab TO it_tab.
    lv_date = sy-datum + 2.
    CALL FUNCTION 'FORMAT_DATE_4_OUTPUT'
      EXPORTING
        datin         = lv_date
        format        =  lv_format
    IMPORTING
       DATEX         = lv_outdate.
       move lv_outdate to wa_tab-bldat.
    wa_tab-matnr = '0000003'.
    APPEND wa_tab TO it_tab.
    wa_fcat-fieldname = 'SEL'.
    wa_fcat-ref_fieldname = 'XCHPF'.
    wa_fcat-ref_tabname = 'MARA'.
    wa_fcat-edit = 'X'.
    wa_fcat-checkbox = 'X'.
    APPEND  wa_fcat TO  it_fcat.
    CLEAR :  wa_fcat.
    wa_fcat-fieldname = 'MATNR'.
    wa_fcat-ref_fieldname = 'MATNR'.
    wa_fcat-ref_tabname = 'MARA'.
    APPEND  wa_fcat TO  it_fcat.
    CLEAR :  wa_fcat.
    wa_fcat-fieldname = 'BLDAT'.
    wa_fcat-ref_fieldname = 'BLDAT'.
    wa_fcat-ref_tabname = 'BKPF'.
    APPEND  wa_fcat TO  it_fcat.
    call 'REUSE_ALV_GRID_DISPLAY'' after this
    Edited by: Ankur Parab on Oct 1, 2009 2:50 PM
    Edited by: Ankur Parab on Oct 1, 2009 2:51 PM

  • Date Field in Hierarchical ALV

    Hello Friends,
    I have a few fields in my Hierarchical ALV output which are initially hidden.
    When I choose to display these fields by changing the Layout the date fields come out in the form
    MMDDYYYY
    I need those fields as 
    MM/DD/YYYY
    The date fields which are NOT hidden initially  are in the format MM/DD/YYYY. No problem there.
    When I go to settings and choose column width optimize I am then able to see these date fields as MM/DD/YYYY.
    In My code I already set this col width to optimize. It is also working . But for fields which are hidden initially I have to explicitly set the width optimize again .
    This problem is not there in GRID ALV.
    Why is the HIER ALV not putting the date fields in MM/DD/YYYY format.

    Hi,
    Just pass the Edit option of the fieldcatalog for those specific fields...
    fcat-edit = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = sy-cprog
          i_callback_pf_status_set = 'PF_STATUS_SET'
          i_callback_user_command  = 'USER_COMMAND'    "<----  pass this
          i_callback_top_of_page   = 'TOP'
          is_layout                = it_layout
          it_fieldcat              = it_fcat
          i_default                = 'X'
          i_save                   = 'A'
          it_events                = it_event
        TABLES
          t_outtab                 = it_final
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
    *&      Form  USER_COMMAND
    *       text
    *      -->R_UCOMM      text
    *      -->RS_SELFIELD  text
    FORM user_command USING r_ucomm LIKE sy-ucomm
                            rs_selfield TYPE slis_selfield.
      CASE r_ucomm.
        WHEN '&DATA_SAVE'.                "<-------check this
          PERFORM save_data.
      ENDCASE.
    ENDFORM.                    "USER_COMMAND

  • Identify key fields and data fields

    Hi
    i have datasource 0co_om_cca_9 .
    i want build 1 DSO, how can i identify what are key fields and data fields to build DSO based on that datasource.

    Hi sunnel,
    The DSO are like 2-D database tables.
    We use the technical keys here in counterpart to the business keys in Infocubes.
    The key fields are the one based on which the records are identified uniquely in the database table.
    And the data fields are the ones which are aggrgated or summarised or overwritten based on the value in key filed.
    For example:
    The ID no.s of the employees will be unique and it can be used as a key field.
    The feilds like the Salary taken by the employee every month :"SALARY"
    and the no. of leaves they taken: " NO. OF LEAVES" can be used as data fields.
    So that the salary or the leaves taken by a particular employee can be aggregated based on her/his ID no.
    The key fields in DSO doesnty mean Key figures.The key field means any unique key or a key based on which the records are sorted in the DSO
    And key figures are the data fields.Some of the Characteristics can also be data fields in DSO.
    Please give points if u r satisfied wit the information
    Also let me know if u hav any doubt and if any thing is wrong.
    Regards,
    Kalpana M

  • Date field not retent in Adobe form - Review

    Hi,
    I have a date field(Last day worked) which is not bound to any data view field in SFP transaction. When the form is in a Edit mode, I select a date in Last day worked field. After I click on Click & Send option, the form is in Review mode (with field editable), the Last day worked field goes blank.
    How do I save the value that I entered in Edit mode.
    Kindly advice.
    Thanks,
    Gowri

    You should bind the field to an attribute.
    Regards,
    Antony

  • Finding Gaps in the date field.

    Hello,
    I have a date field in a table which has date values incremented every month for 5 years.
    I have to find out the any gaps between the months that is the entry for some month is not there.
    eg. the data is as follows, i have entries for dec month of 2000, jan of 2001, feb of 2001, march of 2001, April month is missing, there is entry for may of 2001 and it follows.
    I want to display that April month is missing.
    How would i do in pl/sql.
    Help would be appreciated
    thanks.
    return_dt
    12/31/2000 12:00:00.000 AM
    12/31/2000 12:00:00.000 AM
    12/31/2000 12:00:00.000 AM
    12/31/2000 12:00:00.000 AM
    1/31/2001 12:00:00.000 AM
    1/31/2001 12:00:00.000 AM
    1/31/2001 12:00:00.000 AM
    1/31/2001 12:00:00.000 AM
    2/28/2001 12:00:00.000 AM
    2/28/2001 12:00:00.000 AM
    2/28/2001 12:00:00.000 AM
    2/28/2001 12:00:00.000 AM
    3/31/2001 12:00:00.000 AM
    3/31/2001 12:00:00.000 AM
    3/31/2001 12:00:00.000 AM
    3/31/2001 12:00:00.000 AM
    5/31/2001 12:00:00.000 AM
    5/31/2001 12:00:00.000 AM
    5/31/2001 12:00:00.000 AM
    5/31/2001 12:00:00.000 AM
    6/30/2001 12:00:00.000 AM
    return_dt
    6/30/2001 12:00:00.000 AM
    6/30/2001 12:00:00.000 AM
    6/30/2001 12:00:00.000 AM
    7/31/2001 12:00:00.000 AM
    7/31/2001 12:00:00.000 AM
    7/31/2001 12:00:00.000 AM
    7/31/2001 12:00:00.000 AM
    8/31/2001 12:00:00.000 AM
    8/31/2001 12:00:00.000 AM
    8/31/2001 12:00:00.000 AM
    8/31/2001 12:00:00.000 AM

    SELECT A.MISSING_MONTHS
    FROM (select DISTINCT TRUNC(B.DATES,'MON') MISSING_MONTHS
             from(select ADD_MONTHS(sysdate, (MONS_BACK*-1) ) + rownum dates
                     from dual,
                         (SELECT MONTHS_BETWEEN (TRUNC(SYSDATE,'MON'),MIN(TRUNC(RETURN_DT, 'MON')) ) MONS_BACK
                              FROM DATE_TAB)
                  connect by rownum < 1000) B ) A
    WHERE A.MISSING_MONTHS <=(SELECT MAX(TRUNC(RETURN_DT, 'MON')) FROM DATE_TAB)
      AND A.MISSING_MONTHS NOT IN (SELECT TRUNC(RETURN_DT, 'MON') FROM DATE_TAB)

  • How to define the DATE fields in itab for uploading the data?

    Hi Experts,
    Am uploading the data from Excel sheet to Z table via my_itab.
    So, there r 3 Date fields in Z table, which are defined as DATS(8).
    So, pls. let me know that, How I hv to define the itab-date_one, itab-date_second, itab-date_three, weather CHAR(10) or sy-datum or concatenation??
    thanq

    Hi Sri, follow like this.
    First Move that Excel Sheet Data to Internal Table Using Function Module ALSM_EXCEL_TO_INTERNAL_TABLE.
    And you can insert that internal table data to Database Table Using INSERT Command.
    First upload Data From Excel Sheet to ITAB with Required Structure. Once the Data Comes...
    And Declare another Internal Table (ITAB1) Type Database Table name.
    And Use Insert Database Table From ITAB1.
    Check this Example.
    TABLES:MARA.
    DATA:BEGIN OF ITAB OCCURS 0,
    MATNR LIKE MARA-MATNR,
    MBRSH LIKE MARA-MBRSH,
    MTART LIKE MARA-MTART,
    MEINS LIKE MARA-MEINS,
    END OF ITAB.
    DATA:ITAB1 LIKE MARA OCCURS 0 WITH HEADER LINE.
    START-OF-SELECTION.
    ITAB-MATNR = '123ABCDA'. .
    ITAB-MBRSH = 'C'.
    ITAB-MTART = 'FERT' .
    ITAB-MEINS = 'KG' .
    APPEND ITAB.
    ITAB-MATNR = '123ABCDB'. .
    ITAB-MBRSH = 'C'.
    ITAB-MTART = 'FERT' .
    ITAB-MEINS = 'KG' .
    APPEND ITAB.
    LOOP AT ITAB.
    MOVE-CORRESPONDING ITAB TO ITAB1.
    APPEND ITAB1.
    ENDLOOP.
    LOOP AT ITAB1.
    INSERT MARA FROM ITAB1.
    MODIFY MARA .
    ENDLOOP.
    or,
    By using type pools TRUXS our problem my be solve.
    Take one internal table like your standard data base table and
    one internal table for truxs like
    DATA: it_raw TYPE truxs_t_text_data.
    DATA: itab like mara occurs 0 with header line.
    Use FM
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    EXPORTING
    I_FIELD_SEPERATOR =
    i_line_header = 'X'
    i_tab_raw_data = it_raw " WORK TABLE
    i_filename = p_file
    TABLES
    i_tab_converted_data = it[] "ACTUAL DATA
    EXCEPTIONS
    conversion_failed = 1
    OTHERS = 2.
    Now looping that and updated to data base table.
    hope this helps.
    kindly reward if found helpful.
    cheers,
    Hema.

  • Adobe Forms Data Fields in Portal

    This question regarding Adobe Forms in Portal 7.
    Can data fields on a form which are not stored in the SAP backend can be saved?  Can this be done in the portal or do we have to save this data in the backend via Z tables or creating additional infotypes?
    We need to have this data to be available if a user would like to redisplay a form at a later date.

    Hi Azim,
    to clarify your query go thru this url
    To use Adobe interactive forms you should install the Adobe Reader Version .... 7. Launch the SAP Enterprise Portal. (. http://<host>:<port>/irj/portal ...
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e98c87ea-0c01-0010-3798-a4f8db2411c5
    if usefull reward me points
    thanks
    karthikeya

Maybe you are looking for

  • Windows 8.1. Update 1 DPI Settings Multiple Monitors

    Hi - I am about to post the same on the windows forums but thought it a good idea to start here. I put the Windows 8.1 Update 1 on a couple of weeks ago - I spend 1/2 my time with the Yoga 2 in desktop mode with multiple monitors so wanted the enhanc

  • I want to change my payment method!!

    Hi so for my birthday, my mom got me a visa GIFT CARD. Now, I added my GIFT CARD into my apple id so i could buy some games or something...but I want to take it off, and it's not showing me a "None" method. It only shows other credit card options to

  • Delete files on ipod

    It appears that I have a number of duplicate files on my Ipod Nano. I have deleted the duplicates in my Itunes Music folder on my PC.  How can I remove the duplicate files from the Ipod nano? Would it be simpler to "reset" the nano and delete all the

  • Oracle RAC Node Crashing

    Hi, We recently upgraded to Oracle RAC database to support Siebel Call Center APplication (8.1.1.11.12 [IP2013]).Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production Frequently we are facing problem of crashing with the Nodes

  • Adobe Download Error

    I am trying to download and print a government file and it keeps telling me that I need an older version of Adobe to be able to view it. I have downloaded the older version using the link provided when I try to open the file. Even after that it still