Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Date conversion problem.

I use 2 adaptive RFC function with a r3 backend system:

1- Search

2- Update

The first works fine, I show the data, one of the fields is a date (with r3 Date format) binded and in the web dynpro is showed in inputfield, with a little calendar icon on the right.

I have problem with the second one. Cause I use the same inputfield for both RFC. I bind in design time with the Search RFC and for the update I pass the changed values to the 2nd RFC trought coding.

What I want is just to save in a Variable, the value of the binded UI element, with the string type I have no problem, but when I wanna save my date field in a String It say that the conversion cannot be done.

<u>EXAMPLE:</u>

String value1 = wdContext.currentTable_CelElement().getNumcel();

I wanna accomplish that example but With Date format. So the question would be How can I save in a Variable a Date format field of R3.

<b>"?" </b>value2 = wdContext.currentTable_CelElement().getFecha();

Thx

Not what you were looking for? View more on this topic or Ask a question