cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a RFC 2 times with diferent data

Former Member
0 Kudos

Hi!

I'm trying to call a RFC twice, but the second time the execution reports me an Exception:

1rst:

GuardarConocimiento("CI","83",eliminarCaracteres(wdContext.currentIdiomasElement().getAleman()));

GuardarConocimiento("CI","81",eliminarCaracteres(wdContext.currentIdiomasElement().getEspanol()));

<-- this cause the report Exception.

2nd.

Function GuardarConocimiento

wdContext.currentZrfc_Eureka_Ins_Pa0022_InputElement().setSlart(Slart); <- in this line.

wdContext.currentZrfc_Eureka_Ins_Pa0022_InputElement().setSlabs(Slabs);

wdContext.currentZrfc_Eureka_Ins_Pa0022_InputElement().setSltp1(Sltp1);

wdThis.wdGetInventarioPersonasRRHHController().executeZrfc_Eureka_Ins_Pa0022();

Final Function

java.lang.NullPointerException

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member335005
Participant
0 Kudos

Hi,

check if you have bound the model node to the Model object. If you used the template to add the service controller then you should have this line in the wdDoInit method:

wdContext.nodeZrfc_Eureka_Ins_Pa0022_Input().bind(new Zrfc_Eureka_Ins_Pa0022_Input());

And also remember to invalidate the context before the second call.

Regards,

Sangeeta

Former Member
0 Kudos

Hi Gabriel,

Check while calling the rfc for second time wheather values are passing properly. It seems while calling second times null values are passed.

regards,

sukanta