cancel
Showing results for 
Search instead for 
Did you mean: 

Sales Order change triggering the service order driver program;causing dump

Former Member
0 Kudos

Hi all-

Everytime I am changing a sales order by adding any kind of payments and hitting the save button, RSNAST programs are calling the service order driver program(which are not supposed to), checking for the status field of the entry in NAST table and if the status of the service order is '1' (Succesfully processed), it is throwing a short dump saying there is a

A PERFORM was used to call the routine "ENTRY" of the program "Z_SDCS_F_R2RRVADOR01_2". This routine contains 0 formal parameters, but the current call contains 2 actual parameters.

Below is my Form logic inside the driver program:

FORM entry USING return_code us_screen.

CLEAR retcode.

xscreen = us_screen.

PERFORM processing.

IF retcode NE 0.

return_code = 1.

ELSE.

return_code = 0.

ENDIF.

ENDFORM.

Any inputs/suggestions are highly appreciated.

Regards,

Kiran

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

PERFORM processing.

IF sy-subrc = 0.

return_code = 0.

ENDIF.

try.

former_member195402
Active Contributor
0 Kudos

Hi Kiran,

the code you've shown us matches the call in RSNAST00:

PERFORM (tnapr-ronam) IN PROGRAM (tnapr-pgnam) USING returncode
                                                         us_screen
                                                         IF FOUND.

But is this really the code of the active version of report Z_SDCS_F_R2RRVADOR01_2 ?

Regards,

Klaus

Former Member
0 Kudos

Yes! The code is from the active version.