Skip to Content
0
Feb 11, 2014 at 01:29 PM

Correct usage of parallel cursors

3551 Views

Hi All,

I want to use parallel cursor technique for the below code. I have read a lot of blogs on how to use it correctly.

But somehow I still have some uncertainty on how to use it.

Can you please help me.

LOOP AT gt_bkpf INTO gw_bkpf.

LOOP AT gt_glpca_mara ASSIGNING <lw_glpca_mara> WHERE rbukrs = gw_bkpf-bukrs

AND ryear = gw_bkpf-gjahr

AND refdocnr_temp = gw_bkpf-awkey.

IF sy-subrc = 0.

<lw_glpca_mara>-belnr = gw_bkpf-belnr.

ENDIF.

ENDLOOP.

ENDLOOP.

Thanks,

Faiz