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

ABAP code - KONV cluster table

Former Member
0 Likes
1,120

Hi All!

I have to create a report (SQ01) for the price condition VBRP-WAVWR, VBRP-NETWR, VBAP-NETWR, VBAP-WAVWR and KONV-KBETR. I created a InfoSet (SQ02) with table join between VBRK, VBRP, VBPA, PA0002, VBAK and VBAP (I use different fields from this tables). I created 2 Additional fields AD_Z004 and DS_KA00 like KONV-KBETR and coding selection for this fields is:

SELECT SINGLE KBETR FROM KONV INTO DS_KA00

WHERE KNUMV EQ VBAK-KNUMV AND

KPOSN EQ VBAP-POSNR AND

KSCHL EQ 'KA00' AND

STUNR EQ '101' AND

ZAEHK EQ '01'.

SELECT SINGLE KBETR FROM KONV INTO AD_Z004

WHERE KNUMV EQ VBAK-KNUMV AND

KPOSN EQ VBAP-POSNR AND

KSCHL EQ 'Z004' AND

STUNR EQ '015' AND

ZAEHK EQ '01'.

When I run the report this additional fields don't have any value. I set a BREAK before this code and the system is ignoring the code.

What am I doing wrong?

All the help will be appreciated. Thank you.

4 REPLIES 4
Read only

Former Member
0 Likes
805

When i generate the Infoset, I receive the warning:

Warning messasages

Compare field group fields with Data Dictionary

Currency field RV61A-KOEI1 will not be filled

Affected currency amount fields:

DS_KA00

AD_Z004

Read only

Former Member
0 Likes
805

Solved on my own.

Read only

0 Likes
805

Hi Cheta Florina,

May I know how you solved the problem because I also encounter this problem.

Thanks in advance.

Leng

Read only

0 Likes
805

Hi Leng!

I create additional information for VBRK table - two additional fields: DS_KA00, AD_Z004 (SQ02). In Coding section for the additional field I witted the code:

-


BREAK FLORINA_C .

SELECT SINGLE KBETR FROM KONV INTO DS_KA00

WHERE KNUMV EQ VBAK-KNUMV AND

KPOSN EQ VBAP-POSNR AND

KSCHL EQ 'KA00' AND

STUNR EQ '101' AND

ZAEHK EQ '01'.

SELECT SINGLE KBETR FROM KONV INTO AD_Z004

WHERE KNUMV EQ VBAK-KNUMV AND

KPOSN EQ VBAP-POSNR AND

KSCHL EQ 'Z004' AND

STUNR EQ '015' AND

ZAEHK EQ '01'.

-


In SQ01 I created other two local fields because the value of AD_Z004 and DS_KA00 should be divided by 10 in order to be correct.

I hope it was helpful. Sorry for answering so late.

Florina C