Application Development and Automation 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: 
Read only

t-code PA30(SAP HR) search help exit problem.

Former Member
0 Likes
798

Hi Experts ,

I have a requirement to restrict/show particluar Wage Types in PA30 t-code on basis a company code of a given the employee (PERNR).

The field PERNR/Company code are not there in the parameters or selection method of the elementary search help H_T5W3A(PA0151-LGART field) .

I have managed to add the field pernr to the parameters of this elementary serach help H_T5W3A and also given it as a importing parameter in the custom search help exit FM.

When i debug the PERNR/Company code don't get populated in the FM parameters.

I need this PERNR/Comp code to be poulated in order for the search help entries to be restricted as this is the requirement.

Please tell me what step i am missing here.

Any other workarounds for this requirement.

Hi Experts ,

I have a requirement to restrict/show particluar Wage Types in PA30 t-code on basis a company code of a given the employee (PERNR).

The field PERNR/Company code are not there in the parameters or selection method of the elementary search help H_T5W3A(PA0151-LGART field) .

I have managed to add the field pernr to the parameters of this elementary serach help H_T5W3A and also given it as a importing parameter in the custom search help exit FM.

When i debug the PERNR/Company code don't get populated in the FM parameters.

I need this PERNR/Comp code to be poulated in order for the search help entries to be restricted as this is the requirement.

Please tell me what step i am missing here.

Any other workarounds for this requirement.

3 REPLIES 3
Read only

Former Member
0 Likes
668

In Free search-> organizational assignment company code field is there.

Read only

0 Likes
668

Didn't get your point.

Could you please elaborate?

Read only

0 Likes
668

Hi,

Adding an importing parameter just provides the user to restrict the search by entering the field value. For this you need not write a search help exit. You only need to join the tables with the fields properly in the search help. However if the Wage types need to be populated as per the company code and if you have included the company code as an importing parametr, then everytime the user clicks on the F4 help for Wage type, he "has" to enter the company code in the pop up that appears for selection criteria, otherwise how would the search help know the value that you have entered for company code.

Without entering the company code in the pop up that would appear to restrict the search, the search help won't work as there won't be any other way to make it aware of the value entered.