Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

user exit

hi all,

i have a problem with new field add to MC03BF0.

these are the step that i do

1) i have enhanced the extract structure MC03BF0 with the append structure that contains new fields zzxblnr and zzprodh via TCODE SE11 (is correct? the RSA6 don't permit the enhancing of the structure MC03BF0).

2) after i have modified the EXIT_SAPLRSAP_001 with the code below via TCODE CMOD

<i>DATA: l_mc03bf0 LIKE mc03bf0.

DATA: l_index LIKE sy-index .

DATA: l_zzxblnr LIKE mc03bf0-zzxblnr.

DATA: l_zzprodh LIKE mc03bf0-zzprodh.

CASE I_ISOURCE.

WHEN '2LIS_O3_BF'.

BREAK-POINT.

clear l_index.

LOOP AT c_t_data INTO l_mc03bf0.

l_index = sy-tabix .

SELECT SINGLE xabln

FROM mkpf

INTO l_zzxblnr

WHERE mblnr = l_mc03bf0-mblnr

AND mjahr = l_mc03bf0-mjahr.

IF sy-subrc = 0 .

l_mc03bf0-zzxblnr = l_zzxblnr.

MODIFY c_t_data FROM l_mc03bf0 INDEX l_index .

ENDIF .

SELECT SINGLE prdha

FROM mara

INTO l_zzprodh

WHERE matnr = l_mc03bf0-matnr.

IF sy-subrc = 0 .

l_mc03bf0-zzprodh = l_zzprodh.

MODIFY c_t_data FROM l_mc03bf0 INDEX l_index .

ENDIF .

ENDLOOP.

        • fine mod. LG 10062006

WHEN OTHERS.

EXIT.

ENDCASE.

        • fine mod. LG 11062006</i>

3) i have tested the extractor with RSA3 and i have verify that the new field are not pupulated during the extraction process.

4) in debug mode i have verify that the program flow don't

come in the CASE statement

is the program that i write correct?

please help me

Former Member
Former Member replied

hi Luigi,

CASE I_ISOURCE.

WHEN '2LIS_O3_BF'.

as mentioned should i_datasource.

and WHEN '2LIS_03_BF'.

0-zero instead of O.

i_isource is infosource,

you can check the parameter with se37, type in function module EXIT_SAPLRSAP_001 tab 'import'.

also try cmod de-activate and activate again the project.

hope this helps.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question