cancel
Showing results for 
Search instead for 
Did you mean: 

SAP SCRIPT error in ECC 6.0 - symbol ' regup' invalid data type 'u'.

Former Member
0 Kudos

I have Problem in ECC 6.0

we upgraded from 4.6c to ecc 6.0

program: RFFOUS_C

sapscript - z program ( no problem in 4.6c)

but in ECC 6.0 it says :

symbol ' regup' invalid data type 'u'.

error: A symbol is used in a text of a form that is not a elementary field but rather a structure.only elementary fields are permitted.

do we need to change the script?any one had the same kind of issue?

Accepted Solutions (0)

Answers (3)

Answers (3)

hedvig_rohonyi
Employee
Employee
0 Kudos

Hello Renu,

regarding your error message ...exceeded by 255 by symbol &SPELL-WORD&".


The issue occurs when the variable SPELL-WORD is returning more
characters than the maximum 255 allowed. 

There are a restrictions for the size of a symbol.

The size of a symbol depends on the type of a symbol.
E.g. the size of a program symbol is limited to 255 characters,
the size of a text symbol to 80 characters. This limit cannot
be increased.

So if you want to use symbols for a larger text, you would need to

split into a number of symbols.

Do you use function SPELL_AMOUNT? Here the export parameter
SPELL-Word is defined via type char 255.

Regards,

Hedvig Rohonyi

Former Member
0 Kudos

Hi Renu,

Can you please let me know how did you resolve this issue.

I am stuck with a similar one.

jie
Advisor
Advisor
0 Kudos

About the error TD860: Symbol '...': invalid data type 'U',

Pls refer the following information.

Until release 46C the ABAP rules were less strict. So the SAP system
also excepted that you don't use a single field as a symbol, but e.g.
A complete table row. So the Sapscript was also able to handle a
complete table row as a single program symbol.

Since Basis release 620 the rules are more strict. As a result the
Sapscript can no longer use all fields of a table row as one symbol.
So if you try to do this, now you get the error message:

   TD860: Symbol '...': invalid data type 'U'

As a solution you should use the single fields &REGUP-LAUFD&,
&REGUP-LAUFI& etc. instead of the complete structure &REGUP&.

Regards

Jie Bai

Former Member
0 Kudos

Hello Jie,

Thanks a lot for that information.

The error I am getting is while printing a correspondence letter via form in SAP ISU. The symbol is a work area with many fields in standard text.

EFRM : FI_CA_DOCUMENT_SAMPLE

Standard text : FI_CA_DOCUMENT_GLPOS

So can you kindly suggest the work around for this?

Regards,

Nikhil Navali

Former Member
0 Kudos

This issue has been resolved. But now i have another issue

'Maximum Outout length has been exceeded by 255 by Symbol &SPELL-WORD&.

Any one had same issue ?.

jie
Advisor
Advisor
0 Kudos

Hello Renu,

I had saw some user reported similar case as you.

Withough debugging your own program,I can't sure the solution is 100% correct.

Pls take the following reply only as reference.

Go to transaction FBZP -> paying company codes -> enter your paying company code,click tab

forms.Find you form.

In other customer's case.The problem happened in their form's window CHECKSPL.

&'*** 'SPELL-WORD& &REGUD-WAERS&&' und 'SPELL-DECIMAL(2)'/100 '&***

The value passed to this program is exceeding 255 characters.

Regards

Jie Bai