Skip to Content
avatar image
Former Member

Requirement Routine for Output Control for Sales Contract

Dear friends,

I have a requirement, where the output for the Sales Contract should not be processed if it is having Delivery Block for example '99'. I have assigned standard routine '2' to the output type. But still the document is getting processed and output being generated. I have done all the necessary configuration.

Can any one is having idea what I am missing?

I appreciate your answer.

Thank you,

Prakash

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Apr 28, 2009 at 01:43 PM

    Hi,

    First of all, enhance the structure KOMKBV1 with an append with a copy of field VBAK-LIFSK (eg: ZZLIFSK). You can do it with the userexit USEREXIT_KOMKBV1_FILL in the report RVCOMFZZ.

    Second, define an own VOFM subroutine, if KOMKBV1-ZZLIFSK <> '99' then sy-subrc = 0.

    I hope this helps you

    Regards,

    Eduardo

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      Then the coding for VOFM must be:

      IF komkbv1-lifsk = '99'.

      sy-subrc = 0.

      EXIT.

      ENDIF.

      If you want to understand how to work this routines, if sy-subrc = 4 the output message is not created, if sy-subrc = 0 then the system creates de output message. Note 156230 'Requirements: What is permitted, what is not?' helps you to understand how to works this routines.

      Regards,

      Eduardo