Hi,
in my selection screen after giving the company code value and press enter means other fields in the SS need to be populated automatically. How s it possible.
This is my scenario.
AT SELECTION-SCREEN on p_bukrs.
IF p_bukrs is INITIAL.
set CURSOR FIELD 'P_BUKRS'.
MESSAGE e034(ym) WITH 'Enter the Company code'(002).
else.
SELECT SINGLE bukrs
from vbrk
INTO v_bukrs
where bukrs eq p_bukrs.
IF sy-subrc <> 0.
MESSAGE e034(ym) WITH 'Enter the valid Company code'(003).
ENDIF.
ENDIF.