cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Set custom logic DM package status to "warning"

Former Member
0 Likes
527

Hi experts,

I have a DM custom logic package that calls a custom logic BAdI.

I need to change package status from "success" to "warning" or "error".

I tried this:


DATA ls_message TYPE uj0_s_message.

ls_message-msgid = 'ZBPC'.

ls_message-msgty = uj00_cs_msgty-warn. "Also tried 'W' and 'E'

ls_message-msgv1 = 'My error message'.

APPEND ls_message TO et_message.

But the package still ends on "success".

See this similar thread:

How can I do this?

Thank you

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member186338
Active Contributor
0 Likes

Hi Alberto,

Search better

Vadim

Former Member
0 Likes

Hi Vadim and thanks for your answer.

That solution raises an exception that stops the BAdI and it is ok for a "Failed" status.

I just want to add some log messages and set package status to "Warning" not "Failed".

How can I do this?

Thank you

former_member186338
Active Contributor
0 Likes

Please read the last message in the provided link!

Vadim

Former Member
0 Likes

Hi Vadim,

last message says to fill et_message with 'W' record. Of course I tried this and it does not work.

It looks like my customer has a BPC 10 version that contains this bug.

It would be useful to understand which SAP note fixes this problem.

Thank you.

former_member186338
Active Contributor
0 Likes

BPC 10 version that contains this bug - what SP?

Vadim

Former Member
0 Likes

CPMBPC 800 0008 SAPK-80008INCPMBPC

(service pack 😎

Message was edited by: Alberto Bedin

former_member186338
Active Contributor
0 Likes

SP08 for 800? Extremely old... Upgrade required