Skip to Content
0
May 23, 2016 at 05:02 AM

After a structure enhancement, the assignment or comparison may no longer be permitted. syntactically incorrect.

4141 Views

Hi Experts,

I have a requirement where I need to update custom fields of a PO using BAPI extensions. I am filling BAPI_TE_MEPOHEADER and passing it to extensions structure of BAPI_PO_CHANGE. My code works but throws ATC error as "After a structure enhancement, the assignment or comparison may no longer be permitted. syntactically incorrect."

Below are the 3 approaches I am going with, but both gave me same atc error.

code 1 :

MOVE 'BAPI_TE_MEPOHEADER' TO gs_extensionin-structure.

MOVE gs_bapi_te_mepoheader TO gs_extensionin-valuepart1. --> Error here

APPEND gs_extensionin TO gt_extensionin.

Code 2 :

data : lv_value(960).

MOVE 'BAPI_TE_MEPOHEADER' TO gs_extensionin-structure.

MOVE gs_bapi_te_mepoheader TO lv_value. --> Error here

class cl_abap_container_utilities definition load.

call method cl_abap_container_utilities=>read_container_c

exporting

im_container = lv_value

importing

ex_value = gs_extensionin

exceptions

illegal_parameter_type = 1

others = 2.

APPEND gs_extensionin TO gt_extensionin.

Code 3 :

MOVE 'BAPI_TE_MEPOHEADER' TO gs_extensionin-structure.

MOVE gs_bapi_te_mepoheader TO lv_value. --> Error Here

* gs_extensionin-valuepart1 = lv_value+0(240).

* gs_extensionin-valuepart2 = lv_value+240(240).

APPEND gs_extensionin TO gt_extensionin.

Can you please share your experience and expertise if you have faced a similar issue ?

Thanks and Regards,

Anil Supraj