Skip to Content
author's profile photo Former Member
Former Member

need help

hi experts,

plz suggest me code for the below given description.

Contract (PRICE_DESC):

1. Select the document condition (VBRK-KNUMV)

2. Select all records from KONV where document condition in billing document (VBRK-KNUMV) is equal to document condition (KONV-KNUMV) AND where billing document line (VBRP-POSNR) is equal to document condition line (KONV-KPOSN) AND where the condition type (KONV-KSCHA) is equal to ‘ZPR0.’

3. If the access (KONV-KOLNR) is equal to ’40,’ then map the attribute 6 value (KNA1-KATR6) for the Sold-to (KNA1-KUNNR) that is equal to the Sold-to on the billing document (VBRK-KUNAG).

4. Else, map blank value to field.

regards,

siri

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 04, 2006 at 03:38 PM

    1. Select the document condition (VBRK-KNUMV)

    2. Select all records from KONV where document condition in billing document (VBRK-KNUMV) is equal to document condition (KONV-KNUMV) AND where billing document line (VBRP-POSNR) is equal to document condition line (KONV-KPOSN) AND where the condition type (KONV-KSCHA) is equal to ‘ZPR0.’

    <b>select vbrk-kunag konv-kolnr into table itab from vbrk inner join vbrp on vbrk-vbeln = vbrp-vbeln

    inner join konv on vbrk-kmunv = konv-kmunv

    where konv-kscha = 'ZPR0' and

    and konv-kposn = vbrp-posnr.</b>

    3. If the access (KONV-KOLNR) is equal to ’40,’ then map the attribute 6 value (KNA1-KATR6) for the Sold-to (KNA1-KUNNR) that is equal to the Sold-to on the billing document (VBRK-KUNAG).

    <b>Loop at itab.

    clear itab-outputfield.

    if itab-kolnr = '40'.

    select katr6 into itab-outputfield from kna1 where

    kunnr = itab-kunag.

    endif.

    modify itab.

    endloop.</b>

    --itab-outputfield is your required value.

    4. Else, map blank value to field.

    Message was edited by: Anurag Bankley

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.