Skip to Content
0
Former Member
Aug 22, 2005 at 03:56 PM

Problems with tha sapscript-command 'perform'

21 Views

Hello,

I want to call a subprogram in a modulpool from a textelement in SAPScript with the command 'perform'. The subprogram has one parameter. But I get a dump, which says that I "give 4 actual parameters to a subprogram with only 1 formal parameter". I don't know why this problem arises, because I overgive only 1 actual parameter. Thanks.

Regards, Lars.

-


SAPScript:

/: DEFINE &CHECK1& = ' '

/: PERFORM TESTDRUCK IN PROGRAM ZSD_TESTDRUCK_POOL

/: CHANGING &CHECK1&

/: ENDPERFORM

/: IF &CHECK1& NE 'x'

/: INCLUDE ZTESTBITMAP OBJECT GRAPHICS ID BCOL LANGUAGE DE

/:ENDIF

-


ABAP:

REPORT ZSD_TESTDRUCK_POOL .

TABLES: ZQM_TESTDRUCK.

FORM TESTDRUCK CHANGING check TYPE c.

  • DATA check(1) TYPE c.

check = ' '.

SELECT * FROM ZQM_TESTDRUCK.

IF sy-sysid = ZQM_TESTDRUCK-SAPSYSTEM.

check = 'x'.

ENDIF.

ENDSELECT.

ENDFORM.