Modifying SPRPS field in an infotype record

Hi experts,
I have a requirement in which i need to modify the lock indicator value of an existing 2001 infotype record. That is, initially when a record is created, i need to update the lock inidicator field as 'X'. Then after few approvals, i need to read the same recoed from infotype 2001 and need to modify the lock indicator with blank. Can the same requirement be achieved using HR_INFOTYPE_OPERATION ?
Is it possible to modify the SPRPS field with the value blank ' ' using HR_INFOTYPE_OPERATION'?
Regards,
Shanthi

Yes it is. All you need is to provide correct key fields of the record vis this FM exporting parameters and for record parameter pass structure for the record with all the target data (new data for the record).
So basically the structure will hold all the information as it is right now + field SPRPS with changed value. To ensure you provide correct data, you can first read appropriate record entry with HR_READ_INFTY -> get required entry from result list -> then change only field SPRPS and pass it back to HR_INFOTYPE_OPERATION on input.
Please refer http://www.sapdev.co.uk/fmodules/fms_HR_INFOTYPE_OPERATION.htm.
Regards
Marcin

Similar Messages

  • To modify a field in a database table based record identification by primar

    hi
    i want to to modify a field in a database table based record identification by primary key filed and two more fields
    ie customer (primary key
    i want to modify record from intenal table the record existing with primary key field customer
    the status field needs to be mofied as " value rolled"
    the below code is happening
    loop at it_record into wa_Record
    wa_inv-customer (primary key) = wa_Record=custome
    wa_inv-date = wa_Record-date
    ...so one
    append wa_inv to it_invest
    clear wa_inv
    endloop.
    if not it_invest  is initial
    modify TABle1 ( this table is data base table which needs to be mofified) based on the primary key field
    and also date field and status field which is not primary key.
    regards
    arora

    Hi there.
    Your requirement is to update a Z Database table from your internal table, right? You have several options:
    LOOP AT it_invest INTO wa_inv.
      UPDATE dbtable
         SET date = wa_inv-date
       WHERE prim_key = wa_inv-prim_key
         AND any_field = wa_inv-any_field.
    ENDLOOP.
    or
    LOOP AT it_invest INTO wa_inv.
      UPDATE dbtable FROM wa_inv. "if wa_inv of same type of dbtable
    ENDLOOP.
    In the first example, I wrote any field because you can update dbase table, filtering for fields that don't belong to the primary key. However, remember that you will change all records that respect the key you used (so, in your case, use the primary key).
    Regards.
    Valter Oliveira.

  • Modify SAP standard fields in an Infotype

    Hi friends!
    We have enhanced an Infotype successfully added few extra fields and they work perfectly.
    In Infotype 28, there are already 3 SAP standard fields and we have added 4 more.
    Now, we need to enable/disable according to the our added fields. For Eg by a Custom check box, I need to enable/disable SAP standard field for an infotype.
    We tried by LOOP at SCREEN and all but due to SAP standard fields we are unable to do it.
    Any ideas?
    Please help.
    Thanks.

    Hi Park,
    Standard Infotype Fields configured (enable/disabled/hidden) in the view V_T588M (Tcode-SM30). You can disable any standard infotype field here if it is independent of other fields (i.e. before screen opens itself field is disabled).
    If you want the field to be disable at runtime you may need to edit the feature 'PNNNN' (where NNNN is your standard infotype number (transaction -pe03)).
    Also have you tried to code (loop at screen. endloop) in badi HRPAD00INFTY (method BEFORE_OUTPUT). I am not sure whether this will work or not.
    Regards,
    Shrinivas

  • Addition of new fields to existing Infotype: Error in Quality Server.

    Hi Experts,
    I have added new fields by adding custom include to Infotype 4000 using t-Code PM01.  It is working perfectly fine in DEV. But, in QLT, the custom Include is not attached to the P4000 structure. Independently, CI_P4000  exists in QLT.
    I have checked all the Transport Requests, nothing is missing. However, The structure of P4000 is not getting modified as per requirement. What should I do?

    Hi Experts,
    The Error was coming with Infotype 4000. I tried adding the same field by updating Infotype 4001 and it worked. So, I have used that only, and my requirement is fulfilled.
    But, I am still not sure if we can add field in similar way in Infotype 4000.
    Thanks to all for providing me with possible solutions!!
    Regards,
    Shruti Gupta.

  • Difference between changes in OM/PA infotype records

    Hi people,
    can you pls help me with one topic.
    Is there any way to diference changes infotype records between changes done by program upload (lsmw or custom programs) and manually via pa30/pa40.
    Can it be stored somewhere in the infotype structure that records are done by mass uploading.
    Thanks for ideas.
    Best regards,
    Romano

    Hello Romano,
    As mentioned in the earlier posts that all entries have a UNAME attached to it in the Infotypes which tell us the owner who marked/initiated the change.
    There are options to achieve the type of design which you want. Lets say we maintain a Custom Table which would store the UNAME , T-CODE and DATE fields.
    In the PA User Exits we develop the copy that in each PAI action update the Custom Table. It should solve your case.
    It is not a very staright forward solution , but it would serve your cause.
    Thanks & Regards,
    Rohit Sharma

  • How to display dates on which the field of an infotype is changed

    there are two fields   in an infotype and both the fields are changed on different dates then how to display those dates on which the two fields are changed

    Hi ankit,
    If you want the change log for one infotype with one two fields, then write one custom program with following logic. If you want the log for multiple infotypes for multiple fileds then you have to use that program 'RPUAUD00'. Read the documentation of the program to check how to use it.
    select * from pa0000 into table it_pa0000
                                   where pernr = v_pernr.
    sort it_pa0000 by begda descending.
    loop at it_pa0000 into wa_pa0000.
    write your own logic to compare the previous record PERSG with current record PERSG.
    if this doesnt match then get the Changed DATE from AEDTM field.
    wa_pa0000-AEDTM = changed date.
    Else.
    continue with loop.
    exit.
    endloop.
    regards,
    Shrinivas

  • FM for delimit the infotype record

    Hi
    I'm new to HR-ABAP.I need to develop function modules to delimit the some infotype records (eg: 0167,0168,0014,2006 etc)
    Presently i developed the function module that has following source code.
    CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
        EXPORTING
          number        = empno
    CALL FUNCTION 'HR_READ_INFOTYPE'
        EXPORTING
         tclas                 = 'A'
          pernr                 = empno
          infty                 = '0167'
          begda                 = delimitdate
          endda                 = delimitdate
      BYPASS_BUFFER         = ' '
      LEGACY_MODE           = ' '
    IMPORTING
      SUBRC                 =
        TABLES
          infty_tab             = itab "itab is of the structure p0167
    enddate = itab-endda.
    MOVE delimitdate TO itab-endda.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
        EXPORTING
          infty                  = '0167'
          number                 = empno
          subtype                = itab-subty
          objectid               = itab-objps
          lockindicator          = itab-sprps
          validityend            = enddate
          validitybegin          = itab-begda
          recordnumber           = itab-seqnr
          record                 = itab
          operation              = 'LIS9'
          tclas                  = 'A'
          dialog_mode            = '0'
      NOCOMMIT               =
      VIEW_IDENTIFIER        =
      SECONDARY_RECORD       =
       IMPORTING
         return                 = return
      KEY                    =
    CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
        EXPORTING
          number        = empno
    when i use 'MOD' operation in FM 'HR_INFOTYPE_OPERATION' that FM runs perfectly.it changes the enddate to delimit date in the table PA0167.
    But, when i use 'LIS9' (delimiting) operation FM is throwing following error message
    "E PG  428 A complex application error has occurred".
    I need help regarding this error statement.can i use 'MOD' operation to delimit the records (time constraint of most of the infotype record to be delimited is 2).In which case we use 'LIS9'??
    Also any SAP function modules for delimiting IT2006 infotypes????
    Pls suggest.
    Thank u,
    shrinivas
    Message was edited by: Shrinivas

    For 167 & 168 have you looked at HR_BEN_TERMINATE_HEALTH_PLAN & HR_BEN_TERMINATE_INSURE_PLAN?
    The error message you got is actually mapped to (00)344 ie "No batch input data for screen & &"
    For the delimit operation, you probably,need to pass the delimit date separately..
    I have a feeling this function call cannot be used for the delimit operation le 'LIS9'.AS the delimit date is usually entered on a pop-up box when you do it via PA30.
    ~Suresh

  • Adding new fields in Custom Infotype

    Hi,
    I need to change some fields of Custom Infotype. But project is already gone live for 1 country. will making changes to infotype affect for existing live country?
    Safe side....We are thinking Adding new fields in Custom Infotype. & displaying corresponding fields for countries in another tab
    & hiding the old tab.
    Please let me know procedure for  Adding new fields in Custom Infotype for displaying in new tab.
    Edited by: Sachin Thigale on Aug 23, 2010 7:04 PM
    Edited by: Sachin Thigale on Aug 23, 2010 7:05 PM

    Please search. Lot of Threads on this.
    Follow these steps.
    Go to Transaction PM01.
    2) Enter the custom Infotype number which you want to create (Should be a 4 digit number, start with 9).
    3) Select the u2018Employee Infotypeu2019 radio button.
    4) Select the u2018PS Structure Infotypeu2019.
    5) Click on Createu2026 A separate table maintenance window appearsu2026
    6) Create a PS structure with all the fields you want on the Infotype
    7) Save and Activate the PS structure
    8) Go back to the initial screen of PM01.
    9) Click on u2018Allu2019 push button. It takes a few moments.
    10) Click on u2018Technical Characteristicsu2019. Infotype list screen appears
    11) Click on u2018Changeu2019(pencil) button
    12) Select your Infotype and click on u2018Detailu2019 (magnifying glass) button
    13) Give u2018T591Au2019 as subtype table
    14) Give u2018T591Su2019 as subtype txt tab
    15) Give your subtype field as subtype field
    16) Save and come back to PM01 initial screen
    17) Click on u2018Infotype Characteristicsu2019 u2026 Infotype list screen appears
    18) Click on u2018Changeu2019 (pencil) button
    19) Click on u2018New Entriesu2019
    20) Enter your Infotype number and short text
    21) Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotypeu2019s infotype characteristics screen and use as the reference to fill yours)
    22) Save your entries.
    23) Now the Infotype is created and ready to use.
    24) If you want to change the layout of the Infotype as per your requirementu2026
    25) In the PM01 initial screenu2026Select u2018Screenu2019 radio button and give 2000 as the screen name, then click on edit.
    26) In the next screen.. Select u2018Layout Editoru2019 and click u2018Changeu2019.
    27) Screen default layout appearsu2026here you can design/modify the screen..change the attributes of the fields..etc.
    28) Save and activate. (Donu2019t forget to u2018Activate at every level
    i think u have to select CI_INCLUDE while enhanceing the Standrad Infotype
    The above details are from the following link
    Re: How to add fields in custom infotype and update its screens

  • Modify the field value in itab1 using itab2

    Hi experts
    I need some help.
    My question is : I have ITAB1 contains IBLNO field it is a legacy value.
    I want to modify this field.
    Another internal table  ITAB2 contains sap, legacy value of IBLNO(Cross refrenced table).my requirement is  IBLNO of  ITAB1 is modified with corresponding sap IBLNO in ITAB2.
    plz help
    Durga Parsad

    Hi Durga,
    You want to get following results -
    1. You have ITAB1 containing IBLNO.
    2. ITAB2 has IBLNO.
    3. Modify ITAB1-IBLNO from ITAB2-IBLNO.
    4. There must be some common value between the two tables. It has to be there otherwise the two records won't match.
    Kindly find the following code for doing so -
    LOOP AT ITAB2 INTO WA_ITAB2.
    * Modify ITAB1 from workarea of ITAB2 for matching records
      MODIFY ITAB1 FROM WA_ITAB2     
        TRANSPORTING IBLNO                " Modify only IBLNO of ITAB1 for matching records
        WHERE FIELD1 = WA_ITAB2-FIELD1.   " Some common field between the ITAB1 & workarea of ITAB2  
      CLEAR WA_ITAB2.
    ENDLOOP.
    Hope this helps.
    PS If the answer solves your query, plz close the thread by rewarding each reply and marking it Solved.
    Regards

  • Does Address book has a Last Modified Date field?

    Hi
    Please can you let me know if Address book has a Last Modified Date field? I'd like to know what date I have last modified my address book records. I checked Preferences but not able to find it there.
    Thank you.

    Sorry, but there is no such field in Address Book. If you select an individual entry in Address Book, you will see to the lower-right an "Updated" field with the date that entry was last updated. This is not true for all entries, but nearly all. There seems to be a point after which you've entered text in the Note field that the "Updated" field will no longer appear when you select an entry, but it's not documented.

  • Delete InfoType records using Idoc HRMD_A05?

    Hello,
    We have some unwanted 167 and 168 infotype records in our database that we would like to clean up.  Can we use HRMD_A05 to delete them?  I can't seem to find a delete function in the Idoc fields...I would truthfully like to use the LSMW, anyone know a way other than a simple recording?
    Thanks.
    --Jack

    Hi Eswar
    Thanks for the reply. I could not get what PFAL is. Actually, I am using IDocs to migrate data through LSMW. And I want the new HR objects to be numbered internally. However, if I leave the object ID field null and use 'Insert' for operation (OPERA) it gives error and does not post the application document (IDoc). It also gives error for operation 'Update'.
    I was expecting it would generate new numbers but it did not. And what I had in the IDoc documentation does not work.
    So do you or anybody has experienced such an issue before?
    Thanks

  • Report to list all infotype record per employee

    Hi All
    is there a report that list all infotypes record per employee  ?
    thanks for helping
    Corinne

    Hi,
    It will not be feasible as all the IT has different fields.
    There is no standard report as Mr, Raghu mentioned.
    Ketul

  • Maintaining / Displaying Text for Infotype record

    Hi,
    How do we maintain infotype text for the record. Or how to display the text maintained for infotype record (I used PA20/PA30 for IT0001 record but could not locate infotype text).
    Regards,
    Avinash Josalkar.

    Hi,
    If you want to know the text of a infotype then goto the table
    V_T582A.
    eg:0000  actions
    0001 organisation assignment.
    But if you want to change the standard text of a infotype then you need to have access key to change.
    But if you are asking the text table for the fields in 0001.
    then goto se11
    enter Pa0001--dislay
    click the tab entry help/check then you can see the table names in the column check table for each field.

  • Looking for a third party utility to replace a file's "modified Date" field

    For video files, apparently the organizer displays the thumbnails with the date taken from the file's "modified date" field. For some wierd reason (which I'm discussing with Adobe CS) the organizer changed the date of all my videos in the "modified date" field, so now the chronology of all my video clips in the organizer went down the drain.
    Is there a third party utility to replace the "modified date" field of a file with the original shot date? (which in W7 is shown in the "Date" field).
    In other words: for every video file in my library, I want to take the date from the "Date" field and put it in the "Modified Date" field
    Thanks for your help.

    OK thanks.
    I've found a utility that modifes several of the date fields.
    Now, I just want to be sure that I don't screw this up...
    Which of the several date fields of a file holds the actual shot date?
    Which of the date fields is used by the organizer to "organize" the video files (avi and mov's) chronologically?
    Thanks for your help

  • Enhancement Adding a new field to a infotype

    We are implementing E-Recruiting and trying to a new field to a existing infotype 5107.  On the E-Recruiting page there are three frield that already exist.  Country, State and City these field also in infotype 5107 too.  Country and State both are dropdown box.   I have to set the default value for Country to 'USA' and State to 'AZ' where can i set this?   The new field will display location "county" which the user will be able to select multiple locations.  I know i would have to go PM01 to add the new field to the infotype 5107.  But i'm missing the third that will allow me to do this.  There's IT, IT Version, IT (i don't have this on my SAP Gui).  I'm not sure what to do next after I created this new field.  how can put this new field this the E-recruiting webpage?

    Matthew,
    You can enhance your infotype 5107 from tcode 'PPCI' not 'PM01'.
    Check out this Custom Infotype Creation in ORG Management
    Regards,
    Ahmad

Maybe you are looking for

  • Delete Layers in Adobe Acrobat

    Hi! I'm creating a PDF Template using Adobe Acrobat 9 It seems not possible to delete or move a layer once created. How can I? On the documentation I can read that I've to press ALT and move the layer but it doesn't work. What's wrong? Thank you very

  • Another Transfer ID

    I am getting the strangest error. I was wondering if anyone has seen this. Environment: Source server is NW 65 SP8 with eDirectory 8.8.4. Target server is Sles 10SP3 OES2 PS2 eDir 8.8.5. Installation of OES was done during the install of SLES not as

  • Error:Cannot find symbol Symbol Constructor

    Anyone who can help.. I need to write a program that has two camera's and define a camera class so it prints out the total of the camera's at the end. I keep getting different errors it seems like I fix one and another one pops up, but this one has m

  • How do I reinstall OS X when computer wont boot up, or accept "C" command on start up.

    I am missing some system files and my macbook pro wont boot up. I would reinstall OS X but it will not recognize the "C" command being held on start up, and I cannot figure out how to do it from Single User Mode. I am not worried about losing any fil

  • With a most recent installation of Firefox, the screen opens in the lowest resolution

    After I change the resolution via the control panel, the computer will reset back to the lowest resolution after a few minutes. How do I get it to open and stay at a reasonable resolutions?