cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_CATIMESHEETRECORD_GETLIST without Histroy

Former Member
0 Kudos

Hi there,

I've implemented the BAPI and built some wbdynpros around it, now I've noticed that deleted and changed worktimes are displayed. But I'd like to view only the current worktimes.

Is this possible?

Thanks in advance

Graham

Accepted Solutions (0)

Answers (2)

Answers (2)

fortian
Active Contributor
0 Kudos

Did you solve this problem? We also want to see only the current worktimes.

Thanks

Former Member
0 Kudos

Graham,

can you please tell me which BAPI are you using?

Regards,

Ahmed Salah

Former Member
0 Kudos

Hi Ahmed Salah,

I'm using BAPI_CATIMESHEETRECORD_GETLIST (Input), with a defined Sel_Employee

Bapi_Catimesheetrecord_Getlist_Input input = new Bapi_Catimesheetrecord_Getlist_Input();
	   wdContext.nodeBapi_Catimesheetrecord_Getlist_Input().bind(input);
    
	   CALCache cache = CALCache.getCache();
	   input.setFromdate(cache.getFromdate());
       input.setTodate(cache.getTodate());

	   Bapihrselemployee employee = new Bapihrselemployee();
	   employee.setHigh(cache.getPerno());
	   employee.setLow(cache.getPerno());
	   employee.setSign("I");
	   employee.setOption("BT");
	     
	   input.addSel_Employee(employee);
    
	   IWDMessageManager manager = wdComponentAPI.getMessageManager();
	   try
	   {
		 wdContext.currentBapi_Catimesheetrecord_Getlist_InputElement().modelObject().execute();
		 wdContext.nodeCatsrecords_Out().invalidate();
	   }
	   catch(WDDynamicRFCExecuteException e)
	   {
		 manager.reportException(e.getMessage(), false);
	   }