Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

HRPAD00INFTY - How to determine what action the user took (AFTER_INPUT)

Former Member
0 Kudos

Greetings, Experts.

I've been asked to modify an existing BAdI for infotype 0167. The existing code is in method AFTER_INPUT.

Some of my logic depends on what the user is doing, i.e., inserting, updating, delimiting or deleting a record. I was testing different scenarios in PA30 to see what the value of IPSPA-ACTIO would be and got some puzzling results.

For example, I used the Edit->Copy feature in PA30 to copy and then delimit an existing record and was expecting an ACTIO of "LIS9" (Delimit) but it was "MOD". Similarly, I used the trashcan to remove an existing record and got a "MOD" operation. Finally, I deleted another record the same way (trashcan icon) and this time it was "LIS1" which I found stupefying since that's not even a valid value according to the DDIC for data element ACTIO.

I can't seem to get a consistent way to determine what the user is doing. What is the best practice?

Thanks.

2 REPLIES 2

Former Member
0 Kudos

Hi Steve,

You can try with IPSYST-IOPER Parameter Which is Showing the Right Values .

Regards,

Kishore.S

Former Member
0 Kudos

This question is technically not answered; however, I realized I titled the post wrong, i.e., I'm not using AFTER_INPUT but IN_UPDATE which is a very important distinction. I am going to repost with a new title.