on 07-03-2009 10:40 AM
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 ®UD-SWNES&
/: ENDPERFORM.
= ®UD-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?
hi,
your form should be:
FORM include_dollar TABLES
intab STRUCTURE itcsy
outtab STRUCTURE itcsy.
regards,darek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you so much, the error disappeared! If I may continue with this thread, do any of you see any problem with outtab value not getting modified. I just ran the program and it does not seem to be changing the value of REGUD-SWNES in the printout. I am unable to debug it at this point. I shall investigate this further but if any pointers, I would be grateful.
Thanka again.
Hi,
In your script, you are using only CHANGING variable, you should use USING also. and in Z program u should declare like this.
Form <formname> TABLES in_tab STRUCTURE ITCSY
out_tab STRUCTURE ITCSY.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Your subroutine definition shoud be as follows;
FORM include_dolllar TABLES IN_PAR STUCTURE ITCSY
OUT_PAR STRUCTURE ITCSY.
Check the SAP help for the full details.
Regards,
Nick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.