Skip to Content
0
Former Member
Dec 01, 2011 at 11:47 AM

Get Object Type in Impl-Class

46 Views

Hi Experts,

I have the requirement to show a warning that the user shall maintain a Partner "Enduser" in the Assignmentblock "Partners" when creating an Opportunity. The code for the warning is implemented in the Impl-Class of the View BTPARTNER/Partner (my Assignmentblock "Partners"). The problem is, that the Assignment Block is also used in other Scenarios, but the Waring shall only appear in the Opportunity View.

How can I check the current Scenario? I thought of getting the Object Type BT111_OPPT and check it.

Anyone know how to get the Object Type or any other solution for the problem?

Thanks and regards,

Sebastian