Makt_single_read

Hi experts,
I am using makt_single_read function module.
I got a short dump error while executing this FM.
It point out the SPRAS parameter.
Pls any one give one example to use this function module.
Thanks.
Message was edited by:
        Murugan Arumugam

Hi Murugan,
Try this code.
TABLES : MARA, MAKT.
DATA : BEGIN OF I_DATA OCCURS 0,
MATNR LIKE MARA-MATNR,
END OF I_DATA.
DATA : LS_WMAKT LIKE MAKT.
SELECT MATNR FROM MARA INTO TABLE I_DATA.
LOOP AT I_DATA.
CALL FUNCTION 'MAKT_SINGLE_READ'
EXPORTING
KZRFB = ' '
MAXTZ = 0
MATNR = I_DATA-MATNR
SPRAS = SY-LANGU
IMPORTING
WMAKT = LS_WMAKT
EXCEPTIONS
WRONG_CALL = 1
NOT_FOUND = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
ENDIF.
WRITE : / LS_WMAKT-MAKTX .
ENDLOOP.
Thanks,
Reward If Helpful.

Similar Messages

Maybe you are looking for