03-30-2006 7:26 AM
how to use the function module CO_BT_AFVG_READ_WITH_INDEX?
what parameters to export and import?
03-30-2006 7:36 AM
Hi,
refer this code:
data: begin of opr_itab occurs 0.
include structure sfc_itab.
data: end of opr_itab.
data: vbkz_tmp.
call function 'CO_BT_AFVG_READ_WITH_INDEX'
exporting
index = opr_itab-index_plpo
importing
afvgd_exp = afvgd
vbkz_exp = vbkz_tmp.
Regards,
Gayathri
03-30-2006 1:54 PM
hi,
try to find the programs where this FM is used, by using the option "where-used list" so that you will get idea how to and in which situation you can use this FM.
Hope this will help and i think you know how to find that.
Sudheer.
03-30-2006 1:59 PM
Hi,
Check this. As said you can try using the Where used list also.
DATA BEGIN OF RC27I_TMP.
INCLUDE STRUCTURE RC27I.
DATA END OF RC27I_TMP.
DATA BEGIN OF AFVGD_STRUC. " Vorgänge
INCLUDE STRUCTURE AFVGD.
DATA END OF AFVGD_STRUC.
DATA: BEGIN OF AFVGE_TMP OCCURS 0. " Auszug aus AFVG-Belegtabelle
INCLUDE STRUCTURE AFVGE.
DATA: END OF AFVGE_TMP.
CALL FUNCTION 'CO_BT_AFVG_READ_WITH_INDEX'
EXPORTING
INDEX = RC27I_TMP-INDEX_PLPO
IMPORTING
AFVGD_EXP = AFVGD_STRUC
VBKZ_EXP = AFVGE_TMP-VBKZ.
cheers.