cancel
Showing results for 
Search instead for 
Did you mean: 

How to set VL261 Message as Error .

Tithira
Explorer
0 Kudos

I need to be Control partial Deliveries (to be maintained in under “Free Goods delivery Control” VBN1 Condition Record):

B – Delivery only if main item is fully delivered

The system is not blocking the Free goods issues when I partially delivered. only given vl261 information message.

So how i convert it Error message .


Accepted Solutions (0)

Answers (2)

Answers (2)

S0022029617
Active Participant
0 Kudos

The mentioned message no. VL261 is not listed in OVM1, so the next option available is an ABAP development

Tithira
Explorer
0 Kudos

Any user exit available to check the Free goods group. Can you give me the steps of the ABAP.

DominikTylczyn
Active Contributor
0 Kudos

Hello tithira

I don't think it's possible without changing SAP standard code. The message status is hard coded in the include MV45AF0B_BELEG_SICHERN:

            if message_type = chari.
              case da_subrc_lf.
                when 0 or 90.
                  message i260 with tvakt-bezei vbak-vbeln da_vbeln.
                  message_collect_lord.
                when 16.
                  message i609 with tvakt-bezei vbak-vbeln da_vbeln.
                  message_collect_lord.
                when 98.
                  message i856 with tvakt-bezei vbak-vbeln.
                  message_collect_lord.
                when others.
                  message i261 with tvakt-bezei vbak-vbeln.
                  message_collect_lord.
              endcase.
            else.
              case da_subrc_lf.
                when 0 or 90.
                  message s260 with tvakt-bezei vbak-vbeln da_vbeln.
                  message_collect_lord.
                when 16.
                  message s609 with tvakt-bezei vbak-vbeln da_vbeln.
                  message_collect_lord.
                when 98.
                  message s856 with tvakt-bezei vbak-vbeln.
                  message_collect_lord.
                when others.
                  message s261 with tvakt-bezei vbak-vbeln.
                  message_collect_lord.
              endcase.
            endif.

The status is either I or S.

Best regards

Dominik Tylczynski

Tithira
Explorer
0 Kudos

actually, I want to block the delivery if the main item not fully delivered in FOC group.