cancel
Showing results for 
Search instead for 
Did you mean: 

Syntax error getting data from R3 BAPI

Former Member
0 Kudos

I am trying to read the model data. There are two import parameters in the BAPI to search the record.

I have set them in my wdDoInt() (and tried also in onActionSearch)

but the modelObject().execute statement in OnActionSearch is not getting recoginized. It has invalid syntax red wiggly line under it.

When I hover over it it says "unhandled WDDynamicRFCExecuteException". The intellisense is finding all objects.


<b>wdContext.currentZ_Opts_Masterdata_Details_InputElement().modelObject().execute();</b>

wdContext.nodeOutput().invalidate();

Why is it not recognizing the objects.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

try
{
wdContext.currentZ_Opts_Masterdata_Details_InputElement().modelObject().execute();
 
wdContext.nodeOutput().invalidate();
}
catch(WDDynamicRFCExecuteException e)
{
//report exception using message manager
}

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks Maksim.

The unhandled error makes sense now.

I did not realize you have to use try catch block for that to work.