Skip to Content
avatar image
Former Member

program on KOMV structure

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 21, 2008 at 10: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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 21, 2008 at 10: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.

    Add comment
    10|10000 characters needed characters exceeded