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: 

Error in MIRO badi implementation after ehp6 upgrade

mangesh_sonawane
Participant
0 Kudos
304

Hi Experts,

We have implemented a BADI in MIRO in which internal table TI_DRSEG of type MMCR_TDRSEG is exported to memory id. It was working fine before. But after upgrading sap to ecc 6 ehp6 it is giving dump as "Field TI_DRSEG cannot be a reference and cannot contain references". code is as below.

IF sy-tcode EQ 'MIRO'.

     IF i_rbkpv IS NOT INITIAL.

       SET PARAMETER ID 'S_GJAHR' FIELD i_rbkpv-gjahr.

       SET PARAMETER ID 'S_BUKRS' FIELD i_rbkpv-bukrs.

       SET PARAMETER ID 'S_XBLNR' FIELD i_rbkpv-xblnr.

     ENDIF.

     IF ti_drseg[] IS NOT INITIAL.

               EXPORT ti_drseg FROM ti_drseg TO MEMORY ID 'DRSEG_DATA'.

     ENDIF.

ENDIF.

Error details can be seen in file attached. Pls help how to resolve this error.

Thanks in advance.

1 REPLY 1

gouravkumar64
Active Contributor
0 Kudos
202

Hi,

Never face this error.

you can check this thread & the reply for help.

http://scn.sap.com/thread/783680

Thanks

Gourav.