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: 

program on KOMV structure

Former Member
0 Kudos

HI to every one.

plz suggest me how to write a program on KOMV (its not a table but it is a structure)

and the condition involved is KOMV-KSCHL (if "YMRP Condition type value is <= 190 then KOMV-KEBTR (yexd value shud be 350) .

pls help me how to implement the program of a structure KOMV along with this condition.

eagerly waiting 4 ur reply.

Regards,

V.Sai Krishna

2 REPLIES 2

Former Member
0 Kudos

Without knowing more about your requirement you may find that table KONV and/or function module PRICING may be helpful to you.

Regards,

Steve.

Former Member
0 Kudos

i have done this for po, i am writing a small code, this might help you.

SELECT single

EBELN " Purchasing Document Number

KNUMV " Number of the document condition

FROM EKKO

INTO corresponding fields of wa_EKKO

WHERE EBELN = PA_EBELN.

SELECT kposn

KNUMV

KSCHL

KBETR

KWERT

INTO CORRESPONDING FIELDS OF TABLE IT_KONV

FROM KONV

WHERE KNUMV = WA_EKKO-KNUMV .

now you can read table it_konv for differenbt KSCHL and get Condition & net values from KBETR & KWERT.

some more similar tables are KONP,KONH etc.

Sid.