cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Debug problem for standard datasource in cmod

Former Member
0 Likes
1,105

I wanted to use standard data source and I had to write cmod; I wanted to fill the zzmaktx area;

the result does not return when I want to debug rsa3

WHEN '0MATERIAL_ATTR'.

DATA: s_BIW_MARA_S TYPE BIW_MARA_S.

DATA: BEGIN OF gt_makt OCCURS 0,

MATNR TYPE MAKT-MATNR,
MAKTX TYPE MAKT-MAKTX,

END OF gt_makt.

select a~MATNR a~MAKTX
from makt as a
into table gt_makt.

sort gt_makt by MATNR.

LOOP AT c_t_data INTO s_BIW_MARA_S.

READ TABLE gt_makt WITH KEY MATNR = s_BIW_MARA_S-MATNR BINARY SEARCH.

IF sy-subrc EQ 0.

s_BIW_MARA_S-zzmaktx = gt_makt-MAKTX.

ENDIF.

MODIFY c_t_data FROM s_BIW_MARA_S.

ENDLOOP.


View Entire Topic
FCI
Active Contributor

This means that your break-point is not reached. Try to set it at a higher level to find why (the highest level being the function module EXIT_SAPLRSAP_001).

Regards,

Frédéric

Former Member
0 Likes

Hi Frederic,

Worked as you said. I was using EXIT_SAPLRSAP_002.

Thank you so much.