Outgoing Payments Series numbering
Hi experts,
I have a customer who has a document numbering for payments documents as eg 2014/100001 and 2015/100001.
When I try to preview these reports with same document numbers but different series i.e. 2014 and 2015, the preview brings the 2014 details and also the total amount it brings both 2015 and 2014 totals.
I tried to edit the report by changing the sub reports link taking away the OVPM.Docnum parameter and replaced it with OVPM.Docentry.
When I try to preview it brings one total per the document but the details part is not coming and the payment means details does not come at all.
Has anyone come across this instance I am describing?
If yes I want someone to help me out with an edited outgoing payment crystal report that addresses these repeated document numbers with different series.
This request is very urgent and a solved help will be much appreciated.
Please assist with a worked on default outgoing payment crystal report that addresses the scenario described.
Regards
Justice
Hi Justice
Primary Key in OVPM is DocEntry
Primary key in all Child tables of VPM is DocNum
Please try in this and revert.
To Avoid this issue in future, you can give first document number in 2016 as 160001 and in 2017 as 170001.
Thanks
Unnikrishnan
Similar Messages
-
Why the Docentry and DocNum for Outgoing payment is same?
Hi,
I have define the numbering series for Outgoing payment , But while i created the outgoing payment document, in the backend the docentry and docnum values are same.
Anyone have idea why its happened?
i am using 2007 B
Regards,
Senthil KumarHi senthilkumar,
That is the normal behavior in that table.
Regards,
Vítor Vieira -
Outgoing Payment in FICA( Cash & Bank)
Hi All,
Can anyone give idea about the above subjects.
Since i know how to post incoming payments.
In case if the customer paid overpayment or payment of security deposits.
Could anyone please give procedure with T.Code for this.
Thanks for your help in advance.
Regards,
RAM.Hello,
In FICA, You make the Payments to the customers either
1. You have collected excess money from him
2. You have charged him excessively.
3. You have adjusted his bill resulting in payment to the customer
4. You want to pay him back the securtiy deposit
5. The customer is moving out ....net result being you owe him the money
6. Other reasons resulting in payment to the customer
In all the above cases, you have to REFUND the money to the customer....either through Bank or by cash or by Cheque...<it depends on your company policy>.....
For refund by Bank/ Cheque you can use T-Code FPY1.
For refund by Cash you can use either FPB0 or FPCJ <again depends on your project/co policy>
For payments by Bank /Cheque, you need to do the following settings
1. Define Own bank details
2.Define Bank user numbers for Payment medium
3.Define Payment methods <FQP1>
3.Define specifications for paying Co cd <FQP4>
4.Define accounts for payment program <FQC0: Posting area 1061>
5.Maintain bank selection
The path for above config is IMG\FICA\Business Transactions\Payments\Incoming outgoing payment creation.
For configuration of Cr Card payments,<Posting by FPB0>, You need to configure in IMG\FICA\Business Transactions\Payments\Payment cards\ Define Accounts for Payment card Institute & Define Specifications for Posting Settlement Document
For configuration fo Cash desk payments<FPCJ>, you have make the settings in IMG\FICA\Business Transactions\Payments\Processing incoming and outgoing payments Cash desk Cash journal
Hope this helps
Rgds
Rajendra -
Outgoing payment based on CreditNote
Hi,
How do I create an Outgoing payment for customer based on a fresh CreditNote with the DI API in C# please ?
I did try many combination from many different BoObjectTypes to many different BoRcptInvType and the code bellow is the last one I did try and I know it doesn't work
// Maybe it's not the one for CreditMemo
SAPbobsCOM.Payments Payment = (SAPbobsCOM.Payments)oCompany.GetBusinessObject(BoObjectTypes.oVendorPayments);
Payment.DocObjectCode = BoPaymentsObjectType.bopot_OutgoingPayments;
Payment.CardCode = Document.CardCode;
Payment.DocDate = DateTime.Now;
Payment.DocCurrency = Document.DocCurrency;
Payment.LocalCurrency = BoYesNoEnum.tYES;
Payment.DocType = BoRcptTypes.rCustomer;
Payment.HandWritten = BoYesNoEnum.tNO;
Payment.CashSum = double.Parse(HeadersTable.Field["pos_DocTotal"].ToString());
Payment.DocRate = 0;
Payment.TaxDate = DateTime.Now;
Payment.ContactPersonCode = Document.ContactPersonCode;
Payment.ApplyVAT = BoYesNoEnum.tYES;
Payment.JournalRemarks = Document.JournalMemo;
Payment.Invoices.AppliedFC = 0;
Payment.Invoices.DocEntry = int.Parse(ObjectCode); // The CreditMemo I just created...
Payment.Invoices.InvoiceType = BoRcptInvTypes.it_Return; // MUST BE WRONG HERE
Payment.Invoices.SumApplied = Payment.CashSum;
Payment.Invoices.Add();
if (Payment.Add() != 0)
oCompany.GetLastError(out ErrorCode, out ErrorMsg);
LogError(ErrorCode.ToString() + " : " + ErrorMsg);
oCompany.EndTransaction(BoWfTransOpt.wf_RollBack);
else
oCompany.EndTransaction(BoWfTransOpt.wf_Commit);here the entire method that creates my CreditMemo which works fine and have no error on it.
private void CreateCreditMemo()
try
SAPbobsCOM.Documents Document = (SAPbobsCOM.Documents)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oCreditNotes);
SAPbobsCOM.BusinessPartners bp = (SAPbobsCOM.BusinessPartners)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oBusinessPartners);
SAPbobsCOM.Items Items = (SAPbobsCOM.Items)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems);
string CardCode = HeadersTable.Field["pos_CardCode"].ToString();
// The business partner is necessary
if (bp.GetByKey(CardCode))
Document.CardCode = CardCode;
Document.HandWritten = BoYesNoEnum.tNO;
Document.PaymentGroupCode = -1;
Document.DocDate = DateTime.Parse(HeadersTable.Field["pos_DocDate"].ToString());
Document.DocType = BoDocumentTypes.dDocument_Items;
Document.DocCurrency = bp.Currency;
Document.NumAtCard = HeadersTable.Field["pos_Ref1"].ToString();
Document.Series = GetSeriesFromCardCode(CardCode, DOCTYPE.RETURN);
// Now adding the detail for this credit memo
while (!DetailsTable.EOF)
// I did it this way to debug variables faster. That's all
string ItemCode = DetailsTable.Field["detail_ItemCode"].ToString();
string ItemDescription = DetailsTable.Field["detail_ItemDesc"].ToString();
double PriceAfterVAT = double.Parse(DetailsTable.Field["detail_PriceOfVat"].ToString());
double Price = double.Parse(DetailsTable.Field["detail_Price"].ToString());
double Quantity = double.Parse(DetailsTable.Field["detail_Quantity"].ToString());
string WhsCode = DetailsTable.Field["detail_WhsCode"].ToString();
if (!Items.GetByKey(ItemCode))
LogError("The ItemCode " + ItemCode + " doesn't exist");
return;
else
Document.Lines.ItemCode = ItemCode;
Document.Lines.ItemDescription = ItemDescription;
Document.Lines.PriceAfterVAT = PriceAfterVAT;
Document.Lines.Price = Price;
Document.Lines.Quantity = Quantity;
Document.Lines.WarehouseCode = WhsCode;
Document.Lines.TaxCode = SAP.GetTaxCodeFromAddresses(bp.Addresses);
DetailsTable.MoveNext();
if (!DetailsTable.EOF)
Document.Lines.Add();
if (Document.Add() != 0)
oCompany.GetLastError(out ErrorCode, out ErrorMsg);
LogError(ErrorCode.ToString() + " : " + ErrorMsg + " when adding the credit memo " + CardCode);
else
CreateOutgoingPayment(Document);
else
LogError("The business partner " + CardCode + " doesn't exist in SAP Business Partners");
catch (Exception ex)
LogError(ex.Message + " when creating credit memo for " + blabla + " on " + DateTime.Now.ToString()); -
Outgoing payment & Incoming payment are generated negative docentry in new year
After creating New financial year , Outgoing Payment and Incoming Payment Docentries are generated from beginning (1) but in Negative why?. In all documents the same is generated continuous nos from last years. why in OP & IP generated in different way. If we create in next financial year 15-16 how the they generate.
Hi,
As per Mr.Jitin's reply, if any overlapping, document entry will be in negative.
Why DOCENTRY is not continuing from last years no. like other documents like OINV?
If you change document numbering, new document entries will be created.
why docentry filed is not there in VPM1 & RCT1 like INV1 & others?
Because incoming payment (ORCT) table is common to check, invoice, account, vouchers. These tables are linked with document number.
ORCT.docentry = RCT1.Docnumber
Hope you understand.
Thanks & Regards,
Nagarajan -
Outgoing Payment Generates Negative Docentry
After creating New financial year ,Outgoing Payment Docentry generated is Negative.
What could be the problem for negative Docentry generation.Hi,
As per Mr.Jitin's reply, if any overlapping, document entry will be in negative.
Why DOCENTRY is not continuing from last years no. like other documents like OINV?
If you change document numbering, new document entries will be created.
why docentry filed is not there in VPM1 & RCT1 like INV1 & others?
Because incoming payment (ORCT) table is common to check, invoice, account, vouchers. These tables are linked with document number.
ORCT.docentry = RCT1.Docnumber
Hope you understand.
Thanks & Regards,
Nagarajan -
FICA outgoing payment cheque from FI
Dear Experts,
I have a query like how we can generate FICA Outgoing Payment Cheque (for eg. Refund of Security Deposit) from SAP FI.
My client requirement is like that they want all the outgoing payments from FI only.
So what are the configuration I need to do for getting ISU cheques from FI. I did all the configuration of cheque printing in FICA and able to take the cheque printout also from there itself but when we are going to transfer the ISU data to R/3, cheque numbers are not reflecting in R/3 data.
Just because of this problem they wanted all the outgoing payment from FI only.
Any suggestion on this query will be highly appreciable.
Regards
Kumar
Moderator note - thread locked, no research done. Please search forum before posting
Creating a refund request in CCS and printing that refund check FI-AP
Edited by: William Eastman on Dec 26, 2011 5:30 PMHi renjith,
Please post your question in the Printing forum. This is the development forum.
Regards,
Vítor Vieira -
Outgoing payment/ Check Printing
Hello SAP Experts,
I have been asked to take care of outgoing payments and check printing to vendors. I have no idea how this can be done. I have created vendor master data and have setup the house banks.
Please guide me how can I perform a check run for payments and print checks.
I need this help urgently. Will award point immediately.
Thanks,
Elizaahi Elizaa,
Follow these steps
Enter <b>Run Date</b>- May be current or the date to be printed on the cheque/ advice
Enter Identification- to identify your proposal
Click on <b>Tab Parameters</b>
<b>Enter-Posting Date</b>
Docs entered up to- system date for the considering the documents for the payment.
Enter company codes for which u want to execute APP, payment method and the Next payment date will be the date after the run date mentioned above.
Enter range of Vendors and/or Customers for the payment run
If you are doing Forex payments enter the rate type
U can leave the Free Selection Tab as blank
Tab-Additional Log check 1,2 & 4th boxes enter the vendor or/and customer range
Tab- Printout/data Medium select the variant against the program created for the payment method.
Save the parameters- Ctrl+S
Tab- Status- Message "Parameters have been entered" is found
Click on the Schedule Proposal button
a pop up will appear check the tick box Start Immediately
Press Continue
"Proposal is ready to be started" message appears on the status Tab
Press enter until " Payment proposal has been created" message appears on the Status Tab.
Click on the Pmnt Run button ,
Press Continue in the pop up
"Payment run is ready to be started" message appears on the status Tab
Press enter till the message" Posting orders: XX generated, XX completed" appears.
Now F110 is over and cheques are ready for printing.
Click on the Printout button to print the cheques
Note: Hope you have completed all the required config in FBZP.
<b>OR</b>
Automatic Payment Program:
House Bank Configuration FI12.
Enter Company code and select House Bank tab. Click on the Create bank to create a new house bank Enter Bank Country and bank key details and click Bank Accounts. Enter the Bank Account num and the Bank GL account.
Payment Program Configuration FBZP
o All Company Codes Enter Sending and Paying Company Code, outgoing payment with cash discount from.
o Paying Company Code Enter Minimum amount of Incoming and outgoing payment and Form for the Payment advice.
o Payment methods by country Select Check will be created, Allowed for personal payments, Street P.O. box or P.O. box pst code (bank details for Wire transfer) and RFFOUS_C (RFFOUS_T for wire transfer) as the print (payment) program.
o Payment methods by Company Code Enter min and max amounts and form
for payment transfer. Payment per due day, optimize by bank group or postal code can also be selected.
o Bank Selection If more than one house bank, ranking order can be given. Under Amounts, amount available for outgoing payment should be given. Under Accounts, enter bank-clearing account for bank sub account.
Define Check numbers FCHI and Void Reasons - FCHV
Payment Run F110
Enter Run Date and Identification and go to parameters tab. Enter Company codes, payment methods, next pay date and vendor accounts. Go to Additional Log Tab and select Due date check, Payment method selection in all cases and line items of the payment documents. Go to Print out/data medium tab, enter variant against the Payment program and select Maintain Variants. Enter Paying company code, House bank details, and check lot number. Select Print Checks and Print payment summary for checks and Print payment advice notes for Wire (enter printer and select print immediately). Also make no. of sample printouts to zero. Then execute Proposal, Payment run and Printout. Number range 20 should be defined.
<b>For Check Printing.</b>
Go to Tcode SE38 and enter the program as RFFOUS_C and execute it.
In that screen enter the Identification and program run date and enter all the required firelds and then again execute it....
So that u can print the Check with the check lot number that u have created
Please create the check lot number in FCHI.
If u want to see the spool then go to SP01 and see there...
Hope this will solve ur problem.....
ifu want i can send U with the screen shots..
Ranjit
null -
Outgoing Payment Transaction notification...
Hi all,
I designed the following Transaction notification for outgoing payment.It is working well If doctype is 'C' or 'S'. I want to do this for Doctype 'A'. But not successful....
Waiting for your replies..
IF @transaction_type = 'A' AND @object_type = '46'
BEGIN
--If exists (SELECT T0.docentry FROM OVPM T0 where t0.docentry = @list_of_cols_val_tab_del and T0.cashsum>=20000000)
-- begin
-- SET @error = 10
-- SET @error_message = N'You cannot Pay Cash More than Rs. 2000/-'
-- end
If not exists (SELECT T0.docentry FROM OVPM T0 where t0.docentry = @list_of_cols_val_tab_del and
(((t0.cardcode like '%%VDLI%%' or t0.cardcode like '%%CDLI%%' ) and t0.Series = '61' and (t0.doctype = 'S' or t0.doctype = 'C' ))
or ((t0.cardcode like '%%VAHD%%' or t0.cardcode like '%%CAHD%%' ) and t0.Series = '64' and (t0.doctype = 'S' or t0.doctype = 'C' ))
or ((t0.cardcode like '%%VMUM%%' or t0.cardcode like '%%CMUM%%' ) and t0.Series = '63' and (t0.doctype = 'S' or t0.doctype = 'C' ))
or ((t0.cardcode like '%%VLDH%%' or t0.cardcode like '%%CLDH%%' ) and t0.Series = '66' and (t0.doctype = 'S' or t0.doctype = 'C' ))
or ((t0.cardcode like '%%VKOL%%' or t0.cardcode like '%%CKOL%%' ) and t0.Series = '62' and (t0.doctype = 'S' or t0.doctype = 'C' ))
begin
SET @error = 11
SET @error_message = N'BP Code,Location ,Series ,Tax code combination does not match'
end
END
Regards
Deepak tyagiHi Deepak,
Try this way:#
if @object_type='46'
BEGIN
IF @transaction_type='A' OR @transaction_type='U'
BEGIN
DECLARE @OPCHDocEntry int
DECLARE @OPCHDocType nvarchar(1)
SET @OPCHDocEntry = CAST(@list_of_cols_val_tab_del as int)
SET @OPCHDocType = (SELECT DocType FROM OPCH WHERE DocEntry=@OPCHDocEntry)
IF @OPCHDocType in ('S','C')
BEGIN
If not exists (SELECT T0.docentry FROM OVPM T0 where t0.docentry = @list_of_cols_val_tab_del and
(((t0.cardcode like '%%VDLI%%' or t0.cardcode like '%%CDLI%%' ) and t0.Series = '61' and (t0.doctype = 'S' or t0.doctype = 'C' ))
or ((t0.cardcode like '%%VAHD%%' or t0.cardcode like '%%CAHD%%' ) and t0.Series = '64' and (t0.doctype = 'S' or t0.doctype = 'C' ))
or ((t0.cardcode like '%%VMUM%%' or t0.cardcode like '%%CMUM%%' ) and t0.Series = '63' and (t0.doctype = 'S' or t0.doctype = 'C' ))
or ((t0.cardcode like '%%VLDH%%' or t0.cardcode like '%%CLDH%%' ) and t0.Series = '66' and (t0.doctype = 'S' or t0.doctype = 'C' ))
or ((t0.cardcode like '%%VKOL%%' or t0.cardcode like '%%CKOL%%' ) and t0.Series = '62' and (t0.doctype = 'S' or t0.doctype = 'C' ))
begin
SET @error = -1000
SET @error_message = N'BP Code,Location ,Series ,Tax code combination does not match'
end
END
IF @OPCHDocType ='A'
BEGIN
If not exists (SELECT T0.docentry FROM OVPM T0 INNER JOIN VPM4 T1 ON T0.DocEntry = T1.DocNum and t0.docentry = @list_of_cols_val_tab_del and
(t1.acctcode like '%%ADLI%%' and t0.Series = '61' and t0.doctype = 'A' and T1.LocCode = '1' )
or (t1.acctcode like '%%AAHD%%' and t0.Series = '64' and t0.doctype = 'A' and t1.LocCode = '2' )
or ( t1.acctcode like '%%AMUM%%' and t0.Series = '63' and t0.doctype = 'A' and t1.LocCode = '3' )
or ( t1.acctcode like '%%ALDH%%' and t0.Series = '66' and t0.doctype = 'A' and t1.LocCode = '5')
or ( t1.acctcode like '%%AKOL%%' and t0.Series = '62' and t0.doctype = 'A' and t1.LocCode = '4')
BEGIN
SET @error=-1001
SET @error_message = N'BP Code,Location ,Series ,Tax code combination does not match'
END
END
END
END
Thanks,
Neetu -
Display the Repetative area in Incoming and Outgoing payments
Hi Experts,
Can any one help me how to Display the Repetative area Header,Repetative area and Repetative area Footer in the
Incoming and Outgoing payments....
Urgent .... Pls...
KarthiHi Sumpath,
Then how can i get printout for posted Incoming payments with Row Level data.
Per day 10 Numbers of Payments are made, For that i need to take printout daily with row details...
By default SAP Print out also not executing row level datas, i dont why or any other procedure to enable row level datas..
karthi -
Using DTW to create Outgoing Payment for two Incoming Payment on Accounts
Hi Experts,
I hope you can help me with something i'm trying to do please.
The scenario is this:
Customer has two Incoming Payment on Accounts:
£0.30
£10.00
I am trying to create a DTW Outgoing Payment for the same Customer which selects these two Payment on Accounts.
I am using the spreadsheets OVPM and VPM2.
OVPM:
DocNum DocType CardCode TrsfrSum
1 rCustomer C23900 10.3
VPM2:
ParentKey DocEntry InvType PaidSum
1 77 it_Receipt 10
1 78 it_Receipt 0.30
Please note: 77 and 78 are the Incoming Payment Numbers. I have not left any columns out of my templates when I do the import.
I keep getting an error message which says u201CBase document card and target document card do not matchu201D, I found Note 1254839 for this but I have the correct BP and upper/lower case.
I have tested on 8.81 PL04 and PL07 and get the same results.
Any advice would be greatly appreciated!
Thanks so much,
CarolineHi Gordon,
Thanks for your email.
The sceanrio is that the Incoming Payments have already been made (as POA) in SAP on a Customer Account.
Now the situation is that an Outgoing Payment needs created via DTW against the same Customer, but which selects the two POA which were made as Incoming Payments.
I can do it in SAP whereby I don't use DTW, but whenever I use DTW I get that error message.
Any help would be appreciated.
Thanks again,
Caroline -
Stored Procedure for Outgoing Payment Approval
Hi
I am writing a stored procedure for Outgoing Payment (Draft) which is not validating my fields
1.Outgoing Draft (Procedure Not Working)
If @object_type = '140' and @transaction_type = 'A'
begin
if exists(select t0.DocEntry from OPDF T0 inner join PDF4 T1 on
T0.DocNum = T1.DocNum where t1.ObjType ='46' AND (T0.Series = '15' AND T1.OcrCode <> 'U-1')
and T0.DocEntry = @list_of_cols_val_tab_del)
begin
set @error = 1
set @error_message = 'Check Unit'
end
End
Regards
John
Edited by: JohnSmith@B1 on Sep 9, 2011 4:49 PMJohn......
Try this.....
IF (@object_type = '140' And (Select ObjType From OPDF
Where DocEntry = @list_of_cols_val_tab_del)='46'
AND @transaction_type IN ('A'))
BEGIN
if exists(select t0.DocEntry from OPDF T0 inner join PDF4 T1 on
T0.DocNum = T1.DocNum where t1.ObjType ='46' AND (T0.Series = '15' AND T1.OcrCode != 'U-1')
and T0.DocEntry = @list_of_cols_val_tab_del)
begin
select @error = 1,
@error_message = 'Check Unit'
end
End
Above SP will only work when your Series Code is 15 and OcrCode is not equal to 'U-1'....
Please confirm........
And Object type for Payment Draft 140 is right.....
Regards,
Rahul -
Select Cash Account in Outgoing Payment Window by Formatted Search
Dear All
In one of my Customer's requirement in Approval procedure I have to select 'Cash Account' code in Outgoing Payments Window when 'DocType' is 'A' i.e. Account. When 'Payment Means' window is opened I found that in Cash Tab, Item value of G/L Account Field is '32' and it also shows that this field is 'CashAcct' in OVPM table. Accordingly I put the value as $[$32.0.number] to capture the value. But it is returning value 0. My query is as follows:
" select distinct 'TRUE' from OVPM where $[$58.0.string] = 'A' and $[$32.0.number] = 161000
and $[$12.0.number] > 10000.00 and $[$12.0.number] < 50000 and $[$87.0.number] = 15"
We want approval procedure will be triggered when cash is paid in between Rs.10000.00 and 50000.00 on 'Account' type and Series is Primary (value is 15) and Account Code is 161000 i.e. Cash Account.
But it is not working.
Can any one help to locate where I have done wrong.
Thanks & with regards
S K GangulyHi S K Ganguly,
Check this....
select distinct 'TRUE' from OVPM where ($[$58.0.string]) = 'A' and ($[ovpm.CashAcct.number]) = 161000
and ($[$12.0.number]) > 10000.00 and ($[$12.0.number]) < 50000 and ($[$87.0.number]) = 15
Thanks,
Srujal Patel -
SDK Outgoing Payment o Pagos efectuados
Buenas, Necesito ayuda para saber cual es el Objeto para manejar los Outgoin Payment o Pagos efectuados con el SDK, tengo para trabajar con los Incoming Payment o Pagos Recibidos, pero no logro conseguir o ver el de los Outgoing Payment.
El codigo para el incoming o pagos recibidos es :
oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments)
necesito este misma linea de codigo para el outgoinpayment pero no lo consigo, si alguien me ayuda y me dice que poner se lo agradeceria muchisimo
oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.????????????)Buenas necesito una ayuda en este tema de pagos recibidos, use el ejemplo expuesto pero no tengo claro que campos son realmente necesarios y el orden , por ejemplo como indico cual es la factura a la cual estoy haciendo el pago?
tendran algun codigo para efecturar pagos recibidos?
el codigo de mi funcion es este pero aun no logro ingresar el pago recibido y no se aun como indicar la factura que sera afectada por este pago
On Error GoTo ErrorHandler
Dim vCompany As SAPbobsCOM.Company
'create company object
vCompany = New SAPbobsCOM.Company
'PARAMETROS DE CONEXION A SAP
vCompany = New SAPbobsCOM.Company
vCompany.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2008
vCompany.DbUserName = "user"
vCompany.DbPassword = "clave"
vCompany.Server = "SAP"
vCompany.CompanyDB = "Pruebas"
vCompany.UserName = "manager"
vCompany.Password = "clavemanager"
vCompany.UseTrusted = False
'connect to database server
If (0 <> vCompany.Connect()) Then
MsgBox("Failed to connect")
Exit Sub
End If
Dim nErr As Long
Dim errMsg As String
'ENCABEZADP DE´PAGO RECIBODO
Dim vPay As SAPbobsCOM.Payments
vPay = vCompany.GetBusinessObject(BoObjectTypes.oIncomingPayments)
vPay.DocNum = 19015000
vPay.Address = "622-7"
vPay.ApplyVAT = 1
vPay.CardCode = "C502-1003"
vPay.CardName = "ABASTECEDOR EL HIGUERON ((LAS JUNTAS))"
vPay.CashAccount = "10100101001"
vPay.CashSum = 0
'vPay.CheckAccount = "280001"
vPay.ContactPersonCode = 1
vPay.DocCurrency = "COL"
vPay.DocDate = Now
vPay.DocRate = 0
vPay.DocTypte = 0
vPay.HandWritten = 0
vPay.JournalRemarks = "Incoming - D10004"
vPay.LocalCurrency = BoYesNoEnum.tYES
'vPay.Printed = 0
vPay.Reference1 = 8
vPay.Series = 0
'vPay.SplitTransaction = 0
vPay.TaxDate = Now
vPay.DocNum = 1
'TRANSFEREMCOA INFO
vPay.TransferAccount = "10100101001"
vPay.TransferDate = Now
vPay.TransferSum = 5031.2
vPay.TransferReference = "Refenecia de transferencia"
'CHEQUE1 INFO
vPay.Checks.CheckNumber = 1
vPay.CheckAccount = "10100101002"
vPay.Checks.CheckSum = 23.2
vPay.Checks.CountryCode = "CR"
vPay.Checks.Details = "Detalle del cheque"
vPay.Checks.DueDate = Now
'vPay.Checks.LineNum = CInt(0)
vPay.Checks.BankCode = "BCR"
vPay.Checks.Add()
'CHEQUE 2 INFO
vPay.Checks.CheckNumber = 1
vPay.CheckAccount = "3343"
vPay.Checks.CheckSum = 23.2
vPay.Checks.CountryCode = "CR"
vPay.Checks.Details = "Detalle del cheque"
vPay.Checks.DueDate = Now
'vPay.Checks.LineNum = CInt(0)
vPay.Checks.BankCode = "BCR"
If (vPay.Add() <> 0) Then
MsgBox("Failed to add a payment")
End If
'Check Error
Call vCompany.GetLastError(nErr, errMsg)
If (0 <> nErr) Then
MsgBox("Found error:" + Str(nErr) + "," + errMsg)
Else
MsgBox("Succeed in payment.add")
End If
'disconnect the company object, and release resource
Call vCompany.Disconnect()
vCompany = Nothing
Exit Sub
ErrorHandler:
MsgBox("Exception:" + Err.Description)
End Sub -
Table in SQL for Outgoing payments
Hi,
I am creating a SQL Statement to pull some information out regarding outgoing payments to the G/L and I expected to see the transaction lines in the RCT4 table but they don't appear.
Can anyone tell me which table this is stored in please?
thanksHi,
Outgoing payments table are OVPM, VPM1 etc.
Regards,
Jitin
SAP Business One Forum Team
Maybe you are looking for
-
Upgrade to 7.0.2 English Version showing Japanese Characters & Yen prices
I recently upgraded to iTunes 7.0.2. Since completing installation, I've noticed that the fonts within the iTunes Store interface are off and I'm noticing a lot more Japanese support (including a lot more spotlighted albums of Japanese singers). Alon
-
How to pass values to Oracle store procedure in Crystal Report
Hi all, I am newbie on passing values to stored procedure parameters. I created a Crystal Report using the Crystal Report wiward with PULL method and data come from Oracle stored procedure. In an ASP.NET page, I have stored two values in Session and
-
Indesign CS6 - PDF = Fuzzy, Redish Text
Hello folks, I am looking for some assistance with printing a PDF I've created from InDesign. I've scoured these and other fourms, but to no avail. Here's a copy of the PDF for anyone to analyze: http://www.nhceh.org/GL%20Sponsorship%20Packet.pdf H
-
IPod mini coming up with all kinds of errors!
My iPod mini (2nd Gen) was working perfectly fine until a couple of days ago when it refused to be updated and in the end I restored it. However, resorting it seemed to make no difference, the iPod once updated about 72MB of music but after that had
-
IOS 8.1.1 iPhone 5 won't sync calendars with MacPro
I am using an iPhone 5, iOS 8.1.1, an older MacPro with OS 10.7.5 and iTunes 12.0.1.26 Up until the past 2 weeks I had no problem syncing calendar events between the phone and computer. Now my memory become foggy, I either downloaded the latest versi