10-21-2008 6:40 AM
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
10-21-2008 11:27 AM
Without knowing more about your requirement you may find that table KONV and/or function module PRICING may be helpful to you.
Regards,
Steve.
10-21-2008 11:47 AM
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.