2007 Jun 07 10:59 AM
hi expert need ur help
error coming in this line :
in 4.6 it was not giving any error but nw in ecc 6.0 it giving error
DATA : l_spras_de LIKE sy-langu VALUE 'DE'.
error is :
The VALUE specification is longer than the corresponding field. The
VALUE specification will only be passed up to the length of the field.
FYI:
SELECT tdname tdspras
INTO (stxh-tdname, stxh-tdspras)
UP TO 1 ROWS
FROM stxh
WHERE tdobject = 'TEXT'
AND tdname IN r_text
AND tdid = 'ADRS'
AND tdspras = l_spras_de.
and the length of sy-langu is 1 in the table.
2007 Jun 07 11:02 AM
Hi,
in syst table
sy-langu field length is 1.
so you have to give it like
DATA : l_spras_de LIKE sy-langu VALUE 'D'.
then continue..
reward points if helpful.
regards,
venkatesh
hi expert need ur help
error coming in this line :
in 4.6 it was not giving any error but nw in ecc 6.0 it giving error
DATA : l_spras_de LIKE sy-langu VALUE 'DE'.
error is :
The VALUE specification is longer than the corresponding field. The
VALUE specification will only be passed up to the length of the field.
FYI:
SELECT tdname tdspras
INTO (stxh-tdname, stxh-tdspras)
UP TO 1 ROWS
FROM stxh
WHERE tdobject = 'TEXT'
AND tdname IN r_text
AND tdid = 'ADRS'
AND tdspras = l_spras_de.
and the length of sy-langu is 1 in the table.
2007 Jun 07 11:02 AM
hi,
sy-langu is 1 char field
so give D instead of DE
Reward points if helpful
2007 Jun 07 11:07 AM
but this id the req of prog yar hw i can change the functionality
2007 Jun 07 11:02 AM
Hi,
in syst table
sy-langu field length is 1.
so you have to give it like
DATA : l_spras_de LIKE sy-langu VALUE 'D'.
then continue..
reward points if helpful.
regards,
venkatesh
2007 Jun 07 11:03 AM
The language key maintained in SAP table as a single length field, u have to pass the signle charecter value.
2007 Jun 07 11:03 AM
Hi,
In that case it seems this has changed with the ECC6.0 version.
Hence you might have to change your code...You might wanna search for the new language codes if it has been changed in ECC6.0.
Hope this helps.
<b><i>Do reward each useful answer..!</i></b>
Thanks,
Tatvagna.
2007 Jun 07 11:04 AM
2007 Jun 07 11:04 AM
Hi,
Goto table T002 and see the values that sy-langu can take..
for german it is DE.
So just Replace DE with D..
This will solve ur problem
Regards,
Aparna
2007 Jun 07 11:14 AM
Hi Anit,
I hope it must be giving only information message & not an error message.
Field length for sy-langu is 1 only but anyway when we hit the table, a conversion routine is invoked which pass only first character while accessing database.
Hope this helps.
Rgds,
Ashish
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |