Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid partial field access : lenght 0------abap dump

Former Member
0 Kudos

Hi experts,

I got the short dump saying 'Invalid Partial field access : length 0'.

I couldn't able to copy paste the dump message here so I had attached the dump message, kindly please check and tell me what need to be done .

many thanks.

2 REPLIES 2

matt
Active Contributor
0 Kudos

Run your program in debugger and figure out why lv_moff in wa_text3-line = wa_text2-line(lv_moff). is zero.

We don't have your data, so it's up to you to do the work.

Former Member

Hello,

If I understood your issue correctly it looks like a line you're analysing starts with a carriage return...Therefore the offset of the value found after the find statement can be equal to 0 which is a forbidden value for a substring length. If that's the case, I would simply check if lv_moff is different than 0 before appending IT_TEXT3. (since I guess you won't need empty line in your table IT_TEXT3)

IF lv_moff > 0.

  wa_text3-line = wa_text2-line(lv_moff)

   APPEND...

    clear...

ENDIF.

Anyway, as Matthew suggested please do some debugging first, the answer will be right under your nose

Cheers,

Manu.