cancel
Showing results for 
Search instead for 
Did you mean: 

Workmanager - read value from screen

Former Member
0 Kudos

I am tring to read one more field in TimeEntryCreate Class;

1. In LaborAdd screen i add one more field  - laborcode which exist in object but not in the screen;

2. TimeEntryCreate.class

When i read this class there is no value like; tt_.getLaborCode();  _tt=> TimeTicket object so i decide to extend the TimeTicket Object and add the laborcode here;

3. I set this properties in my extended timeentrycreate class.

in this class t.getLb() is coming 0. it doesnt read from the add labor screen.

I mapped all my extended classes in the config panel but i couldnt find timeticket object in the config panel.

did i miss something,

Thanks,

Adem

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Adem,

when you check in TimeEntryCreateBAPI standard class you can see they are manually creating object by using new operator. thats why you cannot find TimeTicket class in Configpanel.

In this case what you have to do is in your custom time entry create bapi you have to call set properties to set the value.

I can see you have not maintain this in your bapi class.

Ajitesh

Former Member
0 Kudos

Hey,

This one look ok?

still coulnt get the value from object

Former Member
0 Kudos

I removed the user definition from consturctor now it workded.

Thanks

Answers (2)

Answers (2)

Former Member
0 Kudos

 

May you please help me for this reqruiment.

Regards,

Adem

Former Member
0 Kudos

1) make sure the transaction that has the update step has the field fill in.

2) You need to fill the field with POJO when the other fields in the transaction are filled.

Former Member
0 Kudos

Any help will be appracted.