cancel
Showing results for 
Search instead for 
Did you mean: 

Extraction through function module

former_member189410
Participant
0 Kudos

Hi,

I am enhancing a data source 2lis_02_itm with fiels project and erection qty.

its using an extraction structure MC02M_0ITM. in which i appended the fields.

but this data source is using extractor : MCEX_BW_LO_API which is a function module plz letme know hw i will fill data for the enhanced fields through this functional modulw its urgent.

Points will b assigned.

Thnx

Regards,

Nishu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Nishu,

For this u have to write user exit in enhancement RSAP0001.

A sampe code for that is:

WHEN '2LIS_11_VAITM'.

SELECT * FROM vbak INTO CORRESPONDING FIELDS OF TABLE c_t_data .

TABLES : vbak.

*

*DATA : I_AUDAT LIKE VBAK-AUDAT,

  • I_VBELN LIKE VBAK-VBELN occurs 0 with header line.

*DATA : I_EXT LIKE MC11VA0ITM OCCURS 0 WITH HEADER LINE.

DATA : i_t_tab LIKE mc11va0itm OCCURS 0 WITH HEADER LINE.

DATA: BEGIN OF it_vbak OCCURS 0,

vbeln TYPE vbak-vbeln,

audat TYPE vbak-audat,

END OF it_vbak.

i_t_tab[] = c_t_data[].

BREAK-POINT.

SELECT vbeln

audat

INTO TABLE it_vbak

FROM vbak

FOR ALL ENTRIES IN i_t_tab

WHERE vbeln = i_t_tab-vbeln.

LOOP AT i_t_tab.

READ TABLE it_vbak WITH KEY

vbeln = i_t_tab-vbeln.

IF sy-subrc = 0.

i_t_tab-zzaudat = it_vbak-audat.

MODIFY i_t_tab.

CLEAR : i_t_tab,it_vbak.

ENDIF.

ENDLOOP.

c_t_data[] = i_t_tab[].

REFRESH : i_t_tab,it_vbak.

I think u know where to write this.

Vinod.

Assign points if helpful.

Answers (1)

Answers (1)

Former Member
0 Kudos

You need to write a code in Cmod to fill these fields.

Ravi Thothadri