cancel
Showing results for 
Search instead for 
Did you mean: 

Please Help URGENT!!!

Former Member
0 Kudos

Hi all.

I'm having a problem with DATES when execute a 'Z' bapi from webdynpro.

I develop a bapi that calls the 'BAPI_CATIMESHEETMGR_INSERT' and 'DATE_GET_WEEK' standard bapis. When i execute the 'Z' bapi in R/3 works perfect, but when i do a remote call from webdynpro occurs an exception: 'com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Exception condition "DATE_INVALID" raised., error key: RFC_ERROR_SYSTEM_FAILURE' i dont know why this excption its happening.

I already try reimporting the model, restarting the J2EE engine, undeploy, redeploy, and nothing.

I hope somebody can help me. Please its URGENT!

Thx

Best Regards.

Gregory.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Gregory,

Please pass default value for the DATE column. Please check the mandatory input fields and pass the info.

Ex:

InputModelcass modelclass=new InputModelClass();

modelcass.setDate();

wdContext.ModelClass().bind(modelclass);

Regards, Anilkumar

Answers (3)

Answers (3)

Former Member
0 Kudos

hi gregory,

In Sap date will be taken as String.if u pass String from WebDynpro then ur problem will be solved.try to pass the string.

i hope that it will work.

if it is not working let me know

regards

balu

Former Member
0 Kudos

hi balu.

Thx for ur answer. But i cant do that, because the model class receives a java.sql.Date and i cant pass a String.

rgds.

Gregory.

Former Member
0 Kudos

Hi Gregory,

What value are you specifying to execute your RFC from web dynpro? Check the format of date in webdynpro as well as in RFC.

Both should be same.

Regards,

Bhavik

Former Member
0 Kudos

Ok, thx a lot to all.

I guess that the problem is by the format. In the webdynpro i receive a date of type java.sql.Date and i'm doing something like:

java.sql.Date wd = wdContext.<>.getDate();

ModelClass mc = new ModelClass();

mc.setWorkdate(wd);

I dont know if this is the correct form to do that. If not please tell me how to do it. And i dont know how to check the rfc, i execute the bapi in R/3 to test it.

I hope somebody helps me.

Gregory.

Former Member
0 Kudos

Hi,

As the RFC is getting executed in the SAP GUI do check the way you are setting the input to RFC from Web Dynpro because as the error says the RFC is not being executed.

Do check whether you are providing input for all the mandatory fields.

Hope this helps.

Regards,

Vijith