cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Personas 3 script issues while calling a custom RFC-enable function module

Groovy
Explorer
0 Likes
1,090

Hello,

I have a simple requirement to read the company code and posting date from the screen, execute a custom function module and output fiscal year and fiscal period for information on customized FB01 transaction screen. The FM is very simple:

Groovy_0-1707986379480.png

Now, when getting to the script in SAP Personas i have several issues:

1. When trying to pass the parameter the issue is the syntax error below:

Groovy_1-1707986561407.png

While i can correct it by converting the input parameters .toString

FmCall.setParameter("I_BUKRS", companyCode.toString);
FmCall.setParameter("I_BUDAT", postingDate.toString);

then comes issue 2:

Groovy_2-1707986988098.png

Any help with the script is highly appreciated. Thank you

 

View Entire Topic
Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
0 Likes

At first glance, your script looks OK.

Then, the ubiquitous questions: Which Personas SP are you running, and do you have an all-green note check list in Health Check, with every available relevant note implemented?

Groovy
Explorer
0 Likes
Tamas, posted a reply as an answer to my own message.
NPPD_DJWIEBE
Explorer
0 Likes
This is awesome! Thanks!