Posting Subsequent Credit Using BAPI: BAPI_INCOMINGINVOICE_CREATE
Hi,
I need to post subsequent credits using BAPI: BAPI_INCOMINGINVOICE_CREATE.
In MIRO transaction we get option to select transaction (Invoice/Credit Memo/Subsequent Debit/Subsequent Credit).
But in case of BAPI I am not able to find such field. At headerdata there is one field INVOIC_IND to determine whether the system posts a credit memo or an invoice.
How can we post Subsequent Credit using this BAPI?
Regards,
Umesh
Hi,
For the BAPI below is the structure mapping.
<b>BAPI Structurename Field Value Value Description
Headerdata</b>
DOC_DATE 02/08/2005
INVOICE_IND X Post Invoice
PSTNG_DATE 02/08/2005
COMP_CODE 5010 Hospira Inc.
CURRENCY/ CURRENCY_ISO USD United States Dollar
GROSS_AMOUNT 100.0000
DOC_TYPE RE PO Invoice
REF_DOC_NO 1 Billing document no
EXCH_RATE 1.00000
CALC_TAX_IND X
HEADER_TXT header text
<b>Item Data</b>
INVOICE_DOC_ITEM 000001 Invoice Document no
PO_NUMBER 4500125768 PO No
PO_ITEM 1 PO item no
ITEM_AMOUNT 100.0000
QUANTITY 10.000
PO_UNIT EA Each
REF_DOC 5000000007 Goods Receipt No
REF_DOC_YEAR 2005 GR year
REF_DOC_IT 0001 Goods Receipt item no
TAX_CODE I0 AP, not relevant to tax
ITEM_TEXT Text
<b>Note:</b>For standard purchase order(Po's start with 45*****) it wont allow you to create without Goods Receipt. U can create an invoice without a Good receipt for only intercompany purchase orders.
If this is useful, pls reward with points.
Regards,
savitha
Similar Messages
-
How to post invoice parked using BAPI- BAPI_INCOMINGINVOICE_CREATE
Hi all,
Can anybody help me with the following scenario:
I am parking Invoice document using BAPI: <b>BAPI_INCOMINGINVOICE_PARK</b>. It gives me a document no. which I can see in frontend system also by committing the BAPI.
But when I try to post the same using BAPI: <b>BAPI_INCOMINGINVOICE_CREATE</b> , It gives me a different document no.
Means it is not posting the document which has been parked earlier but it is creating totally a new document. Can anybody tell me using BAPIs how to post the same document that I had parked using BAPI: <b>BAPI_INCOMINGINVOICE_PARK</b>??
Thanks
SaurabhHi Shraman,
For a requirement for Intercompany GL posting, use BAPI_ACC_DOCUMENT_POST for standard posting with some advanced parameters
In Header of the BAPI, pass the hardcoded values like
DOCUMENTHEADER
OBJ_TYPE = FKKSU
OBJ_KEY = $
OBJ_SYS = System name
BUS_ACT = RFBU
Other parameters you can pass in Header is:
USERNAME
HEADER_TXT
COMP_CODE
DOC_DATE
PSTNG_DATE
TRANS_DATE
FISC_YEAR
FIS_PERIOD
DOC_TYPE
REF_DOC_NO
If you are posting a document in cross-companies 1000 & 1001, you need to pass cost-center with the line item. That is the mandatory field.
Thanks,
Guru -
Error while using bapi BAPI_INCOMINGINVOICE_CREATE to post MIRO
Hi Friends,
Im using bapi BAPI_INCOMINGINVOICE_CREATE to post MIRO.
im passing data to table GLACCOUNTDATA.
Below are the table fields im paasing
INVOICE_DOC_ITEM " '000001' deafault always
GL_ACCOUNT "Which is constant for all in my case
ITEM_AMOUNT " Total PO net amt + Frieght charges header level
DB_CR_IND " 'S' always default
COMP_CODE " 'RPPL' always default
TAX_CODE " 'V0' deafault always
PROFIT_CTR " for ex 1100180. based on plant
While posting this bapi is trhrowing error as below
'profit centre RPPL/1100180 does not exist for 01.12.2008'
where 01.12.2008 is the MIRO posting date which im passing in header.
We checked dates for profit centres they are correct.
Awaiting the reply ASAP.
Regards,
VenkyHi,
It would be better if you do a recheck on data input for BAPI. If you sure the data are ok but the BAPI still gives error message, then I suggest to post to OSS.
Regards,
Teddy Kurniawan -
Unable to transfer post the document using BAPI "BAPI_GOODSMVT_CREATE"
Hi Experts,
I am unable to post the document using BAPI "BAPI_GOODSMVT_CREATE", getting error "_Sales order stock --- does not exist_"
details are stated below:
GM_CODE : 04, it is working fine for the scenario with same saleorder number and line item, but when i give same sale order number and different line item, then i am getting the above error.
Example : Posting from Saleorder A with line item 100 to saleorder A with lineitem 100 its working fine, but when we are posting
from Saleorder A with lineitem 100 to saleorder A with line item 200 it is not working.
Also When I trying to do with the transaction MB1B manually, it is working fine. kindly suggest me.
Needed Urgently....
Appreciate for you early response.
Regards,
Sathya.
Edited by: Sathyanarayana Raghavendra on May 6, 2010 1:00 PMHi,
Hi Did you call Function BAPI_TRANSACTION_COMMIT' after calling the BAPI. ?
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = c_x.
Regards,
Jovito. -
Incorrect posting key when using BAPI to post the document
Dear Gurus,
We are using a document upload program using BAPI_ACC_DOCUMENT_POST. It is for making payments to employees vendors via a mass mode.
Now the payment to then is getting reflected as posting key 21, but we want to use key 25, so that in vendor report the line items for payments gets grouped together.
How can we change this posting key in this BAPI?
Cheers,
BhaveshHi,
This BAPI have the posting keys hardcoded based on account type, debit credit etc. You cannot change that in this BAPI.
However I can find an OSS note 487722 which says some extension about this BAPI structure. You can try that to include the Posting Key Field:-
[https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=487722]
Regards,
Gaurav -
Posting the Document using BAPI
Hi All,
We have posted document manually using 'FB01' tranasaction.But we are unable to post document through 'BAPI_ACC_DOCUMENT_POST'.we are getting errors like ''FI/CO interface: Line item entered several times''.can anybody send me the sample code for posting document.
Thank You,
Anupama.Hi,
In the tables passed to the BAPI : accountgl, accountreceivable, accounttax and so on - you need to use a unique item number (position number, field itemno_acc) for each item.
There is a standard SAP report with instruction how to use that BAPI: porgram ACC_BAPI_TEST_DOCUMENT .
good luck -
How to post Intercompany GL using BAPI
Hello Experts,
We have a requirement for Intercompany GL posting , we are using BAPI_ACC_DOCUMENT_POST for standard posting but looks like it does not work with intercompany posting.
Can anyone let me know how to post Intercompany GL either using BAPI_ACC_DOCUMENT_POST or any other method.
Thanks
ShramanHi Shraman,
For a requirement for Intercompany GL posting, use BAPI_ACC_DOCUMENT_POST for standard posting with some advanced parameters
In Header of the BAPI, pass the hardcoded values like
DOCUMENTHEADER
OBJ_TYPE = FKKSU
OBJ_KEY = $
OBJ_SYS = System name
BUS_ACT = RFBU
Other parameters you can pass in Header is:
USERNAME
HEADER_TXT
COMP_CODE
DOC_DATE
PSTNG_DATE
TRANS_DATE
FISC_YEAR
FIS_PERIOD
DOC_TYPE
REF_DOC_NO
If you are posting a document in cross-companies 1000 & 1001, you need to pass cost-center with the line item. That is the mandatory field.
Thanks,
Guru -
Error in invoice creation using BAPI BAPI_INCOMINGINVOICE_CREATE
Hi All,
I am using BAPI_INCOMINGINVOICE_CREATE to create an invoice using below data,
wa_header-invoice_ind = 'X'.
wa_header-doc_date = sy-datum. "Enter the document date
wa_header-pstng_date = sy-datum. "Enter the posting date
wa_header-ref_doc_no = 'Test'.
wa_header-comp_code = 'L110'.
wa_header-gross_amount = '528.2400'. "Enter the gross amount(aft. tax) for the invoice
wa_header-calc_tax_ind = 'X'.
wa_header-currency = 'USD'.
wa_item-invoice_doc_item = '000001'.
wa_item-po_number = '4600013733'. "Enter the PO number
wa_item-po_item = '00010'. "Enter the PO item number
wa_item-tax_code = 'I1'. "Enter the tax code applicable
wa_item-item_amount = '528.2400'. "Enter the item amount
wa_item-quantity = '1'. "Enter the invoice quantity
wa_item-po_unit = 'PC'. "Enter the UoM
APPEND wa_item TO it_item.
when i call the BAPI its giving me an error
Enter a tax code in item 000001
so when i entered a data in TAXDATA table of BAPI again it throw an error,
Enter value in either field HEADERDATA-CALC_TAX_IND or field TAX_AMOUNT (import parameter TAXDATA).
As per my requirement we wanted to set CALC_TAX_IND .
Kindly suggest me.
Thanks and regards,Dear Reddy
My excel contain date format 'YYYYMMDD'
But the server in i am uploading data having date format 'DDMMYYYY'.
bapi also having date format YYYYMMDD.
BUT in TCODE AS91 HAVING DATE IN DDMMYYYY FORMAT.
Due to this format it is giving error. -
GL Posting using BAPI BAPI_ACC_DOCUMENT_POST but not updating in table BSEG
Hi Experts,
Hope all are doing greatu2026
I need you help to resolve the below issue.
We have on Z-Tcode to GL Posting the document using BAPI u2018BAPI_ACC_DOCUMENT_POST' and this program is successfully posted from the source file and documnet # also created successully.
We have entries in BKPF, but the table BSEG not updating and we do not have entries.
Please help me on this regards,
Thanks in Advance.
AmjadHi Srikant,
Thanks for your reply...
As you suggest, i have checked the structure ACCOUNTGL and below values are passing.
ACCOUNTGL -ITEMNO_ACC
ACCOUNTGL -GL_ACCOUNT
ACCOUNTGL- ITEM_TEXT
ACCOUNTGL- COMP_CODE
ACCOUNTGL- COSTCENTER
ACCOUNTGL- CS_TRANS_T
Could you please suggest me if there are any changes needs to do.
Thanks & Regards,
Amjad Hussain -
Issue in posting a accounting document using BAPI BAPI_ACC_DOCUMENT_POST
Hi All,
I 'm able to post a document using BAPI ' BAPI_ACC_DOCUMENT_POST ' but the problem i face is the header text is not getting updated for the document that is getting posted. Even though i'm populating the header text in the parameters i'm passing to the BAPI.
Any pointers to this would be highly appreciated.
Regards,
ChaitanyaHi,
put a break in subroutine FORM fill_acchd
and execute the bapi.
Here you have:
CLEAR gs_acchd.
MOVE-CORRESPONDING gs_aw TO gs_acchd.
gs_acchd-usnam = gs_bapi_acchd-username.
gs_acchd-awsys = gs_bapi_acchd-obj_sys.
gs_acchd-bktxt = gs_bapi_acchd-header_txt."---->¡¡¡CHECK THIS!!!
gs_acchd-glvor = gs_bapi_acchd-bus_act.
gs_acchd-tcode = sy-tcode.
gs_acchd-acc_principle = gs_bapi_acchd-acc_principle.
Check if there is something wrong there.
Best regards -
How can i post to FI using BAPI 'BAPI_ACC_DOCUMENT_POST' where cross company code is involved.
Its working fine when only one company code is present.I am able to post a cross-company code by putting the separate company codes in each lline - however I am having a problem that it is using the number range of the second line item for both company codes - any ideas on how to resolve this?
-
Document type for Subsequent Credit/Debit for idoc invoic01/02
Hi SAP Gurus,
We are implemeting an interface to post incoming invoice with idoc Invoic01 idoc type.
We could able to post debit invoice and credit memo using document type in idoc (BSART) as "INVO" and "CRME".
But we would also like to post Subsequent Credit/Debit memos also with this idoc type but not sure what should be used in document type field ( BSART) in idoc.
If any one has come across this scenario please suggest whether is it possible to use Invoic01 idoc type to post Subsequent Credit/Debit notes if yes what is the document types used? also I see in OBCE transaction we can only mention Invoice document type for debit and credit invoices only. How to handle this incase of subsequent Credit/Debit invoices.
Thanks.Hello Rish,
Please, be aware that if you look at the document at MIR4/MIRO etc, they will apear as a INVOICE/CREDIT MEMO (in the "Drop down" box, in the top of transaction)even if they are sub. credit/deb, but that is the standard system behavior ! In order to check if it is a Subcequent debit/credit, you can check directly into rbkp table or even better, just check in the PO history! it will be in a separate category !
Give it a check if this is not the case!
Regards! -
Subsequent credit display from PO
Hi friends,
I post subsequent credit by using MIRO.
And I double click subsequent credit line item from purchase order history by using ME23N.
Why the Transaction in header is "2 credit memo" not "4 subsequent credit " in display invoice document screen?Hi Pankaj,
Thanks for taking time to reply to my post.
Transaction type 'RD' includes Subsequent Credit/Debit memo. So, using this field we cannot differentiate a Subsequent Credit/Debit from a MIRO Invoice.
Thanks,
Pradeep -
Tolerance Key BR in subsequent credit
Hi All,
Invoice has been posted for qty 0.022 kg for amount 210 USD.
Now user wants to subsequent credit,for 135 USD as he has to recover the amount from the supplier.
While posting subsequent credit, system raising an error message...TOLERANCE KEY BR HAS TO BE MAINTAINED....
we have checked the Tolerance key is not maintain for that Company code.
My question is for subsequent debit QTY is not mandatory, then why system is asking for Br key ,which is purely relate with qty.
Thanks....
Abhishek BHi All,
Any body help me on this issue.
Thanks.. -
What values to pass in BAPI BAPI_INCOMINGINVOICE_CREATE for Business palce
Hi BAPI gurus,
I can create MIRO doc using bapi BAPI_INCOMINGINVOICE_CREATE
But i want to create MIRO along with the values Business place and section in Basic data tab of MIRO t-code.
I am not understanding which are the fields in bapi header to populate Business place and section.
How to create MIRO along with passing values to Business place and section .
helpfull asweres will be rewarded.Hi Friend,
Try to pass in field BUSINESS_PLACE of structure BAPI_INCINV_CREATE_HEADER to that BAPI.
Hope it will work.
Regards
Krishnendu
Maybe you are looking for
-
Regarding Application server file path
Hi All, please explain the process how to create logical file path in FILE t-code.
-
BIP fails to render a pdf report with Read timed out
Hi, If a run a report with large query/data, BIP after 2 minutes fails with this error: java.sql.SQLException: java.net.SocketTimeoutException: Read timed out. The BIP report run a OBIEE Query, and BI Server log return this: [2012-07-03T14:47:39.000+
-
Nokia 6300,problem in SW update.
Hii earthy"z..!!! I've got a nokia 6300,though it's a gud cell but now a days em facin sum problems like...it takes too much time to update music library and in startin music player..! So i just want to update it,but the problem is when i try to upda
-
How to create and place two dropdowns in JSP page
How do I create two dropdowns side by side in a JSP page? Also, hw do I place them side by side so that there's no overlapping?
-
I am unable to install the update elements inspiration browser for 10
I am unable to reinstall the update for Element update for Elements 10