Application Development and Automation 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: 
Read only

parallel cursor method

pritam_baboo49
Participant
0 Kudos
832

I have to implement a report using parallel cursor method.

Fetch vbeln, vbtyp, knumv from vbrk.

fetch POSNR, FKIMG, MATNR from VBRP

Pass VBRK-KNUMV to KONP table, fetch KBETR (SUM of all KSCHL) based on KNUMV & KOPOS.

Display all the above fields in the ALV output.

plz help with code.


5 REPLIES 5
Read only

abo
Active Contributor
723

You could search for previous questions and perhaps find an answer

Read only

pritam_baboo49
Participant
0 Kudos
723

can you guide me on how to pass vbrk-knumv to konp when there is no common field.

Read only

Sandra_Rossi
Active Contributor
723

KONP-KNUMV doesn't exist?

Read only

pritam_baboo49
Participant
0 Kudos
723

Yes, I know. But my question was how to pass VBRK-KNUMV to KONP.

I did some thing like this:

select vbeln
vbtyp
knumv
FROM vbrk
INTO TABLE lt_vbrk
WHERE vbeln in s_vbeln.

SELECT vbeln
posnr
fkimg
matnr
FROM vbrp
INTO TABLE lt_vbrp
FOR ALL ENTRIES IN lt_vbrk
WHERE vbeln = lt_vbrk-vbeln.


    SELECT knumh
kbetr
kopos
from konp
INTO TABLE lt_konp
FOR ALL ENTRIES IN lt_vbrk
WHERE KNUMH = lt_vbrk-knumv.
Read only

Sandra_Rossi
Active Contributor
723

What is the issue with WHERE KNUMH = lt_vbrk-knumv?