Error creating an AP Invoice
Hi,
I am trying to create an AP invoice(Doc Type = Service) using DI API.I am getting the following eror message:
[OPCH.GrosProfit][line: 1] , 'No matching records found (ODBC -2028)'
My code is as follows:
Set oCmp = New SAPbobsCOM.Company
oCmp.UseTrusted = True
oCmp.Server = "(local)"
oCmp.CompanyDB = "ABC-Holding"
oCmp.UserName = "manager"
oCmp.Password = "manager"
oCmp.Language = SAPbobsCOM.BoSuppLangs.ln_English
l = oCmp.Connect()
Set oApInvoice = oCmp.GetBusinessObject(oPurchaseInvoices)
oApInvoice.DocType = dDocument_Service
oApInvoice.CardCode = "VA001S"
oApInvoice.Lines.ItemDescription = "Banana"
oApInvoice.Lines.Price = 2.36
oApInvoice.Lines.AccountCode = "999999-100"
RetVal = oApInvoice.Add
If RetVal <> 0 Then
oCmp.GetLastError ErrCode, ErrMsg
MsgBox ErrCode & " " & ErrMsg
End If
Please help.
Thanks.
Hello,
I think you must use this sentence to add the line before adding the invoice:
oApInvoice.Lines.Add
But DI has a problem when you use that method. You have to set another line after calling the add method. Then setting another line this way:
oApInvoice.Lines.ItemDescription = "Banana 2"
oApInvoice.Lines.Price = 2.40
oApInvoice.Lines.AccountCode = "999999-100"
Don't forget to set the taxCode in Both lines and after that you can add the Invoice:
RetVal = oApInvoice.Add
I hope i could help you..
Similar Messages
-
Error in creating Depot excise invoice.(J1IJ) 4F:550
Hi Gurus.
I have created.
Depot Sales Order->Depot Delivery.
Now i am creating Depot excise invoice in J1IJ.i am getting error when i enter delivery no, excide group & Series group
error:-
4F:550 TDL TD12 E3 E3
TDL-company code
TD12- Plant(Depot)
E3-Excise group
E3-series group.
NOTE:- we dont want to configure default excise group & series group config.
Reg.
Amol
Edited by: Amol Tamhane on Mar 16, 2010 3:17 PMHi all,
I got the Solution.
Tell your ABAPER to find out Object in "SAPMJ1IJ" PROGRAM
source code of MJ1IJF01.
in my case the object was "J_1IDEP_S1"
1) check whether that object is assigned to user or not(from Basis guy)
2)Check whether values of following are assigned in that object or not(Basis guy)
Activity
Company Code
Plant
Excise group
Excise document series group
take the help of Basis guy to Resolve it.
Reg,
Amol -
Error while creating inter-company invoice for stock transport
Hi ,
I am facing following errors while creating inter-company invoice for STO order.
We have scenario where standard PO is created in company code A & then replenishment delivery is created in company code B.While raising inter-company invoice to company code A, we are facing problem.
In replenishment delivery we have 10 line items. But when we try to do inter company invoice through VF01/VF04 we get following log
XXXXXXXXXX(delivery Number) 000000 Customer XXXXX: Customer master table KNVV is missing (VF-022)
XXXXXXXXXX (delivery Number)000010 The bill-to party could not be determined (VF-047)
XXXXXXXXXX (delivery Number)000010 The payer could not be determined (VF-048)
With this first line item from delivery is not flows to invoice & if we saves this invoice then it is get saved with account determination error as some of the data does not comes into invoice header like account assignment group for customer, Payment term, destination country,region, tax classification for customer etc. That means invoice gets created without first line item from delivery with account determination error & so,no accounting document gets generated.
I checked customer master for all SP,SH,BP,PY they are correctly maintained.This was working fine few months back, but not working now.
If anybody had come across such kind of scenario, your valuable inputs will be highly appreciated.
Thanks & kind regards,
Ganesh PalatshahaHello
Kindly check the sales area of customer involved, whether the customer maintain with sales area for STO.
If that is note the case the refer following link:
- Error VF 047 & 048 while creating Inter company billing
Regards
JP -
Error Message while creating A/P Invoice
hi experts,
I try to create AP invoice but system shows following error cannot create standalone AP/AR invoice with excisable item. please explain me the reason to understand.Hi Ratna Kumari,
When ever you create Delivery for Excise able Item System Pop Up That You need to Create Excise able Invoice for this Delivery.
If you will not Create Excise able Invoice then You will not be able to create Invoice.
If Item is Excise able then you have to Create Excise able Invoice other wise you will not be able to create Invoice.
If you have included Tax with 100% Non Deductible then also you have to create Excise Invoice for every Delivery of Excise able Item for Creating Invoice.
This is Standard System Behavior. You to Create Excise able Invoice for Creation Invoice.
Hope this help
Regards::::
Atul Chakraborty -
Error -creating Recurring Invoice-R12, Version 12.1.1.
Hi,
When I am creating the Recurring invoice in accounts Payable( R12, Version 12.1.1.) I got the following error message
"APP-SQLAP-10000: ORA-04062: signature of package "APPS.AP_ETAX_PKG" has been changed occurred in
Get_Quote<-Calculate_Tax<-Post-Query<-CREATE_REC_INV
with parameters (&PARAMETERS)
while performing the following operation:
Calling Payables eBTax API
FRM-40735: POST-QUERY trigger raised unhandled exception ORA-20002."
Can any one help me to solve this problem.
Thanks & Regards
zunaithaHi
Please go through the Doc ID: 457033.1 & Note 216225.1 from the metalink.
Thanks
srinivask -
INCIAP Create Intercompany AP Invoices-Completes in Error
Hi to all,
We ran the following intercompany request: "Create Intercompany AP Invoices". In reviewing the logfile the tail end of the file has the following info:
Get if OM is installed
Getting the Sales Order Information
Getting the Inventory Organization from Item Validation Organization.
l_IC_INVENTORY_ORGANIZATION_ID is 1
Call inv_workflow.call_generate_cogs
l_gl_ccid is 132972
global->invInfo.ap.ccid is 132972
In inliap.lpc, inapcil()
Creating invoice line Last row processing.
In inlico.lpc, inilcbk()
End of Processing Inovice Line ID: 191190206.000000
Invoice Line ID: 191190206.000000 Status: SUCCESS
Loading global info structure
Processing invoice line, ID = 68435560
In inciap.opc, processInvoiceLine()
Get if OM is installed
Getting the Sales Order Information
Getting the Inventory Organization from Item Validation Organization.
l_IC_INVENTORY_ORGANIZATION_ID is 1
Call inv_workflow.call_generate_cogs
l_gl_ccid is 132994
API inv_workflow.call_generate_cogs returned failure./PROD/shared/apps/apps_st/appl/inv/12.0.0/bin/INCIAP
Program was terminated by signal 11
We've located the sales order and reviewed the transaction type COGS. The COGs is valid. Since the last lines state CCID: 132994 is this the root cause? We have checked the CCID and it is enabled. How do we find which line is giving the issue? And is the COGs the root cause or something else?
ThanksHi,
This concurrent programs log is very limited to conclude the issue, please try to rerun the same program and get the FND log, steps pasted below:
1) Go to the System Profile options and set the following parameters:
FND: Debug Log Enabled = YES
FND: Debug Log Filename = NULL
FND: Debug Log Level STATEMENT (most detailed log)
FND: Debug Log Module %
2) run your concurrent program
3).
SELECT LOG.LOG_SEQUENCE, LOG.message_text message
FROM FND_LOG_MESSAGES LOG,
FND_LOG_TRANSACTION_CONTEXT CON
WHERE CON.TRANSACTION_ID = <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<Your Concurrent request ID>>>>>>>>>>>>>>>>>>>>>>>>>>>>
AND CON.TRANSACTION_TYPE = 'REQUEST'
AND CON.TRANSACTION_CONTEXT_ID = LOG.TRANSACTION_CONTEXT_ID
ORDER BY LOG.LOG_SEQUENCE ;
Hope it helps!
Regards,
Yuvaraj -
Acctg document not created for cancellation invoice
Hi all,
We have a vehicle sales order created with payment card. The SO contains one item for vehicle and one item for parts. The items were delivered and invoiced separately. Hence, SO has one vehicle sales invoice (VSI) and one parts sales invoice (PSI).
The standard procedure was to post VSI first before the PSI. Accounting documents have been created when both invoices were posted. However, there was a need to cancel the PSI. When this was done, cancellation invoice was created but there was no accounting document posted for the cancellation.
I tried simulating the scenario in our test server and cancelled VSI 90000081 first before cancelling PSI 90000082 to test if this can be an alternative solution. Cancellation for VSI was posted successfully but error persists for PSI cancellation.
Order 67 06/19/06 Completed
. Delivery 80000081 06/19/06 Being processed
.. Picking request 20060619 06/19/06 Completed
.. GD goods issue:delvy 4900000293 06/19/06 complete
.. Invoice 90000081 06/19/06 Completed
... Accounting document 2000077 06/19/06 partly cleared
.. Invoice cancellation 90000084 06/19/06 Completed
... Accounting document 2000079 06/19/06 partly cleared
. Delivery 80000082 06/19/06 Completed
.. Picking request 20060619 06/19/06 Completed
.. GD goods issue:delvy 4900000294 06/19/06 complete
.. Invoice 90000082 06/19/06 Completed
... Accounting document 2000078 06/19/06 Not cleared
.. Invoice cancellation 90000083 06/19/06
.. Invoice 90000085 06/20/06 Blocked
Accounting status of 90000083 (where error occurs) in VF03->Header->Details is set to K or <b>Accounting document not created (authorization lacking)</b>.
Any inputs? Thanks in advance.Hello Sheila,
sorry - my first answer was in mistake - Status K means:
"The transaction is processed using payment cards. The order, however, does not contain valid authorization.
This problem occurs in billing documents for follow-up deliveries."
Could you check this ? Last way would be to set a breakpoint into the FM 'RV_ACCOUNTING_DOCUMENT_CREATE'
and trigger this via VF02 -> Release to accounting.
Regards Wolfgang -
"Error in allocating Excise invoice number Interval not found Number object
Hi friends,
I am getting above error while creating the Excise Invoice. I have checked all the settings like No range in SNUM for object J_1IEXCLOC and all other settings. I have posted the thread earlier related to same problem and issue was resolved.Now I am facing the same problem and I have checked all the settings.
Looking forward for u r valuable inputs.
Regards
JaiprakashTry these customizings regarding your process.
Go to IMG Logistics-General --> Tax on Goods Movements --> India --> Basic Settings --> Maintain Excise Groups.
There select your excise group and untick the box against the tab "Create EI". Now rerun the process and post the feedback.
SAP Customizing Implementation Guide>>>>>>Logistics - General>>>>>Tax on Goods Movements>>>>>
India>>>>>Business Transactions>>>.>>Outgoing Excise Invoices>>>>>Maintain Default Excise Groups and Series Groups
Above setting is only made for differentiate of Export sale transactions .............
Go to J_1iintpr2 and check the interval for current year.
Best regards,
Ankur
Edited by: Ankur Agrawal on Jun 22, 2009 6:13 PM -
Error in allocating excise invoice
When i do the billing using vf01, the billing document is displayed. On saving the billing document, i get the message " Print excise invoice in series group S2 using j1-ip for billing document" and a message at the bottom of the screen comes "excise document created for billing document". However when i try to post it to accounting, I get a message "express document" update was terminated"". On clicking the error, it shows " error in allocating excise invoice" and the attribute defined for it is "Express copy printing not allowed . Forwarding not allowed". How to resolve this problem? Please help
Rohit UniyalHi Garima/Rohit,
Please check in Customizing, whether you have properly maintained the IMG activity Excise Group - Series Group Determination.
Further,
Check your Number Ranges for both
Billing type F2 as well as for Excise Invoice Number range for all relevan objects.
May be there is overlapping of Number Ranges Somewhere.
Plz Check these settings.
Reward if found useful.
Regards,
Gaurav Raghav. -
Deemed exports not getting created when excise invoice generated in backgro
Hi guys,
when i create an excise invoice in background .and try to create ARE-3 in J1IA301.I am getting a error (081091004/2009 excise invoice is meant for normal invoice).
when i create excise invoice manually and click on goto - utilization . The excise invoice type will be local .If i click on the pencil tab it will change to EXPORT and we can see DEEMED in blue color after this i will save and create ARE-3. ARE-3 gets generated.
while creating excise invoice in background the EXCISE INVOICE TYPE in J1IIN will be LOCAL and we will not be able to change after this when i try to create ARE - 3 IAM GETTINGTHE ERROR..
Please help me out of this..
As my client wants to create the excise invoice in background while billing document is created..
Regards,
Shivdeep BHi,
If you want to create excsie invoice in back ground while creating billing document for Deemed exports.
Please follow the navigation as mentioned below.
SPRO - Logistic General - Tax on goods movement - India - Business transaction - Out going Excise invoice - Maintain default Excise group and series group.
Here please maintain you Plant, Excise group & Series group for deemed exports sales area combination and export type as Deemed exports in *details screen*. Now system will create excise invoice for deemed exports in background while creating the billing document go to display excise invoice and see the utilization you get Deemed exports.
This will do for you. -
Unable to Change Withholding Tax Base Amount while creating Service AP Invoice through DI API?
Dear All,
I am trying to create Service AP Invoice through DI API.
If I post the document without changing SAPPurchaseInvoice.WithholdingTaxData.TaxableAmount the dount ocument is created in SAP without any problem.
But if I change amount in above field then DI API throws error Unbalanced Transaction.
If I post same document in SAP with changed base amount it got posted in SAP without any Issue.
Where I am doing wrong?
please guide.
Using:
SAP B1 version 9 Patch Level 11
Location : India.
Thanks.Hi ,
maybe you can find solution to these note 1812344
1846344 - Overview Note for SAP Business One 8.82 PL12
Symptom
This SAP Note contains collective information related to upgrades to SAP Business One 8.82 Patch Level 12 (B1 8.82 PL12) from previous SAP Business One releases.
In order to receive information about delivered patches via email or RSS, please use the upper right subscription options on http://service.sap.com/~sapidp/011000358700001458732008E
Solution
Patch installation options:
SAP Business One 8.82 PL12 can be installed directly on previous patches of SAP Business One 8.82
You can upgrade your SAP Business One to 8.82PL12 from all patches of the following versions:8.81; 8.8; 2007 A SP01; 2007 A SP00; 2007 B SP00; 2005 A SP01; 2005 B
Patch content:
SAP Business One 8.82 PL12 includes all corrections from previous patches for releases 8.82, 8.81, 8.8, 2007, and 2005.
For details about the contained corrections, please see the SAP Notes listed in the References section.
Notes: SAP Business One 8.82 PL12 contains B1if version 1.17.5
Patch download:
Open http://service.sap.com/sbo-swcenter -> SAP Business One Products -> Updates -> SAP Business One 8.8 -> SAP BUSINESS ONE 8.82 -> Comprised Software Component Versions -> SAP BUSINESS ONE 8.82 -> Win32 -> Downloads tab
Header Data
Released On
02.05.2013 02:34:18
Release Status
Released for Customer
Component
SBO-BC-UPG Upgrade
Priority
Recommendations/additional info
Category
Upgrade information
References
This document refers to:
SAP Business One Notes
1482452
IN_Wrong tax amount was created for some items in the invoice with Excisable BOM item involves
1650289
Printing Inventory Posting List for huge amount of data
1678528
Withholding amount in the first row is zeroed.
1754529
Error Message When Running Pick and Pack Manager
1756263
Open Items List shuts down on out of memory
1757641
Year-end closing
1757690
SEPA File Formats - New Pain Versions
1757898
Incoming Bank File Format
1757904
Outgoing Bank File Format
1762860
Incorrect weight calculation when Automatic Availability Check is on
1770690
Pro Forma Invoice
1776948
Calendar columns are wrong when working with Group View
1780460
OINM column description is not translated
1780486
UI_System crash when you set extreme value of double type to DataTable column
1788256
Incorrect User-Defined Field displayed in a Stock Transfer Request
1788372
ZH: 'Unacceptable Field' when export document to word
1788818
RU loc: No freight in the Tax Invoice layout
1790404
Cash Flow Inconsistency when Canceling Payment
1791295
B1info property of UI API AddonsInstaller object returns NULL value
1791416
Adding a new item to BoM is slow
1794111
Text is overlapping in specific localization
1795595
Change log for item group shows current system date in all the "Created" fields
1797292
Queries in alerts should support more query results
1800055
B1if_ Line break issue in inbound retrieval using JDBC
1802580
Add Journal Voucher to General Ledger report
1803586
Not realized payment is exported via Payment Engine using 'SAPBPDEOPBT_DTAUS' file format
1803751
Period indicator of document series can be changed although it has been used
1804340
LOC_BR_Cannot update Nota Fiscal Model
1805554
G/L Account displayed in a wrong position when unticking the checkbox "Account with Balance of Zero"
1806576
Payment Cannot Be Reconciled Internally
1807611
Cannot update UDF in Distribution Rule used in transactions
1807654
Serial No./Batch inconsistency by canceled Inventory Transfer
1808694
BR: Business Partner Code cannot be updated with CNPJ CPF error
1809398
CR_Cannot Display Related Multi-Value Parameters
1809758
Arrow key not work for Batch/Serial Number Transactions Report
1810099
Tax Amount is Recalculated Even if Tax Code Is Not Changed
1811270
Upgrade fails on Serial And Batches object with error code -10
1811846
Cannot run Exchange Rate Differences when multi branch is activated
1812344
Withholding Tax Amount Is Not Updated in Payment Once Witholding Tax Code Is Changed in Document through DI API
1812740
DI:"Operation Code" show wrong value when add "A/P Tax Invoice" based on "A/P Invoice"
1813029
US_Vendor address on 1099 Summary by Form/Box Report is not updated according to the latest Invoice
1813835
Wrong amounts of Goods Return in Open Item List
1814207
Preliminary page prints setting does not keep after upgrade
1814860
Value "Zero" cannot be imported to "Minimum Inventory Level" field via Excel file
1815535
RFQ: Web front end not displayed in supplier language
1815810
GT: Adding Incoming Payment for Some Cash Flow Relevant Accounts Fails
1816191
BR:System Crashes While Working with Tax Code Determination Window
1816611
CR_Crystal Report Displayed Incorrectly Afte -
Tax error when posting vendor invoice
Dear Friends ,
I am posting this 3rd time, I am geting this error when poatin vendor invoice , I am geting this error in production system before GOLIVE ,when we are doing live data entry test . All the seting related to taxes has been testing more than 10times , But we are unable to find the problem . We had checked with all past messages and best possible solution in SDN ......but problem is not solved . Said error is as follows ....
Tax code V0 country IN does not exist in procedure TAXINN
Message no. FF713
Diagnosis
You entered a tax code which is not defined for the country of the company code to be posted to in the tax calculation procedure.
System Response
Procedure
Check and, if necessary, correct the entry.
Procedure for System Administration
If it is not an input error, check and possibly change the system settings.
To do this, choose Maintain entries (F5).
Check whether the company code is assigned to the correct country and whether the correct tax calculation procedure has been entered for the company code country.
Create a new tax code if necessary.
Caution:
Since it is possible that the tables in question are being updated at a different time on another computer, it can take a certain amount of time for the tax code to be on all local machines in client server architectures after saving the new code.
Raghuhi
go to ftxp choose tax code v0
here in first input field give 00
then select that field and click on gl acct tab
here mention a gl or go to ob40 and mention gl for the acct key of that field
try finding
Tax code country IN does not exist in procedure TAXINN
on SDN u will get many threads
Tax code XX country IN does not exist in procedure TAXINN (MIRO Error)
conclusion is u must get acct for at least one condition in the tax code
regrads
kunal
award if helpful -
Error while making excise invoice
Hi
When i post excise invoice then i receive error
No matching record found 'G/L accounts'(OACT)(ODBC-2028)
i have given accounts to all excise formulas ie A/ptax account and A/Rtax account of BED,Cess and Vat.
how to solve?
ThanksHi Krishna,
Actually this the incoming and outgoing cenvat clearing account is a offset account. You will have the balance in these accounts nullified when you create an Invoice.
Like..
for an out going excise invoice the clearing account is debited by the total tax amount(Excise) and when you create the AP Invoice the account is credited by the same amount. so the baance at the end is 0.
the same is reversed for incoming excise transactions.
So you can create twoo accounts one in the asset drawer and one in liability in correspondence to the tax accounts for Excise(BED,cess,H.Edu cess).
I hope I am clear.
Regards,
Raj -
Error message control for invoice w/o PO in SRM
Hi,
Anyone know how to setup error message if invoice value limit is above e.g. 10000 USD? Invoice will be entered without PO.
There will be no PO but invoice will be created and user should get error message if total invoiced value is above 10000 USD.
We are in SRM_SERVER5.5 with SP 06.
If anyone came across during IMS setup, please help me on it.
Thanks in advance.
Regards,
Rahul MandaleHi Atul,
Thanks for your useful answer. I am getting error message while creation of invoice. But problem is that it is throwing message for all invocie, need to consider if condition of 'GROSS_AMOUNT >= 1000 USD. During creation of invoice, it should throw msg 001 (YIMS) which I have configured as my exception in IMS when fulfills the condition.
I am sending code for 'CHANGE' and "CHECK' BADI.
Can you check and suggest the correction? Where I need to put this conditon for pop up of error while gross_amount >= 1000 while creation and change of invoice??
Thanks in advance.
regards,
Rahul
<b>method IF_EX_BBP_DOC_CHANGE_BADI~BBP_IV_CHANGE.</b>
DATA: ls_header TYPE bbp_pds_inv_header_d,
lt_messages TYPE TABLE OF bbp_smessages_badi,
ls_message TYPE bbp_smessages_badi,
lf_dummy TYPE c,
lf_gross_amount TYPE BBP_IV_AMOUNT,
i_guid TYPE BBP_GUID .
get data of the invoice from guid
CALL FUNCTION 'BBP_PD_INV_GETDETAIL'
EXPORTING
i_guid = i_guid
IMPORTING
e_header = ls_header.
IF ls_header-GROSS_AMOUNT >= 1000.
CLEAR ls_message.
ls_message-msgty = 'E'.
ls_message-msgid = 'YIMS'.
ls_message-msgno = '001'.
APPEND ls_message to lt_messages.
EXIT.
ENDIF.
<b>method IF_EX_BBP_DOC_CHECK_BADI~BBP_DOC_CHECK.</b>
Data ls_message TYPE bbp_smessages_badi.
*To create custom message
clear ls_message.
ls_message-msgty = 'E'.
ls_message-msgid = 'YIMS'.
ls_message-msgno = '001'.
append ls_message to et_messages.
endmethod. -
Error while releasing an invoice for accounting.
Hi Experts,
I am encountering an error while releasing an invoice for accounting. The error displayed is 'error in transaction currency'. Please help me out with this.
Regards,
SunitaHi Rish,
Simply go to FS00 and click on edit cost element and for CElm Category give some input based on the G/L account type.
You might have to seek help of an FI consultant to do so.
Also in KA01 create this G/L account as a cost element against your controlling area assigned to your Chart of Accounts, you can do so by clicking on Extra's tab in transaction KA01.
Just let me know if it works.
Reward if helpful.
Regards
Ravi
Maybe you are looking for
-
Is it possible to use an iMac as an external monitor for a MacBook?
What is the process (if any) to turn off the iMac's system and make it essentially an external monitor for the MacBook?
-
[JS CS3] e é è ë a à o ô, just all the same
Hi all, b I have a indesign document with several pages. There are business cards. i As people are recruited when other move, the order of these pages is always moving. So when I have to correct a data, I have to seek for the page. That's why b I wro
-
A mystery of PDF quality degradation in indd
Ok, so this is a strange phenomenon that has occured. I have created an InDesign portfolio, which includes pdfs, jpegs, tiffs, and photoshop files. I made the document for print, exported to pdf, and have some beautiful pdfs that I have used. These f
-
Hi All, I have designed 3 fla's like login, main menu,help. All swf's embed in aspx page. All under 1 solution. I'm having enable full screen option in loginpage. If I select this, All 2 swf's also in full screen mode, Unless I uncheck the full scree
-
Error message in UCCE 9.0.1
Hai , After installing UCCE 9.0.1 when trying to access through GUI I get the following error .So inorder to login to the system what should i do. I installed Win2k8 ,Sql Server2k8 and ICM/CCE/CCH installer .Done all steps as provided in documentatio