"
Supported by

Class for converting STRINGs

You know how you sometimes have a STRING-type variable and you need to send it to a function that needs it in SOLIX-type? It often happens to me. Well, I have found this great class that converts strings into a wide range of formats:

CL_BCS_CONVERT

Look at the methods:

RAW_TO_SOLIX
RAW_TO_STRING
RAW_TO_XSTRING
TXT_TO_SOLIX
TXT_TO_STRING
TXT_TO_XSTRING
STRING_TO_SOLI
STRING_TO_SOLIX
STRING_TO_XSTRING
SOLI_TO_SOLIX
XSTRING_TO_SOLIX
SOLIX_TO_XSTRING

Good, no?

Thanks to funtik.cat for the photo.

Greetings from Abapinho.

2 comentários a “Class for converting STRINGs”

  1. Pedro Lima Diz:

    Parece muito interessante. Podes dizer-nos em que sistema existe esta classe (no ECC que estou a usar não existe).

  2. Custodio Diz:

    A Classe CL_BCS existe desde a 6.10. Acredito que a CL_BCS_CONVERT seja na mesma versao.

Deixe um comentário


About Abapinho
Abapinho runs on WordPress
Articles (RSS) e Comments (RSS).