2014 Nov 24 2:44 PM
Hi All,
I want to call method from BADI CKMLAVR_SIM to modify material data but i don't now how , I tried to create anew program with following code and called the method but give me error
Field Me is unknown it is neither in one of the specified table nor defined by a "DATA" statment.
DATA: ZIS_RUN TYPE CKMLRUNPERIOD OCCURS 0,
ZIS_RUNPLANT TYPE CKMLRUNPLANT OCCURS 0,
ZIS_CKMLHD TYPE CKMLHD OCCURS 0,
ZCS_CKMLPP TYPE CKMLPP OCCURS 0,
ZCT_CKMLCR TYPE CKMLCR_SORTED OCCURS 0,
ZCT_MLCD TYPE CKMCD_T_MLCD OCCURS 0,
ZCT_CKMLKEPH TYPE MLCCS_T_KEPH OCCURS 0.
CALL METHOD me->SIMULATE_MATERIAL
EXPORTING
IS_RUN = ZIS_RUN
IS_RUNPLANT = ZIS_RUNPLANT
IS_CKMLHD = ZIS_CKMLHD
* IMPORTING
* ED_PPCHANGED =
* ED_CRCHANGED =
* ED_MLCDCHANGED =
* ED_KEPHCHANGED =
* ET_DELMLCD =
* ET_DELKEPH =
* ET_INSMLCD =
* ET_INSKEPH =
* ET_PROTOCOL =
CHANGING
CS_CKMLPP = ZCS_CKMLPP
CT_CKMLCR = ZCT_CKMLCR
CT_MLCD = ZCT_MLCD
CT_CKMLKEPH = ZCT_CKMLKEPH
.
2014 Nov 25 9:08 AM
Hello Yasser,
Define ME in your data declaration with the class.
or change your call method to
CALL METHOD <class name> => <method name>.
Regards,
Thanga
Hi All,
I want to call method from BADI CKMLAVR_SIM to modify material data but i don't now how , I tried to create anew program with following code and called the method but give me error
Field Me is unknown it is neither in one of the specified table nor defined by a "DATA" statment.
DATA: ZIS_RUN TYPE CKMLRUNPERIOD OCCURS 0,
ZIS_RUNPLANT TYPE CKMLRUNPLANT OCCURS 0,
ZIS_CKMLHD TYPE CKMLHD OCCURS 0,
ZCS_CKMLPP TYPE CKMLPP OCCURS 0,
ZCT_CKMLCR TYPE CKMLCR_SORTED OCCURS 0,
ZCT_MLCD TYPE CKMCD_T_MLCD OCCURS 0,
ZCT_CKMLKEPH TYPE MLCCS_T_KEPH OCCURS 0.
CALL METHOD me->SIMULATE_MATERIAL
EXPORTING
IS_RUN = ZIS_RUN
IS_RUNPLANT = ZIS_RUNPLANT
IS_CKMLHD = ZIS_CKMLHD
* IMPORTING
* ED_PPCHANGED =
* ED_CRCHANGED =
* ED_MLCDCHANGED =
* ED_KEPHCHANGED =
* ET_DELMLCD =
* ET_DELKEPH =
* ET_INSMLCD =
* ET_INSKEPH =
* ET_PROTOCOL =
CHANGING
CS_CKMLPP = ZCS_CKMLPP
CT_CKMLCR = ZCT_CKMLCR
CT_MLCD = ZCT_MLCD
CT_CKMLKEPH = ZCT_CKMLKEPH
.
2014 Nov 25 9:08 AM
Hello Yasser,
Define ME in your data declaration with the class.
or change your call method to
CALL METHOD <class name> => <method name>.
Regards,
Thanga
2014 Dec 03 5:02 AM
Hello Yasser,
Did you check the above points, is your problem solved?
If yes please close the thread.
Regards,
Tp
2014 Dec 03 7:25 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |