2011 Nov 14 5:32 AM
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.
2011 Nov 14 10:35 AM
In Free search-> organizational assignment company code field is there.
2011 Nov 14 10:46 AM
2011 Nov 15 2:45 PM
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |