05-06-2009 6:35 AM
Transaction Code: IPMD
Select a line item
When I go into change mode and click on the detail; it displays a screen.
Now when I click on Classification it gives me a dump.
Runtime Errors ASSIGN_LENGTH_0
Date and Time 06.05.2009 10:02:52
Short text
Program error: ASSIGN with length 0 in program "SAPLCLCV".
What happened?
Error in the ABAP Application Program
The current ABAP program "SAPLCLCV" had to be terminated because it has come across a statement that unfortunately cannot be executed. Tried to create a field with length 0. This is not possible.
Error analysis
In an ASSIGN statement in the program "SAPLCLCV" a field symbol with length 0 should have been created. However, this is not possible length 0. This is not possible.
Trigger Location of Runtime Error
Program SAPLCLCV
Include LCLCVU03
Row 49
Module type (FUNCTION)
Module Name CLCV_CONV_EXIT
Source Code Extract
Line SourceCde
19 SMASK(7) TYPE C VALUE '==$',
20 CFELD LIKE RMCLF-OBJEK,
21 *------- the object that has to to be classified will be build up in
22 *------- field XFELD appropriate definition of TCLO
23 XFELD(100) TYPE C,
24 L_STRING_LENGTH TYPE I,
25 L_FIELD_LENGTH TYPE I,
26 L_KEYFIELD TYPE TCLO-KEYF0,
27 L_RETCODE TYPE SY-SUBRC,
28
29 BEGIN OF FIELD_ATTR.
30 INCLUDE STRUCTURE DFIES. DATA:
31 END OF FIELD_ATTR.
32
33 FIELD-SYMBOLS:
34 <OBJEKT>,
35 <FELD>.
36
37 CLEAR OFFSET.
38
39 * read TCLO to work area and set CONVTAB v 1235023
40 * corresponding to processed object type
41 perform SET_CONVTAB using TABLE. "^ 1235023
42
43 *------- assign given string to work field
44 ASSIGN EX_OBJECT TO <OBJEKT>.
45
46 LOOP AT CONVTAB.
47 *------- reduce given string to its componets via given information
48 *------- of contab
>>>>> ASSIGN <OBJEKT>(CONVTAB-LEN) TO <FELD>.
50
51 IF CONVTAB-CON IS INITIAL.
52 WRITE <FELD> TO CFELD.
53 ELSE.
54 *------- a specific conversion rule is involved
55 REPLACE '$' WITH CONVTAB-CON INTO MASK.
56 condense mask no-gaps. "UP_H578730
57 *------- prepare field with given conversion rule
58 WRITE <FELD> TO CFELD USING EDIT MASK MASK.
59 MASK = SMASK.
60 ENDIF.
61
62 WRITE CFELD TO XFELD+OFFSET(CONVTAB-OUTL).
63 OFFSET = OFFSET + CONVTAB-OUTL.
64 WRITE SPACE TO XFELD+OFFSET(1).
65 OFFSET = OFFSET + 1.
66 * shift_value = convtab-outl.
67 shift_value = convtab-len.
68 help_field = <objekt>.
05-06-2009 8:00 AM
Hi Praveen,
the value for variable 'CONVTAB-LEN' is '00000'
then
nothing is ASSIGNed to <FELD>. " At line 49.
and the program is trying to use a field symbol which is not assigned and the program is giving dump.
Put a break point at line 48 in FM 'CLCV_CONV_EXIT' and chnage 'CONVTAB-LEN' value to 1(or some other) then the program will work..
Please let me know the SAP version u r using. because some code addeds in my program.
Kiran...
05-21-2009 10:34 AM
hi
I m using ECC 6.0.
My ABAP Programmer did try to set a breakpoint at 49 and check for the values; but could not change variable length; as the program returns two set of values and doesnot allow the save on the assigning screen.
07-22-2009 11:08 AM