Perform in sap script
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 ®UD-SWNES&
The program Y_DOLLAR_SYMBOL (To include a dollar symbol offset)
FORM include_dollar TABLES outtab STRUCTURE itcsy.
in_amt TYPE regud-swnes,
lv_num(10) TYPE C VALUE '0123456789',
lv_count type I,
lv_loop type I value 18.
Do lv_loop TIMES.
IF NOT IN_AMT+lv_count(1) CO lv_num.
lv_count = lv_count + 1.
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.
Does someone help me figure out what am I doing wrong?
your form should be:
FORM include_dollar TABLES intab STRUCTURE itcsy outtab STRUCTURE itcsy.