cancel
Showing results for 
Search instead for 
Did you mean: 

RFCException.................

Former Member
0 Kudos

Hi

I am getting the following error when i am executing

<b>wdContext.currentMaterail_Input_DataElement().modelObject().execute();</b> this line of statment

com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException

Please help me

Thanks & Regards

Ravi Shankar B

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Try e.getCause() and print it.. The exception details will be more informative.. ! Or get the complete stack trace.. by nor catching the exception..

Its easier to identify the error then.

Regards

Bharathwaj

Former Member
0 Kudos

Hi,

I have set the Matnr value like this in my materialView...........

Y_Ep_Demo_Material_Get_Data_Input input = new Y_Ep_Demo_Material_Get_Data_Input();

input.setMatnr(wdContext.currentContextElement

().getKey());

after this i am calling this method....

wdThis.wdGetMaterialCustController().executeGet_Input_Data();

i have written this method in MaterialCustomControl like this...

public void executeGet_Input_Data( ){

try{

wdContext.currentMaterail_Input_DataElement().modelObject().execute();

}catch(...){

...............

}

}

com.sap.aii.proxy.framework.core.DataAccessException: Mandatory parameter MATNR of method Y_EP_DEMO_MATERIAL_GET_DATA missing

Former Member
0 Kudos

RaviShankar B,

Add the code:


wdContext.nodeMaterail_Input_Data().bind(input);

after your initial two lines of code:


Y_Ep_Demo_Material_Get_Data_Input input = new Y_Ep_Demo_Material_Get_Data_Input();
input.setMatnr(wdContext.currentContextElement().getKey());

~ Bala

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Bala....

Thanks for ur suggestion its working fine.... But i am not getting the output elements.......

My Requirement is In DropDownByKey element i will get the material number from the R/3 dynamically when i click Go button the related information of that material number has to display on my view......

I am getting the material Number and i am executing the InputBapi but i am not getting the data from the output bapi.... but in R/3 it working fine......

I have tested the output data like this.....

Y_Ep_Demo_Material_Get_Data_Output out = new Y_Ep_Demo_Material_Get_Data_Output();

wdContext.nodeMaterial_OutputData().bind(out);

but i am getting the null value....

please help me....

Thanks & Regards

Ravi Shankar B

msg.reportSuccess("sss"+out.getDwerk());

Former Member
0 Kudos

Hi,

You need not do this code

Y_Ep_Demo_Material_Get_Data_Output out = new Y_Ep_Demo_Material_Get_Data_Output();

wdContext.nodeMaterial_OutputData().bind(out);

after execution try this

Private<ViewName>.IY_Ep_Demo_Material_Get_Data_OutputNode node = wdContext.nodeY_Ep_Demo_Material_Get_Data_Output();

int len=wdContext.node<BAPIList>().size();

for(int l=0;l<len;l++) {

dropCount=dropCount+1;

String returndate=String.valueOf(((IPrivate<viewname>.I<BAPIList>Element)(wdContext.node<BAPIList>().getElementAt(l))).get<Parameter>());

IPrivate<ViewName>.IY_Ep_Demo_Material_Get_Data_OutputElement element = wdContext.createY_Ep_Demo_Material_Get_Data_OutputElement();

element.set<Param>(returndate);

node.addElement(element);

}

Kind Regards

Mukesh