A/R Invoice (133) Payment
Hi,
I am doing a payment in A/R Invoice (133).
Could you give me a code sample of payment with cash, bank transfer, Credit Card, OR Check? (C# or VB)
Thank you,
Rune
Hi,
Please find the payment code below for check, cash, credit card, and bank transfer.
Please update the SDK Help source code sample.
Thank you,
Rune
private void m_FORM_133_ARInvoice_PaymentBankTransfer( Int32 vmp_DocEntry_Int32,
double vmp_Amount_double,
string vmp_CardCode_string,
Int32 vmp_Counter_01_Int32 ) // 01 Bank Transfer
try
oPayments = (SAPbobsCOM.Payments)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments);
oPayments.CardCode = vmp_CardCode_string;
oPayments.DocDate = DateTime.Now;
oPayments.JournalRemarks = "Incoming - Payment Bank Transfer";
oPayments.TaxDate = DateTime.Now;
oPayments.TransferAccount = "_SYS00000000343"; //"1010140-001";
oPayments.TransferDate = DateTime.Now;
oPayments.TransferReference = vmp_CardCode_string;
oPayments.TransferSum = vmp_Amount_double;
vc_Message_Result_Int32 = oPayments.Add();
if ( vc_Message_Result_Int32 != 0 ) // Check the result
string vm_GetLastErrorDescription_string = oCompany.GetLastErrorDescription();
oCompany.GetLastError( out vc_Message_Result_Int32, out vc_Message_Error_string );
SBO_Application.MessageBox( "Add-On Error (Forgestik Inc.): Error-4021 \n " + vc_Message_Error_string + " Error Code: " + vc_Message_Result_Int32, 1, "Ok", "", "" ); // My Error Code
catch (Exception Exception_Error)
SBO_Application.MessageBox("Add-On Error (Forgestik Inc.): Error-4010 \n " + Exception_Error.Message, 1, "Ok", "", ""); // My Error Code
private void m_FORM_133_ARInvoice_PaymentCreditCard( Int32 vmp_DocEntry_Int32,
double vmp_Amount_double,
string vmp_CardCode_string,
Int32 vmp_Counter_02_Int32,
Int32 vmp_CreditCardCode_Int32 ) // 02 Credit Card
string vm_CreditCardAccountNumber_string = string.Empty;
try
oPayments = (SAPbobsCOM.Payments)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments);
oPayments.CardCode = vmp_CardCode_string;
oPayments.DocDate = DateTime.Now;
oPayments.JournalRemarks = "Incoming - Credit Card";
oPayments.TaxDate = DateTime.Now;
if ( vmp_Counter_02_Int32 == 0 )
// Nothing Here Yet...
else
//Second Creditcard payment
oPayments.CreditCards.Add();
oPayments.CreditCards.SetCurrentLine( vmp_Counter_02_Int32 );
oPayments.CreditCards.AdditionalPaymentSum = 0;
oPayments.CreditCards.CardValidUntil = DateTime.Now; // + 1 year
oRecordset = ( ( SAPbobsCOM.Recordset )( oCompany.GetBusinessObject( SAPbobsCOM.BoObjectTypes.BoRecordset ) ) );
oRecordset.DoQuery( "SELECT [CreditCard],[CardName] ,[AcctCode] FROM [dbo].[OCRC] WHERE [CreditCard] = '" + vmp_CreditCardCode_Int32 + "'" );
oRecordset.MoveFirst();
if ( oRecordset.EoF == true ) // We have a Error
SBO_Application.MessageBox( "Add-On Error (Forgestik Inc.): Error-7859 \n " + "Credit Card Account does not Exist", 1, "Ok", "", "" ); // My Error Code
else
vm_CreditCardAccountNumber_string = Convert.ToString( oRecordset.Fields.Item( "AcctCode" ).Value );
oPayments.CreditCards.CreditAcct = vm_CreditCardAccountNumber_string; //"_SYS00000000353"; //"1010190-001";
oPayments.CreditCards.CreditCard = vmp_CreditCardCode_Int32;
oPayments.CreditCards.CreditCardNumber = "1234567890123456";
oPayments.CreditCards.CreditSum = vmp_Amount_double;
oPayments.CreditCards.CreditType = SAPbobsCOM.BoRcptCredTypes.cr_Regular;
oPayments.CreditCards.FirstPaymentDue = DateTime.Now;
oPayments.CreditCards.FirstPaymentSum = vmp_Amount_double;
oPayments.CreditCards.NumOfCreditPayments = 1;
oPayments.CreditCards.NumOfPayments = 1;
oPayments.CreditCards.PaymentMethodCode = 1; //Variable in the END>>>
vc_Message_Result_Int32 = oPayments.Add();
if (vc_Message_Result_Int32 != 0) // Check the result
string vm_GetLastErrorDescription_string = oCompany.GetLastErrorDescription();
oCompany.GetLastError(out vc_Message_Result_Int32, out vc_Message_Error_string);
SBO_Application.MessageBox("Add-On Error (Forgestik Inc.): Error-4021 \n " + vc_Message_Error_string + " Error Code: " + vc_Message_Result_Int32, 1, "Ok", "", ""); // My Error Code
catch (Exception Exception_Error)
SBO_Application.MessageBox("Add-On Error (Forgestik Inc.): Error-4020 \n " + Exception_Error.Message, 1, "Ok", "", ""); // My Error Code
private void m_FORM_133_ARInvoice_PaymentCash( Int32 vmp_DocEntry_Int32,
double vmp_Amount_double,
string vmp_CardCode_string,
Int32 vmp_Counter_03_Int32 ) // 03 Cash
string vm_CachAccountNumber_string = string.Empty;
try
oPayments = ( SAPbobsCOM.Payments )oCompany.GetBusinessObject( SAPbobsCOM.BoObjectTypes.oIncomingPayments );
oPayments.CardCode = vmp_CardCode_string;
oPayments.DocDate = DateTime.Now;
oPayments.JournalRemarks = "Incoming - Payment Cash";
oPayments.TaxDate = DateTime.Now;
oRecordset = ((SAPbobsCOM.Recordset)(oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)));
oRecordset.DoQuery( "SELECT [LinkAct_3] FROM [dbo].[OACP]" );
oRecordset.MoveFirst();
if ( oRecordset.EoF == true ) // We have a Error
SBO_Application.MessageBox( "Add-On Error (Forgestik Inc.): Error-7809 \n " + "Cash Account does not Exist", 1, "Ok", "", "" ); // My Error Code
else
vm_CachAccountNumber_string = Convert.ToString( oRecordset.Fields.Item( "LinkAct_3" ).Value );
oPayments.CashAccount = vm_CachAccountNumber_string; //"_SYS00000000342"; //"1010140-001";
oPayments.CashSum = vmp_Amount_double;
vc_Message_Result_Int32 = oPayments.Add();
if ( vc_Message_Result_Int32 != 0 ) // Check the result
string vm_GetLastErrorDescription_string = oCompany.GetLastErrorDescription();
oCompany.GetLastError( out vc_Message_Result_Int32, out vc_Message_Error_string );
SBO_Application.MessageBox( "Add-On Error (Forgestik Inc.): Error-4031 \n " + vc_Message_Error_string + " Error Code: " + vc_Message_Result_Int32, 1, "Ok", "", "" ); // My Error Code
catch (Exception Exception_Error)
SBO_Application.MessageBox("Add-On Error (Forgestik Inc.): Error-4030 \n " + Exception_Error.Message, 1, "Ok", "", ""); // My Error Code
Similar Messages
-
Custom invoice clearing & payment posting
Hi all,
we are not recieving BAI2 file for lockbox from bank but we have an external software which will identify SAP customer invoices & corresponding payment.
Now how can we post this payment as we do nor have BAI2 file. I think that some custom program will be required for cash posting & clearing but I am not sure how to create it.
Please help..
NikUsually you can reset or reset & reverse at a time.
But for some documents there will be forex gain/loss line items which will happen automatically when a open line document cleared with another document.
e.g. Line item 1 :- 500 Cr balance in a vendor account.
When you done the payment to this vendor through F-53, system also analyze the valuation differences if any and post.
so these are generated automatically
While reset this document you can't avoid reversing.
May this is the issue you are also facing.
you cant do anything for this. -
When printing an A/R Invoice, a print options box appears allowing you to select:
() Invoice Only
() Invoice and Payment in Succession
() A/R invoice +Payment
I select the last option and I get the A/R Invoice and a Payment Receipt. I am trying to edit the payment receipt which is system generated. It their away to edit this? I can edit the A/R Invoice with not problem, but I can not find the Payment Receipt to edit it.Thank you for your reply, but I was asking if their is away to edit to payment receipt? I know how to find, locate and edit the A/R Invoice templates, but I can not find the Payment Receipt that is generated along with the A/R Invoice.
-
"Post Invoice and Payment seperately"
Hi Guys,
I need help on resolving this issue.
We are posting a vendor downpayment using F-48.
We are then doing a vendor invoice and subsequently clearing the open items using F-58. But we are getting the following error while posting
"Deferred Tax : Post Invoice and Payment seperately $1"
Thanks,
Srikanth.hi,
Do you have two tax codes setup up. One tax code to post with the invoice and another one which is used for transferring when the invoice payment is made. Please check that you are using the right tax code setup for the posting with the invoice.
Regards
Girish BP -
'Deferred tax: Post invoice and payment separately $1
Hi
A customer invoice is posted with service tax.If we go to f-04 to make
an entry of payment received and Debit bank, debit TDS certificate
receivable for the TDS amount deducted and click on process open items
thereby selecting the customer and then the invoice the system throws
the error as 'Deferred tax: Post invoice and payment separately $1
Message no. DEFTAX020'
And if we try to post it by selecting posting key of credit customer
which will not do the clearing of invoice, the error does not come.
We are using deferred tax transfer New : RFUMSV25.All the other
processes relating to service tax are going fine.
Please suggest.Hi
A customer invoice is posted with service tax.If we go to f-04 to make
an entry of payment received and Debit bank, debit TDS certificate
receivable for the TDS amount deducted and click on process open items
thereby selecting the customer and then the invoice the system throws
the error as 'Deferred tax: Post invoice and payment separately $1
Message no. DEFTAX020'
And if we try to post it by selecting posting key of credit customer
which will not do the clearing of invoice, the error does not come.
We are using deferred tax transfer New : RFUMSV25.All the other
processes relating to service tax are going fine.
Please suggest. -
Need to enter invoice and payment in the system after a manual check issued
Client Need to enter invoice and payment in the system after a manual check is issued for some urgent transactions.
Please suggest few ways to do this .Hi,
If client can maintain a separate check book sequence for manual issue, we can configure a separate payment document with the same sequence and later record the invoice and generate payment ....
Regards,
Ivruksha -
hi,
may i know what is the difference for withholding tax at the point of invoice and payment? i know invoice meaning deducted during miro whereas payment deducted during f110.
i need to know what actually makes them different? is it due to tax authority requirement or what.
kindly advise.
thanksHi
Withholding at the time of payment means - while making the advance payment to vendor, we deduct TDS and make the payment.
Withholding at the time of invoice means - at the time of entering MIRO, we deduct TDS.
While making the payment thru F110, we make the payments of the outstanding invoice from which TDS is already deducted.
Hope this clarifies your query.
Regards
T Rajeshwar Rao -
Regarding Invoice and Payment slip both needs to print sub sequently
Hi Guys,
i have problem with smartform ,
the requirement was ,
invoice and payment slip both i need to develop using smartforms,
the thing is invoice will print on white paper(Portrait) and
payment slip will print on pre - printed paper (landscape) ,
subsequently it needs to print one invoice and payment slip for that invoice and
another invoice and payment slip like this in the sequence it needs to print .
this would be done by overnight job scheduling ,
how could i do this ,
what about output types and how can i proceed with technically please guide me .
urgent requirement ..help me out this .
Thanks & Regards
Vijay Kumar Reddy
+91-9789098418
[email protected]Hi Dewang,
I have a different situation, I posted SD request at contract account level posted using FPSEC1.
Since the contract account is for purpose of Aggregation, I did a aggregated posting then when I prepare a print doc for the same using EA10_AGGRBILL it is not picking up the security deposit request.
I have maintained the necessary entry in Item Selection in Account Maintenance/ Define Sub-Items for RF clearing type.
Please advice.
Thanks
Satyajeet -
Invoice and payment terms ...I don't understand . please suggest me
I have given problem below. In FI, we normally configure in fbzp tocode...what is the outpur type here ? for the below which program I need to check ? Invoice and payment terms ...given
Pls take a look at this invoice and let me know why it is changing the payment term.
User has below problem :
SAP FI Output type SAP19
Payment Terms print "Payment Due Immediately" rather than actual terms.
i.e. invoice 208615 - payment terms US02 - should print "Net 60" however prints "Payment Due Immediately".
Is this hard coded and if so, can it be corrected and when?
Please advise.
Thanks,Using fb12, I am selecting customer invoice
then in new popup I am giving invoice number and fiscal year. then it is giving message on status bar as 'customer invoice requested'.
Then i am going to F.61 and executing by giving in pop up -->correpspondence, company code, document number and fiscal year.
Then a spool is getting created and I am able to see the form output in /nsp01 where the error is occuring .
Could you please suggest me hwo to find out the form name and driver program name.
THANKS IN ADVANCE.
Edited by: Sam Kumar on Sep 3, 2008 7:30 PM -
Down Payment Invoice & Incoming Payment docs print with Sales Order
Hi,
When print a Sales Order that has a Down Payment linked to it, the Down Payment Invoice & Incoming Payment also prints.
How do I turn this off?
Thanks,
RonHi Ron,
What is your B1 version and PL?
Thanks,
Gordon -
Deferred tax: Post invoice and payment separately $1" Message no. DEFTAX020
while reversing a document thru FB08, it is giving the error message,
" Deferred tax: Post invoice and payment separately $1" Message no. DEFTAX020.
This is a stand alone invoice document , without any clearing document. What is to be done ?
Below is the snapshot of FB03:-
Document Number 2256162 Company Code MLTD Fiscal Year 2009
Document Date 24.05.2010 Posting Date 25.05.2010 Period 11
Reference PYX/10-11/032 Cross-CC no.
Currency INR Texts exist
Itm PK BusA Acct no. Description Tx Amount in INR
001 31 U106 503551 PYXIS SYSTEMS PVT.LTD. DD 55,150.00-
002 40 COMM 5656 Membership & Subscri DD 50,000.00
003 40 1371 Service Tax Availed DD 5,000.00
004 40 1372 Ecess on ST Availed DD 100.00
005 40 1373 S&H Ecess on ST Avai DD 50.00
Document Type I2 VEMDOR INV-CORPORATE
Doc.Header Text PYXIS SYS.P.LTD.
Branch number Number of Pages 0
Reference PYX/10-11/032 Document Date 24.05.2010
Posting Date 25.05.2010
Currency INR Posting Period 11 / 2009
Ref. Transactn BKPF Accounting document
Reference key 0002256162MLTD2009 Log.System MALCLNT999
Entered by NITINRB Parked by
Entry Date 25.05.2010 Time of Entry 13:05:08
TCode FBR2
Changed on Last update
Ledger Grp Ledger
Ref.key(head) 1 Ref.key 2Hi,
Check whether OSS note 913805 (see below) offers a solution to your particular issue.
Kind regards, Robert
Note 913805 - Error FF891 or DEFTAX025 when posting FI-Documents Version: 5
Summary
Symptom
The posting of FI-documents cannot be executed due to one of the following error messages:
FF 890 "Vendor and customer items in document with deferred taxes"
FF 891 "G/L account item without tax code in document with deferred taxes"
FF 892 "Error writing to table DEFTAX_ITEM"
DEFTAX 025 (no specific text)
Also update terminations and other errors which are related to function group TAX4 may be the topic of this note.
Other terms
RFUMSV25; RFUMSV50; VAT; deferred tax; BTE; DEFTAX_ITEM; TAX4; SAPSQL_ARRAY_INSERT_DUPREC; FI_POST_DEFTAX_ITEM; FF891; FF890; FF892; FF804; 00 671; FF099; DEFTAX020; DEFTAX021; DEFTAX022; DEFTAX023; DEFTAX025; DEFTAX012; DEFTAX_MX027; DEFTAX_MX047; DEFTAX_MX039; DEFTAX; DEFTAX_MX;
Reason and Prerequisites
Accidentally some business transaction events (BTE) for the new solution for deferred tax were delivered in an active state in support packages of SAP releases 4.70 and ERP 2004. The solution is available in the SAP-Standard only from release ERP 2005. Also in ERP 2005 the new deferred tax can cause problems in countries for which the solution is not released.
These BTEs perform strict tests for documents containing tax codes for deferred tax.
Solution
If you are using the old deferred tax, i.e. you use report RFUMSV25 to create transfer postings, you can safely deactivate these BTEs.
Remove the following BTEs:
00001025 DI-TAX CREATE_DEFTAX_ITEM
00001030 DI-TAX SET_DEFTAX_ITEM
00001040 DI-TAX CREATE_DEFTAX_ITEM_REVERS
00001050 DI-TAX CREATE_DEFTAX_ITEM_MR1M
In ERP 2005 (ECC 600) the application key is 'FI-TAX' instead of the above mentioned 'DI-TAX'.
To do this start transaction FIBF
-> Settings
-> P/S Modules
...of an SAP Application
Mark the entries from the list above and delete them.
This deactivates the functionality of 'new deferred tax' for all company codes in all clients on the system. This means that no data is written to table deftax_item at posting time. Report RFUMSV50 can still be started, but it will not process new documents any more.
If in ERP 2005 problems arise in one country but the new deferred tax is used in another country you must not deactivate the BTEs completely. In this case it is possible to restrict the BTEs to be active only in certain countries using the column 'country' in transaction FIBF.
Header Data
Release Status: Released for Customer
Released on: 16.01.2008 20:12:15
Master Language: English
Priority: Correction with medium priority
Category: Program error
Primary Component: FI-GL-GL-F Value Added Tax (VAT)
Affected Releases
Software Component Release From Release ToRelease And subsequent
SAP_APPL 46C 46C 46C
SAP_APPL 470 470 470
SAP_APPL 500 500 500
SAP_APPL 600 600 600
SAP_APPL 602 602 602
SAP_APPL 603 603 603
SAP_APPL 604 604 604
Related Notes
771319 - RFUMSV50: Documentation
Edited by: Robert North on May 26, 2010 11:49 AM
Edited by: Robert North on May 26, 2010 11:50 AM -
AR invoice with payment can replace AR downpayment invoice
We issue Proforma Invoice (Quote), then issue AR downpayment to collect all payments before we generate legitimate Drop Ship invoice to avoid any non-collect payment.
Not sure "AR invoice with payment" need generate invoice first or in the same time to apply the payment.
Our terms is 1/3, 1/3 and 1/3 (each takes 2-3 weeks) or 1/2, 1/2 (30 and 45 days due) before we ship. If this is the case, then we can not use this feature.I found out the missing GL account that is under Admin> Setup> Financials> GL acct Determination
Now, I need GL account in tab Sales - "Payment Advances". I think this is should be the Liability account instead AR account if I have to choose an account but what will be the offset account? Why I need GL account for AR Down Payment Invoice since no transaction really will be generated? Just to calculate how much will be expected from customer on the first installment and balance due.
When I receive the incoming payment will Dr. Checking or Saving and Cr. AR. -
Payment Terms (60 days net from invoice date, payment 10 th or 20 th of th)
Hi
I need to work on the below req.
60 days net from invoice date, payment 10th or 20th of the month.
Regards
PrasadHI ,
Check OBB8,
Hrere you can give Fixed Date 10 & select additional months 2.
Try this .
chandra -
Invoice document payment term inconsistency
I use MIR4 to display invoice, the payment terms is 122 days net, my base line date is 10.23
but i go to accounting document, it shows payment terms is five days due after baseline date
why payment terms are different, how 122 days calulated?Hi,
According to Robert's advise, go to XK02 and go to Company code data and remove payment term code there.
And also make sure that payment term code is maintained in the Purchasing organisation level.
then only system will take the payment term from PO.
And one more thing is that...
For each payment term key, you can set a default date for determinating baseline date. You can set either Doc date or posting date or Entry date or NO DEFAULT.
And also check that your payment should have the number of required days maintained in it.
There is nothing to do with the description of payment term...Please check the Pt config in OBB8
Thanks,
Srinu -
Link Invoices to Payments - 2007
I have a customer that just upgraded from 2005 to 2007. Prior to upgrading, they had multiple customers with payments on account that represented downpayments on an invoice. In 2005, they would use the Link Invoices to Payments to apply the payment on account to the invoice so that they could show the customer the actual balance due on the invoice.
With 2007, it looks like this option has gone away and has been replaced with the Down Payment Invoice. Our customer will not be able to use this functionality - they have a Job Costing add-on that generates their invoices, and it does not give them the option to apply a down payment invoice.
I have tried the new internal reconciliation to apply the downpayment to the invoice, but it won't allow you to reconcile if the net amount of the transactions is zero. In this case, the invoice amount is $10,000 - the downpayment is $5,000, so the balance on account is still $5,000.
Any thoughts on how to apply the payment on account to the invoice so that the balance due on the invoice displays correctly?Hi Ellen,
please have a look at the IRU landing page here:
http://service.sap.com/~sapidb/011000358700000380562007E
You will see that the now unified reconciliation engines are much more userfriendly & rule out any inconsistent internal reconciliation that could happen when using the 'Link invoices to payments' functionality.
All the best,
Kerstin
Maybe you are looking for
-
Item Text in PR transaction (me51n)
Hi, What could be the rootcause that the item text field during Purchase Requisition transaction (me51n,me52n) is not editable ? its grey out and cannot type in anything... we're using ecc6. pls help..thanks in advance. she
-
Question about table logs in SAP
Hello, What table's do the transaction codes ST03 and STAD retrieve log history files from? Are these tables automatically logged by SAP, such as table CHDHR, or does table logging specifically have to be turned on for these table's? Help is greatly
-
Servlet load on server startup ?
With WebLogic 4.5.1 can you specify a servlet to load when the server starts ?. Thanks Peter.
-
How to get default drop down for AutoComplete(af:autosuggest) on focus event?
Hi ,. I am using AutoComplete(af:autosuggest) in a af:inputText. I want to show the default drop down box when the inputText gets the focus. I don't want the user to start typing to get suggestions. Please share your suggestions. Thanks and Re
-
How i unlock iphone 4s sprint carrier
how i unlock iphone4s itr carrie is sprint i want to use all international sim..pls help