cancel
Showing results for 
Search instead for 
Did you mean: 

Prefill Modeldata

Former Member
0 Kudos

Hello,

I have to prefill some fields of my modelnode. I have developed some context atrributes which are not bind to the modelnode.

Now I want to fill the values of this contextnodes to the modelnode.

I have written:

IZ_Fkget_Kkm_Ertrag_Simul_InputElement x= wdContext.nodeZ_Fkget_Kkm_Ertrag_Simul_Input().currentZ_Fkget_Kkm_Ertrag_Simul_InputElement();

x.setUmsatz(new BigDecimal(20));

x.setBuchungsdatum(

wdContext.currentContextElement().getBuchungsdatum());

x.setAbt(

wdContext

.nodeUnternehmen()

.currentUnternehmenElement()

.getABTEILUNGNR());

x.setUn(

wdContext

.nodeUnternehmen()

.currentUnternehmenElement()

.getUNTERNEHMENNR());

x.setLieferanten_Nr(

wdContext

.nodeLieferant()

.currentLieferantElement()

.getLieferantennr());

If I execute now, I see that the model is execute, but not with all values. I become an error from the RFC if I have insert some false-values. But he didn't execute it right.

I have test ist with the same attributes in SE37 and the rfc works fine with this attributes.

What is the error in this case and how to fix?

Thanks,

Peter

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi peter,

Try to debug . check whether u r passing the correct values from webdynpro side & rfc is getting correcnt values as input parameters.

regards

Sumit

Answers (0)