Skip to Content
0
Jun 22, 2009 at 04:58 AM

BBP_PO_INBOUND_BADI

45 Views

Hello Guy's,

We have BADI BBP_PO_INBOUND_BADI implemented which checks for item cat B and and D and puts in the gr_basediv flag. However whenever we raise a SC in ECS with AAC X and IC = B it converts the IC in ECC to D (service) . Can anyone tell me why is this happening as we have the badi in place and this is the code.

if ls_bapi_poitem-item_cat = '1'. ( This is IC B)

ls_bapi_poitem-gr_basediv = 'X'.

else.

  • Take Defaults from Vendor Master

if ls_bapi_poitem-item_cat = '9'. ( This is IC D) (for 9 its checking the VM and putting thr flag)

read table bbp_polimits into ls_bbp_polimits index 1.

if sy-subrc eq 0 and ls_bbp_polimits-limit > 0.

ls_bapi_poitem-gr_basediv = 'X'.

else.

ls_bapi_poitem-gr_basediv = ls_lfm1-webre.

endif.

else.

ls_bapi_poitem-gr_basediv = ls_lfm1-webre.

endif.

endif.

Also when a Limit PO is created with AAC U (unknown) it falls into error.

Please advise.

Rgds

Saj