Skip to Content

Enhancement LMR1M001, EXIT_SAPLMRMP_010 activation error

Dear Experts,

We have a requirement to block MIRO until the material is pending for UD in Quality. I have tried to uses enhancement LMR1M001, and tried to activate exit EXIT_SAPLMRMP_010. I get "Field "%_%_E_TDRSEG" cannot be a reference and cannot contain references. - ". This happens even if I have not yet started any code modification. We are on ECC6 EHP7 so I am not sure if there is any note released to fix this issue. Google search was not much helpful either. Screen shot below :


Awaiting your valued suggestions.

Thanks

Neel..



EXIT-ERROR.JPG (65.1 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Oct 08, 2015 at 06:02 AM

    Could you check definition of MRM_RBKPV in type-pool MRM, were some deep structure or reference appended to some included structures? (RBKP_V, etc.)

    Regards,

    Raymond

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Gaurav,

        Thank You for your support.

      I have used BADI.It is working fine.

      method IF_EX_MRM_HEADER_CHECK~HEADERDATA_CHECK.

      **Declaration of variables

      DATA: gv_prueflos TYPE qamb-prueflos,

             gv_lmenge   TYPE qals-lmenge01.

      DATA:wa_drseg LIKE LINE OF ti_drseg.

      ** Declaration of Internal Tables

      DATA: it_qals TYPE TABLE OF qals,

             wa_qals TYPE qals.

      data: message TYPE char50,

             quan TYPE char18.

      LOOP AT ti_drseg INTO wa_drseg WHERE  selkz EQ 'X'.

      **  Checking whether the document require Inspection

         CLEAR: gv_prueflos.

         SELECT SINGLE prueflos

                INTO gv_prueflos

                FROM qamb

                WHERE mblnr = wa_drseg-lfbnr

                AND zeile   = wa_drseg-lfpos.

         IF sy-subrc EQ 0.

           SELECT SINGLE *

           INTO CORRESPONDING FIELDS OF wa_qals

           FROM qals

           WHERE prueflos = gv_prueflos

           AND stat35 = 'X'.

            IF sy-subrc EQ 0.

              CLEAR: gv_lmenge.

      **Sum of quantity (Excludes Block stock)

              gv_lmenge = wa_qals-lmenge01.

             IF wa_drseg-menge GT gv_lmenge.

               CLEAR  quan.

                quan =  gv_lmenge.

             CONCATENATE 'Approved Quantity is'  quan  INTO message.

             MESSAGE message TYPE 'E'.

             ENDIF   .

            ELSE.

              MESSAGE 'Quality Descision Not Made' TYPE 'E'.

            ENDIF.

         ENDIF.

      ENDLOOP.

         endmethod.

  • avatar image
    Former Member
    Oct 08, 2015 at 05:09 AM

    Hi,

    Why are you trying to activate the exit.

    Just create a Project in CMOD . assign this Enhancement LMR1M001 to it.

    Create include ZXM08U16 and write your code. Activate this include and activate the Project created in CMOD, and you are done.

    Hope this helps.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Niladhwaj Biswas


      Hi,

      You can debug the whole program to come to the point where this message is getting triggered, use breakpoint at line message. also check the Version of the program/exit to check if there was any changes in the exit.

      Hope this helps.

  • Oct 08, 2015 at 05:58 AM

    Hi,

      I did it. Variable %_%_E_TDRSEG is passed Function module EXIT_SAPLMRMP_010.

    At the time of calling itself error is coming in main programme.



    Add comment
    10|10000 characters needed characters exceeded