hello
i m new in abap so please help me in following query.
there are two field on selection screen . REGIO and WERKS
I need to pick the regio and respective werks from T001W the need to pass werks in ZRB_CRHDR then pick all data.
when we leave regio blank and enter WERKS then it goes directly in ZRB_CRHDR and pick all data..
I have written following code but not successful
SELECT
REGIO
WERKS INTO TABLE I_FINAL12
FROM T001W WHERE
REGIO IN REGION .
IF NOT I_FINAL[] IS INITIAL .
SELECT
WERKS
AUART
ZRB_SCHPD
ZRB_STAMT
INTO TABLE I_ZRB_CRHDR
FROM ZRB_CRHDR
FOR ALL ENTRIES IN I_FINAL WHERE
WERKS = I_FINAL-WERKS AND
WERKS IN PLANT AND
ZRB_SCHPD IN DATE AND
SPART = DIVISION .
ENDIF .
please help
thanks in advance