Skip to Content
0
Apr 29, 2021 at 06:25 PM

S/4 HANA Public Cloud - Custom Logic VALIDATIONMESSAGE

390 Views Last edit Jun 28, 2023 at 10:26 PM 3 rev

Hi Experts,

I am currently looking for a solution for my problem in my Custom Logic of S/4 HANA Public Cloud.

I have checked certain Business Partner fields for validity in my logic and depending on the result, I would like to issue either an error message or just a warning.

As I unfortunately had to find out, it doesn't matter how I fill the field MSGTY (W, I or W) in my entry of the table ct_validationmessage. It always returns an error.

LS_VALIDATIONMESSAGE-MSGTY = 'W'.
LS_VALIDATIONMESSAGE-MSGID = 'ZTEST'.
LS_VALIDATIONMESSAGE-MSGNO = '001'.
LS_VALIDATIONMESSAGE-MSGV1 = 'Test mit MSGTY => W'.

LS_VALIDATIONMESSAGE-MSGTY = 'I'.
LS_VALIDATIONMESSAGE-MSGID = 'ZTEST'.
LS_VALIDATIONMESSAGE-MSGNO = '001'.
LS_VALIDATIONMESSAGE-MSGV1 = 'Test mit MSGTY => I'.


Do you know this problem and maybe have a solution for it?

Attachments

3qvkm.png (16.6 kB)
h7upp.png (12.7 kB)