PO13 and 0001 infotype (HR_INFOTYPE_OPERATION + badi HRBAS00INFTY

Hello Friends,
We have cretaed a position description subtype and assigned it to 1002 infotype.
Query: 1) Adding 2 customer fields(Subtype and description) to infotype 0001 (This is done using PM01).
2) Using Po13, they assign a subtype(position description) for a particular Position.
Now the requirement is When they assign subtype to a postion in PO13 and save then these subtype
and subtype description should be stored in 0001 infotype.
the position should use to locate the employee and once the employee have been located update 0001.
for ths I have implemented a PO13 badi HRBAS00INFTY(IN updating method) and inside the BADI we are calling
HR_INFOTYPE_OPERATION' to update the eMPLOYEE(0001 INFOTYPE).
Problem: Now the problem is , when we open PO13 in change mode to assign a subtype to Position ,sap creates a lock entry and when svae we are call
HR_INFOTYPE_OPERATION' to update the eMPLOYEE(0001 INFOTYPE).but HR_INFOTYPE_OPERATION' also internally tries to lock the position but raising a
message "You have already locked object/infotype S50000024".
Pleae find below function and follwoing parameter I am suing for updating the person(0001 infotype) .
I dont understand why HR_INFOTYPE_OPERATION is trying to lock position when I pass Pernr and 0001 as a parametr.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = c_infty
number = wa_pernr-pernr
SUBTYPE =
OBJECTID =
lockindicator = 'X'
validityend = wa_pernr-endda
validitybegin = wa_pernr-begda
RECORDNUMBER =
record = it_0001
operation = 'MOD'
tclas = 'A'
dialog_mode = '0'
NOCOMMIT =
VIEW_IDENTIFIER =
SECONDARY_RECORD =
IMPORTING
Please help me .
Thanks In advance
Best Regards
Trupthi

Hi,
Onemore thing I couldn't find the code for IF_EX_HRBAS00INFTY-in_update.
For every BADI there will be an example interface. Here for this BADI example is IF_EX_HRBAS00INFTY. If u want to see the model code, go to SE24 and give the name :IF_EX_HRBAS00INFTY and click on display. Then you can find the methods and respective exapmle code.
One more thing
Some  BADIs will not allow calling commit work. In your BADI also already one LUW is opened, so it will not allow  to open another LUW and the respective  commit work.
Thanks and Regards,
Chandra

