cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI- /SCWM/MFG_RECEIVE_HUS_EXT Returns error- Cannot determine unique expected goods receipt item

former_member563943
Participant
0 Likes
3,403

Hi All,

BAPI -/SCWM/MFG_RECEIVE_HUS_EXT is returning the error-"Cannot determine unique expected goods receipt item" while we execute

any idea on this BAPI, i have tried many probability combination in the inputs and it doesnt seem to work,

what inputs to be passed in the field - IT_HANDLING_UNITS. please revert as early as possible .

Regards

Preeti.SS

Accepted Solutions (1)

Accepted Solutions (1)

former_member230160
Active Participant
0 Likes

Hi,

looks as if you have not entered sufficiant or unique data so that multiple expected goods receipt items are found.

Please see documentation of function /SCWM/MFG_RECEIVE_HUS_EXT (e.g. in SE37)

In the documentation it is also described that /SCWM/MFG_RECEIVE_HUS_EXT is only an example which calls the real interface /SCWM/IF_API_MFG_RECEIVING. You can see the complete interface documentation in SE24 for /SCWM/IF_API_MFG_RECEIVING.

If you are familiar with debugging you can also view in /SCWM/CL_MFG_RCV->QUERY_EGR at statement

    IF lt_item IS INITIAL OR lines( lt_item ) >= 2. "non-unique result
      MESSAGE e008(/scwm/core) INTO sv_msg_tmp.
      mo_message->add_sy_variables( iv_most_important = abap_true ).
      RAISE EXCEPTION TYPE /scwm/cx_core.
    ENDIF.

which items and how many get found. So you need to either be more specific in the criteria to find the EGR items or avoid that duplicates exists (in case you e.g. created EGR duplicates).

Best regards

Markus

Answers (1)

Answers (1)

former_member563943
Participant
0 Likes

Hi Markus,

Thanks, i successfully executed the BAPI as i entered all the item details .

Regards

Preeti.SS