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

Lookup Table

Former Member
0 Likes
654

Hello,

I Have created a custom PA infotype which has one field contained in it.

There is another field defined on the screen only which holds a desciption.

This screen field is populated from a custom look up table.

On certain SAP standard screens whenever a lookup table appears and an

option is chosen the description is automactically populated after the green

tick is pressed.

On my screen I have to press the return key as well.

Does any body have any idea how I get the desciption to be populated

automatically without having to press the return key as well.

Hello,

I Have created a custom PA infotype which has one field contained in it.

There is another field defined on the screen only which holds a desciption.

This screen field is populated from a custom look up table.

On certain SAP standard screens whenever a lookup table appears and an

option is chosen the description is automactically populated after the green

tick is pressed.

On my screen I have to press the return key as well.

Does any body have any idea how I get the desciption to be populated

automatically without having to press the return key as well.

3 REPLIES 3
Read only

former_member156446
Active Contributor
0 Likes
604

This is how we do in custom code:

SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(31) text-002.
PARAMETER: p_mat TYPE  mara-matnr.
SELECTION-SCREEN COMMENT 55(40) des.
SELECTION-SCREEN END OF LINE.


AT SELECTION-SCREEN.
SELECT SINGLE maktx
    FROM makt
    INTO des
    WHERE matnr = p_mat
    AND spras = sy-langu.
  IF p_mat IS INITIAL.
    CLEAR: des.
  ENDIF.

Read only

0 Likes
604

Thanks J@y,

but I am looking at this from screen PA30 and not a selection screen.

Read only

0 Likes
604

you will be needed to find a user exit where you can do as I did for selection screen

Enhancements for PA30:

EXIT_SAPFP50M_001	PBAS0001	PA: Pers.Admin./Recruitment: Default values and checks
EXIT_SAPFP50M_002	PBAS0001	PA: Pers.Admin./Recruitment: Default values and checks
EXIT_SAPMP50A_001	PBAS0002	PA: Enhancements for Personnel Administration - Menu