cancel
Showing results for 
Search instead for 
Did you mean: 

Depreciation Key & Useful life are grey in OAYZ

muhammad_yousufali
Participant
0 Kudos

Hello Experts,

I am SAP FI Associate, I am running into ABAB Runtime error while entering screen layout rule in t code OAYZ, I have maintained screen rule 1000 and 2000, and i have also ticked on asset class, main asset no and sub-number and of course the copy check. Yet when i enter screen layout 1000, it gives me ABAB short dump. Please help me solve this , i would highly appreciate it.

Looking forward to hearing from you.


Regards

Muhammad Yousuf Ali

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member183424
Active Contributor
0 Kudos

What is error showing in short dump.

If possible please post a screen shot.

muhammad_yousufali
Participant
0 Kudos

Hello Dev,

I first of all thank you for your prompt response and I apologize for not being able to reply you. Anyways I am pasting text of this dump. I would highly appreciate your help.

Runtime Errors         TABLE_INVALID_INDEX

Date and Time          02.08.2014 15:40:56

Short text

     Error in ABAP/4 statement when processing an internal table.

What happened?

     Error in the ABAP Application Program

     The current ABAP program "SAPL0AKL" had to be terminated because it has

     come across a statement that unfortunately cannot be executed.

Error analysis

     When changing or deleting one or more lines of the internal table

     "\FUNCTION-POOL=0AKL\FORM=V_ANKB_00_XAFBE_COPY\DATA=L_EXTRACT[]" or when

      inserting in the table "\FUNCTION-POOL=0AKL\FORM=V_ANKB_00_XAFBE_COPY\DATA=L_E

     XTRACT[]", 0 was used as

     the line index. An index less than or equal to zero is not

     allowed.

     The error can occur when using the following options:

     1. "INDEX idx" for specifying the line number in the table

      "\FUNCTION-POOL=0AKL\FORM=V_ANKB_00_XAFBE_COPY\DATA=L_EXTRACT[]"

        where you want to change, insert or delete.

     2. "FROM idx" for specifying the start index when deleting a line

        area from or inserting a line area into the table

      "\FUNCTION-POOL=0AKL\FORM=V_ANKB_00_XAFBE_COPY\DATA=L_EXTRACT[]".

  3. "TO idx" for specifying the end index when deleting a line

    area from or inserting a line area into the table

  "\FUNCTION-POOL=0AKL\FORM=V_ANKB_00_XAFBE_COPY\DATA=L_EXTRACT[]".

At the time of the termination, the table contained 2 lines.

gger Location of Runtime Error

Program                                 SAPL0AKL

Include                                 L0AKLF99

Row                                     1,372

Module type                             (FORM)

Module Name                             V_ANKB_00_XAFBE_COPY

1342                                       afapl  = v_ankb_00-afapl

1343                                       afabe  = ld_x093a-afabe.

1344         l_total = l_extract.

1345         MODIFY l_total INDEX sy-tabix.

1346       ENDIF.

1347     ENDLOOP.

1348   ELSE.

1349 *   Wenn der Bereich aktiviert werden soll, darf der Referenzbereich

1350 *   bei Wertübernahme nicht deaktiv sein

1351 *      ==> Fehlermeldung

1352     READ TABLE ld_x093a WITH KEY afabe = v_ankb_00-afabe.

1353     IF NOT ld_x093a-wrtafb IS INITIAL    AND

1354        NOT ld_x093a-xwrtid IS INITIAL.

1355       READ TABLE l_extract WITH KEY afabe = ld_x093a-wrtafb.

1356       IF NOT l_extract-xafbe IS INITIAL.

1357         MESSAGE ID 'AA' TYPE 'E' NUMBER '921'

1358                WITH v_ankb_00-afabe l_extract-afabe.

1359       ENDIF.

1360     ENDIF.

1361

1362     LOOP AT ld_x093a WHERE wrtafb = v_ankb_00-afabe.

1363       READ TABLE l_extract WITH KEY  anlkl  = v_ankb_00-anlkl

1364                                      afapl  = v_ankb_00-afapl

1365                                      afabe  = ld_x093a-afabe.

1366       IF NOT l_extract-xafbe IS INITIAL.

1367         CLEAR l_extract-xafbe.

1368         IF l_extract-action IS INITIAL.

1369           l_extract-action = 'U'.

1370         ENDIF.

1371         MODIFY l_extract INDEX sy-tabix.

>>>>>         READ TABLE l_total  WITH KEY  anlkl  = v_ankb_00-anlkl

1373                                       afapl  = v_ankb_00-afapl

1374                                       afabe  = ld_x093a-afabe.

1375         l_total = l_extract.

1376         MODIFY l_total INDEX sy-tabix.

1377       ENDIF.

1378     ENDLOOP.

1379   ENDIF.

1380

1381

1382 *                            TOTAL für aktuellen Bereich aktualisieren

1383   READ TABLE l_total  WITH KEY  anlkl  = v_ankb_00-anlkl

1384                                 afapl  = v_ankb_00-afapl

1385                                 afabe  = v_ankb_00-afabe.

1386   IF sy-subrc = 0.

1387     MOVE  v_ankb_00-xafbe  TO l_total-xafbe.

1388     IF l_total-action = ' '.

1389       MOVE 'U' TO l_total-action.

1390     ENDIF.

1391     MODIFY l_total INDEX sy-tabix.

Regards

Muhammad Yousuf