Skip to Content
avatar image
Former Member

Medruck question!

I have copied the medruck sapscript and the standard program my problem is that the field komvd-kwert has two values in it and i only need the 1 value. how can i filter this field.. thanks in advance guys.

Jaypee

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 16, 2008 at 06:50 AM

    /E header text element

    /: DEFINE COUNTER = '1'

    /E ITEM_CONDITIONS_UNIT

    IF COUNTER = '1'

    &KOMVD-KWERT&

    @shakeel

    still same results

    Add comment
    10|10000 characters needed characters exceeded

    • Jaypee,

      If after incrementing the counter in line item text element if the logic doesn't work then You have to write a subroutine where in you have to pass the conditon number (ie knumv) and get only the first entry from the subroutine and then display on the form.

      Regards..

  • Aug 16, 2008 at 05:36 AM

    Jaypee,

    Get the requriement such as which condition value you have to print on the PO.

    For example if you want t0 print the price condition value only then you have to use the IF condition statement on komvd-kschl field to display whcih condition value you want to print.

    Regards...

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 16, 2008 at 06:04 AM

    yes i got ur point. but the kbetr field has two value.. i only nid the first value.. thanks for the answer though

    Add comment
    10|10000 characters needed characters exceeded

    • Jaypee,

      If that is the case then you have to defien one counter and set the value as 1 in the header Text element.

      And then use the IF condition in line item text element and display the first value.

      In Header text element

      DEFINE COUNTER = '1'

      In Line Item Text element.

      IF counter = '1'

      display the first condition value

      Again define the same counter and set the value 2.

      DEFINE COUNTER = '2'

      ENDIF.

      Regards..