cancel
Showing results for 
Search instead for 
Did you mean: 

Adding ALT255 to RSKC?

Former Member
0 Kudos

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

View Entire Topic
Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Raj,

I won’t 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

Former Member
0 Kudos

Hi Raj

as you can see in my code that SAP allowed list first char is space.

CONSTANTS C_SAP_ALLOWED_CHAR(58) TYPE C VALUE

' !"%&''()*+,-./:;<=>?_0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'.

so space is never a problem.

thanks

YSS