cancel
Showing results for 
Search instead for 
Did you mean: 

Getting error while creating PO from CNMM

Former Member
0 Kudos

Hi All,

I'm creating purchase orders from project system Tcode: CNMM, but when we select the purchase requisition and try to create purchase order. it gives error that tax code V0 is not assigned to our tax procedure. as We are maintaining out own tax codes and not using the standard. I dont know from where tax V0 is being derived from.

If we create the POs manually they work fine with no errors.

Your help will be highly appreciated.

Regards,

Faizan Khalil

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

When creating a purchase order transaction CNMM calls function module CNM2_PO_CREATE and inside this function module, in perform  FILL_PO_ITEM_NEW, sets tax code V0 by default.

Below is the resolution proposed by SAP note 1810832:

Resolution

If you want to derive the tax code automatically from Pricing Conditions or Purchasing Info Record then you can clear the default Tax Code V0 from the Purchase order items.

  1. If SAP note no. 1977963 is not applied to your systen, please implement function module EXIT_SAPLMEWP_002 (SAPLMEWP) as below:
    FIELD-SYMBOLS: <po_item> like BAPIEKPOC.
    loop at po_items assigning <po_item>.
      clear <po_item>-tax_code.
    endloop.

  2. If SAP note no. 1977963 is applied to your system, please use function module EXIT_SAPL2012_001 (SAPL2012) instead:
    FIELD-SYMBOLS  <po_item>  type  BAPIMEPOITEM.
    loop  at  poitem  assigning  <po_item>.
       clear  <po_item>-tax_code.
    endloop.

That way the automatically set tax code V0 is cleared again.

Regards

Former Member
0 Kudos

Hi Marcos,

My issue was resolved through 'Function Module'.

Regard,

Faizan

Answers (0)