🇧🇷 Ver este post na versão em Português ↗
Welcome!
By Felipe Lamounier, state of Minas Gerais, Brazil – powered by 🙂My Easy B.I.
In this article we will learn how to handle special characters in SAP BW with a simple Abap routine, using the function RSKC_ALLOWED_CHAR_GET.
Let’s also know the transaction RSKC (Maintaining the Permittd Extra Chars), used to check which special characters are enabled in the SAP BW system.
🔭 See also Related Posts:
📑 Table of Contents:
🏁 Introduction to Permittd Extra Chars (RSKC)
Not all character types are supported in SAP BW data loads. You can check which special characters are allowed using the transaction RSKC (Maintaining the Permittd Extra Chars).

When a character is not allowed in BW, data load dump will occurs. To avoid the Data Load Dump, you can apply a simple ABAP Routine in the Start Routine and into Field Routine as shown below
Want to learn more? Access our area 🎓🚀Training&Education↗
Transformation
Start Routine
In Transformation, Create a Start Routine:

In the initial routine, you first need to put a global declaration and then implement the code in the routine.
Global Declaration
Insert the code below in the global declaration:
DATA: v_allowed_char(200) TYPE c,
v_allowed_char_aux(200) TYPE c.

Begin of Start Routine
Insert the code below in the routine, below of the block “begin of routine“:
CLEAR: v_allowed_char, v_allowed_char_aux.
CALL FUNCTION 'RSKC_ALLOWED_CHAR_GET'
IMPORTING
e_allowed_char = v_allowed_char.
* E_DEFAULT_CHAR =
* E_USERDEF_CHAR =
v_allowed_char_aux = 'abcdefghijklmnopqrstuvwxyzáàâãäéèëêíìîïóòôõöúùüûçñ'.
CONCATENATE v_allowed_char v_allowed_char_aux
INTO v_allowed_char.

Field Routine
Rule Details
Enter into Rule Details and create an ABAP Routine

ABAP Routine
Insert the code below in the routine, below of the block “begin of routine“:
⚠️ Insert the correct technical name in SOURCE_FIELDS-xxx
RESULT = SOURCE_FIELDS-FieldName.
WHILE RESULT CN v_allowed_char.
result+sy-fdpos(1) = ' '.
CONDENSE RESULT.
ENDWHILE.
IF result(1) = '#'.
result(1) = ' '.
CONDENSE RESULT.
ENDIF.

✅ Conclusion
We learned an easy and simple way to clear special characters that are not allowed in the BW system and that cause data load dump, using an ABAP routine.
Keywords: SAP BW; RSKC_ALLOWED_CHAR_GET; replace special characters in bw with sap abap;
Did you like the content? Want to get more tips? Subscribe ↗ for free!

Follow on social media:



Um comentário em “🧼[SAP BW] How to Remove Special Characters in Transformation”