Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing Container

Former Member
0 Kudos

Hi all,

I have a problem with Object type: Absence, Event: Requested.

When a leave request is created the event Request is no longer triggered.

When looking at the event trace there is no events for Absence. This used to work before and I am not sure where to look for the problem.

Looking at transactions SWEHR1 and SWEHR2 for the event linkage the following entries are there:

Ob: P

Infotype: 2001

Updat: REQ

Obj type: Absence

Event: Requested

Does any one have elements from Business Object method

I am having some difficulties in accessing container elements in my business object methods.

Thanks,

Manosh.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

if you want to do something with the value of the importing paramter of the business object, you also have to declare a data element with the same datatype.

E.G. method X with importing parameter Abc with data type reference t000-mandt

In the ABAP of the business object:

data abc type mandt.

swc_get_element container 'Abc' abc.

Reward points if found helpful....

Cheers,

Venkoji Babu.

1 REPLY 1

Former Member
0 Kudos

Hi,

if you want to do something with the value of the importing paramter of the business object, you also have to declare a data element with the same datatype.

E.G. method X with importing parameter Abc with data type reference t000-mandt

In the ABAP of the business object:

data abc type mandt.

swc_get_element container 'Abc' abc.

Reward points if found helpful....

Cheers,

Venkoji Babu.