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: 

How to reproduce PA40 - List of Personnel Actions

Former Member
0 Kudos
176

Greetings experts.

I need to reproduce the list of Personnel Actions EXACTLY as they are displayed on the PA40 screen (same order, same items). I can see that these values are coming from table T529T but not all of them are showing and I'm not sure how the program is ordering them in the display.

I'm relatively new to SAP but I did try digging around in program SAPMP50A but for me it was trying to find a needle in a haystack.

Can anyone provide me with some advice on how to reproduce this, please?

Thanks!

5 REPLIES 5

former_member194669
Active Contributor
0 Kudos
127

May be you need to look into

form fill_tbmen.in include MP50AF80 where in massntab-massn get filled.

0 Kudos
127

Thanks.

I'm looking at it now but there's a lot of data objects that are expected to be populated prior to this form being called, i.e., "li", "likey", "usergroup", etc.

I'm wondering if it's going to be possible to extricate what I need without essentially re-writing most of this program in my own. There must be a simpler way.

Would it be possible to call this screen (PA40) programatically and then "query" the contents of the ALV grid?

0 Kudos
127

> I'm wondering if it's going to be possible to extricate what I need without essentially re-writing most of this program in my own. There must be a simpler way.

>

> Would it be possible to call this screen (PA40) programatically and then "query" the contents of the ALV grid?

1. clone - PA40 ( I will not suggest for this)

2. somehow If you are called PA40., how the data get populated

0 Kudos
127

Let me ask this another way.

I recorded a PA40 session to create a participant. The event selected on the client I recorded it on is 24 (24th item from the top of the "Personnel Actions" displayed). However, on the client the user is testing it's in a different position.

I'm on a very tight deadline and I don't have time to go back and re-work my code so I need to be able to somehow read the index (position) of the event I'm looking for so I can pass it to the BDC commands:


PERFORM bdc_field       USING 'BDC_CURSOR'              'T529T-MNTXT(24)'.
PERFORM bdc_field       USING 'BDC_OKCODE'              '=PICK'.

If I could only access the list at runtime and somehow "query" it by doing a READ, etc., I could find the correct action and get it's position and replace the hard-coded "24" (from the SHDB recording) with the actual index.

Any thoughts?

former_member194669
Active Contributor
0 Kudos
127

I have no info why index is different in clients.

why don't you use PA30 for bdc instead of Pa40?