Skip to Content
-2

Failing to update internal table(deep structure) using a work area.

Feb 10, 2017 at 09:12 AM

60

avatar image

Hi guys

I am trying to update an internal which is within another table.Its actually a deep structure but when i try to update it its giving me a short dump.

Below is my code

*declaration of variables

DATA: it_levy TYPE LB_T_BIL_IT_KOND,
wa_levy LIKE LINE OF it_levy.

*reading the data from the internal table to my work area
READ TABLE IS_BIL_INVOICE-IT_KOND[] INTO wa_levy
WITH KEY BIL_NUMBER = GS_IT_GEN-BIL_NUMBER
ITM_NUMBER = GS_IT_GEN-ITM_NUMBER
KSCHL = 'ZWNT' BINARY SEARCH.

*Update certain fields and update the final internal table
IF wa_levy-KSCHL = 'ZWNT'.
wa_levy-ITM_NUMBER = '000011'.
wa_levy-KPOSN = '000011'.
MODIFY IS_BIL_INVOICE-IT_KOND[] FROM wa_levy. *I'm getting a short-dump here
ENDIF

error-table.jpgerror-table.jpg

I have also attached a screen short of the short dump

Regards

Bryan

error-table.jpg (59.8 kB)
error-table.jpg (59.8 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Matthew Billingham
Feb 10, 2017 at 10:30 AM
0

It's exactly what it says in the dump. You are trying to change the value of an importing parameter.

Share
10 |10000 characters needed characters left characters exceeded