Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_INCOMINGINVOICE_CREATE:: M8 524 :: You cannot process conditions for delivery costs

sivaramang1511
Participant
0 Kudos
3,207

ITEM-TAX_CODE           = 'BK'.

ITEM-ITEM_AMOUNT        = '9473.58'.
  ITEM-QUANTITY           = '1.00'.
  ITEM-PO_UNIT            = 'EA'.

APPEND ITEM TO ITEMDATA.

CLEAR ITEM.

  ITEM-INVOICE_DOC_ITEM   = '000002'.
  ITEM-PO_NUMBER          = '0900036142'.
  ITEM-PO_ITEM            = '0002'.

ITEM-TAX_CODE           = 'V0'.

ITEM-COND_TYPE          = 'ZBF1'.

ITEM-ITEM_AMOUNT        = '100.58'.
  ITEM-QUANTITY           = '1.00'.
  ITEM-PO_UNIT            = 'EA'.

APPEND ITEM TO ITEMDATA.


CALL FUNCTION 'BAPI_INCOMINGINVOICE_CREATE'

  EXPORTING
    HEADERDATA                = HEADERDATA
 
TABLES
  

ITEMDATA                  = ITEMDATA
    RETURN                    = RETURN

1 REPLY 1

SimoneMilesi
Active Contributor
0 Kudos
258

Hi Siva.

The message seems to be pretty clear this code is not ok:


ITEM-INVOICE_DOC_ITEM   = '000002'.

  ITEM-PO_NUMBER          = '0600036142'.

  ITEM-PO_ITEM            = '0002'.

  ITEM-COND_TYPE          = 'ZPF1'.

Since you are passing ZPF1 as condition type.

A checks you can do:

     Try to do the same thing manually, passing the condtition type too. If you cannot do it even manually,      it's not an ABAP problem and you have to talk with functional people