cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP DUMP UC_OBJECTS_NOT_CHARLIKE

Abapper0114
Explorer
0 Kudos
279

Hello experts,

I need your help with this. I'm getting a dump in line 20 with UC_OBJECTS_NOT_CHARLIKE

Sandra_Rossi
Active Contributor

The P type of length 9 means a compressed number of 17 digits. You must not transfer characters to a structure containing P types.

naaz5elg401020120724450030570030570030570030100.00S1l2035

naaz5elg: FILE(8)
401020: DEALER(6)
120724: DATE(6)
450030570030: BILLING_NO(12),
570030570030: SALES_ORD(12),
100.00S1l: AMOUNT(9) TYPE P DECIMALS 2 ???????????????????
2035: PLANT(4)

Before trying to read "100.00S1l", please first explain what this value means, it's not even a number!!!

Sandra_Rossi
Active Contributor
0 Kudos

You didn't understand what I said: "You must not transfer characters to a structure containing P types."

Also, as I said, you must ask why you obtain this weird format "100.00S1l", what will be transmitted if the number is greater than 999, ask yourself why you define a 17-digits number for only 9 characters available, etc.

Accepted Solutions (0)

Answers (2)

Answers (2)

Abapper0114
Explorer
0 Kudos

@Sandra_Rossi  I already tried removing 'S1L' and tried replacing TYPE P with TYPE STRING and TYPE C but its still returning the same dump.

Sandra_Rossi
Active Contributor
0 Kudos
Please don't post an answer, which is reserved to propose a solution. Instead click on "Show replies" and then "Comment".
Ryan-Crosby
Active Contributor
0 Kudos

You would need something like the following because it is telling you the structure has data fields that are not character types.  Either that or read it into a string or a designated character type with sufficient length.

DATA: BEGIN OF I_STATEMENT,
      FILE(8),
      DEALER(6),
      DATE(6),
      BILLING_NO(12),
      SALES_ORD(12),
      AMOUNT(9),
      PLANT(4),
END OF I_STATEMENT.

 

Regards,

Ryan Crosby