on 04-27-2006 7:31 AM
Hii All,
I am facing a problem while entering the employee Basic Pay data in PA30. When I enter the data completely, and press ENTER, a runtime error is getting displayed, whereas if I press "SAVE", I am able to save my entries. Can anyone tell me what the problem is all about and how to rectify it? My requirement is that when I enter all the details of basic pay, and press "ENTER" button, I should be prompted with an Information message like "Save your entries", and when I save, the details should get saved.
The following is the display of runtime error..
Runtime Errors WRITE_TO_OFFSET_TOOLARGE
Date and Time 27.04.2006 11:59:12
ShrtText |
Program error: Offset in WRITE TO in program "SAPFP500" is too large. |
-
-
What happened? |
Error in ABAP application program. |
The current ABAP program "SAPFP500" had to be terminated because one of the |
statements could not be executed. |
This is probably due to an error in the ABAP program. |
-
-
Error analysis |
In a "WRITE src TO dest+off[(len)] [INDEX i]" statement, |
"off" contains a target field offset (3) which is larger than |
the length of the target field "dest" (4). |
This is not allowed. |
-
-
Trigger Location of Runtime Error |
Program SAPFP500 |
Include FP500EFW |
Row 33 |
Module type (FORM) |
Module Name GET_FIRST_WORD |
-
-
Source Code Extract |
-
Line | SourceCde |
-
3 | ---- |
4 |
|
5 | ---- |
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | ---- |
14 | FORM GET_FIRST_WORD USING GFW_SENTENCE GFW_SEPARATOR_GROUP |
15 | GFW_WORD GFW_SEPARATOR GFW_LENGTH. |
16 | DATA: FIRST_CHARACTER(1). |
17 | DATA: CHARACTER_IN_WORD(1). |
18 | DATA: CHARACTER_POSITION LIKE SY-INDEX. |
19 |
|
20 | |
21 | MOVE SPACE TO GFW_WORD. |
22 | CLEAR GFW_LENGTH. |
23 |
|
24 |
|
25 | DO. |
26 | MOVE GFW_SENTENCE TO FIRST_CHARACTER. |
27 | IF GFW_SENTENCE EQ SPACE OR FIRST_CHARACTER CA GFW_SEPARATOR_GROUP. |
28 | MOVE FIRST_CHARACTER TO GFW_SEPARATOR. |
29 | EXIT. |
30 | ELSE. |
31 |
|
32 | CHARACTER_POSITION = SY-INDEX - 1. |
>>>>> | WRITE GFW_SENTENCE TO GFW_WORD+CHARACTER_POSITION(1). |
34 | SHIFT GFW_SENTENCE LEFT BY 1 PLACES. |
35 | ADD 1 TO GFW_LENGTH. |
36 |
|
37 | ENDIF. |
38 | ENDDO. |
39 | SHIFT GFW_SENTENCE LEFT BY 1 PLACES. " Separator wegnehmen. |
40 | ENDFORM. |
41 |
-
Urgent help required pls..
Thanks all,
Latheef
try this - u need to include the number of lines eg <b>07</b> then the name eg <b>PACKAGE</b>
THIS WILL WORK
LGMST Planned payment specification
MOLGA Country Grouping
16 South Africa
PERSG Employee Group
1 Permanent
PERSK Employee Subgroup
01 Salary Package
07/PACKAGE
otherwise
otherwise
otherwise
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It really can be solved by adjust feature LGMST in PE03.
In my case i had runtime error when end node of decision tree was the RPCADD00. When i replaced RPCADD00 by real wage type model (it was 20/RULOC for me) the runtime error was not occur.
Can anybody answer about link between RPCADD00 and runtime error?
is there any solution to this yet? Craig
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
There is a problem with your statement
WRITE GFW_SENTENCE TO GFW_WORD+CHARACTER_POSITION(1).
Not sure at runtime what is the value of the CHARACTER_POSITION, but its unable find the offset position. That is the issue with this.
Regards,
Ravi
Note : Please mark the helpful answers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
4 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.