on 01-06-2015 5:11 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
User | Count |
---|---|
101 | |
12 | |
10 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.