Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Function Module question

Hello,

When i execute this code, I am getting a run-time short dump. The error says: 'Overwritten protection field'. The error says that we cannot modify the field-symbols. The error points to the highlighted portion of the code. How to overcome the error?

FIELD-SYMBOLS: <xth_data> TYPE HASHED TABLE,

<ls_data> TYPE /1SEM/_YS_DATA_150ZBPSMA03,

<ls_chas> TYPE /1SEM/_YS_CHAS_150ZBPSMA03,

<ls_kyfs> TYPE /1SEM/_YS_KYFS_150ZBPSMA03.

DATA: tmpamount TYPE F,

tmpvtype TYPE /BI0/OIVTYPE.

tmpvtype = '020'.

LOOP AT xth_data ASSIGNING <ls_data>.

ASSIGN COMPONENT 'S_CHAS' OF STRUCTURE <ls_data_new> TO <ls_nchas>.

ASSIGN COMPONENT 'S_KYFS' OF STRUCTURE <ls_data_new> TO <ls_nkyfs>.

IF ( <ls_chas>-0fiscper >= '012' ) AND ( <ls_chas>-0vtype = '10' ).

tmpamount = <ls_kyfs>-0amount * 100.

<b> <ls_kyfs>-0amount = tmpamount.

<ls_chas>-0vtype = tmpvtype.</b>

ENDIF.

ENDLOOP.

Thanks

null

Tags:

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question