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

View Entire Topic
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.