cancel
Showing results for 
Search instead for 
Did you mean: 

Change Message F5-371

former_member218048
Active Participant
0 Kudos
534

Our requirement is to: block advance payment can be made to a vendor different from the one to whom the PO was made. For this it is learnt that we have to change the message setting for message F5-371. But system is not allwing to change this message. What is the way out ?

Accepted Solutions (1)

Accepted Solutions (1)

atif_farooq
Active Contributor
0 Kudos

Hi:

You can use OBMSG transaction but please note that the unability to change the control in OBA5 means that it is a core process . Consequently SAP does not recommend to change.

Regards

former_member218048
Active Participant
0 Kudos

Is it possible to change the messag anyway ? If not, what other option do we have ?

Answers (2)

Answers (2)

Former Member
0 Kudos

I know it's quite late, but for me it was working with user exit from FI-Validation (OB28).

I had prerequisite for document type:

BKPF-BLART = 'KA'

For check, I created EXIT (you can create a new form in program ZRGGBR000).

First you have to create text element for the program in SE38 - in my case it was Z06.


For initializing the text connected to form, insert in program ZRGGBR000 in "FORM get_exit_titles TABLES etab":

   exits-name  = 'Z006'.                              "Form number
   exits-param = c_exit_param_none.        "Complete data used in exit.
   exits-title = text-z06.                
   APPEND exits.

Then just create a new form at the end of the program ZRGGBR000:

FORM z006  USING b_result.
    DATA:
     lv_lifnr LIKE ekko-lifnr,
     lv_ebeln LIKE bseg-ebeln.
 
   CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
     EXPORTING
       input  = bseg-ebeln
     IMPORTING
       OUTPUT = lv_ebeln.
 
     SELECT SINGLE lifnr FROM EKKO
       into lv_lifnr
       where ebeln = lv_ebeln.

   If bseg-lifnr <> lv_lifnr.
     b_result = b_false.
     EXIT.
   ENDIF.
ENDFORM.


And finally in the Message part raise Z message with E.


Tamas

former_member207607
Active Contributor
0 Kudos

Dear Nikkita,

The message F5371 is hardcoded as a warning message:

Include MF05AFA0_ANZAHLUNGSKONTIERUNG

  • Warnungen

if ek05a-xlifn ne space.

message w371.

endif.

therefore there is no standard way to customize this message.

Mauri