Skip to Content
0
Former Member
Jul 04, 2012 at 10:33 AM

Data from Business Add-In ME_PROCESS_PO_CUST not adopted

115 Views

Hi,

I have implemented badi method ME_PROCESS_PO_CUST~Process_item.

and getting the error

Data from Business Add-In ME_PROCESS_PO_CUST not adopted

Diagnosis
An endless loop occurred during the processing of the Business Add-In ME_PROCESS_PO_CUST. The system terminated the processing.

Please suggest.

Below is my code::

IF NOT lwa_mepoitem-kunnr IS INITIAL.
SELECT vbeln vbelp UP TO 1 ROWS
FROM ebkn
INTO lwa_ebkn
WHERE banfn = lwa_mepoitem-banfn
AND bnfpo = lwa_mepoitem-bnfpo.
ENDSELECT.
IF sy-subrc IS INITIAL.
SELECT SINGLE j_3arqda FROM vbap
INTO lv_target_ship_date
WHERE vbeln = lwa_ebkn-vbeln
AND posnr = lwa_ebkn-vbelp.
IF sy-subrc IS INITIAL .
lwa_mepoitem-zztarget_strt_dt = lv_target_ship_date.
ENDIF.
ENDIF.
*set values to item
im_item->set_data( lwa_mepoitem ).

ENDIF.

Regards,

Sudha