Skip to Content
avatar image
Former Member

Messages are not mapped from BOPF to SADL

Hi colleagues,

I've faced with following problem: I generated a Business Object based on CDS view. On one of nodes of the BO I created an alternaive key. As a result altkey validation was generated. This validation works perfect and in BOBT I get message that instance already exists (when I try to duplicate a record). But when I did the same on UI (doesn't matter in Smart template app or freestyle app) I don't get that message and only exception is raised. I investigated the problem and found that messages are not mapped from BOPF to SADL somewhere in this method /BOBF/CL_SADL_MESSAGE_HANDLER=>POPULATE_LOCATION_MAP. The same situation when I try to do authority check.

Does anybody faced the same problem?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 15, 2017 at 10:33 AM

    Hi Siarhei,

    what is the exact exception? If you found the place where the message is not mapped: have you been able to identify a reason why it is not mapped?

    For message issues, it is also important to know whether you have a draft-enabled BO.

    Regards,

    Ivo

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Siarhei,

      OK, I guess the exception is raised only because there is no other error message. The message might possibly get removed because the instance which is referenced in the message location does not exist (any more). Another possibility: if the message has lifetime STATE (instead of TRANSITION), the message is removed when the transaction gets rolled-back (BOPF CLEANUP). You may want to try explicitly setting the message's lifetime to TRANSITION to see if this could be the issue.

      In your scenario, any failing validation would probably trigger a CLEANUP of the transaction. Therefore, the lifetime of the messages should probably always be TRANSITION (i.e. /bobf/cm_frw=>co_lifetime_transition).

      Regards,

      Ivo