Create employee with detached infotype framework

Hello,
I'm desperately trying to create a new employee with the decoupled infotype framework, without success.
I try to save IT0000 and IT0003 (as secondary record) at first, but when I call the  'if_hrpa_masterdata_bl~get_infty_container' method, a 'cx_hrpa_missing_infty_data' exception is raised because the framework can not find any IT0003 record for the new employee (of course, since I'm trying to create it!).
So I can't do any insert since I can't get any container...
Thanks in advance.
Mathieu

So, isn't there a way to create an employee with the detached infotype framework?
Here is the code I used to try to create an employee in the system:
*-- Get business logic from masterdata factory
  CALL METHOD cl_hrpa_masterdata_factory=>get_business_logic
    IMPORTING
      business_logic = lo_masterdata_bl.
  TRY.
      CREATE OBJECT lo_message_list.
*-- THIS IS WHAT DOESN'T WORK. Since I can't get a container, I can not do anything else.
      lo_masterdata_bl->get_infty_container(
        EXPORTING
          tclas           = c_employee_tclas
          pskey           = ls_pskey
          massn           = '00'
          massg           = '00'
          no_auth_check   = abap_true
          message_handler = lo_message_list
        IMPORTING
          container       = lo_infty_container
          is_ok           = success
*-- Message management
*-- Update old data with new one
      lo_infotype_container ?= lo_infty_container.
      lo_infty_container ?= lo_infotype_container->modify_key( ls_pskey ).
      lo_infotype_container ?= lo_infty_container.
      lo_infty_container ?= lo_infotype_container->modify_primary_record( pnnnn ).
      IF pnnnn2 IS NOT INITIAL.
        lo_infty_container ?= lo_infotype_container->modify_secondary_record( pnnnn2 ).
      ENDIF.
*-- Insert record
      CALL METHOD lo_masterdata_bl->insert
        EXPORTING
          massn           = space
          massg           = space
          update_mode     = ls_update_mode
          no_auth_check   = abap_true
          message_handler = lo_message_list
        IMPORTING
          is_ok           = success
        CHANGING
          container       = lo_infty_container.
*-- Flush
      IF flush_immediately EQ abap_true.
        CALL METHOD lo_masterdata_bl->flush
          EXPORTING
            no_commit = space.
      ENDIF.
*-- Message management
    CATCH cx_hrpa_violated_assertion INTO lo_exception.
*-- Message management
  ENDTRY.

Similar Messages

  • Creating Employee with Foreign currency

    HI HR gurus
    Our company code currency is INR and till now employees were paid in INR. Now we got new requirement that is , we have to create some new employees with currency SGD (Singapore dollar) . with this we want to generate all MIS in SGD only .Posting can happen in INR after converting as per exchange rate.
    Kindly let me know the possibilities and alternatives.
    Thanks in advance
    Sneha

    Created another company code

  • Mass create Employee with BP

    Hello,
    for testing cProjects I have to create several employees and create a business partner for them. What is the best way to do this? Is it by creating the employee with pa30 and create the bp via report hr_sync_person or are there better ways? Is the a possibility to import the employees via csv-file?
    Thx, Van

    Hi,
    You can use LSMW for Mass creation of Employees.
    For creating BP out of Employees, hr_sync_person is good option.
    Or even you can use PFAL for transferring data from HR to BP
    For this you need correct Message Type
    Niranjan
    Let me know if it helps !!!

  • Create IT2013 entry with the decoupled infotype framework

    Hello,
    I tried to create an IT2013 (Quota corrections) entry with the new decoupled infotype framework but I didn't success.
    I first tried by using if_hrpa_masterdata_bl->get_infty_container to get a container (and then change it and save it) but I get an error because the time constraint for IT2013 is set to 'Z' and the framework don't handle it.
    So I guess this is because if_hrpa_masterdata_bl and other related classes/interface can only be used for PA and not for Time.
    Therefore I tried to find Time infotypes dedicated classes and I found some.
    The most interessant one is CL_PT_BLP_IT2013. It looked perfect, with everything I needed, but it doesn't work: when CL_PT_BLP_IT2013->IF_HRPT_BLP_INFOTYPE~GET_INFTY_CONTAINER is called, it tries to create an instance of CL_HRPT_INFTY_TIME_CONTAINER but raises an exception. Not surprising because the only non-commented line its constructor executes is:
    METHOD constructor.
      RAISE EXCEPTION TYPE cx_hrpa_violated_assertion.
    *  if_hrpa_infty_container~a_tclas          = 'A'.
    *  if_hrpa_infty_container~a_pskey          = pskey.
    *  if_hrpa_infty_container~a_infotype_logic = infotype_logic.
    ENDMETHOD.
    Moreover, the description of the class CL_HRPT_INFTY_TIME_CONTAINER is: "DO NOT USE! HR: Time Data Container", so it's not suprising at all it doesn't work.
    I found some other Time infotypes related classes like CL_PT_BLP_INFOTYPE or CL_PT_TD_INFOTYPE but I couldn't figure out how to create a new IT2013 entry with those ones.
    At the end of the day, I couldn't find any way to create a new IT2013 entry using the decoupled infotype framework.
    Can someone please help?
    Thanks in advance.
    Mathieu

    Hi,
    The time infotypes 2XXX are not yet decoupled as per the standard infotype framework. Hence there are no decoupled classes delivered in standard.
    Regards
    Roy
    SAP Labs

  • HR Integration with CRM doesn't create employee in CRM

    Hello all;
    We are using SAP CRM 5.0 SP08 and SAP ECC 6.0. I am trying to setup the HR-CRM integration and did everything that must be done in my opinion. The IDOC is created succesfully from the ERP side via PFAL and BD87 in CRM shows "green" status records for the IDOC but no business partner is created. I read the blog /people/vikash.krishna/blog/2006/10/15/replicating-hr-master-data-part-1 , examined the SAP notes 934372, 312090, 550055 but there is no result. May you please help me in solving the problem?
    Best Regards,
    Erkan

    Hi Erkan
    Did you follow all the following steps
    Setting up Transfer of Employee (HR Master) from R/3 to CRM
    1. Logical system XXX assigned to R/3 client XXX. Logical system YYY assigned to CRM client YYY – view through SCC4
    2. Create RFC Destination YYY  for CRM client YYY in R/3 and
    Server ID  with user details and client YYY.
    3. Transaction code SALE :  Application Link Enabling (ALE)  Modelling and Implementing Business Processes  Maintain Distribution Model and Distribute Views. (Direct transaction code : BD64)
    Go to change mode and select ‘Create Model view’.
    You get a popup. Fill in the details – Technical name, short text and validity
    Select ‘Add message type’ from the application tool bar.
    Fill in the following details
    Model view : HRCRM
    Sender logical system : XXX
    Receiver logical system : YYY
    Message type : HRMD_ABA
    Note : Only this message type works for employee transfer.
    4.Save the model. From the same screen select the distribution model and from the menu Environment  Generate partner profiles
    Don’t change anything in the next screen. Simply Execute.
    4.Distribute the distribution model HRCRM
    Select the distribution model. From the menu bar, Edit  Model View  Distribute
    You get a dialog showing the receiver logical system. Execute.
    You get a log ‘Model view HRCRM has been created in target system YYY
    5.Go to the CRM system and check up whether this model has been created.
    Transaction code BD64
    The model has got copied. No changes can be made in CRM
    6. Generate partner profiles for the distribution model in CRM by selecting
    Environment  Generate partner profiles.
    In the next screen, do not make any changes and Execute.
    Partner profiles can be seen in transaction WE20
    <b>Delta Download Settings</b>
    7. So far, the above settings will ensure the initial download. However for any changes / new employees to be transferred, i.e delta changes, changes pointers need to be activated.
    In R/3, Transaction code SALE, Application Link Enabling (ALE) &#61664; Modelling and Implementing Business Processes &#61664; Master Data Distribution &#61664; Replication of Modified Data &#61664; Activate Change Pointers – Generally (BD61)
    This  activates change pointers globally for all message types.
    8. In R/3, Transaction code SALE, Application Link Enabling (ALE) &#61664; Modelling and Implementing Business Processes &#61664; Master Data Distribution &#61664; Replication of Modified Data &#61664; Activate Change Pointers for Message Types
    Activate change pointer for message type HRMD_ABA
    9. CRM : Number Assignments. Generally, there are 3 types of number assignments (also called switches) when business partners are created.
    1 – The system uses the number from the general internal interval of the number
          range object BU_PARTNER
    2 – The system uses the number from a specific internal interval of the object
    3 – The number is transferred from HR and a prefix is added. In this case, a specific external interval, which must be defined as XX00000000 (upto
    XX99999999), is used (where XX denotes any two letters).
    The number range object for all switch positions is BU_PARTNER, with the interval depending on the switch value.
    For switch value 1, the system uses the internal standard interval, otherwise for switch values 2 and 3 you must also create a grouping (transaction BUC2) for these intervals. For the system to be able to connect the grouping and the number range interval, the name of the grouping must be exactly the same as the name of the corresponding number range interval (the name of the grouping is contained in the first column of the table). If you select 3 (HRALX/PNUMB = 3) for the number assignment of busienss partners of the employee role, create HRALX/PSUBG switch manually in table T77S0.
    In table T77S0, HRALX/ONUMB is used to set the number assignment for organizational units and HRALX/PNUMB is used to set the number assignment for employees.
    Create a number range ZZ
    Transaction code BUC2. Create a grouping of the same ID as that of the number range. Eg. Number range ID : ZZ and grouping ID should also be ZZ
    In table T77S0, maintain the following combinations
    HRALX-PNUMB = 2
    HRALX-PSUBG = ZZ
    10. Make the following customizing changes in CRM
    Transaction code SM30 : Table T77S0
    Group     Sem Abbr     Value Abbr     
    HRALX     HRAC     X     Activate HR Integration with CRM
    HRALX     OBPON     ON     Activate integration between Business partners and Org Units
    HRALX     PBPON     ON     Integration between business partners and employees
    HRALX     OPROL     BUP004     Role definition for org unit – Business partner
    HRALX     PPROL     BUP003     Role definition for Employee – Business partner
    HRALX     ONUMB     1     Number range assignment for org units
    HRALX     PNUMB     2     Number range assignment for Employees
    HRALX     PSUBG     ZZ     Number range grouping only if PNUMB is not 1.
    11. Create Employee Master in R/3.  Employee master consists of Infotypes. The mandatory infotypes are Actions, Address, Personal data and Organizational Assignment.
    Transaction code : PA30
    12. In R/3 Initial Download : SE38 – RHALEINI
    Plan version : 01
    Object type : P – Person (always)
    Object ID : Employee ID eg. 1
    Receiver Partner no. : YYY
    Select further details
    You get all the data transfer details
    13. In CRM, transaction code PP01 – View HR Master objects
    You see that the employee 1 has got transferred. To see the corresponding business partner go to the infotype Relationships (the first row)
    Screen 2 gives you the business partner ID in CRM
    14. Now change the employee master in R/3.  Execute program RBDMIDOC in R/3 to send the changes over to CRM
    Put message type ‘HRMD_ABA’ and Execute
    15. All subsequent changes in R/3, i.e changing an existing Master or creating a new one goes through directly by program RBDMIDOC.
    16. After all employees are transferred to CRM from R/3 only then its safe to execute initial download CUSTOMER_REL
    If an Employee responsible 2 is replaced by 3 in the customer master in R/3, then in CRM, the same is not replaced. Only difference that the sales area assignment is no longer there for the replaced employee in transaction BP relationships.
    Hope this would help.
    Regards,
    Rekha Dadwal
    <b>You gain a point for every point that you reward. So reward helpful answers generously</b>

  • How to create two employees with same name as supplier record?

    Dear all,
    We need to create a supplier record for an employee so that we can issue invoice for pretty cash payment. If there are 2 employees with same name, how can we create supplier records for these 2 employees? The system does not allow duplicate supplier name.
    Please advise.
    Regards,
    HY

    Hello,
    In R12 it is possible to create 2 employee with same name but different employee number.
    And also possible to create these 2 employees as suppliers in Payables.
    HTH,
    Vik

  • How to create an employee with a specific effective_start_date with api?

    Hello,
    I'm trying to create an employee through the hr_employee_api.create_employee (R12 Apps)
    In Forms, if we want create it in a different date than sysdate, we use the "Alter effective date" screen... what this does is to copy into global.g_session_date variable the value we set.. and I suppose that this date is what api takes as sysdate to create an employee with desired effective_start_date.
    But.. how to set it through Plsql procedure that call to create_employee api? p_per_effective_start_date is an out parameter... But after following the code through internal apis.. I didn't get to find where is that value set...
    Any ideas?
    If no one is passed, it's set to sysdate.. but what we want is to set this date to one specific...
    Thanks,

    Hi again,
    sorry for a "quick" conclusion...
    Although the session date wwill be set inserting in fnd_sessions.. the effective_start_date returned ..continues with the value of hire_date.
    I've checked the screen behavior and it inserts directly into PER_ALL_PEOPLE_F (when we have a "normal" employee, not CWK) through per_people11_pkg.insert_row1 procedure.
    So.. is there anyway with create_employee api to create an employee (CORRECTION p_datetrack_update_mode) with hire_date different from p_effective_start_date??
    Interesting issue...
    Regards.

  • Create Employee code with the mix of alphabets & numeric

    Hai,
    Is there any possibility to create Employee code with the mix of alphabets & numeric instead of the system generated employee code in employee master data? If so,   pls explain.
    Any suggestion is appreciated.
    Thanks,
    Parvatha Solai.N

    Hi Solai,
    You can do a work around for it. Just Leave the Employee ID field as it is. Create a new User Defined field (Alpha Numeric Type) And make it visible on the the employee master data form.
    Step2 : Depending upon your need  write the code that is if it should be auto generated write the code for else leave it blank for the user to enter the employee code.
    Step3: In before action = True. Make the newly created field as mandatory and check whether the value in the field is unique.
    Refer Route Class. Hope you understand
    Regards,
    P. Anand
    Edited by: Anand peter on Jan 2, 2012 11:59 AM

  • Problem while working with Store Manager (while Creating Employee) on VISTA

    Hi
    Is anyone workin on Windows Vista (for the Store Manager)? 
    I am using Vista for the said application but the system always hangs whenever I try to create a new employee with Store Manager. Can anyone help me out with any solution so that it doesn't hang ?
    The steps I am following is as follows-
    1. Go to Store Manager GUI > Administartion > Employee Maintenance.
    2. Click on the Create new.
    3. Key in the entries.
    4. Here the p'lem comes into picture.
    5. When I try to switch over to next entry the system hangs.
    Please help me out.
    Edited by: Shantanu Sinha on Apr 10, 2008 9:58 AM

    Hi srm_2010,
    From your description, you fail to set up SQL Server AlwaysOn Availability group in Windows Server 2008 R2 cluster. The error 41105 could be caused by several factors, such as insufficient account permissions and so on.
    To resolve this issue, firstly, I recommend you check the prerequisites, restrictions, and recommendations for AlwaysOn Availability Groups according to this
    article.
    Secondly, as the error message indicates, please disable the AlwaysOn feature in SQL Configuration Manage on both nodes, restart the SQL Server service. Then enable the AlwaysOn feature and restart the SQL Service again. This time set up AlwaysOn Availability
    Groups again and please note the following things.
    1. Ensure that the AvailabilityGroup name is defined as a different one from your Windows Cluster name.
    2. Make sure that SQL Server service account has full control permission on the Window Cluster, which is described in this
    blog.
    However, if the error persists, please post the SQL Server error log for analysis. Additionally, if you encounters any errors when configuring Windows Cluster, I recommend you post the question in the Windows 
    server clustering forum at
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverClustering . It is appropriate and more experts will assist you.
    Thanks,
    Lydia Zhang

  • Hiring new employee with HR_MAINTAIN_MASTERDATA

    Hi,
    I am trying to hire new employee with HR_MAINTAIN_MASTERDATA. For now, I only gives the mandatory values of the infotype 0002 in proposed_values and parameters to the FM.
    CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
         EXPORTING
           pernr                    = no_emp_int
           massn                    = '01'
           actio                    = 'INS'
           tclas                    = 'A'
           begda                    = sy-datum
           endda                    = '99991231'
    *       OBJPS                    =
    *       SEQNR                    =
    *       SPRPS                    =
    *       SUBTY                    =
           werks                    = '1000'
           persg                    = '1'
           persk                    = 'D9'
    *       PLANS                    =
           dialog_mode              = '1'
    *       LUW_MODE                 = '1'
           no_existence_check       = 'X'
    *       NO_ENQUEUE               = ' '
          IMPORTING
            return                   = return
    *       RETURN1                  =
    *       HR_RETURN                =
          TABLES
            proposed_values          = it_prop_val
    *       MODIFIED_KEYS            =
    When it is executed, it gives me the error:
    'No data available for A 00007787 0003' where 00007787 is the employee number. My guess is that 0003 is for the Payroll status (0003) infotype. I thought it would be automatically created with the FM.
    When I change the dialog_mode parameter to '0', no error appears but, the employee data isn't saved i.e. I cannot access it with PA30 or PA40. It says 'Personnal number not yet assigned'.
    So, I'd like to know how to save data correctly and why dialog_mode '1' or '2' failed everytime.
    Thanks a lot for your answers, points will be awarded as it fits my needs!

    Patrick
    My guess is that this FM HR_MAINTAIN_MASTERDATA will not create all 4 infotypes (0, 1, 2 and 3 as I think all those 4 are mandatory for every employee). I would say that you need to specify data for each infotype separately. You can in fact create all those 4 infotypes in separate calls of FM. I was doing this some time ago (with calling FM 4 times) but I was using different FM - HR_INFOTYPE_OPERATION.
    The obligatory fields for each infotype depends on the setting in you system so you need to find this out by your-self.
    As per infotype 0003 do not forget to set properly field VIEKN - see feature IVWID otherwise maintenance of created employee may not be possible.
    One last thing - you may try to use IDOC HRMD_A for employee creation. This way is much faster than using FM's. But be careful no data check/validation is done when you pass an IDOc to application (which maybe an advantage in your situation).
    Andrzej

  • To Create employee master data.

    Hi,
    How to create employee master data from scratch in SAP-HCM through BAPI's. Then we need to insert data in infotype 0000, 0001 and 0002 for that employee.
    Thanks in advance.
    Regards,
    Rajesh Kumat

    first check, if customizing for all fields is done.
    You will need a action type for hiring a person with infotypes 0000, 0002, 0001.
    Infotype 0001 is not so easy, because many checks are done in modul pool.
    The number range for PERNR can be set to internal or external (its your decision), transaction PA04.
    if you create a new PERNR you may wish to keep the old (legacy) one. you can use infotype 0032 or 0105, add it to the hiring action.
    If your legacy data comes with a flat file LSMW is a good tool to import master data.

  • Is there a func module to create employee emulating PA40?

    I am looking for a function module in HR to create a New Hire (US / International)?
    I am actually creating a BDC to this effect but had to do some tweaking to make it work properly - mainly with the screen flow.
    HR_MAINTAIN_MASTERDATA  does not seem to be relevant much ..
    Thanks,
    Ven.

    Hi,
    <li>The right function module is HR_INFOTYPE_OPERATION. Even you can HR_MAINTAIN_MASTERDATA. But its going to be a lengthy process.
    <li>For how to use HR_INFOTYPE_OPERATION, go to se37 and use WHERE USED LIST (CTRLSHIFTF3)
    REPORT ztest_notepad.
    DATA:p0000           TYPE STANDARD TABLE OF p0000 WITH HEADER LINE,
         return          LIKE bapireturn1,
         personaldatakey LIKE bapipakey.
    START-OF-SELECTION.
      "Get the data for Infotype into table p0000
      LOOP AT p0000.
        CALL FUNCTION 'HR_INFOTYPE_OPERATION'
          EXPORTING
            infty         = '0000'
            number        = p0000-pernr
            subtype       = p0000-subty
            validityend   = p0000-endda
            validitybegin = p0000-begda
            record        = p0000
            operation     = 'INS' "INS = Create new record
            nocommit      = space
          IMPORTING
            return        = return
            key           = personaldatakey
          EXCEPTIONS
            OTHERS        = 0.
      ENDLOOP.
      "You need write the logic for all infotype which are used in creating employee
    Thanks
    Venkat.O

  • Need to upload employee photos against infotype 0002

    Hi,
    We have an urgent reqirement to load the photos of all the employees agianst the infotype 0002 which need to be accesed by the employees and managers via enterprise portal.
    Can anybody help me....
    Thanks in advance
    Krishna

    The steps provided you are very appropiate , but you can also check the following settings incase you dnt achieve your requirements.
    Q. How to attached the Photo in IT0002
    1.Create a number range for SAP Archive Link :
    IMG>Basis Components>Basis Services>SAP Archive Link>Basic Settings>Maintain number ranges.
    Tcode OANR. Create range 01 from 0000000001 to 9999999999 without the external number flag.
    2.Document type HRICOLFOTO must exist with document class JPG.
    IMG>Basis Components>Basis Services>SAP Archive Link>System Settings>Maintain document types.
    Table TOAVE, Tcode OAC2.
    3.Document type HRICOLFOTO must be linked to object type PREL and IT0002.
    IMG>Personnel Management>Personnel Administration>Tools>Optical Archiving>Set up Optical Archiving in HR.
    View V_T585O, no Tcode. In all three columns there ara minuses, don’t put a flag in the check box.
    4.Check which content repository (Archive) is linked to document type HRICOLFOTO and object type PREL.
    IMG>Basis Components>Basis Services>SAP Archive Link>Basic Settings>Maintain Links.
    Table TOAOM_C, Tcode OAC3
    5.Create this content repository with storage type FILE archive.
    IMG>Basis Components>Basis Services>SAP Archive Link>Basic Settings>Maintain content repositories.
    Tcode OAC0
    Storage type FILE archive can be attained by clicking on the field Storage type and clicking somewhere else in the screen with the right mouse button. Choose Possible entries and only then you get a list of all values. FILE Archive is entry number 08. Choose Version no. 0031 and Archive path something (e.g. C:\).
    6.Link photo to personnel number.
    Menu>Tools>Business Documents>Miscellaneous>Stored Documents. Tcode OAAD.
    Click on the Create button. Business object PREL and Docyment type HRICOLFOTO. Click on create (fill in the right personnel number in the pop up and click Continue). Choose the photo (as a JPG file) from the place where it is saved (e.g. hard disk). SAP will notify that the Stored Document was created succesfully. Photo is visible via PA10, PA20, PA30, PA40. Double-click to magnify photo.
    To delete archived document :
    Tcode OAAD, click Find. In docyment type field select HRICOLFOTO and after execute you get a list of all documents. Select appropriate document and click on delete icon.
    thnkx
    bhanu

  • New Infotype Framework

    Hello!
    I'm just going to implement a new Infotype that should use the Data Sharing functionality for Concurrent Employment. I've read a document about the implementation of the "new" Infotype Framework, but I haven't found an example how to use it for my needs. Is there an example for the use of the Infotype Framework (e.g. Classes CL_HRPA_DATA_SHARING, CL_HRPA_INFOTYPE_FACTORY, ...).
    Has anyone ever used the framework to insert/modify an IT-record?
    Thanks in advance!

    Hi Juergen,
    I know i am too late in replying to your question.
    However, better to be late than naver, I thought I will share with you how i achieved it in my last project.
    You can refrer to the below example code ( Logic for inserting record in infotype 0015).
    Note: Structure wa0015 type PA0015 contains the data which you want to
            update in infotype 0015.
      FIELD-SYMBOLS: <ls_pnnnn> TYPE p0015.
      ASSIGN p0015 TO <ls_pnnnn> .
    create instance
      CALL METHOD cl_hrpa_masterdata_bl=>get_instance
        IMPORTING
          masterdata_bl = g_masterdata_bl.
      CREATE OBJECT g_message_handler.
      MOVE-CORRESPONDING wa0015 TO <ls_pnnnn>.
      <ls_pnnnn>-infty = ‘0015’.
    start trial
        CLEAR g_magic_cookie.
      CALL METHOD g_masterdata_bl->start_trial
        IMPORTING
          magic_cookie = g_magic_cookie.
    create infotye container
      CLEAR g_is_ok.
      CALL METHOD g_masterdata_bl->get_infty_container
        EXPORTING
          tclas           = c_tclas
          pskey           = <ls_pnnnn>-pskey
          message_handler = g_message_handler
        IMPORTING
          container       = g_container.
      <ls_pnnnn>-pskey     = g_container->a_pskey.
      g_container_nnnn ?= g_container.
      g_container      ?= g_container_nnnn->modify_primary_record( <ls_pnnnn> ).
    insert record in infotype
      DATA: ls_bapiret1 TYPE bapiret1.
      CLEAR g_is_ok.
      CALL METHOD g_masterdata_bl->insert
        EXPORTING
          message_handler = g_message_handler
        IMPORTING
          is_ok           = g_is_ok
        CHANGING
          container       = g_container.
    success
      IF g_is_ok = c_true.
      CALL METHOD g_masterdata_bl->approve_trial
        EXPORTING
          magic_cookie = g_magic_cookie.
    commit work
      CALL METHOD g_masterdata_bl->flush
        EXPORTING
          no_commit = space.
    error
      IF g_is_ok IS INITIAL.
    discard trial
      CALL METHOD g_masterdata_bl->discard_trial
        EXPORTING
          magic_cookie = g_magic_cookie.
    append errors
      DATA: lt_msg TYPE hrpad_message_tab,
            ls_msg LIKE LINE OF lt_msg,
            ps_return TYPE bapiret1.
      IF g_message_handler->has_abend( ) = 'X'.
        CALL METHOD g_message_handler->get_abend_list
          IMPORTING
            messages = lt_msg.
      ELSEIF g_message_handler->has_error( ) = 'X'.
        CALL METHOD g_message_handler->get_error_list
          IMPORTING
            messages = lt_msg.
      ELSE.
        EXIT.
      ENDIF.
      LOOP AT lt_msg INTO ls_msg.
        CALL FUNCTION 'BALW_BAPIRETURN_GET1'
          EXPORTING
            type       = ls_msg-msgty
            cl         = ls_msg-msgid
            number     = ls_msg-msgno
            par1       = ls_msg-msgv1
            par2       = ls_msg-msgv2
            par3       = ls_msg-msgv3
            par4       = ls_msg-msgv4
          IMPORTING
            bapireturn = ps_return.
        APPEND ps_return TO pt_return.
      ENDLOOP.
      ENDIF.
    Regards,
    Dinesh Pandey

  • DIF Time infotypes: Availability of time infotypes in the decoupled infotype framework

    Hi (fellow) experts,
    My primary and most wondered question:
    Does anyone out there has an idea on SAP schedule to release compatibility fix for time infotype (constraint Z) in the decoupled infotype framework?
    Many of us lately talk about and use the decoupled infotype framework; I see many clients interested in HR-Renewal PAOM attractive interface but when question turns around time data I tend to change subjects)... HR Renewal 2.0 has awesome new features such as the Payroll Control Center and the possibility for dynamic action but still no access to time infotypes... Tricky to manipulate infotype 2010, 0416 data without accessing the backend system to correct payroll data... I don't even start on 2001 absence infotype..., etc...
    I also have some question on the SAP official working model for certain PA infotype that update in background time data (e.g. 0080 for instance). 
    There are some country specific infotypes that bothers me a little bit because I don't  understand the SAP working model behind it; it's about french infotype Work stopped (0424) which is a data entry screen for work incapacity derived from illness or accident at work that update infotype 2001 in the background.
    Now if I take a detailed look at the decoupled class CL_HRPA_INFOTYPE_0424 method SPECIFIC_INSERT_COMPUTATIONS for instance I can see how the specific logic to create infotype 2001 is nicely commented out in the code while in the backend both those infotype are completely integrated.
    So what am I to understand: class is actively decoupled and I can use it but I will never have the same functionality that I have in the backend system? or is something else? same question apply to infotype 0080 under not only the french template, but UK, Spain... etc... , in the french version it updates both infotype 0424 and 2001 in the backend but I don't see nothing of the sort in the DIF even though there is an active specif FR convertion class (does not seems to be in working order and no infotype 0424 update anywhere nor of course 2001)...
    Let me be clear: I think the DIF initiative is a great innovation from SAP; very easy to understand, manipulate and so much more versatile. It would be awesome if everything would be ready to use ... very powerful tool.
    Thank you for time gurus!!!
    Antoine

    Hi Gurus:
    Well well sounds like some effort in decoupling time infotype development has been released into EHP8.
    At least I am able to see development class and FPM configurations for infotypes 2001, 2006, 3355... so even if not everything is ready I can now see things are well on the way!
    Cheers.

Maybe you are looking for

  • What cables do I need to connect MacBook Pro to the TV VGA port

    Nov 6, 2014 7:01 PM Hi, The HDMI port on my Maxent tv is not working.  I am hoping to connect my MacBook Pro to the TV via the VGA port on the TV to watch Netflix and movies.  What cables do I need that will connect to a VGA port on a TV from my MacB

  • Display attachments in SAP work list (at user decision) from portal.

    Hi Experts, How can we get the uploaded attachment form portal to SAP UWl . We have requirement like user wants to upload the travel expenses related documents (.PDF,.Txt or .doc files) in portal that attachments needs to available in approver inbox

  • Technical requirements for E-recruitment tool implementations

    Hello, We are using 4.7 version. We bought ECC 6.0 just a test server without portal facility for practice. Now we require the portal access. Can anybody says that how we can get that from SAP, Our main purpose is to use E-recrutiment in Portal since

  • BI Content objects not provided in IDES ECC6.0

    Gurus: I installed ECC6.0 IDES version.  However I do not see BI Content objects. Is there any way I can get SAP BI content objects (all starting with 0) which I can install. Thx syed<b></b>

  • [BUG] - 2x "Purchased on My Name's iPhone" sections ?!

    I just synced my iPhone 4 to my MBP laptop's (10.6.5) iTunes app (10.1.1), and suddenly get TWO "*Purchased on My Name's iPhone*" sections under the "Store" heading in the margin of iTunes?! So now half my iPhone purchases are under one section, with