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: 

Program error: ASSIGN with length 0 in program "SAPLSDH4"

Former Member
0 Kudos

Hello experts,

I have a 'Z' program and after run, i mark a field to filter on data, then on selection screen when i choose F4 i took :

runtime error : assign_length_0

Program error: ASSIGN with length 0 in program "SAPLSDH4"

What can i do to resolve this?

Edited by: gkarag on May 5, 2010 4:57 PM

7 REPLIES 7

Former Member
0 Kudos

Your program is a Z program, and the error is in a standard program so, what are you calling from your program when you get that error?

0 Kudos

this a standard sap procedure.

When my program finished, i marked one field on the program and then i push the button on the toolbat "filter" then on the selection screen for this field i choose F4 and i am getting this error.

Edited by: gkarag on May 6, 2010 11:15 AM

Former Member
0 Kudos

Let me rephrase, when your program finishes (I interpret this as the program reporting the data, not actually finishing execution), and you chose and filter, and then press F4, what part of your Z program are you in? What get's executed there? What kind of report is it?

0 Kudos

Hello again Gustavo,

It is a report with form OUTPUT_LIST_ALV.

when i mark a filed and make a filer on this, there is no code in the z program about this action.

Is a standard SAP issue.

For this reason the error occured into program "SAPLSDH4" not in the Z.

Thanks in advance.

0 Kudos

>

> Is a standard SAP issue.

> For this reason the error occured into program "SAPLSDH4" not in the Z.

Hello,

Can you post the code where the dump is occurring ?

Might not be a bug in SAP at all. May be the data being passed to standard SAP FMs is erroneous. (We get the dump in ALV fugr. most of the times, but does this mean there is a problem in SAP ?)

And if you feel that it's an SAP issue did you check in SAP Notes ?

BR,

Suhas

0 Kudos

When I said that is a standard sap issue; i want to inform you that is not a code issue in the Z program. Probably it might be problem with data, but it might be an issue for basis. Thiw is the reason that i post thiw issue on forum.

Now the error is on program SAPLSDH4 on the include program (LSDH4F02) and the code is :

  • Wu03B4hrungsschlόssel im Hauptprogramm suchen, und Anzahl

  • Dezimalzeichen setzen.

PERFORM get_cuky_from_main CHANGING listfields.

ENDIF.

ENDIF.

CASE ls_listfields_new-mask+1(1).

WHEN ' '.

len_alt = ls_listfields_new-outputlen.

len_neu = ls_listfields_new-intlen.

WHEN 'E'.

len_alt = ls_listfields_new-intlen.

len_neu = ls_listfields_new-outputlen.

WHEN 'I'.

len_alt = ls_listfields_new-intlen.

len_neu = ls_listfields_new-intlen.

WHEN 'O'.

len_alt = ls_listfields_new-outputlen.

len_neu = ls_listfields_new-outputlen.

ENDCASE.

ASSIGN <value_x>(len_alt) TO <value_alt>.

ASSIGN <valuex>(len_neu) TO <value_neu>._

CLEAR value.

<value_alt> = <record_old>+listfields-offset(len_alt).

CASE ls_listfields_new-mask+1(1).

WHEN ' '.

*- Auch value = space muί nach intern konvertiert werden

  • deswegen irc = -1. Das wird in ex2in_checked ausgewertet

irc = -1.

  • perform conversion_ex2in

  • using listfields 'X' changing value irc.

PERFORM conversion_ex2in_checked

USING 'EQ' listfields 'X' CHANGING value irc.

WHEN 'E'.

PERFORM conversion_in2ex

USING listfields 'X' CHANGING value.

WHEN 'I' OR 'O'.

*- <value_neu> = <value_alt>.

ENDCASE.

<record>+ls_listfields_new-offset(len_neu) = <value_neu>.

ENDLOOP.

MODIFY record_tab.

ENDLOOP.

0 Kudos

Is this my fault or something else?