Hello,
Follwong error is coming when i am checking my programme, please help me out.
REPORT Z_MMBE.
tables: equi, eqbs.
types: begin of st_tab1,
EQUNR type EQUNR,
MATNR type MATNR,
end of st_tab1.
types: BEGIN OF st_tab2,
EQUNR type EQUNR,
B_WERK type WERKS_D,
LGORT_D type LGORT_D,
end of st_tab2.
data:
it_tab1 type STANDARD TABLE OF st_tab1,
wa_tab1 type st_tab1,
it_tab2 TYPE STANDARD TABLE OF st_tab2,
wa_tab2 TYPE st_tab2.
SELECTION-SCREEN begin of BLOCK b1 with FRAME TITLE text-001.
SELECT-OPTIONS: s_matnr for equi-matnr,
s_werks for eqbs-b_werk.
PARAMETER: p_lgort type LGORT_D.
SELECTION-SCREEN end of BLOCK b1.
START-OF-SELECTION.
INCLUDE Z_MMBE_GETDATA1F01.
perform getdata1.
end-of-SELECTION.
*************************(perform getdata1 is below)
FORM GETDATA1 .
select equnr matnr
from equi into table it_tab1
where matnr = s_matnr.
select equnr b_werk b_lager
from eqbs into table it_tab2
FOR ALL ENTRIES IN it_tab1
where equnr IN it_tab1-equnr
and b_werk IN s_werks
and b_lager = p_lgort.
ENDFORM.