Skip to Content

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

How can I set multiple values in structure model

Hi,

I'm new in web dynpro for java development and I have a problem to save data using RFC model. This RFC can save multiple values (is structure type table). I tested my RFC in SAP and works fine but when I execute the RFC in web dynpro app the values are not saved. The sample code used in wdDoModifyView is:

...

IWDInputField inputField_name = (IWDInputField)view.getElement("inputName");

IWDInputField inputfield_surn = (IWDInputField)view.getElement("inputSurn");


wdContext.currentAuthorElement().setName(inputField_name.getValue().toString().trim());

  wdContext.currentAuthorElement().setSurn(inputfield_surn.getValue().toString().trim());

//
try{
wdThis.wdGetTestCompController().executeZrfc_Bbvpricauthor_Input();
}

    catch(Exception ex){

ex.printStackTrace();

    }

...

I know that with this code only one entry could be saved and I hope that I've to use a circle to save multiple data (Authors).

Can someone help me!

Regards

Edy

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