Skip to Content
0
Former Member
Apr 06, 2008 at 06:41 PM

onActionShow gives no result

16 Views

Hi Experts,

I am creating an application similat to web dynpro example : Accessing ABAP Functions in Web Dynpro. found here [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#6 [original link is broken]].

I created an RFM which has import parameters as Date of Type CATSDB-WORKDATE. It has 'Employee_atab' as tables parameters. This is a custom fm, so if the date is given as input, it gives employee's attendence and absences in table 'Employee_atab' . It is working perfectly fine in R/3 system.

I am trying to create a web dynpro UI for this fm: So 'date' will be supplied through Web Dynpro and Table "Employee_atab" output will be seen in Web Dynpro.

I am struck here. when I give the 'date' and press show button, i do not see any thing in the table UI element.

I have a curiosity if the logic here below in wdInit Method of the controller is fine:I am guessing it is the problem with Date conversion.

Z_Hr_Time_Report_2Weeks_Input readInput = new Z_Hr_Time_Report_2Weeks_Input();

wdContext.nodeTimeDataRead().bind(readInput);

Calendar c1 = Calendar.getInstance();

// Date sDate = new Date();

Date d = new Date(c1.getTimeInMillis());

readInput.setStartdate(new Date (c1.getTime().getTime()));

This is the code in Search View controller:

public void onActionShow(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

{

//@@begin onActionShow(ServerEvent)

wdContext.currentContextElement().setStartdate(wdContext.currentContextElement().getWorkDate());

wdThis.wdGetTimeReport_CustController().executeReadTimeData();

//@@end

}

I can not locate the problem. I am not sure how the RFM is responding to the Date input on web dynpro. I am on ERP2004, I can not create a external break point in my RFC.

Could any body throw some light on the problem. I would really appreicate your help.

Thanks!

Edited by: minisap g on Apr 6, 2008 1:41 PM