Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Perform in sap script

Hello

I am getting a dump with PERFORM_TOO_MANY_PARAMETERS when testing the sap script.

The code is as follows,

In the script

/: PERFORM INCLUDE_DOLLAR IN PROGRAM Y_DOLLAR_SYMBOL

/: CHANGING &REGUD-SWNES&

/: ENDPERFORM.

= &REGUD-SWNES&

The program Y_DOLLAR_SYMBOL (To include a dollar symbol offset)

FORM include_dollar TABLES outtab STRUCTURE itcsy.

DATA:

in_amt TYPE regud-swnes,

lv_num(10) TYPE C VALUE '0123456789',

lv_count type I,

lv_loop type I value 18.

CLEAR lv_count.

Do lv_loop TIMES.

IF NOT IN_AMT+lv_count(1) CO lv_num.

lv_count = lv_count + 1.

ELSE.

lv_count = lv_count - 1.

REPLACE SECTION OFFSET lv_count LENGTH 1 of in_amt WITH '$'.

Read TABLE outtab INDEX 1.

outtab-value = in_amt.

MODIFY outtab index sy-tabix.

EXIT.

ENDIF.

ENDDO.

ENDFORM.

Does someone help me figure out what am I doing wrong?

Former Member
Former Member replied

hi,

your form should be:

FORM include_dollar TABLES 
                                     intab STRUCTURE itcsy
                                    outtab STRUCTURE itcsy.

regards,darek

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question