on 02-15-2007 12:26 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to write a code in Cmod to fill these fields.
Ravi Thothadri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.