Infotype 0041  - Date type field in display mode always

Hi All,
Please help in find out solution for the below enhancement
In infotype 0041 we have date type and date field. We need to make the date type field to be display mode always.
Thanks for your help in advance.
Thanks,
Karthikeyan

Hi Karthikeyan ,
Please find the resolution as below :
Userexit - EXIT_SAPFP50M_001 . In Include ZXPADU01. Write the below code .
DATA: w_P0041 TYPE P0041.
IF  ipsyst-massn <> space AND
  ( ipsyst-ioper = 'INS'  OR
    ipsyst-ioper = 'INSS' OR
    ipsyst-ioper = 'COP'  OR
    ipsyst-ioper = 'MOD').
CASE innnn-infty.
WHEN '0041'.
*convert prelp to pnnnn structure
CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
EXPORTING
PRELP = INNNN
IMPORTING
PNNNN = w_P0041 .
*Here you can have more conditions like for which Action Types you want the
IT0041 to default .
w_P0041-dar01 = 'Z1'.
w_P0041-dar02 = 'Z2'.
w_P0041-dar03 = 'Z3'.
*convert pnnnn to prelp structure
CALL METHOD CL_HR_PNNNN_TYPE_CAST=>pnnnn_to_prelp
EXPORTING
PNNNN = w_P0041
IMPORTING
PRELP = INNNN.
*Display mode
LOOP AT SCREEN.
          IF screen-name = 'P0041-DAR01' OR
             screen-name = 'P0041-DAR02'  OR
             screen-name = 'P0041-DAR03'  .
            CLEAR screen-group2.
            screen-input = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
WHEN OTHERS.
  ENDCASE.
ENDIF.
Thanks ,
Sucharita Das

