on 06-12-2006 4:23 PM
Dear Friends,
I need to add space as a permitted character in RSKC and somebody in this forum suggested to add ALT+255 in RSKC. How do i do this?
Do i
1. Go to tcode. RSKC and press "ALT" on the key pad and 255 at the same time and execute it or
2. Go to RSKC and type "ALT255" or "ALT+255" in it and execute it.
Please suggest?
Thanks
Raj
Message was edited by: Raj Singh
Hi YSS,
The error message is as below:
-
Value '218 057 ' (hex. ' ') of characteristic 0BATCH contains invalid characters BRAIN 60 @35@
-
0BATCH is a character field.
Thanks
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raj,
I wont recommend you to include weird chars in RSKC using ALT keys. You should rather replace all these kinds for chars with spaces.
Here is the transfer routine you can use for you field in transfer structure. This routine concatenate the sap allowed and user allowed chars(from RSKC) see if the char is not there it replace that with space.
I think this should work for you. Just replace ZZZ with you transfer structure field.
DATA: L_USER_ALLOWED_CHAR TYPE RSALLOWEDCHAR,
L_ALL_ALLOWED_CHAR(140) TYPE C,
L_RESULT_STR_LEN TYPE I,
L_STR_INCREMENT TYPE I.
CONSTANTS C_SAP_ALLOWED_CHAR(58) TYPE C VALUE
' !"%&''()*+,-./:;<=>?_0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'.
IF L_ALL_ALLOWED_CHAR IS INITIAL.
SELECT SINGLE * FROM RSALLOWEDCHAR
INTO L_USER_ALLOWED_CHAR
WHERE ALLOWKEY = 'S'.
CONCATENATE C_SAP_ALLOWED_CHAR
L_USER_ALLOWED_CHAR-ALLOWCHAR
INTO L_ALL_ALLOWED_CHAR.
ENDIF.
RESULT = TRAN_STRUCTURE-ZZZ.
TRANSLATE RESULT TO UPPER CASE.
L_RESULT_STR_LEN = STRLEN( RESULT ).
L_STR_INCREMENT = 0.
WHILE L_STR_INCREMENT <> L_RESULT_STR_LEN.
IF NOT RESULT+L_STR_INCREMENT(1) CO L_ALL_ALLOWED_CHAR.
RESULT+L_STR_INCREMENT(1) = ' '.
ENDIF.
ADD 1 TO L_STR_INCREMENT.
ENDWHILE.
Thanks
YSS
Thanks a lot YSS. That was very helpful.
Regards
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Pradip,
I have already seen the link that you suggested. The question i have is how do i enter ALT+255 in RSKC. Do i type it as it is or do i need to press ALT on keyboard and enter 255 at the same time. Please suggest.
Thanks
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
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.