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 for Invoice Credit Memo

0 Kudos

Hi Guys,

Can you plz help me which BAPI is used for Invoice credit memo.

Thanks and regards

Praveen

4 REPLIES 4

Former Member
0 Kudos

use...

'BAPI_CRED_MEMO_CREATEFROMDAT2'

data: con_cr_memo_bus_obj like BAPIUSW01-OBJTYPE value 'BUS2094'.

CALL FUNCTION 'ZBAPI_CRED_MEMO_CREATEFROMDAT2'

EXPORTING

ORDER_HEADER_IN = bapi_hdr

business_object = con_cr_memo_bus_obj

convert = 'X'

IMPORTING

SALESDOCUMENT = bapi_salesdoc

TABLES

return = bapi_ret_tbl

ORDER_ITEMS_IN = bapi_itm

ORDER_PARTNERS = bapi_prtnr

ORDER_ITEMS_inx = bapi_itm_out

order_schedules_in = bapi_schd_lin

order_text = bapi_text.

AND in the cloned ZBAPI above in SE37/80, add this Importing parameter: BUSINESS_OBJECT LIKE BAPIUSW01-OBJTYPE

Please have a look in older topics:

Message was edited by: kishan negi

Former Member
0 Kudos

Praveen,

Did you try BAPI_INCOMING_INVOICE_CREATE with DOC_TYPE (CREDIT MEMO) field in BAPI_INCINV_CREATE_HEADER.

Regards,

Ravi

Note : Please mark the helpful answers

Former Member
0 Kudos

Hai Praveen,

You can use this Bapi <b>BAPI_SALESORDER_CREATEFROMDAT2</b>.This is used for invoice credit memo..

Regards,

Srikanth.

Reward points if helpful.

0 Kudos

Hi Srikanth,

If I use the BAPI_SALESORDER_CREATEFROMDAT2 for creating a credit/debit memo, the following error is displayed.

"Unpermitted Combination of Business object BUS2032 & Sales Doc Category type K"

Could you please provide me a solution and let me know if there are any BAPIs to create credit/debit memos with reference to a contract...

Regards,

Senthil