Similar Messages

  • HR-ABAP-regarding infotype 0041-dates specifications

    Hi All,
                   Can any body help in this problem that.
    I am retrieving one particular date from infotype 0041 by passing the date type U9.
    I want to know from which dardt(date type field in PA0041) i.e., dar01 or dar02 or dar03- - - - dar12, the date is coming .
    Pls let me know urgently this.
    Andvance thanks for all of your efforts.
    Thanks&Regards,
    Jeevakala.

    Hello,
    The option i have implememted for a similar scenario is as follows
    data: v_darxx like p0041-dar01,
             v_datxx like p0041-dat01.
    select single * from pa0041 into int_pa0041 after passing key fields
    do 12 times
    varying v_darxx from i_it41-dar01 next i_it41-dar02
    varying v_datxx from i_it41-dat01 next i_it41-dat02.
    if v_darxx = 'U9' and v_datxx gt v_dat.
    "You have your required date
    endif.
    enddo
    the same has been discussed in the following link,
    Reading dates from infotype 41
    Hope the suggestions gave you some idea
    Reward if helpful
    Regards
    Byju

  • Need to show some fields in display mode

    Hi, i need to show some fields in display mode for VA02 transaction code( is to change the values) for some particular users. so do we have any user exits for this requirement?
    Please answer me. its very urgent.. thanks in advance. 
    ex: payment terms and freight terms.

    you can try this for header level data
    MV45AFZZ exit ""USEREXIT_FIELD_MODIFICATION"
    code would be like below
       CASE screen-name.
    To suppress  Pricing total and Cuurency field at header
          WHEN 'VBAK-NETWR'.
    *YOU CAN ADD YOUR CONDITION HERE WHICH IF SATISFY THEN *EXECUTE NEXT  LINE OR SKIP IT   
          screen-INPUT = 0.
          WHEN 'VBAK-WAERK'.
              screen-INPUT = 0
        ENDCASE.
    but it depend upon what data AND in which tab you want to hide, like is it at header level or at item level or pricing (HEADER OR ITEM) data each of them have different exit to restrict data modification.
    ENJOY SAP.

  • Want to Have INT4 Data type field in IT

    Dear All,
               I want INT4 Data type field in my Customized infotype field.
               Is it possible to have it with signs.
    Thanks
    Satya.

    Hello Satya
    you cant have INT4 as datatype in your custom infotype
    Reward points if helpful

  • Making short text field in Display mode for one particular Purchasing

    Hi All,
    This is regarding Making the Short text field in Display mode of PR for one Particular Purchasing.. i am giving you a bit elaborate...We are into E-Catalog Procurement.I will do the shopping from the Vendors external catalog and i will return back to SAP.
    While doing so, i dont want the user to change the Short Text field. I want that field shud display the Description. When i tried with the Screen Layout settings, it is fully grayed out and i am not able to see the Description of the Material. Is there any other options to get this enabled?. Please advice me on this settings to be done. Thanks in Advance.
    With Regards,
    Saakithyan

    Hi
    Define a Field selection key (new not the one which is assigned to document type) which makes  short text editable in screen layout config. and assign it to functional authorization value in t.code OMET. (it should be numeric). Then assign that functional authorization value in user master SU01 for users with parameter id EFB.
    Then it will work
    Regards
    Antony

  • To find the date type fields in the row and validate those date fields

    TYPES : BEGIN OF TY_MARA,
              MATNR TYPE MARA-MATNR,
              ERSDA TYPE MARA-ERSDA,
              ERNAM TYPE MARA-ERNAM,
              LAEDA TYPE MARA-LAEDA,
              MTART TYPE MARA-MTART,
            END OF TY_MARA.
    DATA : it_mara TYPE STANDARD TABLE OF ty_mara,
          it_mara1 TYPE STANDARD TABLE OF ty_mara,
           wa_mara TYPE ty_mara.
    loop at it_mara into wa_mara.
      describe field wa_mara-ersda type c_data.
    if c_data eq 'D'.
      CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
        EXPORTING
          date                            = wa_mara-ersda
       EXCEPTIONS
         PLAUSIBILITY_CHECK_FAILED       = 1
         OTHERS                          = 2
      IF sy-subrc eq 0.
    wa_mara-ersda = '00000000'.
        append wa_mara to it_mara1.
        write :wa_mara-matnr,wa_mara-ersda.
        else.
            wa_mara-ersda = '00000000'.
        append wa_mara to it_mara1.
        write :wa_mara-matnr,wa_mara-ersda.
      ENDIF.
      endif.
      endloop.
    This issue regarding how to find the date type fields in the row and validate those date fields.If its not a valid date ,i have to assign initial value to that.
    I've tried that for single field using describe field.Please help me do that for all fields.

    Hi Sam,
     I believe we had discussed the same issue in the below thread. Can you please refer the below one?
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/d93e16ff-c123-4b36-b60b-60ccd34f6ca7/calculate-time-differences-in-infopath?forum=sharepointcustomizationprevious
    If it's not helping you please let us know
    Sekar - Our life is short, so help others to grow
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer

  • Can "SPML Web Service Complex Data Type field" take multiple values ?

    In Generic Technology Connector's -SPML design parameters section, Can we give multiple values in SPML Web Service Complex Data Type field?
    If not, how can i call methods directly instead of calling them through a values of the "name" attribute of the "complexType" element in SPML Web Service Complex Data Type?
    I need 'SPML Web Service Complex Data Type' to hold multiple values.And based on the request it has to initiate appropriate method of action.
    Presently i have three methods add,modify and delete which i am calling through a single value of the "name" attribute of the "complexType" element in SPML Web Service Complex Data Type.
    I want to replace this single value with multiple menthods , so that a direct interaction between the method,OIM and target can be established.
    Edited by: 821054 on 16/02/2011 04:23

    Thanks Robert.
    You'll need to create your own interface to the webapp database for those kind of data operations
    by this, are you speaking of the internal BC database which stores web app schema data? That would be great if it were possible to update that programmatically because I need to use the List (Checkbox List) field type (for the search functionality), but I need to supply the checkbox options from a web app rather than by manually updating the list entered in the Fields view of the web app settings (shown below).
    I'm curious if anyone else has tried this?
    Again, my reason for needing to use the List (Checkbox List) field type is that the page which processes searches knows to expect a comma separated list for this field type and then appears to be parsing out the individual values for searching out web app items with 1 or more matching values. You're right that text fields (string and multiline) just check for 'string contains' matches, and this would be ok if I was only ever needing to search just one value at a time. Here's an example of what I might do:
    Web App item field value (as recorded against the List (Checkbox List) field type:
    8294877,8294878
    Web App Search value (for this same field):
    8294879,8294877,8294885
    The search would return this web app item because the field contains 2 (1 or more) individual values even though they were entered into the search field in a different order. If this web app item were just a Text (string or multiline) field, the searched value is not a substring of the web app item's stored value, so it would not find a match. Hence the need to use Checkbox List field type.
    The web app will have thousands if not 10s of thousands of records, so dumping them all into one big array or object and searching on the front-end won't be practical (though it works great on smaller datasets).

  • Insert current date and time into Oracle date type field

    I have a JDBC current date and time insert into Oracle 9i that almost works. It submits the current date and a fixed time into the Oracle date type field. I am using Tomcat 6.0.20.
    For example if I insert the data at 7:24:04 PM on Feb 16, 2010 it will insert as: 16-Feb-2010 12:00:00 AM
    The date part works but the time always shows 12:00:00 AM no matter what date or time the data is inserted.
    Here is what I have for my JDBC inserts and I also tried something with DateFormat:
    PreparedStatement ps; Date mydate = new Date(new java.util.Date().getTime()); //insert statement here.... stmt.setDate(1,mydate);
    I also tried:
    PreparedStatement ps; java.sql.Timestamp mydate = new java.sql.Timestamp(new java.util.Date().getTime()); SimpleDateFormat fmt = new SimpleDateFormat(.... //insert statement here.... ps.setTimestamp(1,fmt.format(mydate));
    Both keep submitting the date into Oracle as 16-Feb-2010 12:00:00 AM
    Anyway to get the current date and time? For example if I insert the data at 7:24.04 pm today it should show as 16-Feb-2010 07:24.04 PM in Oracle.

    sportsMarkr wrote:
    Date mydate = new Date(new java.util.Date().getTime());Please see the javadocs for java.sql.Date and note the part that says "...to zero"
    [http://java.sun.com/javase/6/docs/api/java/sql/Date.html]
    If you want a date and time then use java.sql.Timestamp.

  • How to Update Date data type field value in oracle

    I want to update records in a table that has a Date data type field. It's a oracle databse. I use the oracle thin drive to connect to the database. The everything works well, only when i try to update records that have date type value, something doesn't work.
    I use the following stmt to update DB:
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Conn = DriverManager.getConnection("jdbc:oracle:thin:@hostname:portnumber:schname", "uid","pwd");
    stmt=Conn.createStatement();
    String updStr = "UPDATE Article SET Archive = ' Disable' WHERE ArticleDate = # " + sqlDate +"# " ;
    stmt.executeUpdate( updAStr ) ;
    But I always got the SQLException run time error, which is "ORA-00911: invalid character"
    Who can help me to find out how to write the above Update statement correctly? esp. that how to present the Date type variable in the statement.!
    BTW, sqlDate is a Java.sql.Date variable, Is it "# " + sqlDate + "# " the right way?
    Many thanks

    What do you get out of Oracle's TO_DATE that java.sql.PreparedStatement.setDate()
    won't give you? - MODWell, I don't know that I've used all capabilities of either, but when it comes to managing Date Strings my Oracle bias :) would be to code using Oracle's TO_CHAR and TO_DATE functions. Perhaps someone can tell me vendor neutral ways to do something simiilar to managing these input date/times (and hopefully just as easily, pretty much all done in a single line, single function)?
    WHERE aDATE > TO_DATE('2010','YYYY')
    WHERE aDATE > TO_DATE('2010 AUG 22','YYYY MMM DD')
    WHERE aDATE > TO_DATE( 'January 15, 1989, 11:00 A.M.', 'Month dd, YYYY, HH:MI A.M.')
    I believe most databases have something similar to this, although I have found Oracle's to be the most flexible and consistent, if not the most intuitive. Other vendors (DB2, SQL Server, Access) don't force you to always be explicit, and can accept a variety of date strings without masks. The problem is that while you might not be getting an error, it also may not be parsing your date as expected.
    One could argue that this vendor specific hodgepodge of literal date/time strings is only one program modification away from disaster. They might be right.
    Just to be clear. I'm not recommending using a vendor specific approach, but it's not a perfect world and somtimes you have to use what works easiest or best or fastest, and in some cases, that is the vendor specific alternatives.

  • Importing an SQL Server TEXT data type field in Oracle - problem with LONG

    Hello,
    I work in Oracle 9i and I created a view on a distant SQL Server database that contains a TEXT data type field. But I have a problem when I select that field in Oracle; I have the following error message: "ORA-00997: forbidden use of LONG data type".
    Could anybody have a solution for me, to solve that problem?
    Thanks a lot!

    It is very difficult to suggest anything without seeing your code.  I don't even know if what you are seeing is the actual value or an error code.  Often, negative numbers are indicative of error codes. 
    For instance -1 could mean that you have an invalid reference or path, etc...
    Can you post your code?

  • Input field in display mode; but F4 help has to be avail

    Hi,
                i have a input field in my view and i want that one to be in display mode ( the intention is that i want to have the value to be filled from F4 help values only).  I have set the read only set for the input field. I have tried all the cases of normal ddic help;OVS;Freely input help; context node info value set but no luck.
    In the below forum message Re: how to provide f4 help to the read only input field  i could see the input from Thomas that the Freely input help will be useful in this case;I tired this way too but no luck.
    Can you please let me know do i missed any point ;your inputs are higly appreciated.
    Thanks and Regards,
    Satish A.

    hi,Satish A.
    After check your requirement, i think you can use "Freely programmed Input help".You can search them in this forum or google, i think you will get some clue.
    As a reply, i summarize this topic simply. Take one example.
    Scenario:
    F4-help component will be used for "F4". It displays all the data in table, and you can select one record, then the F4-help will be closed and the "CARRID" will be returned to the Read-only field in your main component.
    F4-help-component
    (1). You should implement one WD Component which implemented the WD interface "IWD_VALUE_HelP".
    (2).In this component, you can add one "Interface event", for example, named "Select". And this event has one parameter "CARRID".
    (3).In the table's  OnSELECT event, you can use:
    method ONACTIONSELECT_ROW .
      data:
        lo_Node      type ref to If_Wd_Context_Node,
        lo_Elem      type ref to If_Wd_Context_Element,
        ls_elem      type wd_this->element_table,
        lt_elem      type wd_this->elements_table.
    *1. get the Solution-list context node
      lo_Node = wd_context->get_child_node( Name = 'TABLE' ).
    *2. set the lead selection of table
      lo_node->set_lead_selection( element = NEW_LEAD_SELECTION ).
    *3. get the attribute value of selected row
      NEW_LEAD_SELECTION->get_Static_Attributes(
        importing
           Static_Attributes = ls_elem ).
    *4. Fire interface event:
    "will return the CARRID parameter
      WD_COMP_CONTROLLER->Fire_select_Evt(
          CARRID = ls_elem-carrid ).
    *5. close the F4 help
      WD_COMP_CONTROLLER->F4_LISTENER->CLOSE_WINDOW( ).
    endmethod.
    In your main component:
    (1). Use your F4-help component as used-component
    (2). set your context attribute's input help mode as "Freely programmed". At the same time, input your component usage which is added in step 1.
    (3). You should add one Event-handler for your F4-help component Interface event, for example, named "On_f4_help". you can use:
    method ON_F4_HELP .
    "This event handler will has one parameter named "CARRID" automatically
      wd_context->set_attribute(
        EXPORTING
          name = 'IPFIELD'
          value = CARRID
    endmethod.
    Hope it can help you a little.
    Best wishes.

  • How to keep wbs element  field in display mode in me22n?

    Hi all,
    Can somebody please guide me how i can keep wbs element field available at account assignment Tab at item level in transaction me22n as display mode?

    Hi Dhruv,
    You can implement BADI ME_PROCESS_PO_CUST  and implement the method FIELDSELECTION_ITEM.
    I have pasted the SAP documentation available below. Please try this.
    Field selection (FIELDSELECTION_HEADER_REFKEYS, FIELDSELECTION_ITEM_REFKEYS, FIELDSELECTION_HEADER, FIELDSELECTION_ITEM methods)
    In the following methods, you can change the display properties of fields by supplementing or switching the field selection reference keys:
    At header level FIELDSELECTION_HEADER_REFKEYS
    Documentation for BAdI method FIELDSELECTION_HEADER_REFKEYS
    At item level FIELDSELECTION_ITEM_REFKEYS
    Documentation for BAdI method FIELDSELECTION_ITEM_REFKEYS
    You can implement special rules using the methods FIELDSELECTION_HEADER (at header level) and FIELDSELECTION_ITEM (at item level).
    Documentation for BAdI method FIELDSELECTION_HEADER
    Documentation for BAdI method FIELDSELECTION_ITEM
    Special Field Selection Item
    Functionality
    The FIELDSELECTION_ITEM method enables you to influence the field selection properties for a field.
    Parameters
    The following parameters are available:
    IM_HEADER - Document header
    The interface reference is of the type IF_PURCHASE_ORDER_MM.
    IM_ITEM - Document item
    The interface reference is of the type IF_PURCHASE_ORDER_ITEM_MM.
    CH_FIELDSELECTION - Fiele selection table
    By making changes to this table, you can influence the display properties of a field.
    This table consists of value pairs <METAFIELD|FIELDSTATUS>.
    The Metafield represents a business content (e.g. the PO quantity). Thus, for example, the database field EKPO-MENGE is linked to a certain metafield value just like the field MEPO1211-MENGE on the item overview screen in the purchase order.
    Through this abstraction, reference can be made to business contents on a uniform basis.
    Standard metafields are defined in the type group MMMFD.
    The field selection status has four possible instances:
    '-' Field is suppressed
    '*' Field is purely a display field
    '.' Input field
    '+' Mandatory field
    Notes
    Under no circumstances make any changes to the database within this method. On no account use Commits.
    For WBS element the meta filed no is 512.
    mmmfd_wbs_element     TYPE mmpur_metafield VALUE 512.
    In IF_EX_ME_PROCESS_PO_CUST~FIELDSELECTION_ITEM method you can write the code as follows:
    field-SYMBOLS : <FIELDSEL> like line of ch_fieldselection.
    DATA: l_persistent TYPE mmpur_bool.
    l_persistent = im_ITEM->is_persistent( ).
    READ TABLE ch_fieldselection ASSIGNING <FIELDSEL> WITH TABLE KEY metafield = '512'.
    IF sy-subrc IS INITIAL.
      <FIELDSEL>-fieldstatus = '*'. " Field is purely a display field
    ENDIF.
    Try this, it should work.
    Regards,
    Savitha
    Edited by: Savitha Madhavagiri on Jan 8, 2010 4:20 AM

  • Assigning a string value to a decimal data type field.

    Hi,
    I want to assign a value 'N/A' to an internal table field 'itab-field1' which is of data type dec.
    How can I do this?.
    Your help is really apprieciated
    Thanks & Regards,
    Soumya.

    hi,
    on what condition do u want N/A to be displayed, i hope when ever that field is empty...
    so u can do in this way..in stead of changing in internal table...
    when ever u r writing the values from internal table to output list..
    ther put a check like if  itab- field1 = 0.
                                      write :/ 'N/A'.
                                  else.
                                     write : itab-field1.
    hope this is helpful, because we can not pass char values to internaltable field of type dec..
    Rgds.,
    subash

  • DAte not available in infotype 0041(date specification)

    Hai All,
    In our place we are using 4 type of "date type"
    Z1 Hired date.
    Z2 Seperation Date
    Z3 Leave quota start
    Z4 Service entry date
    for all employees date specification maintain by dynamic action.
    for some employees date specification is not maintain by the system.they are having only Z1 Hiring date only. others not available.
    how can i rectify this problem?
    Kind regards.
    Dinesh.

    Hi
    You have to check your Dynamic action.
    While querying dynamic ation how did you quaried, on which grouping you quried ?
    The employee who dont get the details are members in that group are not?
    if you give it in feature you must have all 4 dates to all the employees, otherwise you will be in trobuble
    becuase SAP wont allow you fill the type only without date in infotype 0041
    Regards
    Adi

  • TCD field in display mode in S_TCODE

    Hello,
    I have a requirement to remove t-codes from TCD field under S_TCODE object in the role itself and NOT from the role menu.However when I go to PFCG>Change>Auth.Data Tab>Change auth.data>, the field TCD is DISPLAY only and hence removal of t-codes cannot be done.
    Why is this and what would be the workaround.
    Thanks.
    Mani

    Thanks Debmalya.
    The issue is - why the change is possible for certain roles and only for this role, Would not a PFCG Change function allow you to 'Change' field level values.
    Also as Diego has suggested , I have verified that this role is not part of a customizing project.
    This requirement is from one of a remote customer my organization supports.
    Mani

Maybe you are looking for

  • Mac Pro Thunderbolt, USB3, etc. hardware upgrades...

    Feeling a bit left out in 2 years since I bought my Mac Pro with no real hardware upgrades for my Mac Pro. Can anyone comment on what they've done to keep their Mac Pro updated with the latest? - Thunderbolt.  I was surprised this wasn't in the updat

  • Business Area Configuration.

    Hi, Our client is now expanding to new business, and to configure a new business area for the same.Presently no business area is defined. Pls suggest me,whether to go for new business area or new company code and we are in ECC 6.0 enviornment. Regard

  • Fonts synched from Typekit do not show up in fonts list.

    My Typekit Account is showing two fonts (Muscle Narrow & Wide), amongst others, as being synched. However, the two fonts named are not shown in my Creative Cloud Manager nor in the list of fonts in my Creative Cloud applications. I have not had this

  • UDO Problem ( I am Using UDO's in my screen ......)

    Hi friends I am Using UDO in My screen (custom Screen Designed using Screen painter) My problem is  when i open screen it's open in ADD mode but i want to open in UPDATE Mode is there any way to open in update mode. One way is there to open screen in

  • Equalizer For Lumia 520

    Hii, Wanted to ask how i could get an audio equalizer for Lumia 520? Went through a few topics that say 520 doesn't has the hardware to support an equalizer. Is this true? Moderator's note: We have amended the subject as the post was moved to the cor