Similar Messages

  • Display values at Infotype "Objects" - BADI HRBAS00INFTY

    Hello,
    I'm studying the badi HRBAS00INFTY and i want to know if it's possible to use the before_output method to display some values at Object abb and Object name fields(like a Search Help) when the user is creating the infotype Objects.
    If no, is there another way i could go through?
    Thanks!

    Thank you very much for your response. I've tried to use the function module, but I get the following dump:
    In the function "HR_COSTDISTRIBUTION_SCREEN_PUT", the STRUCTURE parameter  
    "I_RHCOST_OM" is typed in such a way                                      
    that only actual parameters are allowed, which are compatible in Unicode   
    with respect to the fragment view. However, the specified actual          
    parameter "'01S 70003361'" has an incompatible fragment view.              
    The coding looks like this (just for testing):
    call function 'HR_COSTDISTRIBUTION_SCREEN_PUT'  
    EXPORTING                                       
      i_mode             = 'D'                      
      i_type             = '1'                      
      i_data             = '2009090199991231'       
      i_rhcost_om        = '01S 70003361'           
    TABLES                                          
      i_costdistribution = gt_distribution.         
    I don't know what to do.
    Can anybody help me?
    Regards,
    Daniela

  • HR_INFOTYPE_OPERATION not working in badi HRBAS00INFTY

    Hi All,
    I need to create a record in IT0019 when IT0024 is updated.
    For that purpose I have created an implementation of badi HRBAS00INFTY and added my code in method IN_UPDATE.
    I try to create the record in IT0019 using FM HR_INFOTYPE_OPERATION.
    The problem is that the record is not created but the FM doesn't return any error( return param is empty ).
    I added 'commit WORK.' after the FM but this doesn't work neither.
    Do you have any idea why ths FM is not working in the badi.
    kr
    Karim

    Hi,
    Try with the BADI HRPAD00INFTY, If it not working try creating dynamic action for INFTY 0024.
    Dynamic actions : SPRO -> SAP Reference IMG -> Personnel Management -> Personnel Administration - >Customizing procedures -> Dynamic Actions.
    ~~~ Ganesh Kumar K.

  • BADI HRBAS00INFTY for PD Infotypes 1018

    Hello,
    I'm implementing BADI HRBAS00INFTY to check and modify some fields in infotype 1018 Cost Distribution.
    I need field PROZT which is not in NEW_INNNN. How and where can I find this field?
    I can imagine that NEW_INNNN-VDATA could help me, but how? In debug mode, value of NEW_INNNN-VDATA seems to be a key like HRT1018-TABNR (I have for example TST-----340A00000000000000060056) but I can't find the interne table where the missing field is stored.
    Regards
    Michel

    Thank you Daniel.
    As BADI HRBAS00INFTY is not easy to use, we acttually chose to develop our own transaction.
    Bye

  • Custom fields on OM to trigger creation of 0001 infotype record

    Hi Everyone,
    I need to resolve this as soon as possible.
    I have a requirement as follows:-
    There is a Custom infotype with 2 fields on a custom tab on Position level in OM.
    Now, when there is any change to the field contents and the validity dates, the integration should be triggered alongwith creating a corresponding entry in 0001 infotype in the background, just like it happens for all the other tabs/infotypes in OM.
    I already found a BADI, HRBAS00INFTY which enables me to change the code before updation of the database.
    Please let me know how to create the Info type 0001 records once the custom fields and validity dates are changed.
    Thanks and Regards,
    Pankaj.

    Hi Pankaj,
    Use the FM HR_INFOTYPE_OPERATION to update 0001.
    Regards
    Bala

  • HR LDB PNP and customer infotypes in 640

    Hello,
    I encountered the following problem during an upgrade from 4.6C to SAP ERP Central Component 5.0. When using logical database PNP and customer infotypes the syntax check produces the following syntax error:
    - INCLUDE report "%_HR9731" not found
    I have added an example program below. Prerequisite for this program is that the cutomer infotype 9731 exists in the system.
    Has anyone experienced this problem before? And if so, is there a solution? I can program some workarounds, but I prefer a solution, which does not involve changing my code.
    Regards,
    Marcel
    REPORT ZTESTINFOTYPES.
    tables: pernr.
    infotypes: 0000,
    0001,
    0002,
    9731 mode n.
    start-of-selection.
    get pernr.
    write / p0002-pernr.
    end-of-selection.

    Hi all,
    "You will have to run report RPUMS40CCI (XPRA for generation of
    infotype include) for existing customer-defined infotypes.
    If you have not run this report then please do so.
    The report RPU40CCI creates the infotype include %_HRnnnn (nnnn =
    infotype number) and the additional data structure Pnnnn_AF (nnnn =
    infotype number) for the given infotype, provided that the correspondin parameter ("generate infotype include" or "generate additional data
    structure") are set on the selection screen. If the parameter "maintain only T77ID" is set, no infotype include or additional data structure is maintained, only those entered in table T77ID."
    Best Regards
    Silvio Galery

  • BADI  HRBAS00INFTY in transaction PV15

    Hello,
    I am implementing the badi HRBAS00INFTY method BEFORE_UPDATE to control the creation of the relation A032 between person (object p) and qualifiquation (object Q) from transaction PV15.
    The issue I have is how to change the content of tables passed to this method ?
    (OLD_IMAGE, NEW_IMAGE, PLOG_TAB, TB_PLOG_TAB) and how this will affect the update process ???
    Did someone implemented this BADI to change any relation ?
    Thanks for your time,
    Jalal.

    Hello
    You cant change this tables
    reward points if helpful

  • Inputs required on BAdi HRBAS00INFTY

    Hi,
    I want to update a custom infotype based on the changes happening in a standard infotype(1001) irrespective of the transactions like ppome , ppo01,etc. I found a BAdi HRBAS00INFTY which i can use I guess. Could you please provide me some input on which method I can use for this purpose. If you have some helpful doc on this Badi,kindly share with me...
    I expect your valueable inputs.
    Thanks,
    Rahul.

    you should use method IN_UPDATE so you are sure it is executed after the data have been saved

  • HR ACTION- BDC should update both 0000 and 0001 or should not commit at al

    Hi,
    I have a requirement in which a action is to be performed. Action could be terminate, hire, or anything.
    Consider HIRE action, in hire action info type 0000 and 0001 should be updated.
    I have recorded to save info type 0000 first and then 0001 as the pe the standard action simply using SHDB. Now the problem is when running the program for few employees it save infotype 0000 and then errors out in 0001. But in this case data is already created in 0000 and 0001 is not created.
    Is there any option that will make the BDC to update both the info types 0000 and 0001 or none at all in case of error in any one?
    Thanks in advance,
    Akash

    You can commit at last , i have an idea say for example you hve to do bdc for two transactions
    pa20 , pa30(I am just using HR terms i am not quite familiar with it )
    If i use call transaction method then i will code like as below
    if flag = x
    call t-code pa20.
    call t-code pa30.
    then
    if flag = x (ie no error in bdcmsgcoll)
    commit work (at last )
    Regards
    Bhanu

  • My ipod nano 6th gen fell out of my pockey and the screen cracked badly, is there any coverage for this under warranty? I just bought it a month ago. If not what are the options for getting it fixed

    My ipod nano 6th gen fell out of my pocket and the screen cracked badly, is there any coverage for this under warranty? I just bought it a month ago. If not what are the options for getting it fixed? It is pretty frustrating, it fell from about 3 feet out of my pocket and now looks like it was beaten by a hammer.

    Debbie:
    deborahfromwindsor wrote:
    he advises restarting by inserting the OSX disc and pressing down the C button to reboot from there then selecting disk utility, hard disk and repair.... Does he mean me to hold down the C key on the alpha keyboard or the ctrl key?
    Should I just ask for my money back??? If it is a simple repair do I just literally push the disc in, push the power button and hold down the C button?
    That's where I would begin, too, with
    Repair Disk
    Insert Installer disk and Restart, holding down the "C" key until grey Apple appears.
    Go to Installer menu (Panther and earlier) or Utilities menu (Tiger) and launch Disk Utility.
    Select your HDD (manufacturer ID) in the left panel.
    Select First Aid in the Main panel.
    (Check S.M.A.R.TStatus of HDD at the bottom of right panel, and report if it saysanything but Verified)
    Click Repair Disk on the bottom right.
    If DU reports disk does not need repairs quit DU and restart.
    If DU reports errors Repair again and again until DU reports disk is repaired.
    If DU reports errors it cannot repair you will need touse autility like TechTool Pro,Drive Geniusor DiskWarrior
    First we need to determine if the issue you are experiencing with the computer is software or hardware based. Once we have gotten things sorted out there should be time enough to make you decision about keeping or returning it.
    cornelius

  • Application Web Service Control Manager detected AWEBSVC is not responding to HTTP requests. The http status code and text is 400, Bad Request.

    Hi All,
    I am seeing the following error for SMS_AWEBSVC_CONTROL_MANAGER component with Message ID: 8100
    Application Web Service Control Manager detected AWEBSVC is not responding to HTTP requests.  The http status code and text is 400, Bad Request.
    awebsctl.log file has below errors:
    Call to HttpSendRequestSync failed for port 80 with status code 400, text: Bad Request
    SMS_AWEBSVC_CONTROL_MANAGER 12/22/2014 3:37:55 PM
    13920 (0x3660)
    AWEBSVCs http check returned hr=0, bFailed=1
    SMS_AWEBSVC_CONTROL_MANAGER 12/22/2014 3:37:55 PM
    13920 (0x3660)
    AWEBSVC's previous status was 1 (0 = Online, 1 = Failed, 4 = Undefined)
    SMS_AWEBSVC_CONTROL_MANAGER 12/22/2014 3:37:55 PM
    13920 (0x3660)
    Health check request failed, status code is 400, 'Bad Request'.
    SMS_AWEBSVC_CONTROL_MANAGER 12/22/2014 3:37:55 PM
    13920 (0x3660)
    Management point and Application Catalog Website Point are installed on the same Server where I am seeing the error for Application Catalog Web Service Point role. Management Point and Application Catalog Website Point are functioning properly. Application
    Catalog Website is working.
    Thanks & Regards, Kedar

    Hi Jason,
    Application Catalog Web Service Point and Application Catalog Website Point; both are installed as per below configuration on same Server:
    IIS Website: Default Web Site
    Port Number: 80
    with default value for Web Application Name configured.
    For SMS_AWEBSVC_CONTROL_MANAGER component, I am getting below error in Component Status:
    Application Web Service Control Manager detected AWEBSVC is not responding to HTTP requests.  The http status code and text is 400, Bad Request.
    Possible cause: Internet Information Services (IIS) isn't configured to listen on the ports over which AWEBSVC is configured to communicate. 
    Solution: Verify that the designated Web Site is configured to use the same ports which AWEBSVC is configured to use.
    Possible cause: The designated Web Site is disabled in IIS. 
    Solution: Verify that the designated Web Site is enabled, and functioning properly.
    For more information, refer to Microsoft Knowledge Base.
    And awebsctl.log has the below error lines:
    Call to HttpSendRequestSync failed for port 80 with status code 400, text: Bad Request
    SMS_AWEBSVC_CONTROL_MANAGER
    12/23/2014 11:04:36 AM 16388 (0x4004)
    AWEBSVCs http check returned hr=0, bFailed=1
    SMS_AWEBSVC_CONTROL_MANAGER
    12/23/2014 11:04:36 AM 16388 (0x4004)
    AWEBSVC's previous status was 1 (0 = Online, 1 = Failed, 4 = Undefined)
    SMS_AWEBSVC_CONTROL_MANAGER
    12/23/2014 11:04:36 AM 16388 (0x4004)
    Health check request failed, status code is 400, 'Bad Request'.
    SMS_AWEBSVC_CONTROL_MANAGER
    12/23/2014 11:04:36 AM 16388 (0x4004)
    STATMSG: ID=8100
    What should I check from IIS side?
    Application Catalog Website is functioning properly.
    Thanks & regards,
    Kedar
    Thanks & Regards, Kedar

  • How  can create SEGMENTS and IDOC TYPE in BADI in ECC 6.0 version

    Hi All,
                Can any one help, how  to create SEGMENTS and IDOC TYPE in BADI in ECC 6.0 version.This is my task.
    Given BADI name was----VENDOR_ADD_DATA_BI .
    Thanks

    Anil,
    look at this thread ..may be this helps you.
    Re: 824 IDOC and BADI/User Exit
    sateesh.

  • LSMW for PA70 Tcode and APPRAISAL infotype in HR ABAP

    Hi Experts,
    Please help on this, how to create LSMW for PA70 transaction and appraisal Infotype in HR ABAP.
    Thanks,
    Kumar.

    Try searching BDC for table control.
    Lot of things are available you need to include that .
    For Appraisal.
    Check using below FM and try to develop a legacy data upload prog
    RHPA_APPRAISAL_DELETE - To delete the appraisal
    RHPA_APPRAISAL_ACTIVATE - To activate appraisal before modification
    RHPA_APPRAISAL_READ - To change rating and status for an employee
    RHPA_APPRAISAL_1045_MODIFY - To modify rating and change date for appraisal
    RHPA_APPRAISAL_HISTORICIZE - To change status of appraisal to completed
    Performing all actions in order should help to load appraisals.
    Thanks

  • Update and transfer data via BADI LE_SHP_TAB_CUST_HEAD

    Greetings All,
    I've a requirement to create a custom tab in the VL01N/VL02N/VL03N header record displaying custom fields.
    I've successfully implemented BADI LE_SHP_TAB_CUST_HEAD, created a subscreen, appended my custom fields to the LIKP table via append structure, and can now view my fields in the transactions listed above.
    I'm having trouble updating the fields in the subscreen and save the values back to the LIKP table.  First question is a) do I do this via the PBO PAI modules in my subscreen, or should I be doing this in the BADI?
    Second question is, if I shuodl be doing this in the BADI, how do I do it.  A simple example is that I have created a field called ZZ_CUST_TIME in LIKP, added it to my sub-screen using data dictionary linking.
    How do I pass a value entered into this field via VL02N back to the transaction for update?
    Any suggestions would be greatfully appreciated.
    Regards,
    Steve

    Dear Abhishek,  can you explain the step..in this step screen is comming but custom fields value is not coming and also likp table is not updated
    Correct AnswerRe: Update and transfer data via BADI LE_SHP_TAB_CUST_HEAD
    Abhisek Biswas Jan 21, 2009 7:28 AM (in response to Stephen Keam)
    Hi Stephen,
    You can do it by using PBO and PAI modules of the screen that you created. But you have to transfer the data from subscreen to the BADI method TRANSFER_DATA_FROM_SUBSCREEN and aslo from method TRANSFER_DATA_TO_SUBSCREEN to the subscreen. This will update the screen field data to LIKP.
    You can aceive this by two ways.
    1) You can use EXPORT in method TRANSFER_DATA_TO_SUBSCREEN and then IMPORT the value in the screen PBO. And You can EXPORT data from screen PAI and IMPORT data in method TRANSFER_DATA_FROM_SUBSCREEN.
    2) Anither way to do it is by using Function modules and Function Group instead of EXPORT/IMPORT.
    Create a Function group. In the global data define a structure/Work Area of type LIKP.
    DATA w_likp TYPE likp.
    Then create two Function modules, one to export data and another to import data.
    Let us assume that the export FM takes in IS_LIKP as input and the import FM outputs the value of LIKP into ES_LIKP.
    Then pass the value is_likp to the export FM in the BADI method TRANSFER_DATA_TO_SUBSCREEN and in the screen PAI pass the LIKP data to the export FM.
    In the export Function module write the following code:
    MOVE is_likp TO w_likp
    Then in the Import FM write the following code:
    MOVE w_likp TO es_likp.
    The import FM is called from method TRANSFER_DATA_FROM_SUBSCREEN and from screen PBO.
    This will solve your problem.
    Regards,
    Abhisek.
    Alert Moderator
    Like (0)
    Reply

  • Fire FTP is not working with firefox 4 and i need it badly. how do i do to make it work in the new version?

    sinds i upgrade firefox to the new version 4, fire FTP it's not working. i cannot open it. and i need it badly to work everyday. so i would like to know how to make it work in this new version. what do i do? how i can open it?

    Which version of Fire FTP do you have installed? <br />
    Version 1.99.# is needed for Firefox 4.0+ <br />
    https://addons.mozilla.org/en-US/firefox/addon/fireftp/versions/

Maybe you are looking for

  • Excise invoice Print for multiple invoices

    Hi All , i have developed a z smartform and attached to standard tcode J1IP o/p type J1I0 . The o/p is comming fine when i select one excise no after excecuting tcode J1IP But if selected multiple invoices by checking the checkbox and press print pre

  • Entry in Cluster Log

    Hi, I'm getting this error within my cluster log as was hoping someone could decipher it. 00000ad4.00001514::2014/01/19-12:07:14.588 INFO  [RES] Network Name <Storage1>: Netbios: End of Slow Operation, state: Initialized/Idle, prevWorkState: Idle 000

  • AUD$ table export

    Hi All, Please help to export sys.aud$ and also how to find the size of aud$ table .Please suggest the query to execute these... thanks

  • Boot Camp Drivers wont Install on Windows 7

    Hi I recently instllaled Windows 7 on my MacBook running Lion and when i go to install the drivers on Windows 7 it says "BootCamp x64 is incompatable with this model" How do i get the drivers to install? Cheers

  • Is there a functional advantage in downloading Lightroom from the Mac app store vs from elsewhere?

    Is there a functional advantage in downloading Lightroom from the Mac app store vs from elsewhere?