Adding payment through DI API referring to Correction Invoice/Down Payment
Dear All,
In SBO 2004C (PL 72) I have to add incoming payment referring to correction invoices and down payment invoices.
In Payments_Invoices Object there is and InvoiceType Property which should be set to the object type of the referred document. Having set this to it_Invoice, it_CredItnote and it_JournalEntry it works fine, but I cannot find a working value for Correction invoices and Downpayments.
In BoRcptInvTypes Enumeration there is a it_CorrectionInvoice member, but it does not work. DownPayment member does not exist at all.
Instead of Enumerations members DI API acepts numeric object type values 13, 14, 30 which works just as the above it_Invoice etc. does, but Correction invoice's object type 165 just does not work
Has anyone experience with this?
Is is really not possible to add invoice type payments referring to these documents through DI?
Any ideas are welcome.
Thanks a lot.
Regards.
Bálint
Hi
It is possible in 2005 Clusters But i am not sure in 2004 C.
In 2005 DI API accepts Enumerations members ,In Which Both it_CorrectionInvoice,DownPayment Exists and i hope these works fine 2005.
Similar Messages
-
DI API howto set Correction invoices.
Hi all.
I`m trying to add a correction invoices but i don`t know how.
what properities of document are needed.
Can anyone help me pls .
ThanksHi Michal,
when you look in the DIAPI - Reference in the SDK Help Direcotry you will under
Document Object the following vb6 sample
ok - i changed it a bit
Dim RetVal As Long
Dim ErrCode As Long
Dim ErrMsg As String
'Create the Documents object
Dim vDoc As SAPbobsCOM.Documents
Set vDoc = vCmp.GetBusinessObject(oCorrectionInvoice)
'Set values to the fields
vDoc.CardCode = "BP234"
vDoc.HandWritten = tNO
vDoc.DocDate = "21/8/2003"
vDoc.DocTotal = 264.6
'Lines - Set values to the first line
vDoc.Lines.ItemCode = "A00023"
vDoc.Lines.ItemDescription = "Banana"
vDoc.Lines.Quantity = 50
'Invoice Lines - Set values to the second line
vDoc.Lines.Add
vDoc.Lines.SetCurrentLine(1)
vDoc.Lines.ItemCode = " A00033"
vDoc.Lines.ItemDescription = "Orange"
vDoc.Lines.Quantity = 1
'Add the Invoice
RetVal = vDoc.Add
'Check the result
If RetVal <> 0 Then
vCmp.GetLastError ErrCode, ErrMsg
MsgBox ErrCode & " " & ErrMsg
End If
regards
David -
Trigger approval process after adding draft through DI API
FROM SDK:
The ApprovalTemplatesService doesn't trigger the approval process for objects that were added through the DI API
I add a Draft document through the DI API, and the approval process doens't trigger.
(no record added in OWDD and WDD1)
How to make it happens ?
Thank youHello Nicola,
Exactly what product are you using?
What version of that product?
I believe this question is in the incorrect forum, but I need this information to be able to point you in the right direction.
Also in the future, do not cross post questions to multiple forums as that is against the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]
Jason -
Add Activity through di api with assigned to employee
Hello Experts
I am fresher to sap b1 add on development.I got a problem in Adding Activities through di api
the problem is i am not able to get handled by employee property .
by default contacts.handledby is taking assigned to USER but I required Employee.
thanks in advance.Hi,
In order to set the employee correctly, don't use the Contacts object, but instead use the Activity object.
In the Activity object there's a property called HandledByEmployee.
Note that in order to create an Activity object, you should use the ActivitiesService object.
Look here for an example.
Beni. -
AR Invoice + Payment through DI API
SBO 8.8
Limited Logistic User
In application I can create sales invoice and before click to Add button I can create payment (select account and ammount to be paid). After this document is added, the invocie is paid already.
I cannot find a way how to make this same process through DI API. It is not problem to create Invoice and Payment and link these 2 docuements together, but problem is that I need solution for LIMITED LOGISTIC USER which has no acces to Payment object.
Limited logistic user can create invoice and payment from invoice form (UI), but has no acces to Payments object in DI to create the same.
Exist solution for this? Please help me with ideas, otherwise customer will kill me... (has app. 50 Logistic users)
Thanks for helpHi Petr,
Am I correct in assuming here that you are talking about creating a payment first and then linking it to invoice?
Is there no way of using the WizardPaymentMethods object as it seems this is what the object is intended for?
To give you an idea, we have set a Business Partner to "Cash Basic" terms in SAP and set up this Payment Terms in SAP to open Incoming payment when the invoice is created. In SAP when we capture an invoice for this BP then the Payment Means (not Incoming Payment) window comes up and we can process a Cash payment straight away. Then when we add the invoice an incoming Payment is automatically created in the background. However we are having trouble duplicating this functionality with the DIAPI.
Kind regards,
Greeshma -
Hi All,
In our addon we are creating AR Invoice and Payment document through DI API . We have tested the addon as a logistic user , it is working fine, but when we try to open the incoming payment through SAP Business One it will give an error message "You cannot open window[170] Receipt with your current license" . My doubt is that if we create payment through DI API as logistic user is this a violation of SAP license ? Please advise me..
Thanks in Advance
Regards
ARUNFrom my experience - we created through DI API document for which limited user has no acces through UI, customer was happy that with limited licence they may work. Unfortunately after few months in new patch this was corrected and cutomer had to upgrade licences.
So I think it will be corrected by SAP development team in few future patches and it will not work as now already. -
Adding binlocation items from sales order to sales invoice through DI API
Hi
I want to add items from sales order to sales invoice.
when i am allocated bin locations for the item sales invoice is not adding
is there any way to update BIN Location Alocation-Issue qty through DI API
please help me....
regard,
LakkshmiKantthHi Lakshmi,
check this http://scn.sap.com/message/14740146#14740146
REgards
edy -
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 -
Assigning roles to LDAP users through BIP API
Hi.
My customer has BIP 11g and OIM 9.1.0.2 running on the same weblogic server (11g). Both authenticate against the same LDAP server.
One of our desired next steps is to provision from OIM the BIP roles to each LDAP user so every user gets the correct roles (and access to the correct reports) according to the groups he has on OIM.
I've been searching for info regarding this without success. The BIP API doc does not show any info about assigning roles to users.
We don't need to manage LDAP users, BIP roles, etc... through OIM. We only need to assign BIP roles to LDAP users.
Is it possible to make that assignments through BIP API?
If not, any other ideas? New ideas or different approaches are welcome.
Thanks in advance.In OBIEE 11g which includes BIP the application roles are applied to LDAP users and groups using the Enterprise Manager Fusion Control.
During the upgrade process from OBIEE 10g to OBIEE 11g the groups do get assigned to these roles transparently so there must be some API to leverage this functionality.
I would start there, http://download.oracle.com/docs/cd/E14571_01/bi.1111/e10541/admin_api.htm
There are no specific instructions on accomplishing what you seek but if you have some WLST or Java Skills you should be able to get something prototyped.
Let me know if that helps. -
Error generating while adding PO through DI
Hi All,
I got an error while creating Purchase Order through DI API by taking an Excisable Item and non-excisable Whs and non CENVAT TAX
The error is ' There are Excisable Item(s) with non-CENVAT tax code'
But if we are creating PO as same through UI API
it is successfully adding.
Then how can I add PO through DI API using this senerio.
Please reply anyone ASAP.
AnshuHi Anshu,
If you could add it through UI, try UI API instead of DI API.
Thanks,
Gordon -
Problem In Creating Sales Order Through DI API
Hi
I am Creating The Sales Order Through DI API.
the Error Is Coming - " [OACT] , 'No matching records found (ODBC -2028)'"
anyone can help me solving it.Hi vivek,
Have you tried adding the same document with the client ?
OACT is the accounts table and this error message typically indicates that there is an account parameter missing somewhere in the system.
Possible causes include:
- you are using a tax group or warehouse which does not have all the required accounts set
- There is a price rounding and the rounding price account has not been set in the account settings
- etc.
The first things I would check include the tax group settings and the G/L Account determination settings.
Henry -
Updating a sales order through DI API
Hi All,
I have an issue regarding updating a sales order.
The problem is:
If there r 2 items(A00001&A00002) existed in the sales order and if I am adding two more items(A00003 & 4)the sales order is updated in a fashion that first item is replaced with third item and forth item is added as last record.The items to that particular sales order after updating will be like this(A00003,A00002,A00004).My doubt is why the 3rd item is replaced with first record.I am sending the code also i have written.
objRecordSet = SBOCOMUtil.newRecordset(company);
IDocuments oOrder =SBOCOMUtil.newDocuments(company,SBOCOMConstants.BoObjectTypes_Document_oOrders);
objRecordSet.doQuery("select DocEntry from ORDR where DocNum=" + 1111);
DocEntryL =objRecordSet.getFields().item(new String("DocEntry")).getValueInteger().intValue();
str += DocEntryL;
System.out.println(DocEntryL);
if (oOrder.getByKey(new Integer(DocEntryL))) {
//objRecordSet2.doQuery("delete from rdr1 where DocEntry="+DocEntryL);
str += "2";
System.out.println(str);
//oOrder.remove();
oOrder.setDiscountPercent(new Double(5));
oOrder.setComments("success");
System.out.println(str);
IDocument_Lines oOrderLines = oOrder.getLines();
str += "3";
String[] item={"A00005","A00006"};
for (int counter = 0; counter < item.length; counter++) {
// oOrderLines.setCurrentLine(new Integer(counter));
if (counter > 0)
oOrder.getLines().add();
str += "4";
oOrderLines.setItemCode(item[counter]);
System.out.println(item[counter]);
//oOrderLines.setBaseType(new Integer(-1));
//oOrderLines.setBaseEntry(new Integer(0));
//oOrder.getLines().setCurrentLine(new Integer(counter));
//oOrderLines.setQuantity(new Double(1));
//oOrderLines.setPrice(new Double(1500));
//oOrderLines.setCurrency(strCurrency[counter]);
//oOrderLines.setLineTotal(new Double(dblLineTotal[counter]));
str += "5";
//oOrder.getLines().getUserFields().getFields().item("Quantity").setValue(new Integer(2));
System.out.println(str);
int result = oOrder.update();
str += "6" + result;
if (result == 0) {
System.out.println("successfully updated");
company.disconnect();
} else {
company.getLastErrorDescription();
System.out.println(
"Error :" + company.getLastErrorDescription());
company.disconnect();If you are using SBP 2004 there are many threads on this forum talking about bugs when updating sales order lines through DI API. This issue was supposed to be fixed with patch level 45 for 2004 which was recently released.
If u are using 2005 or SP1 I think you may have found a new bug. -
How to Update UDO through DI API code
Hello,
I have created UDO through DI API successfully, now I want to update the UDO through DI API code, and want to add some more child tables, but I am unable to do that, its showing me message that UDO successfully updated but when I am checking through B1, I can see that newly created child tables are not ticked in the check boxes. I am pasting my code, Please some one tell me how to fix this problem.
Private Sub AddUDO()
Dim oUserObjectMD As SAPbobsCOM.UserObjectsMD
oUserObjectMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserObjectsMD)
oUserObjectMD.CanCancel = SAPbobsCOM.BoYesNoEnum.tYES
oUserObjectMD.CanClose = SAPbobsCOM.BoYesNoEnum.tYES
oUserObjectMD.CanCreateDefaultForm = SAPbobsCOM.BoYesNoEnum.tNO
oUserObjectMD.CanDelete = SAPbobsCOM.BoYesNoEnum.tYES
oUserObjectMD.CanFind = SAPbobsCOM.BoYesNoEnum.tYES
oUserObjectMD.CanLog = SAPbobsCOM.BoYesNoEnum.tNO
oUserObjectMD.CanYearTransfer = SAPbobsCOM.BoYesNoEnum.tYES
oUserObjectMD.ManageSeries = SAPbobsCOM.BoYesNoEnum.tYES
oUserObjectMD.ChildTables.TableName = "DC3_N"
oUserObjectMD.ChildTables.Add()
oUserObjectMD.ChildTables.TableName = "DC4_N"
oUserObjectMD.Code = "UDO_CHECK_N"
oUserObjectMD.ManageSeries = SAPbobsCOM.BoYesNoEnum.tYES
oUserObjectMD.Name = "UDO_CHECK_N"
oUserObjectMD.ObjectType = SAPbobsCOM.BoUDOObjType.boud_Document
oUserObjectMD.TableName = "DMT_N"
oUserObjectMD.GetByKey("UDO_CHECK_N")
lRetCode = oUserObjectMD.Update()
If lRetCode <> 0 Then
If lRetCode = -1 Then
'chkUDOAfter.SetItemChecked(12, True)
Else
oCompany.GetLastError(lRetCode, sErrMsg)
MsgBox(sErrMsg)
End If
Else
MsgBox("UDO: " & oUserObjectMD.Name & " was updated successfully")
'chkUDOAfter.SetItemChecked(14, True)
End If
oUserObjectMD = Nothing
GC.Collect() 'Release the handle to the table
End Sub
Regards,
Sudeshna.Hi Ian,
I have pasted the line "oUserObjectMD.GetByKey("UDO_CHECK_N")" immediately after "oUserObjectMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserObjectsMD)
" like below:
oUserObjectMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserObjectsMD)
oUserObjectMD.GetByKey("UDO_CHECK_N")
but this time it is adding the two new tables in UDO, but some how removing the first Master table from UDO.
Can you tell me how solve this, or can you provide some working code example regarding this.
Regards,
Sudeshna. -
Adding Users programatically using API with iFS
Two questions really
1)I was wondering if anyone on the forum could offer me some basic skeleton code on extending the ExtendedUserProfile class in order to add a single new attribute and then read it back. I'm new to Oracle related products and I need a little bit of a kick-start in the right direction.
2)I had a look at Mark Drake's Solution to programatically adding a user through the API and tried it out, sadly I get either IFS-10600, IFS-10633 and IFS-10620 or I get IFS-20010: Failed to get PropertiesResourceBundler exception.
Judging by the developers guide there is an error in my version of the code or there is a misconfiguration in the properties file. Maybe even it's not listed in a path or classpath somewhere.
Which properties file is it likely to be in?
What should the properties look like?
Can anyone guide me as to where the clsspath should be set to?
Thanks in advance for any assistance.I'm working on an example that includes subclassing the ExtendedUserProfile that will be included in my content management sample, scheduled to be published at the end of the month. I've sent you a draft of the topic that will hopefully point you in the right direction.
-
Hi all,
We are currently working on a web form that we want to have create a number of calls. Ideally we`d like a parent call and a couple of linked calls which would be created from the form through the API.
Looking at the doco, it seems you should be able to use the 'aCustomParameters’ field to achieve this. However, I`ve just seen KB 2010464 which seems to indicate that it may not be quite as simle as this (in 9.0 anyway).
Just wondering if anyone has actually done this.
We're currently on 9.1.5.
Cheers,
RayHi Ray,
I am really not sure what this KB article is refering to but you souldn't blindly rely on every sentence has been written. Even in the knowledge base. Especially when VMware had never paid much attention to this product, unfortunately.
In my opinion (you should take it with caution as well) you have different options to link calls through API:
* Using CallUpdate transaction
* Using ExecuteQueryAction transaction with a standard query "UPDATE CALL LINK"
* Using ExecuteQueryAction transaction with your custom query (I guess that KB article is suggesting to use this particular method when referencing professional services help.)
Take in account that it's very important to supply required parameters (yes, as aCustomParameters) when using the first or the second option:
1. When updating a Child Call:
PARENT_CHILD = "C"
LINKED_CALL_NO = [PARENT_CALL_NUMBER]
UPDATE_LINKED_CALL_NO = [PARENT_CALL_NUMBER]
2. When updating a Parent Call:
PARENT_CHILD = "P"
That's it. Looks quite simple but... you have to be very careful when doing this - many related things should be checked or considered along with linking: are both calls not locked, how impact value should be recalculated and changed accordingly, how to update calls history to reflect the linking event, security check through partitions and system roles settings and maybe many others. I believe this is one of key reasons why KB is suggesting to request professional services to create a solution for Calls linking through API.
Still if you will decide to try and you will come across with any question, please don't hesitate to ask.
Regs, Gytis
Maybe you are looking for
-
Why is my iPhone home button not working?
Recent;y my iPhone 4 home button has intermittently stopped going "home" and just stay on the last page selected. I spoke with an apple customer service person and the said that if the horizontal tray at the bottom of the display could be too full a
-
How to find the size (and sizelimit) BPS web interface
Hello. We have build an application with the SEM-BPS webinterface builder. In the past we had problems with the size off this application. After we had added some new tabs in the application the size limit had been exceeded and the web inteface could
-
Solaris 10 & Management Console RMIERROR
The Management Console started but when I tried to use it I received a RMIERROR. I then did /etc/init.d//init.wbem stop followed by /etc/init.d//init.wbem start I then received a startup message. But when I went back to the desk top and started the c
-
Limitations of Statement.addBatch() jdbc:odbc bridge to SQL Server 2K
Hi all, I was attempting some performance tuning in my applications and I attempted to use the addBatch method in a statement during a loop and the corresponding executeBatch when the loop is complete. For some reason all my inserts were not sent to
-
I can't complete the export command,help!
I wanted to export a user's data ,but failed. the command is as following "exp username/password owner=wksys" you know wksys is a system user in oracle and the error hint is "EXP-00008: ORACLE error 1406 encountered ORA-01406: fetched column value wa