09-25-2008 10:58 AM
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
09-25-2008 11:04 AM
09-25-2008 11:11 AM
09-25-2008 11:26 AM
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