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: 

Create Credit Memo Request through txn. FB65

Former Member
0 Kudos

Hi Experts,

I want to create Credit Memo Request through txn. FB65.I am using Bapi 'BAPI_ACC_DOCUMENT_POST' to create it.

Can anyone please tell the the minimum parameters which I will pass in this BAPI to create CreditMemo Request?

Helpul answers will be rewarded by points.

Thanks

Naveen Rana

3 REPLIES 3

GauthamV
Active Contributor
0 Kudos

hi,

use this program.

ACC_BAPI_TEST_DOCUMENT.

Former Member
0 Kudos

See FM BAPI_ACC_DOCUMENT_POST documentation

Former Member
0 Kudos

Hi Naveen,

You run this BAPI by giving input till you get the result and then use it in your code.

Some of the structure to post credit memos are

*--Populating Header strucuture

*--To upload the Header Structure required By BAPI

wa_docheader-bus_act = c_bus_act.

wa_docheader-username = sy-uname.

wa_docheader-header_txt = wa_lineitem-header_text.

wa_docheader-comp_code = wa_lineitem-header_company.

wa_docheader-doc_date = wa_lineitem-invoice_date.

wa_docheader-pstng_date = sy-datum.

wa_docheader-fis_period = '00'.

wa_docheader-ref_doc_no = wa_lineitem-invoice_number.

wa_docheader-doc_type = wa_lineitem-document_type.

Document type is KR for Invoice and KG for Credit Memos.

*--Populating Accounts Payable table

*--Populating Currency Item Structure

Thanks

Sudharshan