Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

function module

Former Member
0 Kudos

how to use the function module CO_BT_AFVG_READ_WITH_INDEX?

what parameters to export and import?

3 REPLIES 3

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

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.