cancel
Showing results for 
Search instead for 
Did you mean: 

Runtime error in scripts : CX_SY_DYN_CALL_PARAM_MISSING

Former Member
0 Kudos

HI guys i am trying to print some values in sapscripts .

the thing is i am able to see the print preview and the values are showing up but when i click on the back button the system throws the following dump :

Runtime Errors PERFORM_PARAMETER_MISSING

Except. CX_SY_DYN_CALL_PARAM_MISSING

Short text

Missing parameter with PERFORM.

What happened?

Error in the ABAP Application Program

The current ABAP program "RSNAST00" had to be terminated because it has

come across a statement that unfortunately cannot be executed.

Error analysis

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_DYN_CALL_PARAM_MISSING', was

not caught in

procedure "PROGRAMM_AUFRUFEN" "(FORM)", nor was it propagated by a RAISING

clause.

Since the caller of the procedure could not have anticipated that the

exception would occur, the current program is terminated.

The reason for the exception is:

A PERFORM was used to call the routine "SHOW_VAL" of the program "Z_SHOWDATA".

The current call contains 2 actual parameter(s),

but the routine "SHOW_VAL" expects 4 parameters.

-


in the script this is the perform i ve written :

/: PERFORM SHOW_VAL IN PROGRAM Z_SHOWDATA

/: USING &NAST-OBJKY&

/: CHANGING &VARIABLE4&

/: CHANGING &VARIABLE5&

/: CHANGING &VARIABLE6&

/: ENDPERFORM

and my show_val goes as follows:

PROGRAM Z_SHOWDATA.

data: var1 like NAST-OBJKY,

var3 type P decimals 2, "string , "decimals 2, " decimals 2,

var4 type p decimals 2, "string , "decimals 2, " decimals 2,

var5 type P decimals 2, "string, " decimals 2, "decimals 2,

var6 type p decimals 2. "string .

data: itab type ekpo occurs 0 with header line .

form show_val tables intab structure itcsy

outab structure itcsy .

  • import sapscript parameters

read table intab with key 'NAST-OBJKY'.

check sy-subrc eq 0.

var1 = intab-value.

  • get Data

select single * into itab

from ekpo where EBELN eq var1.

select single *

from ekpo

into itab

where ebeln eq var1.

var3 = itab-netwr * 16 / 100.

var4 = var3 * 2 / 100.

var5 = var3 / 100.

var6 = itab-netwr + var4 + var5.

  • export sapscript parameters

READ TABLE outab WITH KEY 'VARIABLE4'.

CHECK sy-subrc EQ 0.

MOVE var4 TO outab-value.

condense outab-value.

append outab .

READ TABLE outab WITH KEY 'VARIABLE5'.

CHECK sy-subrc EQ 0.

MOVE var5 TO outab-value.

condense outab-value.

append outab .

READ TABLE outab WITH KEY 'VARIABLE6'.

CHECK sy-subrc EQ 0.

MOVE var6 TO outab-value.

condense outab-value.

append outab .

endform.

I am not able to catch the error in the code as all the values that i ve passed in the perform are successfully entered in the tables that i ve passed in my form . and the values are coming on the layout too

and the dump comes after i click on the back button after seeing the preview . Please help.

Vikram.

Please help

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Try renaming your form to another name SHOW_VAL_NEW in both the sapscript and the ABAP code. Then see if error points to new form name or old one. It looks like there is a separate call to the form after the SAPscript has been displayed - perhaps an error in customising for the form?

You could also try putting a break-point in RSNAST00 form "PROGRAMM_AUFRUFEN" and see what values it is using to call the form, and possibly trace back to where it is getting the form name from.

Also check OSS notes for RSNAST00.

Andrew

Former Member
0 Kudos

Thanks Andrew... ur suggestion has been very very helpful.

Answers (1)

Answers (1)

former_member196280
Active Contributor
0 Kudos

try like this and let me know if dump still exists, later we can do further analysis.

PROGRAM Z_SHOWDATA.

<b>*data: var1 like NAST-OBJKY,

*var3 type P decimals 2, "string , "decimals 2, " decimals 2,

*var4 type p decimals 2, "string , "decimals 2, " decimals 2,

*var5 type P decimals 2, "string, " decimals 2, "decimals 2,

*var6 type p decimals 2. "string .

data: var1(30),

var3 (30),

var4(30),

var5(30),

var6(30).</b>

data: itab type ekpo occurs 0 with header line .

form show_val tables intab structure itcsy

outab structure itcsy .

  • import sapscript parameters

read table intab with key 'NAST-OBJKY'.

check sy-subrc eq 0.

var1 = intab-value.

  • get Data

select single * into itab

from ekpo where EBELN eq var1.

select single *

from ekpo

into itab

where ebeln eq var1.

var3 = itab-netwr * 16 / 100.

var4 = var3 * 2 / 100.

var5 = var3 / 100.

var6 = itab-netwr + var4 + var5.

  • export sapscript parameters

READ TABLE outab WITH KEY 'VARIABLE4'.

CHECK sy-subrc EQ 0.

MOVE var4 TO outab-value.

condense outab-value.

append outab .

READ TABLE outab WITH KEY 'VARIABLE5'.

CHECK sy-subrc EQ 0.

MOVE var5 TO outab-value.

condense outab-value.

append outab .

READ TABLE outab WITH KEY 'VARIABLE6'.

CHECK sy-subrc EQ 0.

MOVE var6 TO outab-value.

condense outab-value.

append outab .

endform.

Regards,

SaiRam

Former Member
0 Kudos

yes its still there same dump.

Former Member
0 Kudos

Hi Vikram ,

program with ur Script ,

in Se71---. in that perform statement u have 4 formal parametrs .

but in the form definition u have only 2 that in/out tables ? So u have to changes all these things.

Regards

peram

Former Member
0 Kudos

Peram i know i have to change someting and possibly those parameters which i have passed in my program (i can see that in the dump itself) but what else to pass in it ???????

Can u tell what things i need to pass.?