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

Accepted Solutions (1)

Accepted Solutions (1)

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

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks a lot YSS. That was very helpful.

Regards

Raj

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Raj,

I don't think you are getting problem because of SPACE. SPACE is already allowed by SAP and you don't have to include it into RSKC list.

Please check the hex code in PSA to see what it is.

Thanks

YSS

Former Member
0 Kudos

Hi Raj

Use ALT+255 in RSKC.

See this thread

If still this does not work then try following

1. Add " " (space) in RSKC

2. try using ALL_CAPITAL in RSKC

3. see if L_TRIM and R_TRIM formulas in the Transfer rule are of any help of you.

Hope this helps you.

Regards

Pradip