Saving infotype 0185

Hi ,
My requirement is to save IT 0185 in background when user saves IT 0002. When IT 0002 is opened in copy, change mode and on clicking on save, it should save IT0185(Personal IDs). I have written the code to populate teh fields of IT0185 in BADI ZHRPAD00INFTY and in method IN_UPDATE. I have populated the fields and trying to save using the function module HR_INFOTYPE_OPERATION and below is the code for the same. I debugged but system is not able to do COMMIT. Could you please help in this and let me know if this is possible or not.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
              EXPORTING
                infty         = '0185'
                number        = wa_p0002-pernr
                validityend   = ls_0185-endda
                validitybegin = ls_0185-begda
                record        = ls_0185
                subtype       = 'Z2'
                operation     = 'INS'
                nocommit      = l_commit
                dialog_mode   = '1'
              IMPORTING
                return        = ls_return_0185.

Hi,
1. Go to transaction CMOD
2. Selct project PBAS0001
3. View components
4. Choose an exit
5. Click EXIT_SAPFP50M_002
6. This exit contains one include. Double click "ZXPADU02". The program ZXPADU02 runs executed every time PA30 or PA20 is executed.
7. Add in ZXPADU02 this code for example:
IF innnn-infty = '0105'.
add sone useful code specifically for it0105here
ENDIF.
good luck

