cancel
Showing results for 
Search instead for 
Did you mean: 

Output Determination for Credit Block/Release

Former Member
0 Kudos

Hi All,

I have a very strange problem with my Output Determination in SD.

I have created several of these in the past and this is really, really becoming frustrating now!

The scenario ...

We need a requirement to send a form via email to a customer if the credit is released or blocked in VA02. I have set this up in SPRO and VOFM (as I have said I did this before hence I know it's correct thus far) and my code in the output determination is as follows:

FORM kobed_994.
  sy-subrc = 4.
* Not from the release or recheck transaction
  CHECK sy-tcode+1(2) NE 'KM'.
*can use komkbv1 for further info
  IF   komkbv1-cmgst EQ 'D' " released by credit responsible
  AND *komkbv1-cmgst NE 'D'.
    sy-subrc = 0.
  ELSE.
    sy-subrc = 4.
  ENDIF.
ENDFORM.


*---------------------------------------------------------------------*
*       FORM KOBEV_994                                                *
*---------------------------------------------------------------------*
*       ........                                                      *
*---------------------------------------------------------------------*
FORM kobev_994.
  PERFORM kobed_994.
ENDFORM.

However, even when Subrc is set to 4, the email is sent with the Form!! I am really frustrated at this and has gave me problems for a while ... I also have searched for similar scenario to no avail

We are running 4.6c if that helps

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Also forgot to mention ... The routine does get run!