BAPI for checking Invoice
Hi experts,
I wanted to know if there is any BAPI that I can use to check if a FI invoice can be posted without errors. Payment blocks are fine.
I will be having all the data in my internal tables and workareas and need to check if that data can be used to actually post the document.
Note: i do not intend to park the document at any stage.
Thanks,
Prabhas.
Hi Dude,
BAPI_ACC_INVOICE_RECEIPT_CHECK Accounting: Check invoice receipt
Functionality : Data resulting from invoice receipts in a Logistics system can be transferred to Accounting. You can use the Check method to see whether an invoice receipt can be posted in Accounting.
Pattern:
CALL FUNCTION 'BAPI_ACC_INVOICE_RECEIPT_CHECK'
EXPORTING
DOCUMENTHEADER =
" CUSTOMERCPD =
TABLES
ACCOUNTPAYABLE =
ACCOUNTGL =
ACCOUNTTAX =
" CURRENCYAMOUNT =
" PURCHASEORDER =
" PURCHASEAMOUNT =
RETURN =
" CRITERIA =
" VALUEFIELD =
" EXTENSION1 =
Similar Messages
-
Hi,
Is there a BAPI for FI invoice parking?
Regards,
Arun MohanHello Arun,
U can try with these:
ACC4 FI/CO: BAPIs for UPDATE
BAPI_ACC_INVOICE_RECEIPT_CHECK Accounting: Check Invoice Receipt (OAG: LOAD PAYABLE)
BAPI_ACC_INVOICE_RECEIPT_POST Accounting: Post Invoice Receipt (OAG: LOAD PAYABLE)
ACC6 Accounting: BAPIs for UPDATE II
BAPI_ACC_INVOICE_REV_CHECK Accounting: Check Reversal of Invoice Receipt (OAG: LOAD PAYABLE)
BAPI_ACC_INVOICE_REV_POST Accounting: Post Invoice Receipt Reversal (OAG: LOAD PAYABLE)
MRM_BAPI Invoice Verification BAPIs
BAPI_INCOMINGINVOICE_CANCEL Invoice Verification: reverse invoice
BAPI_INCOMINGINVOICE_CREATE Invoice Verification: Post Invoice
BAPI_INCOMINGINVOICE_GETDETAIL Invoice Verification: display invoice
BAPI_INCOMINGINVOICE_GETLIST Invoice Verification: list invoices
BAPI_INCOMINGINVOICE_PARK Invoice Verification: Park Invoice
BAPI_INCOMINGINVOICE_RELEASE Invoice Verification: release invoice
BAPI_INCOMINGINVOICE_SAVE Invoice Verification: Flag Invoice for Background Processing
If useful reward.
Vasanth -
BAPI for Vendor invoice Park FV60
Hi All,
Do you knwo any BAPI for vendor invoice Park through FV60, I have tried
BAPI_INCOMINGINVOICE_PARK - Got struck where It is asking to pass teh PO data in Itme level, where as i have to uplaod only
GLaccounts data.
and i tryed for another BAPI_ACC_DOCUMENT_POST but is not working its not related to my requiremment it seems...
Can any one know better about the process to do this.. pleas let me know..?
Can anybody did the same, if ues please share with me... its very urgent it need it...
Thanks,use bapi: BAPI_INCOMINGINVOICE_PARK
-
Stored Procedure for checking Invoice Vendor ref No
Hi All
I need a sp for checking a vendor ref no on an invoice if it already exist in the system or the user forgot to include one when trying to add the document.
I get this error on the one that I created
16/03/2010 12:21:54: [Microsoft][SQL Native Client][SQL Server]Conversion failed when converting the nvarchar value '24 0' to data type int. (CINF)
Here is my SP :-
DECLARE @Invoice AS VARCHAR(15)
DECLARE @Card AS VarChar (20)
SELECT @invoice = NumatCard, @card = CardCode FROM dbo.OPCH
WHERE DocEntry = @list_of_cols_val_tab_del
if @object_type = '18' and @transaction_type in (N'A', N'U') -- AP Invoice is null
begin
If exists (SELECT T0.cardcode, T0.NumAtCard FROM OPCH T0 where T0.NumatCard is null and T0.cardcode=@list_of_cols_val_tab_del)
begin
SET @error = 10
SET @error_message = N'Supplier invoice number not entered.'
END
END
SELECT @INVOICE = NumatCard FROM dbo.OPCH
WHERE DocEntry = @list_of_cols_val_tab_del
if @object_type = '18' and @transaction_type in (N'A', N'U') -- AP Invoice to check if the invoice no exist
begin
If exists (SELECT T0.cardcode, T0.NumatCard FROM OPCH T0 where T0.NumatCard = @invoice and T0.cardcode=@list_of_cols_val_tab_del)
begin
SET @error = 10
SET @error_message = N'This invoice number already exist for this supplier.'
END
END
Regards
Bongani DlaminiThis code should be inserted into the original (or already expanded) SBO_SP_TransactionNotification stored procedure after the line
-- ADD YOUR CODE HERE )
Try this full (and a little modified) procedure:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER proc [dbo].[SBO_SP_TransactionNotification]
@object_type nvarchar(20), -- SBO Object Type
@transaction_type nchar(1), -- [A]dd, <u>pdate, [D]elete, [C]ancel, C[L]ose
@num_of_cols_in_key int,
@list_of_key_cols_tab_del nvarchar(255),
@list_of_cols_val_tab_del nvarchar(255)
AS
begin
-- Return values
declare @error int -- Result (0 for no error)
declare @error_message nvarchar (200) -- Error string to be displayed
select @error = 0
select @error_message = N'Ok'
-- ADD YOUR CODE HERE
if @object_type = '18' and @transaction_type in (N'A', N'U') -- AP invoice
BEGIN ----
DECLARE @Invoice AS VARCHAR(15)
DECLARE @Card AS VarChar (20)
SELECT @invoice = NumatCard, @card = CardCode FROM dbo.OPCH
WHERE DocEntry = @list_of_cols_val_tab_del
-- AP Invoice is null
If exists (SELECT T0.cardcode, T0.NumAtCard FROM OPCH T0 where T0.NumatCard is null
and T0.DocEntry=@list_of_cols_val_tab_del)
begin
SET @error = 10
SET @error_message = N'Supplier invoice number not entered.'
end
-- AP Invoice to check if the invoice no exist
If exists (SELECT T0.cardcode, T0.NumatCard FROM OPCH T0 where T0.NumatCard = @invoice
and T0.CardCode=@card and T0.DocEntry!=@list_of_cols_val_tab_del)
begin
SET @error = 10
SET @error_message = N'This invoice number already exist for this supplier.'
end
END ----
-- Select the return values
select @error, @error_message
end -
Required BAPI for Vendor Invoice park
Hi,
I need to create vendor invoice upload program which support the withholding functionlity also.
Normally for vendor invoice parking we use FV60 transaction code. is there any standared BAPI which does vendor invoice park.
please let me know.
With Regards!
kannan.jause bapi: BAPI_INCOMINGINVOICE_PARK
-
Hi all:
we are working on MM invoice posting process , and we use BAPI_INCOMINGINVOICE_PARK to create parked invoice , and we also find way to post the parked invoce (PreliminaryPost method of BO BUS2081) , but before post , we may change the data of parked invoice , it could be done in R/3 , but we could not find a BAPI /Function Module for it , anyone could help us on it ? A BAPI or Function module which could change the parked invoice .
Thank you very muchHi,
Try the following BAPI's,
WSII_O_BAPI_IINV_PARK, WSII_BADI_BAPI_IINV_PARK_AFTER and WSII_BADI_BAPI_IINV_PARK_BEFOR.
Reward if helpful.
Chandrasekhar K -
BAPI for Vendor Invoice and Credit memo - FB60
Hi
Iam using BAPI_ACC_DOCUMENT_POST for creating Vendor invoice and Credit memo ..Could you please tell me which fields to be populated on the below structures?
what will be the value i should use for BAPIACHE09-BUS_ACT...RFBU or RMRP?
ACCOUNTPAYABLE ( BAPIACAP09)
ACCOUNTGL(BAPIACGL09)
CURRENCYAMOUNT( BAPIACCR09)
Only the fields which needs to be populated on these structures when we do FB60 invoice and credit memo using bapi..
Thanks in advance
GoviHi,
Populate in Document_header : (User name, Comp code, Doc DAte, Doc type, Ref Doc No)
Account GL : ItemNo_Acc, GL Accuont, REf Key1, Refkey2, Refkey3, Account Type = 'A', Doc Type, Comp code
Account_number, Cost_center
Account Payable: ItemNo_Acc, Vendor_No, Rey_key1, Ref_key2, Ref_key3
Currency Amount: Item No_Acc = 2, 1
Curr = USD, USD
Amt_Doccur
At last use commit bapi.
Thanks,
Krishna -
Required BAPI for Vendor Invoice Creation
Hi,
The transaction code for creation a vendor invoice is FB60. Is there any BAPI to create VENDOR INVOICE.
Regards!
kannancheck...
<b>BAPI_ACC_INVOICE_RECEIPT_POST</b> -
Hi all,
Which is the BAPI used to Post an Invoice after the delivery has been made.
Thanks,
Madhan.Hi,
Please have a look at the BAPIs under Accounting General -> Accounting Interface. The one you're looking for is probably AcctngBilling.Post (BAPI_ACC_BILLING_POST), but that is just a guess.
Hope that helps (please reward me if it does ,
Joerg -
Hi everyone
I need to create an invoice document using some bapi, i found this two bapi BAPI_BILLINGDOC_CREATEMULTIPLE and BAPI_INCOMINGINVOICE_CREATE; but i don't know how can i use. Can anyone help me please?
Thanks & Regards
David NHi,
Check this example..
DATA: s_vbap TYPE vbap.
TABLES: vbak,vbap,likp, lips.
DATA: t_billing TYPE STANDARD TABLE OF bapivbrk WITH HEADER LINE.
DATA: t_conditions TYPE STANDARD TABLE OF bapikomv WITH HEADER LINE.
DATA: t_return TYPE STANDARD TABLE OF bapireturn1 WITH HEADER LINE.
DATA: t_ccard TYPE STANDARD TABLE OF bapiccard_vf WITH HEADER LINE.
DATA: t_errors TYPE STANDARD TABLE OF bapivbrkerrors WITH HEADER LINE.
DATA: t_success TYPE STANDARD TABLE OF bapivbrksuccess WITH HEADER LINE
PARAMETERS: p_vbeln TYPE vbeln.
select single * from likp
where vbeln = p_vbeln.
SELECT SINGLE * from lips where
vbeln = likp-vbeln.
t_billing-salesorg = likp-vkorg.
t_billing-ref_doc = likp-vbeln.
t_billing-ref_item = lips-posnr.
t_billing-doc_number = p_vbeln.
t_billing-itm_number = lips-posnr.
t_billing-ordbilltyp = '<b>Billing document type</b>'.
t_billing-price_date = sy-datum.
t_billing-ref_doc_ca = likp-vbtyp.
t_billing-material = lips-matnr.
t_billing-plant = lips-werks.
APPEND t_billing.
CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
TABLES
billingdatain = t_billing
return = t_return
success = t_success
commit work.
Thanks,
Naren -
I would lik to create a park invoice in my program, just simulation the t-code "MIR7", so, i found that there have a BAPI "BAPI_INCOMINGINVOICE_PARK" seems to be fulfill my requirement, after call the BAPI in my program, the result is not as same as use MRI7. here is my code, is it any problem or the BAPI is not used for this purpose. thanks!
select * from ekko
where ebeln = p_ebeln.
wa_inv_header-doc_type = 'RE'.
wa_inv_header-doc_date = sy-datum.
wa_inv_header-pstng_date = sy-datum.
wa_inv_header-ref_doc_no = ekko-ebeln.
wa_inv_header-comp_code = ekko-bukrs.
wa_inv_header-currency = ekko-waers.
wa_inv_header-del_costs_taxc = 'P0'.
endselect.
select * from ekpo
where ebeln = p_ebeln.
select single * from mseg where ebeln = ekpo-ebeln and
ebelp = ekpo-ebelp.
gt_inv_item-invoice_doc_item = '1'.
gt_inv_item-REF_DOC = mseg-mblnr.
gt_inv_item-REF_DOC_YEAR = mseg-mjahr.
gt_inv_item-REF_DOC_IT = mseg-zeile.
gt_inv_item-po_number = ekpo-ebeln.
gt_inv_item-po_item = ekpo-ebelp.
gt_inv_item-tax_code = ekpo-mwskz.
gt_inv_item-item_amount = ekpo-netwr.
gt_inv_item-quantity = ekpo-menge.
gt_inv_item-po_unit = ekpo-meins.
append gt_inv_item.
gt_afs_inv_item-invoice_doc_item = 1.
gt_afs_inv_item-po_number = ekpo-ebeln.
gt_afs_inv_item-po_item = ekpo-ebelp.
gt_afs_inv_item-sched_line = '1'.
gt_afs_inv_item-afs_flag = 'X'.
append gt_afs_inv_item.
endselect.
CALL FUNCTION 'BAPI_INCOMINGINVOICE_PARK'
EXPORTING
HEADERDATA = wa_inv_header
IMPORTING
INVOICEDOCNUMBER = wa_inv_no
TABLES
ITEMDATA = gt_inv_item
/AFS/ITEMDATA = gt_afs_inv_item
RETURN = gt_retHi Portfolio,
I guess You are not passing ISO code Currency to BAPI- HEADER.
I that You passing or not.
regards,
sg -
Problem using BAPI for Final Invoice Tick
Hi,
I am using the BAPI BAPI_PO_CHANGE to set the Final invoice flag in a PO line item. But the call throws up various kinds of errors.
Are there any mandatory parameters that I may have missed out for the updation of this particular field.
Thanks in advance,
AshishHi,
As per my knowledge the following parameters are required.
PURCHASEORDER
POHEADER
POHEADERX
RETURN
POITEM
POITEMX
There is very good function module documentation available for the BAPI.
Open the function module in SE37 and click documentation.
YOu will see example also.
Thanks
Ramakrishna -
Stored procedure for checking Invoice value if more than R 15 000
Hi All
I have a problem with my stored procedure below, i want to check the doctotal if it above R 15 000 , if it is then it checks if the supplier has a tax clearance cert.
IF @transaction_type = 'A' AND @object_type = '22'
BEGIN
If exists (SELECT T0.cardcode, t0.docentry FROM OPOR T0 where T0.DOCTOTAL >'15,000.00' and T0.U_TAXCLEAR IS NULL AND T0.docentry=@list_of_cols_val_tab_del)
begin
SET @error = 10
SET @error_message = N'Amount is above R 15 000 please select Supplier with Valid Tax Certificate'
END
END
I tried this executing the sp and there was this error
Msg 208, Level 16, State 6, Procedure SBO_SP_TransactionNotification, Line 41
Invalid object name 'dbo.SBO_SP_TransactionNotification'.
In this case line 41 is 2nd END.
Thanks
Bongani DlaminiHi all
Thanks for the replies , forgot to mention a few requirements.
In addition to the to checking the value above R 15 000 I want to check if a tax certificate field is populated , if it is then checks if the expiry date is not null.
please check the query I tried below.
IF @transaction_type = 'A' AND @object_type = '22'
BEGIN
IF EXISTS (SELECT T0.CardCode FROM dbo.OPOR T0
WHERE T0.DOCTOTAL > 15000 AND T0.U_TAXCLEAR IS NULL AND T0.DocEntry=@list_of_cols_val_tab_del)
BEGIN
SET @error = 10
SET @error_message = 'Amount is above R 15 000, a valid Tax Certificate is required'
END
END
IF @transaction_type = 'A' AND @object_type = '22'
BEGIN
IF EXISTS (SELECT T0.CardCode FROM dbo.OPOR T0 WHERE T0.U_EXPIRYDATE IS NULL AND T0.DocEntry=@list_of_cols_val_tab_del)
BEGIN
SET @error = 10
SET @error_message = 'Tax Certificate expiry date is required'
END
END
Thanks
Bongani Dlamini -
FM or BAPI for reading invoice data from backend
Hi Experts,
We use SRM 4.0 and need to read invoice data from Back end (creation time and number).
Which FM I can use?
Thanks in advance
Evgeniy VazhevHi,
look at the below BAPI's
BAPI_CUSTOMER_DISPLAY
BAPI_CUSTOMER_GETDETAIL2
Regards
Sudheer -
BAPI -for Creating EXCISE INVOICE AT DEPOT tcode 'J1IG
Hi All,
Is there any BAPI for Excise Invoice Creation at depot Tcode is J1IG
Thanks,
SatishreddyHi,
Please try this Function Module
J_1I4A_CREATE_EXCISE_INVOICE
Hope it helps.
Regards
Hiren K.Chitalia
Maybe you are looking for
-
I have just putchased a 5th generation Ipod Nano and when I synced it with my Itunes library I cannot get the Videos to go onto the Ipod. How can I get my ENTIRE iTunes library over to my new iPod
-
Hi i have to prepare a report that displays the zprograms and respective t-codes. can someone give me the tables relevant to them please. its very very urgent.
-
I am unable to configure 3G,in cellular settings I do not have "enable 3G"
Hi,I have an iphone 4S,I subscribed to 3G service,but cannot configure the service,because in settings>cellular I dont have enable 3G. Need help to find a solution. Thanks
-
Move VIEW sheets in Script?
Hello, I can't seem to figure out how to move VIEW sheets in a Script VBS. Is this possible? thank you! Julia Solved! Go to Solution.
-
I just switched over to Ubuntu 6.10, and for some reason Keyboard.readInt() doesn't work for me anymore, after I import cs1.Keyboard I get the error Error reading int data, MIN_VALUE value returned. when I try to do int x = Keyboard.readInt(); I assu