10-24-2014 12:54 PM
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.
10-24-2014 2:27 PM
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.
10-24-2014 2:44 PM
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.