Skip to Content
0
Former Member
May 12, 2008 at 03:16 PM

How Can I define itab for VBFA in SD_SALES_DOCUMENT_PREFETCH??

198 Views

Hi Experts,

Am using FM of SD_SALES_DOCUMENT_PREFETCH to pull the data, like,

CALL FUNCTION 'SD_SALES_DOCUMENT_PREFETCH'

EXPORTING

i_sales_view = wa_view

i_memory_read = 'A'

TABLES

i_vbak_keytab = t_vbeln

fxvbak = t_vbak

fxvbap = t_vbap

fxvbep = t_vbep

FXVBFA = t_vbfa.

DATA: wa_view TYPE order_view,

t_vbeln TYPE TABLE OF sales_key,

t_vbak TYPE TABLE OF vbak with header line,

t_vbap TYPE TABLE OF vbapvb with header line,

t_vbep TYPE TABLE OF vbepvb with header line,

t_vbfa TYPE TABLE OF VBFA with header line,

t_vbfa_pgi TYPE TABLE OF VBFA with header line.

Am geeting DUMP, coz of t_vbfa_pgi TYPE TABLE OF VBFA with header line.

so, pls, let me know that,

I tried also like,

t_vbfa_pgi TYPE TABLE OF VBFAvb with header line.

t_vbfa_pgi TYPE TABLE OF V45I_VBFA_TABL with header line.

t_vbfa_pgi TYPE TABLE OF V45I_VBFA with header line.

BUT NO USE!!!!!!!

1) How I hv to define the t_vbfa in my prog.

thanq