Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Pragmas and Pseudo-comments headache

Former Member
0 Kudos

Hello,

I have the following error in the ATC:

Title: Extended Program Check

Message: Structural Enhancement by Customer (Very Serious Problem)

Priority: 2

Syntax check warning
After a structure enhancement, the assignment or comparison may no longer be permitted. syntactically
incorrect.
Internal message code: MESSAGE G:M

As it is priority 2, it will cause ATC to block any transport request that includes the program.

The program can be as simplified as this one:

REPORT ztest.

DATA: wa_mepoheader  TYPE bapi_te_mepoheader,

       wa_extensionin TYPE bapiparex.

MOVE wa_mepoheader TO wa_extensionin-valuepart1.



It seems I cannot set any Pragma/Pseudo-comment to avoid this block. How I am, then, suppossed to transport the program (Without disabling ATC in its transaction)?



Thanks in advance,


Eloi Rossell

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Try the following

class cl_abap_container_utilities definition load.


data: wa_extensionin TYPE bapiparex,

          wa_mepoheader type BAPI_TE_MEPOHEADER.

  call method cl_abap_container_utilities=>read_container_c

    exporting

      im_container           = wa_mepoheader

    importing

      ex_value               = wa_extensionin

    exceptions

      illegal_parameter_type = 1

      others                 = 2.

Regards,

NP

4 REPLIES 4

Former Member
0 Kudos

Hi,

Try the following

class cl_abap_container_utilities definition load.


data: wa_extensionin TYPE bapiparex,

          wa_mepoheader type BAPI_TE_MEPOHEADER.

  call method cl_abap_container_utilities=>read_container_c

    exporting

      im_container           = wa_mepoheader

    importing

      ex_value               = wa_extensionin

    exceptions

      illegal_parameter_type = 1

      others                 = 2.

Regards,

NP

0 Kudos

And for the same price you are now Unicode ready

0 Kudos

Hi Noufal,

I get type incompatibility with 'im_container'. can you please help.

Thanks,

Anil

0 Kudos

plz send me the code