10-08-2015 5:49 AM
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..
10-08-2015 6: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.
10-08-2015 6:20 AM
Thanks for the input Guarav. Done the steps as metioned by you. Here is the sequence of events :
1) Created Project in CMOD
2) Assignment the Enhancement - LMR1M001
3) Created Include "ZXM08U16"
4) Tried to activate Exit - "EXIT_SAPLMRMP_010"
5) Got error "%_%_E_TDRSEG" cannot be a reference and cannot contain references. - "
Regards,
Neel.
10-08-2015 6:25 AM
why you need step 4. Just activate the include created in step and skip step 4. instead come out of the exit FM and activate the Project.
the EXIT would be already in active status.
10-08-2015 6:32 AM
Thank You for your reply.
While activating Include itself I got this error.
10-08-2015 6:39 AM
Hi,
This looks unique, I tried to replicate the same in my system but I was able to activate it.
I am also on EHP7 for SAP ERP 6.0
10-08-2015 6:44 AM
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.
10-08-2015 6: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.
10-08-2015 7: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
10-08-2015 8:38 AM
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.