Skip to Content

Insert New Records with Decoupled Infotype Framework

Hi,

I am building a program to perform PA actions manually (Rehire for example). I have been able to use the DCIF to create a new inserted record for the 0000 infotype but have run into a road block with getting any other infotypes to insert. The 0000 one inserts the new record as well as delimits the now old separation record. Nice. However, trying the same code process with other infotypes results in a short dump when using the MODIFY_PRIMARY_RECORD method of the container class. This is expected... per the warning in the help documentation:

https://help.sap.com/saphelp_erp60_sp/helpdata/en/ad/9ee2539c70424de10000000a174cb4/content.htm?frameset=/en/b0/9ee2539c70424de10000000a174cb4/frameset.htm&current_toc=/en/ed/a7e2539c70424de10000000a174cb4/plain.htm&node_id=80

So, after trying to discern how to create an empty container, assign it my new values, and do an 'insert' of some sort I can't seem to get a working model with all the right classes/interfaces. The help docs for Insert suggests using the A_GENERIC_UPDATE->INSERT method but I don't have any objects (or know which ones to instantiate) to get at this. I'm doing this as a stand alone custom application that isn't part of the existing PA code base. In essence, I'm not inside of an enhancement where this object (CL_HRPA_INFOTYPE_NNNN) is probably readily available.

Note, I've also been able to successfully use the HR_PAD_HIRE_EMPLOYEE class to create new employees. Other than it's using the DCIF, it doesn't really relate - but I thought I'd throw that in.

I've found a few examples on how to use the insert to update existing records but nothing on actually inserting a brand new record (similar to the 0000) that I did already. I think the 0000 worked fine due to providing the Action and Reason codes - which don't apply for the other infotypes.

My inquiry is to try and find a working code example of someone that's successfully used the DCIF to insert new records that are not of the 0000 type. I'm a little stumped/concerned that there's not much out there by way of examples... which makes me wonder how possible this is.

Anyone come across this or have a reference?

Thanks,

Bryan

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Aug 05, 2016 at 03:00 PM
    -1

    Update. I was able to figure this out using the SAP Help documentation. Thing is that the insert function does not allow for using the business logic objects for SAP standard infotypes. It lets you do basically raw inserts or business logic inserts on your own custom infotypes... but not for SAP standard.

    So, possibly the 'insert' function is really an update/modify that pairs up with a delimit. Going to need to spend some time looking into that now.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.