cancel
Showing results for 
Search instead for 
Did you mean: 

SmartForm won't print in test - short dump

Former Member
0 Kudos

Hello,

I finally finished my first SmartForm and I transported it to our test box (TL2). When I run the transaction (VL70) I get a short dump as follows:

"Error analysis

An exception occurred. This exception is dealt with in more detail below

. The exception, which is assigned to the class

'CX_SY_DYN_CALL_PARAM_NOT_FOUND', was neither

caught nor passed along using a RAISING clause, in the procedure

"PROGRAMM_AUFRUFEN" "(FORM)"

.

Since the caller of the procedure could not have expected this exception

to occur, the running program was terminated.

The reason for the exception is:

A PERFORM was used to call the routine "SMARTFORM_PRINT" of the program

"ZRVADEK01".

This routine contains 0 formal parameters, but the current call

contains 2 actual parameters.

parameters."

Here is the code in question:

875 PERFORM (TNAPR-RONAM) IN PROGRAM (TNAPR-PGNAM) USING RETURNCODE

876 US_SCREEN

877 IF FOUND.

878 * restore original NAST record (in case TNAPR-RONAM changed something)

>>>>> NAST = TEMP_NAST.

It looks to me like I need to add two parameters in my SmartForm_Print form. However they are not there in the Dev system so why are they needed in the Test system? Is it something else or do I need to add these two parameters?

The SmartForm runs fine in Dev but not Test.

Regards,

Davis

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

I added the parameters that it was asking for so it runs but I still don't understand why it worked fine in Dev but not Test.

Regards,

Davis

dev_parbutteea
Active Contributor
0 Kudos

Hi,

your routine must be missing the fields you are importing i.e

form SMARTFORM_PRINT <b>USING RETURNCODE US_SCREEN</b>

or something like that.

Regards,

Sooness

Former Member
0 Kudos

Matt and Sooness, yes the programs are the same; both are missing the parameters (ReturnCode and US_Screen).

I assume I just need to add these as parameters but I wanted to find out why it works in Dev but not Test. Am I correct in assuming that US_SCREEN is a character field of size 1?

Regards,

Davis

Former Member
0 Kudos

Another thing you should check; is the config set up correctly? Is it using your new Form and Entry?

Former Member
0 Kudos

Matt,

If you are referring to V/38 then yes it is set up correctly. I even checked table TNAPR and it has the correct values.

Regards,

Davis

Former Member
0 Kudos

It sounds like you already know what is wrong (missing parameters).

As far as why it works in Dev and not in Test, have you compared the print program (ZRVADEK01)? Is it the same in both systems?