Skip to Content
avatar image
Former Member

Fully settled rebate issuing message "The sales volume for agreement x is not current"

Hello!

I have a problem when switching from the "old" to "new" rebate using S136.  After the change, the old & settled rebate agreements are issuing message "The sales volume for agreement x is not current" in VBO2/3.  VBOF is not applicable to the rebate agreement as BOSTA = D.

Has anyone seen / dealt with this?

Thanks in advance

Robyn

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Nov 10, 2013 at 11:00 AM

    Hi Robyn

    I am not sure how it could have happened maybe if you rebuilt vbox the retroactive flag in the condition

    (KONP-KSPAE) got reset to 'X' even although it was assigned to a settled agreement.

    The KONP-KSPAE flag has to be ' ' for this rebate condition but in your example it is clearly 'X' and has to be corrected.

    Try this report on this agreement in your test system it should do the trick.

    REPORT  ZZ_RESET_KSPAE.


    TABLES: kona, konp.

    SELECT-OPTIONS: i_knuma FOR kona-knuma.

    PARAMETERS: test DEFAULT 'X' AS CHECKBOX.

    DATA: BEGIN OF i_kona OCCURS 100,
            knuma LIKE kona-knuma,
            bosta LIKE kona-bosta,
            boart LIKE kona-boart.
    DATA: END OF i_kona.

    DATA: wa_konp like konp.

    DATA: wa_kona LIKE kona.

    * Check number range provided
    If i_knuma IS INITIAL.
      WRITE: ' Please provide a number range !'.
      EXIT.
    ENDIF.

    * Select all rebate agreements
    SELECT * FROM kona INTO CORRESPONDING FIELDS OF TABLE i_kona
        WHERE knuma IN i_knuma
        AND kappl = 'V'
        AND abtyp = 'A'
        AND bosta = 'D'.
    IF NOT SY-SUBRC IS INITIAL.
      WRITE: ' No rebate agreements exist for this number range '.
      EXIT.
    ENDIF.

    SORT i_kona BY knuma.


    * Select conditions and reset KSPAE

    LOOP AT i_kona.
      CLEAR wa_kona.
      CHECK NOT i_kona-knuma IS INITIAL.
      SELECT * FROM konp INTO wa_konp
                WHERE knuma_bo = i_kona-knuma.
        WRITE: 'Rebate that will be set current: ',i_kona-knuma, 'condition record reset: ', wa_konp-knumh.
        skip.
        IF test = ' '.
          wa_konp-kspae = ' '.
          UPDATE KONP FROM wa_konp.
          IF sy-subrc NE 0.
            MESSAGE a102(v2) WITH 'KONA' sy-subrc.
          ENDIF.
        ENDIF.
      ENDSELECT.
    ENDLOOP.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Brian, Shiva,

      Thank you for your responses. 

      Shiva, those notes are all for open rebate agreements, so unfortunately do not help.

      Brian, thanks for the suggestion.  I'll look along those lines and let you know how it goes!

      Regards,

      Robyn

  • Nov 11, 2013 at 01:11 AM
    Add comment
    10|10000 characters needed characters exceeded