cancel
Showing results for 
Search instead for 
Did you mean: 

HR P&F: How to delimit Infotype record

Former Member
0 Kudos

Dear experts

I'm currently developing a Tax Form where there is a scenario to delimit IT0210, Subtype: STATE record forcefully. As far the standard is concern, when a new record is created with new subtype (new state) the previous record (i.e.) Old state is not automatically delimited.But the business requirement is to delimit the previous record before create a new state (i.e.) subtype.

I tried to use HR_INFOTYPE_OPERATION function in do_operation method but its throwing dump.

Kindly advice, how to delimit particular subtype record forcefully.

Appreciate your help. Pls consider this a urgent requirement..

Thanks

Babu

Accepted Solutions (1)

Accepted Solutions (1)

KK07
Contributor
0 Kudos

Hi Babu,

Are you not using the standard backend service SAP_PA for this P & F? Actually no need of writing the code for this operation, if you maintain the infortype and subtype in the backend service -> Infotypes & Operations -> Change(OPERATION), it will take care by SAP_PA.

Former Member
0 Kudos

Yes krishna. I'm using standard SAP_PA BS to create/change infotype record. But my requirement is to forcefully delimit the old record to let SAP_PA infotype create new record.

@Vyas: Thanks for your message. It looks promising approach to delimit record using advanced generic service, FLUSH method. I written ABAP code to delimit record and while executing the form the break-point didn't stop at FLUSH method.. My guess is while submit/save form the FLUSH method will be called automatically but its not happening.. Do I need to forcefully call FLUSH method from do_operations method.. thanks again and appreciate your help

Thanks

Babu

former_member201275
Active Contributor
0 Kudos

Infotype 0210 is time constraint 2. All delimiting and splitting actions for this infotype are taken care of by sap automatically, therefore you should not have to code anything.

Former Member
0 Kudos

Hi Glen

I agree your point.. But when I try to create new state record in Infotype 0210 the old state record will not automatically delimit because it's a different sub type.

So my requirement is to forcefully delimit old state record before create new state record.

Thanks

babu

Former Member
0 Kudos

Flush works in a strange way, no need to call flush explicitly. I have seen flush working few minutes after the saving too.. if you have workflow linked to you for than flush will be called when workflow completes... so to test flush I suggest just populate a simple Z table and test rather than a breakpoint.

KK07
Contributor
0 Kudos

Hi Babu,

FLUSH method will only be called if you implement the interface IF_HRASR00GEN_SERVICE_ADVANCED. Please check.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Babu,

Please check this thread which discusses about delimitation of Time constrain 2 infotype.

http://scn.sap.com/thread/227606

Especially the replies from below experts.

Deepak Bhavi Apr 26, 2007 11:07 PM

Anna Tang Sep 2, 2010 2:58 AM

Pls reward points if this is helpful.

Former Member
0 Kudos

Thanks all for the help.. The problem is resolved using FLUSH method and IF_HRASR00GEN_SERVICE_ADVANCED GS

- Babu

Former Member
0 Kudos

Hi Babu,

You will have to write a code to Modify the record which is already in existance. by that way you can have two records and delimited ones.

For modifiying the exisiting record, you can use BADI HRPAD00INFTY

Former Member
0 Kudos

Thanks Vyas.

Could you advice me where to write a code in HR P&F.. Do I need to write a code in DO_OPERATIONS method.. I tried to use HR_INFOTYPE_OPERATION functional module, but it doesn't allow me to use the FM and its throwing a dump.

Could you please guide me, appreciate if you can help me with sample code..

Thanks

Babu

Former Member
0 Kudos

Hi Babu,

See normally in such scenarios as Kishore mentioned, we can use SAP_PA service and use its standard functionality but If you want to delimit then I guess u need some ABAP code, such codes are written in FLUSH methods where we want some forceful operation, these methods are available in advanced generic service.

Former Member
0 Kudos

click on delimit button once and try again