Skip to Content

how to create hexadecimal values to test failing dso data activation

hello friends , there is an ABAP code written in Transformation routine for a characteristic to avoid some # values we were getting from ECC that in turn gets it from an external system this caused frequent data load errors, we had to go to PSA and fix it but in the PSA it appears as # usually at the end of the characterisitc value like ABC123#

but the error would state that there is a hexadecimal value, so in order to test our transformation routine we would like to simulate this

can any one advice how to create this ? we tried with SPACES but no use , we are maintaining ALL_CAPITAL with HEX in RSKC.

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • Posted on Jul 11, 2016 at 05:40 PM

    Try ' ' ----> This is ASCII space and can be produced by pressing 0160 while pressing "Alt"

    Or you can copy some erroneous data from current production system and try them in development.

    Regards

    Anindya

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 12, 2016 at 04:04 AM

    hi,

    remove everything in RSKC and try ALL_CAPITAL_PLUS_HEX.

    CHECK DATA LOAD.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 12, 2016 at 07:09 AM

    Hey,

    Could you try this code in your transformation avoid Hexadecimal issue.

    data: lv_Postxt type _ty_s_TG_1-POSTXT.

    data : in type c.

    data: out(2) type c.

    data: str1 type string.

    data: str2 type xstring.

    data: nLength type i, cTemp(200) type c.

    clear: out,str2, str1,lv_Postxt.

    MOVE SOURCE_FIELDS-XXXX TO lv_Postxt.

    nLength = strlen( lv_Postxt ).

    do nLength times.

    subtract 1 from nLength.

    clear in.

    in = lv_text+nLength(1) .

    call function 'URL_ASCII_CODE_GET'

    EXPORTING

    trans_char = in

    importing

    CHAR_CODE = out.

    concatenate out cTemp into cTemp .

    enddo.

    str2 = cTemp.

    call function 'NLS_STRING_CONVERT_TO_SYS'

    EXPORTING

    LANG_USED = 'E'

    SOURCE = str2

    FROM_FE = 'MS'

    importing

    result = str1.

    SHIFT str1 RIGHT DELETING TRAILING space.

    SHIFT str1 LEFT DELETING LEADING space.

    condense str1 .

    RESULT = str1.

    Try and let me know if this works.

    Thanks,

    Anish Samuel

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi AAA AAA,

      You can also try the FM - ZBW_INVALID_REMOVE in your transformation to avoid invalid characters.

      data: str1 type string.
      str1 = SOURCE_FIELDS-XXXXXXX.
      CALL FUNCTION 'ZBW_INVALID_REMOVE'
      EXPORTING
      INPUTCHAR = str1
      IMPORTING
      OUTPUTCHAR = str1
      RESULT = str1


      Regards,

      Jai Ganesh J

  • Posted on Jul 12, 2016 at 11:41 AM

    Hello,

    Please share your Start Routine Code here.

    Thanks

    Pratyaksh Jeet

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 26, 2016 at 10:12 AM

    Hi,

    You can use this code in transformation to eliminate hexadecimal or invisible characters:

    DATA: v_prod_descr.

    v_prod_descr = tran_structure-prod_descr.

    REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>cr_lf IN v_prod_descr WITH ' '.

    REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>horizontal_tab IN v_prod_descr WITH ' '.

    REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>vertical_tab IN v_prod_descr WITH ' '.

    REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>newline IN v_prod_descr WITH ' '.

    REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>form_feed IN v_prod_descr WITH ' '.

    REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>backspace IN v_prod_descr WITH ' '.

    Regards,

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.