Similar Messages

  • Subtype ctreation for the Infotype 0185

    Hi,
    I am trying to create a subtype for the standard infotype 0185. I have followed below mentioned steps for that:
    1) I have created an entry using v_t591a in SM31 and saved it.
    2) In PM01, created a Customer Include under Enhancement of Single Screen and added some fields to it. Activated it also.
    3) Even then I was not able to find the subtype in pa30, so have changed the technical attributes related to subtypes.
    Please give me any suggestion regarding this.
    Thanks,
    Sree

    Hi,
    Please check the below thread for the procedure to create a subtype for the standard infotype...
    /message/4304842#4304842 [original link is broken]
    Check the below thread regarding a subtype issue for infotype 0185
    No subtypes for Infotype 0185
    Check this thread for further information if necessary
    Check field Identity Number Infotype 0185 Subtype 02
    Hope this would help you.
    Good luck
    Narin

  • To Include Infotype 0185 - PAN No. in PE51 - question especially to HR Abap

    Dear All,
    My client wants PAN no to be included in the payslip which is created via transaction PE51 (for creation of HR related forms). I brought the respective table P0185 and its fields ICTYP and ICNUM via the PE51_checktab, but the problems is that in Infotype 0185 there are 4 subtypes and the payslip is picking up up the last subtype value. PAN No. is maintained against subtype '02', whereas the payslip picks up the value of subtype '04' which is obvious. How to control it to get only the PAN number printed on payslip.
    Thanks & Regards,
    Sunny Singh

    Change the two includes
    RPCEDDZ9
    RPCEDSZ9
    of program   HINCEDT0
    thats i am asking.
    As your program is picking data for the subtype 4.
    So either ask your functional guy to configure the payslip accordingly.
    through communcation ID's and define Rule for the same, so that it will go for subtype 2.
    and don't react in this manner, you are not a kid.
    Amit Singla

  • Time constraints for infotype 0185

    Hi experts,
    Need your suggestions,
    Is it possible to change the Time constraints for infotype 0185. What will be the impact if i change from 2 to 3 time constraints. Please explain...
    Shiv.

    hi,
    what i meant was standard time constraints should not be changed unless there is no other option.
    changing the time constraint is a quick fix solution.
    these standard time constraints are set after a lot of thought.
    like he referred 185  which is personnel ids.
    here you can see that it has sub types each sub type can have one record.
    you cannt have two passports .
    you cannot have two pan numbers etc.
    lets us sasy the end user enters some data wrongly and then he realises and creates another record for the same with out deleting the old one.
    the system will take it.
    but as you can see the data is already duplicated and it gives errors if some work flow or some other functionality is written basing on that input.
    regards
    nalla

  • Infotype 0185 Personal IDs and time constraint

    Hi people,
    Can you help me... is it possible to set different time constraint for different subtypes in infotype 0185 Personal ID's and where?
    Thank you,
    Romano

    Hi guys,
    thank you for your asnwer, I can see that in table V_T582A we can change time constraint for the whole infotype, but unfortunatelly I can't set different time constraint for different subtype in infotype 0185.
    I want to manage that for subtype 01 i have time constraint 2 and for subtype 02 time constraint 03.
    It is possible for example for infotype adress (0006) but i don't see where is it possible for infotype 0185.
    Thank you.
    Romano

  • Infotype 0185 to made available in recruitment module PB30..

    Dear Friends,
    Infotype 0185 is only accessible in PA from PA30, but from PB30 we cannot create info type 0185, i check the table PM01 and try to assign to applicants but not able to assign it to Applicants.
    Can anybody suggest me table where I can make this infotype accessible both in PB30 & PA30.
    Thanks
    Ravi

    hi vijay,
    there needs to be some setting to be changed..  when i try to create from pb30 it gives infotype 0185 does not exist...
    from table v_t582a im not able to make any changes..some settings needs to be changed..
    Thanks
    Ravi

  • Check field Identity Number Infotype 0185 Subtype 02

    Good Afternoon
    I have the following issue.
    What should I do for infotype 0185, subtype 02, created for  u201CRFC number in Mexicou201D, can valídate the data, which the users typed?
    I mean, the same validation as LFA1-STCD1 field in FI/CO (FK03). Could i do it thru configuration or it has to be by ABAP? 
    Regards
    Wilman

    you can write code in User Exit (PBAS0001) for validation inside FM EXIT_SAPFP50M_001's INCLUDE ZXPADU01 like this ..
    IF innnn-infty = '0185' AND SUBTY = '02'.
      CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
        EXPORTING
          prelp = innnn
        IMPORTING
          pnnnn = lx_p0185.
    *To restrict validation
      IF lx_p0185 NE 'SOMETHING'.
        MESSAGE text-008 TYPE 'E'.   "Put something in text-008 by double clicking it
        CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
          EXPORTING
            pnnnn = lx_p0185
          IMPORTING
            prelp = innnn.
      ENDIF.
    ENDIF.

  • Infotype 0185 subtype error

    Dear experts,
    I have created a new subtype M1 (driving license) under infotype 0185 (personnel id) in the table T5R05, but in pa30 i am getting a blank screen. Any suggestions.

    Hi,
    For which country you are doing this?
    I just created the same record in V_T5R05 for 99 and everything is ok!
    Try on another system like IDES if you have. Otherwise check it for another country.
    Regards,
    Omid

  • Infotype 0185 - subtype 04 Driving License Taiwan is defaulted..

    Dear All,
    In infotype 0185 -> subtype 04 Driving LIcense Taiwan is defaulted.. I want to make that value blank such that User can select manually from dropdown Country Grouping 40 India..
    Can anybody tell me how to modify this field..is there any feature..
    Thanks
    Ravi..

    Hi Lakshmi,
    Dropdown option is already there..since in PA30 -> 185 -> subtype 04 License it is showing default value, but whereas we can edit select some other country and save, but since it is showing default it is showing default even in ESS.
    Im not able to understand how to make the field blank.
    Thanks
    Ravi

  • Custom subtype in Infotype 0185

    Hi Mentors
    I have created a custom subtype in 0185 under maintain types of identification.
    However when I try to access that in PA30, am getting an error ' no values found'
    What am I missing ? Please guide
    I need to have just two ids in IT0185 - have used the standard 02 for passport and have created one more TP for Travel passport ID.
    I have also given infotype entry permissibility in T582L
    Thanks

    Hi Sikindar,
    Am having the same problem still.
    Can you please tell me the procedure to create a custom subtype
    Thanks

  • Remain to current screen in PA30 after saved infotype changes.

    Hi,
    I have a created a custom infotype 9xxx and now I have a requirement that user are allowed to saved changes on infotype 9xxx thru PA30 and it has to remain on infotype 9xxx screen instead of jumping out from PA30 after saved. Is this possible?
    Thanks in advance,
    SP

    Hi Seng,
    Could you Please share the solution of your Problem, Because I am also facing the same scenario.
    It is coming out of the Custom Infotype screen to PA30 screen after saving the data .
    in my requirement also , it should remain to same Infotype sreen after Save.
    Thanks in Advance,
    Sourabh

  • Error in saving Infotype

    Dear Experts,
    while creating infotype in my name space it is not allowing me to save the structures(PS...,) which is automatically created by SAP.
    it is showing an error :
    Customer object TABL PS9250 cannot be assigned to
    package /ABC/ZTEST
    Regards,
    Anoop Chandran

    Ashu
    Please paste the error here then only we can give
    if possible write what you did what error you got
    I think you didn't create Data elements properly. Make sure you create Data element created actiated and activate strucre too.
    Then click on Generate or if it is 4.7 click on All button
    Best Regards

  • Creation of subtype in 0185 infotype

    Hi everyone...
    I was asked to create a subtype( BID ) for an infotype 0185 -
    INFOTYPE 0185 -> SUBTYPE BID - > - 1. ID NUMBER, PASSPORT NO, PASSPORT EXP...
    Please tell me how to create these fields with structure, screen....i have created subtype BID and then i couldnt able to proceed further.....

    Why dont you directly maintain under : Identification:
    IMG  Personnel Management  Personnel Administration  Personnel Data   Identification -> Maintain Types of Identification
    You will be able to view it in PA30
    Human Resources  Personnel Management  Administration  HR Master Data  PA30 u2013 Infotype 185
    Sushilkumar

  • Hr_maintain_masterdata showing an infotype that the user does not have auth

    subject: hr_maintain_masterdata showing an infotype that the user does not have authorisation for
    Hi all,
    I've a user account that's meant to perform staffing, based on the actual HR role.  The system is also set up with an infogroup that contains infotypes 0000, 0001, 0006, 0185, XYZ and other infotypes; XYZ representing an actual infotype.  The HR role is not supposed to have this infotype XYZ.
    When PA40 is used, infotype XYZ will be skipped, as the user account do not have authorisation for it.  I could then proceed to create the record.
    When the fm: hr_maintain_masterdata is used, I was prompted that I do not have authorisation for infotype XYZ.
    I have setup my fm with the mininum amount of values, as indicated below.
    I did not populate a table for "proposed_values" so the infotypes called were due to the actions of the infogroup.
    fm: hr_maintain_masterdata
    pernr = 01234567
    massn = 01          (new staff)
    actio = INS          (insert record)
    tclas = A          (master record)
    begda = 01.09.2010
    endda = 31.12.9999
    werks = myCompanyPlant
    dialog_mode = 2     (online)
    luw_mode = 1          (commit, if no errors encountered)
    no_existance_check = X
    Q. Is there any way to let the function module call the infotypes, with authorisation checks, as what PA40 is doing?
    Your guidance would be appreciated.
    Thank you,
    James Wong

    A behaviour that has been observed was that, after infotype 0185 was saved, the function module throws me back to infotype 0000, citing, "No authorization to maintain XYZ exists".  Data that I had populated to the screen, either via the FM or by manual input were cleared.  If I skip the next 4 screens, I'll arrive at the Infotype after XYZ, with the data populated.  Subsequent infotypes also have their data filled in.
    Once I complete the sequence, the personnel record will be created.  Upon examination, the frist 4 screens that were skipped in the 2nd pass contains data that were entered in the 1st pass.
    My question, as posted in the original post, is why infotype XYZ is triggered by the function module, as the staffing account does not hae access for it.  If I repeat the process using PA40, the infotype is skipped accordingly.
    Any help would be appreciated.
    Thank you,
    James Wong,

  • Getting Error as Limits Not Defined while saving IT_0008

    Hi Folks..
    I am getting a message as "Limits not defined" while saving infotype basic pay our client payroll is international (it is a green colour message only) but i am unable to save the infotype entry. Request you to please advice me where to check to get resolve of this issue.
    Thanks
    sap_hr

    just a shot in the dark... due to lack of information
    i assume you use T710 for basic wage, there you should define the lower and upper limit for the payment. if these are not available for the entered payscale and level this message can occur

Maybe you are looking for

  • XML file to RFC (BAPI)

    hi can you please give the configuration steps that i have to follow while doing xml file to RFC, 1)configurations in XI part 2)configurations in R/3 part and i am using bpm in this scenario, is there any need of  "program id " while doing configurat

  • I need to  know the name of the database table and the fields in that table

    hi, i need to I need to  know the name of the database table and the fields in that table for the following fields of the front end . 1) incident details. 2) ownership details 3) injury type 4) % of investigation completed withen 7 days. 5) count of

  • How I can see the current pop-ups in the ipad?

    I want to know how I can access the popoups from the apps Thanks

  • Use Keynote for Website?

    I'm brand new to Keynote. Currently upgrading from 2.0.2 to 3. Is it possible to create a whole website in Keynote and upload it as your Website? iMac G5   Mac OS X (10.4.6)  

  • Photoshop elements 11 organizer install fails

    I have a new windows 8 install and installed Elements 11. During import of my photo's the process stopped and my complete computer froze. After reboot Elements organizer crashes after startup. I do see the GUI flashing for 1 sec and then it crashes.