A/R Downpayment Invoice using DI Server
Hello,
How can we link an A/R Invoice with multiple A/R Downpayment Invoice using DI Server? Can someone please give me an sample xml for the scenario? Thank you.
Note: Using SBO8.81 PL09
Regards,
Gilbert Ngo
Hi
Try this
'Create DownPayment Invoice Object
oDPM = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDownPayments)
'Set Down Payment Header Values
oDPM.CardCode = txtCardCode.Text
oDPM.DocDueDate = DateDue.Value
oDPM.DownPaymentPercentage = Convert.ToDouble(numPercent.Value)
oDPM.DownPaymentType = SAPbobsCOM.DownPaymentTypeEnum.dptInvoice
'Set Down Payment Line Values
oDPM.Lines.ItemCode = txtItemCode.Text
oDPM.Lines.Quantity = Convert.ToDouble(txtQuantity.Text)
oDPM.Lines.Price = Convert.ToDouble(txtPrice.Text)
lRetCode = oDPM.Add ' Try to add the invoice to the database
If lRetCode <> 0 Then
oCompany.GetLastError(lErrCode, sErrMsg)
MsgBox(lErrCode & " " & sErrMsg) ' Display error message
Else
MsgBox("Down Payment Invoice Added to DataBase", MsgBoxStyle.Information, "Invoice Added")
' Enabling the next button in the process
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
Regards
Arun
Similar Messages
-
How to create Downpayment Invoice using DI API in SAP B1 2005 version?
Hi there,
I appreciate anyone that can suggest me how to create a down payment invoice using DI API in SAP B1 2005 version? What is the object that we need to use? I can't find any object to achieve this
Many Thanks,
Harianto Ngthe object is SAPbobsCOM.BoObjectTypes.oDownPayments, but if i remember correctly this object wasnt exposed in DI for 2004 and maybe for 2005 too.
-
A/R Downpayment Invoice ??
Hi all,
previous we adding invoice and A?R Invoice using object.
Please help How to Add A/R Downpayment Invoice using object ?
thanks in advance
surajit
Edited by: Surojit Kundu on Oct 17, 2011 11:37 AMHi
Try this
'Create DownPayment Invoice Object
oDPM = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDownPayments)
'Set Down Payment Header Values
oDPM.CardCode = txtCardCode.Text
oDPM.DocDueDate = DateDue.Value
oDPM.DownPaymentPercentage = Convert.ToDouble(numPercent.Value)
oDPM.DownPaymentType = SAPbobsCOM.DownPaymentTypeEnum.dptInvoice
'Set Down Payment Line Values
oDPM.Lines.ItemCode = txtItemCode.Text
oDPM.Lines.Quantity = Convert.ToDouble(txtQuantity.Text)
oDPM.Lines.Price = Convert.ToDouble(txtPrice.Text)
lRetCode = oDPM.Add ' Try to add the invoice to the database
If lRetCode <> 0 Then
oCompany.GetLastError(lErrCode, sErrMsg)
MsgBox(lErrCode & " " & sErrMsg) ' Display error message
Else
MsgBox("Down Payment Invoice Added to DataBase", MsgBoxStyle.Information, "Invoice Added")
' Enabling the next button in the process
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
Regards
Arun -
Create A/R Invoice and Its Incoming Payment using DI Server
Hi Everyone,
I need to create an A/R Invoice and its payment in a sigle transaction using DI Server. The problem is that I don't know the DocEntry that will be assigned to the invoice in order to set it in the SOP message for creating the incoming payment.
I guess the SOAP message should look like:
<?xml version="1.0" encoding="UTF-16"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header>
<SessionID>F46EDCE6-3F79-1F9F-1D1E-DC6226D04FA7</SessionID>
</env:Header>
<env:Body>
<dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS" CommandID="Add invoice">
<BOM>
<BO>
<AdmInfo>
<Object>oInvoices</Object>
</AdmInfo>
<Documents>
<row>
<DocDate>20040707</DocDate>
<DocDueDate>20040707</DocDueDate>
<CardCode>BP</CardCode>
</row>
</Documents>
<Document_Lines>
<row>
<ItemCode>Item1</ItemCode>
<Quantity>3</Quantity>
<TaxCode>My Tax</TaxCode>
</row>
</Document_Lines>
</BO>
</BOM>
</dis:AddObject>
<dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS" CommandID="Add Incoming Payment">
<BOM>
<BO>
<AdmInfo>
<Object>oIncomingPayments</Object>
</AdmInfo>
<Payments>
<row>
<CardCode>BP</CardCode>
<DocTypte>rCustomer</DocTypte>
</row>
<Payments>
<Payments_Invoices>
<row>
<DocEntry>???</DocEntry> <---- ???
<InvoiceType>it_Invoice</InvoiceType>
<SumApplied>100</SumApplied>
</row>
</Payments_Invoices>
</BO>
</BOM>
</dis:AddObject>
</env:Body>
</env:Envelope>
Any help?Dear Hugo Moreno,
You could use the GetNewObjectCode Method of the Company Object to retrieves the key of the last added record.
Please refer to SDK DI API help for this method.
Best Regards
Jane Jing
SAP Business One Forums team -
Sales Orders And Downpayment Invoices
Hi,
I am trying to get a link between the Sales Order and the Downpayment Invoices.
As I open a Sales Order I cannot directly figure out weather it has a down payment
invoice or not. (DP Invoices will not show on Target Document Button on the tool bar)
Is there a way to Find it out??
When I am going through the ORDR Table I have noticed DpmDrawn, DpmPrcnt, DpmAmnt, DpmAmntFC, DpmAmntSC, Columns.
DpmDrawn Shows Values 'Y' or 'N' but rest of the fields are just showing default values (null or 0.00) for every Sales order.
Is there any setting I have to set up to fill those fields?
or is there a better way to check that Sales Order has a Downpayment Invoice??
Thank you very much for your help.Hi Suda,
Thanks for the quick answer. True, that is the way I use to find the DP invoices.
Problem is no one check it before they generate a new DP invoice for the Sales Order.
We end up creating few DP invoices for the same Sales order.
I just want to stop that. Thats why i am trying find out a link between sales order and the
DP invoice and show it with the Sales order or give a rule.
Thank you very much for the help.
Kind Regards
Sanjaya -
Query in AP Invoice and AP Downpayment Invoice
Hi Expert,
I'm using the following query to generate report from AP Invoice by due date:
SELECT T0.[CardCode] as 'Payee Code', T0.[TransId] as 'JE Number', T0.[CardName] as 'Payee Name', T0.[DocDueDate], T0.[DocTotal] as 'Amount Due', T1.[U_DisBank] as 'BankCode', T2.[Name] as 'Bank Name' FROM OPCH T0 INNER JOIN PCH1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN "@HOFFICE" T2 ON T1.U_DisBank = T2.Code WHERE T0.[DocDueDate] >=[%0] and T0.[DocDueDate] <=[%1] and T2.[Name] Like 'BDO%' and T0.[DocStatus] ='O' ORDER BY T2.[Name]
However, I want also to include in the report the data from AP Downpayment Invoice, are there any possibility to include in the report with same column but different table source?
Thanks,
Arlmi2000Hi,
Try this one:
FROM
dbo.ODPO T0
INNER JOIN dbo.DPO1 T1 ON (T0.DocEntry = T1.DocEntry)
LEFT OUTER JOIN dbo.PCH9 T2 ON (T1.DocEntry = T2.BaseAbs)
LEFT OUTER JOIN dbo.OPCH T3 ON (T2.DocEntry = T3.DocEntry)
LEFT OUTER JOIN dbo.PCH1 T4 ON (T3.DocEntry = T4.DocEntry)
This code is from AP Downpayment then AP Invoice.
Just reverse code so that the result will be AP Invoice then AP Downpayent.
Thanks.
Clint -
Purchase order Document date in AP Downpayment invoice PLD
Dear All,
Is it possible to capture purchase order Document Date in AP Down payment invoice PLD.My client want like this.I have tried,but i am not able to capture this field in AP Down payment invoice PLD.please give me the solution for this,If it is possible.
Thanks,
Silpa.Nhi silpa,
Create a user defined field in row level of marketing documents.
Apply formatted search using query
Select $[OPOR.TaxDate]
select auto refresh
when changing field Document Date in header level.
On copying purchase order to ap downpayment invoice Document date will copy to it.
U can also bring it to PLD by creating database field with table DPO1,column U_XXX
Hope it will solve problem.
Jeyakanthan -
Where is the link between Sales Invoice and Downpayment Invoices
We made a downpayment invoice. And processed incoming payment for such invoice.
Then proceed to Sales Invoice, which was applied to the Downpayment invoice. Everyting went well.
We tried to use crystal report to extract the Sales Invoice (OINV, INV1) and link to the downpayment table (ODPI) to print the breakdown in the invoice form. We could not find the relationship in this table.
Can someone help ?
KCCould it be helpful for you to use view in enterprise manager ? I just see the docentry field as the link field among OINV, INV1 and OPDI.
If you use down payment request, I think you could not since it is a note and must be reconciled after invoice created
Rgds, -
A/R Downpayment Request,A/R Downpayment Invoice
hi
gurus
this is KD. can anyone soleve my confusion between A/R Downpayment Request,A/R Downpayment Invoice.plz solve this as soon as possible
bye GurusDear KD,
Please note that the A/R Down Payment Request is just a request that you are sending to your customer and you cannot post any payment against this Document . It is similar to Proforma Invoice in the sense that it used for Information purpose or a request to the customer that for e.g he is requested to make say 20% of the payment before the deliveryv in order to make the delivery.
Now the A/R Down payment Invoice is an actual Invoice with which the cutomer can make the catual payments. Further the above example when the amount is Rs.1000 you will have to put the DPM % in The DPM field in the Footer of the document . Say you put it as 20 % then the system calcualtes 20 % of 1000 which is 200 and creates the Invoice for Rs. 200/- only.
Hope this clears your doubt.
Award points if Helpful.
Nagesh. -
How to cancel an A/P Downpayment Invoice which has payment on it?
Dear all experts,
How can I cancel a A/P Downpayment Invoice No.100001 whereby it has done the outgoing payment. I unable to cancel the outgoing payment due to this outgoing payment also paid for another A/P Downpayment and already draw to some invoices. Please advice on how should I cancel this A/P Downpayment Invoice No.100001? Thanks a lot.Hi Angie,
I see in your case that one payment has been made for multiple A/P DP invoices.
Let's see case per case.
1. if the payment is made for payment on acocunt, you will use BP internal recon to pay the A/P DP invoices.
2. if you created payment for one DP invoice but there are some remain amounts, then you use internal recon to pay the another DP invoice
for case 1:
I see that you are using BP internal reconciliation. if it is so, just cancel the reconciliation first, then all A/P DP invoices are cancel.
you must recon the payment again., Meanwhile the AP DP invoice that is not going to pay can be credited.
for case 2:
you must cancel the recon in the manage previous reconciliation window. After the cancelation, go to payment and cancel the payment. Then create again the payment to pay another correct DP invoice
JimM -
Downpayment Invoice improvements
We have identified several shortcomings in the use of the Downpayment Invoice.
Firstly, if an AR Downpayment Invoice is created based on a Sales Order and the customer changes their mind and wants to reduce the lines to be delivered, the system will allow you to partially credit the Downpayment Invoice. You can then pay the remainder of the Downpayment Invoice. However, when you try to select the Downpayment Invoice when creating the final AR Invoice, a value of zero to draw is displayed and a message Invoice has been Partially Credited is received. The only solution is to cancel the transactions and recreate. Either you should be able to partially credit/pay a Downpayment Invoice and use it to draw down or the system should prevent you from partially crediting a Downpayment Invoice.
There should also be a facility on a Downpayment Invoice to show a list of which final Invoices the Downpayment Invoice has been drawn against. Currently there is no way to see this unless you search through all the fianl Invoices.Hi Chakrapani,
You could create an A/P Invoice document with service type to solve your problem. Choose corresponding supplier, choose service type, choose the bad debt account, fill the remaining open down payment, choose the respective down payment in A/P invoice footer document (lookup button adjacent with Total Down Payment label), and add the document. The down payment document will be subsequently closed, cross check with Open Items List report.
Best Regards,
Hendry Wijaya -
Cannot trace AR Downpayment Invoice link to which AR Invoice
Hi
With reference to SAP Message 279116, SAP Support Center has confirmed it is not possible to know the evidence this Downpayment Invoice is linked to which Invoice without going into the Down Payments to Draw in every Invoice entry.
This ability to trace from AR Downpayment Invoice is very important as it is not convenient to drill down into every AR Invoice for this information.
Kedalene ChongBased on the fact, The base of ur AR Down Payment it can be traced, in case if ur Dwn paymnt is based on sale order and ur Ar invoice too going to have the same Sale Order base, then
SELECT T1.DocEntry, T0.DocEntry, T0.BASEENTRY, T0.BaseType
FROM [dbo].[DPI1] T0 INNER JOIN [dbo].[RDR1] T1
ON T1.DOCENTRY = T0.BASEENTRY
WHERE T0.BaseType = 17
AND T1.DocEntry = (SELECT DISTINCT T3.BASEENTRY FROM
[dbo].[INV1] T3 )
Similarly in case ur Dwn Payment based on Sale Order but ur Ar invoice based on the delivary drawn frm tht sale order
SELECT T1.DocEntry, T0.DocEntry, T0.BASEENTRY,
T0.BaseType FROM [DPI1] T0
INNER JOIN [RDR1] T1 ON T1.DOCENTRY = T0.BASEENTRY
WHERE T0.BaseType = 17
AND T1.DocEntry = (SELECT DISTINCT T3.BASEENTRY
FROM [DLN1] T3
INNER JOIN [INV1] T4 ON T3.DocEntry = T4.BaseEntry)
Modification according to ur requirement the codes can be changed. i hav given our codes wat we are using now to trace the Dwn payment linked
Regards,
Dhana. -
Bapi to change payment method for vendor invoices using FB02 - VERSION 4.6C
Hi all,
I have a requirment to change payment method from 'A' to 'N' in vendor invoice using tcode FB02 .My system version is 4.6c.
I am looking for a BAPI which will serve the purpose. I tried but could not find anyone.
Please help me to find the same, or any OSS note which will help me in this matter.
Thanks in advance.
Vengal Rao.Hi,
I think there is no BAPI for this, but can use FM ' FI_ITEMS_MASS_CHANGE '.
In this FM pass field 'ZLSCH' to table IT_FLDTAB, w_bseg-ZLSCH = 'N'
and pass your BSEG data to table IT_BUZTAB. This will help
Can refer to threat [Any BAPI for "FB02";
Thanks,
Anmol. -
How to create Invoice using SDK?
Hi Friends,
I m creating invoice using SDK functions..
Company comp = new Company();
comp.Server = "CSNSYS026";
comp.CompanyDB = "SBODemo_US";
comp.UserName = "manager";
comp.Password = "manager";
comp.Connect();
comp.XmlExportType = SAPbobsCOM.BoXmlExportTypes.xet_NodesAsProperties;
SAPbobsCOM.SBObob oSBObob = (SBObob)comp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoBridge);
Documents inv = (Documents)comp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices);
inv.ManualNumber = "20000";
inv.DocDate = DateTime.Now;
inv.DocDueDate = DateTime.Now;
inv.CardCode = "C40001";
inv.CardName = "EarthshakerCorp.";
inv.DocCurrency = "USD";
inv.Lines.ItemCode = "A00001";
inv.Lines.Quantity = 10;
inv.Lines.Price = 100;
inv.DocTotal = 1000;
int i = inv.Add();
MessageBox.Show("Invoice created "+i);
<b>While i execute the above c# code,Invoice din't created,Wht's missing in the above code</b>..
Thanks in Advance
regards
Sooriyakala.PHo Sooriya,
what is the returncode from inv.add?
If you call comp.getLastErrorDescription, you get the errordescription
you should also set handwritten to true
Regards
Ad -
MM downpayment process using ME2DP - result list
Hi,
I have a question/problem.
The downpayment process using ME2DP works fine so far. But if I have finished a purchasing process by posting the down payment, the goods receipt and the final invoice, why is the PO not disappearing from the ME2DP list (the status lights are gone and the line shows 0,00 down payment)?
Best Regards,
FlorianHi j-tt,
this should certainly work. However ... if instead of Name you select the distinguishedName, you could use the whole dn as searchbase, instead of the construct you are currently using. Here's an Example after some slight rewrite:
# Import the Active Directory Modules
Import-Module ActiveDirectory
# Grab all sub-OUs of the Search-Base, then retrieve their DistinguishedNames and Names
Get-ADOrganizationalUnit -Filter "*" -SearchBase "OU=Servers,OU=FABRIC,dc=domain,dc=subdomain,dc=address,dc=com" -SearchScope OneLeve | Select Name, DistinguishedName | ForEach{
# Save OU into Variable
$OU = $_.Name
# For each OU found, get all contained computers, extract their DNSHostnames and pass those into the script
Get-ADComputer -SearchBase $_.DistinguishedName -Filter "*" | Select -ExpandProperty DNSHostname | c:\temp\Set-Rdg.ps1 -Pattern '(..)' -Taxonomy "dc=domain,dc=subdomain,dc=address,dc=com", "FABRIC", $OU -nobackup
I'll admit I might have gone a bit wild with the pipelines here :)
Cheers,
Fred
Edit: Fixed my shortened Version to include the Taxonomy parameters
There's no place like 127.0.0.1
Maybe you are looking for
-
Quicktime 7 does not export to mpeg-2
Hi, Is this inherent to QT 7? I noticed it as a deficiency in Final Cut Pro 3.0.2, tracked it back to this version of QT. The export choices are the same although with different wording. Did not have this problem after a total hard disk crash which n
-
Material loss tracking in two step transfer posting with in plant
Dear Friends , Here the case is material will going loss when shifting one storage location to another , here i am using two step procedure . so how can i track rhe loss here . our client want to post loss value to production account only and also t
-
Is there a method to identify what objects are being stored in a specific tablespace?
-
Post Author: Fedor CA Forum: Data Connectivity and SQL Somebody knows, how can I print the currently SQL statement?
-
In the last couple of days I've started having an odd problem with my wifi. Note I'm still in Tiger, ironically. Occasionally when I click a link I get the 'you are not connected to the internet' page. The airport symbol in the toolbar is greyed out