Invoice using dtw
I used DTW to invoice 100,000 serial numbers it worked perfectly. But the AR-Invoice status shows open and printed how can i close that invoice.
Sri
ignore my question i already fround the result.
Similar Messages
-
Partially Paying AR Invoices using DTW
I am trying to add a cash payment for $500 against a $1000 invoice using DTW by filling in the below fields. However, it is closing the invoice even though it hasn't been fully paid.
Are there additional fields that I need to fill in to specify that I want to keep the invoice open?
Thanks,
Mike
Payments Object:
Recordkey = 1
CardCode = "5AGRIL1"
CashAccount = "_SYS000000000951"
CashSum = 500.00
DocDate = 20050701
Payments_Invoices Object:
Recordkey = 1
DocEntry = 5
SumApplied = 500.00Hi Mike,
Here's a cleaned up snippet that makes the payment partial if the payment sum is less than the open total for the invoice. It's written in VB6 (sorry for that).
Henry
Public Function CreateIncomingPaymentForInvoice(inv As Documents, invoiceDocEntry As Long, inBankAccount As String, sumApplied As Double, paymentDate As Date, strGLAccount As String) As String
Dim pay As SAPbobsCOM.Payments
Dim lRetCode, lErrCode As Long
Dim sErrMsg As String
On Error GoTo PayFailed
Set pay = vCmp.GetBusinessObject(oIncomingPayments)
'The following line enables partial payment
pay.Invoices.sumApplied = sumApplied
pay.cardCode = inv.cardCode
pay.cardname = inv.cardname
pay.BankAccount = inBankAccount
pay.docDate = paymentDate
pay.TaxDate = paymentDate
pay.TransferDate = paymentDate
pay.docCurrency = "EUR"
pay.ApplyVAT = tYES
pay.TransferAccount = strGLAccount
pay.TransferSum = sumApplied
pay.Invoices.docEntry = invoiceDocEntry
pay.Invoices.DocLine = 1
pay.Invoices.InvoiceType = it_Invoice
lRetCode = pay.Add
If lRetCode = 0 Then
CreateIncomingPaymentForInvoice = "" ' no error
Exit Function
End If
PayFailed:
vCmp.GetLastError lErrCode, sErrMsg
CreateIncomingPaymentForInvoice = "" & lErrCode & ", " & sErrMsg
End Function -
Unable to add AP Invoice using DTW
Unable to add AP Invoice using dtw. Customer is trying to upload negative values,Both in the line and header.
We get the following error :Invalid Total [OPDN.doctotal]Hi,
Depending on the SBO version, you cannot do negative AP invoices; as Gordon mentioned, you want to import those as AP credit memos. I believe it's in 8.8 that you can have negative AP/AR transactions.
Heather -
Importing Legacy A/R and A/P Invoices using DTW
Hi All,
I have in interesteing situation which I need some help for.
We started using SAP B1 begining of 2008. We used DTW to import the open A/P and A/R invoices from last year (legacy data). We didn't want the legacy data to have any impact on P&L, only to be able to receive and make payments for these invoices in B1. Therefore we used a service inovice without posting to the revenue and COS accounts. Since it is not possible to post directly to a control account I created a new G/L account for Accounts Payable and Accounts Receivable (I called them AP Migrated and AR Migrated), which is not a control account.
When preparing the DTW files, In the lines file I specfied the AccountCode as this AR and AP Migrated G/L accounts.
Since the BP to whom these invoices relate to, have the A/P and A/R control account defined in the BP master data, each of these migrated invoices posted to the AP Migrated account with the Offset Account being the original A/P Control Account.
Now that I am recording payments, the AP and AR accounts are being updated but not the AP and AR Migrated accounts. To illustrate: Let's suppose I migrated an AP invoice for $100. It posted to the AP Migrated account and the Offset Account being the AP Control Account. Now the balance on the AP Migrated Account shows $100, and the balance on the AP Control Account shows -$100. Now after I record the payment for this invoice the AP Control Account balance is $0, but the AP Migrated account still shows $100.
How can this be rectified, and is this the correct way of doing this?
Many thanks,
Myran>
Suda Sampath wrote:
> For anything to balance the debits and the credits must be equal. If your AR Migrated account total matches the AP Migrated account, then you can balance them through Internal reconciliation or JE.
>
> The best way to balance this opening balance account is only when you import all the balances not just AR & AP. If the AR and AP account do not balance, then the Internal Recon balacing account would be one of the P&L Accounts which would show in your P&L statement.
>
> Suda
Hi Suda,
Once again, many thanks for your good and speedy replies.
I am only importing the AR & AP transactions which I need to process payments in the new fiscal year. I am not importing all the other PL stuff.
Am I better off using then a seperate GL account for the AP and a seperate one for AR?
BR,
Myran -
Uploading A/R Service Invoices using DTW.
HI ALL,
I need to upload A/R service invoices for our customer using DTW. I tried using the templates Documents and Document Lines in Invoices for the same, but I am getting an error "Location Is Missing". Where do I put the location..?? I tried using the warehouse code column but the error persists.... am i using the correct templates..?? How do i Upload these Service Invoices...??
Thanks and Regards,
Pritesh.Hi Pritesh......
Sometimes in SAP Default templates Location code fields does not come. You have to create another template from DTW.
Just login to DTW and go to templates. Click on Maintain Interface and select the Sales and Choose AR invoice. There Click on Document_Lines first again go to Tools and click on create template and save it somewher.
In this template you get the location code field then put the location code here. And then try to upload.......
Regards,
Rahul -
Importing Sales orders and Invoices thru DTW
Hi every one,
I am facing a unique problem when using DTW to import sales orders and invoices through DTW.
I am using the two templates- Documents and Document Lines. But the imported Invoice or the sales order(In both cases) the dicount field in the row is taking a negetive discount value. Let me elaborate....
1. I am taking a BP which has been alloted a Particular pricelistcode in the BP Master.( say it be Purchase price).
2. Now In the Doc_lines Template I have put the value in the price column- (eg. Rs. 500).
3. Now the itemcode used in the template is already having a masters and the prices are also defined in SAP B1. Say the Purchase price defined for the item is Rs.400
4.When I am importing the order/nvoice then the discount field in the row automatically takes a value of -25%, the unit price has the value Rs.400 and the Total Field shows Rs.500.
( this Implies that the price I have suggested to Import i.e. Rs500 is some how not taken by the system. The system takes the price defined for the BP and then adjusts it with the price suggested by the user during import) So a negetive discount is taken.
On the other hand if the same procedure is followed for an item where the prices are not updated in the master data then there is no such problem. the unit price field reflects the price which is given in yhe template.
please suggest a way to get out of this problem.Hi Debraj,
Try the following..
In Admin > System init > Document Settings > General Tab ..Calculate the Row total using Unit price ....... leave this unchecked
Also, at the Document_lines template fill the discount column with 0
Suda -
Hi All
I want to know that while i'm importing Invoices through DTW of Excisable Items do i have to import corresponding payments also. if yes then what are corresponding templates for payments.
ThanksThanks for reply,
The scenario is : When i import A/P invoice through(DTW) tempate it show me error that "Can not create Standalone A/P Invoice and A/R Invoice" because we are using exciable item in A/P invoice template.
i just want to know the required template for incomming and outgoing excisable item .
Thanks -
Import Invoice via DTW - DocDate
Dear Experts,
I tried to import Invoice via DTW. I filled the 'DocDate' column in the oInvoice template with '20080102'. But when I checked the invoice from the A/R Invoice module the result was 20080504. Why DTW uses my system date instead of the date I put in 'docdate'? How to import this date correctly?
Thank you in advance.I am running SAP 2005a PL39
Header
RecordKey...DocDate..DocDueDate..TaxDate..DocNum..DocType..CardCode..DocCurrency
1..20080102..20080202..20080102 1..dDocument_Service..CPPON001..IDR
Lines
RecordKey..LineNum..AccountCode..VatGroup..Currency..PriceAfterVAT
1..0..41010..O10..IDR..1244496
Thank you -
Error while raising a invoice using VF01
Hi,
I am getting an error while raising a invoice using VF01.
Error as follows
RV_MESSAGE_UPDATE
Update was terminated
System ID.... TIP
Client....... 300
User..... user1
Transaction.. VF01
Update key... E66E6454075548D8922BAC091E81F0CB
Generated.... 18.07.2007, 18:57:38
Completed.... 18.07.2007, 18:57:38
Error info... TD 443: WRITE_FORM
Pls help
Points will be rewarded.
ThanksHi,
This is an ABAP short dump. If you go through the error log, there will be a section where in you can see > What caused the problem.
Try to analyze this log and you can find a solution. Probably, you can also check whether there is any OSS note with this error message.
Thanks
Murali. -
Calculate Withholding taxes for VEndor Invoices using ABAP program.
Hi All,
I have to upload Vendor Invoices using FB60/Fb01 tcodes. I am able to post the Invoices using FB01/Fb60
but I have to calculate extended withholding taxes also using this program for the Invoices.
Is it possible to upload vendor Invoices and calculate withholding taxes using Program?
If yes,
Does anyone has any idea how do you calculate extended withholding taxes using any BAPI's?
I have used these two BAPI's
BAPI_ACC_DOCUMENT_POST
BAPI_acc_invoice_receipt_post
they are working fine but without withholding tax.
This is a requirement for country India.
Regards,
SushilHi,
Imho, you need to get (meaning, extract into separate fields) the different supplier types from Table1 first. Your key for Table1 is the vendor no, which is also the key in Table2 (or the key for Table2 is Vendor no & Type).
For better performance, better select multiple/all required entries from Table1 instead of doing a select endselect.
Depending on the format of the vendortypes in Table1, put them in a new itab (for our purpose named Table1New where vendor no & type are the only 2 fields. For example, if the type length is fixed to 2 chars, or divided by space,... use your coding accordingly.
Next step is to select all vendor no's in Table2 which you have selected in Table1. If in Table2, the vendor no is the only key (and the all vendor types are filled in a single record), then loop check the vendor types from Table1New against the types in Table2.
If the key of Table2 is vendor no & vendor type, then do a read table for the key.
The logic in pseudo-code:
Select from Table1 into table. If you'd like to limit the selection size, add package size statement.
extract the vendor types in to itab Table1New.
Select the vendor & types from Table2 by using the for all entries option (better performance).
loop at Table1New
check in Table2:
if the unique key is vendor no: check all fields for the vendor type from Table1New
if the unique key combo is vendor no & type: check by using a read table.
If not found => add entry to Table2
endloop.
endselect Table1 (when using package size)
I guess the most difficult step is to extract the types from Table1 into separate fields, all the rest seems straight forward. Please keep in mind the itab type definitions for a better performance.
Good luck!
Best regards,
Zhou -
Importing os Open PO,GRPO and Invoice Through DTW
Hi All,
Please tell me what are the exact Templates and Mandatory fields for Open PO,GRPO and Invoice through DTW.
Kind Regards
silpaPurchase order - oPurchaseOrder DTW template
Documents template
-Record Key
- Vendor Code (CardCode)
Document Lines template
-Record Key
-Line Number
- Item Code
- Qty
- TaxCode
- Ware House
Goods Receipt Purchase Order - oPurchaseDeliveryNotes DTW template
Documents template
-Record Key
Vendor Code (CardCode)
Document Lines template
-Record Key
-Line Number
- Item Code
- Qty
- TaxCode
- Ware House
AP Invoice - oPurchaseInvoice DTW Template
Document template
-Record Key
- Vendor code
- Vendor ref no.
Document Lines template
-Record Key
-Line Number
- Item Code
- Qty
- Price
- Tax Code
Jeyakanthan -
How to create invoice using bapi base on delivery number with example
hi,
Pl give me one example to create invoice using bapi base on delivery number (PGI).Use this code
* Pass the delivery no to the FM to create the invoice
wa_vbsk-smart = u2018Fu2019.
wa_komfk-vbeln = nast-objky. u201CuF0DF-----delivery number
APPEND wa_komfk TO it_komfk.
CLEAR wa_komfk.
* To fill the message structure
* l_wa_error-vbeln_vl = nast-objky. " Delivery No.
* l_wa_error-fkart = wa_ztab-bil_doc_type." Billing Doc type
CALL FUNCTION 'RV_INVOICE_CREATE'
EXPORTING
* delivery_date = 0
invoice_date = v_date u201C<- date
* invoice_type = ' '
* pricing_date = 0
vbsk_i = wa_vbsk
with_posting = u2018Du2019
* select_date = 0
i_no_vblog = ' '
i_analyze_mode = ' '
id_utasy = ' '
id_utswl = ' '
id_utsnl = ' '
id_no_enqueue = ' '
id_new_cancellation = ' '
** IMPORTING
* VBSK_E =
* OD_BAD_DATA =
* DET_REBATE =
TABLES
xkomfk = it_komfk
xkomv = it_komv
xthead = it_thead
xvbfs = it_vbfs
xvbpa = it_vbpa
xvbrk = it_xvbrk
xvbrp = it_vbrp
xvbss = it_vbss
* XKOMFKGN =
* XKOMFKKO = -
Is there a way to remove additional BP Address in BP Master Data using DTW
Hi,
While updating the BP addresses using DTW it got duplicated. Is there a way to remove those Shipto/ Billto addresses which got duplicated. Individually it is possible to remove but using DTW can I create a template?
Thanks.
KishorYou need to first check if the address line actually exists. What you have got from Natalia is a guideline which you have to apply to your context.
Query the CRD1 table and check which line number you want to delete and if it really exists
The query below will give you cardcode, address type (billto or shipto), Address Name and LineNumber.
If you run this query wthin SBO, if you see a blank on the linenum column that means linenum 0.
SELECT T0.[CardCode] AS 'BP Code', T0.[AdresType] AS 'Address Type',
T0.[Address] AS 'Address Name', T0.[LineNum] AS 'Row Number'
FROM [dbo].[CRD1] T0 -
Clearing an Invoice using the DI
Hello
I am experiencing a problem when I generate a Journal Credit that is matched to a invoice using the DI but the balance on the invoice does not reduce or clear. I am using the following code:
' Generate the Excess Invoice/Document
oJournal = oDICompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)
oJournal.TaxDate = Now
oJournal.Memo = "Excess-" & oCustName.Value
oJournal.Reference = lDocNum
oJournal.Lines.AccountCode = sGLTradeAcc
oJournal.Lines.ContraAccount = oCustAcc.Value
oJournal.Lines.ShortName = oCustAcc.Value
oJournal.Lines.Debit = rExcAmt
oJournal.Lines.Credit = 0
oJournal.Lines.ReferenceDate1 = Now
oJournal.Lines.LineMemo = "Excess-" & oCustName.Value
oJournal.Lines.Reference1 = lDocNum
oJournal.Lines.Add()
oJournal.Lines.AccountCode = sGLTradeAcc
oJournal.Lines.TaxDate = Now
oJournal.Lines.ContraAccount = oInvParty.Value
oJournal.Lines.ShortName = oInvParty.Value
oJournal.Lines.Credit = rExcAmt
oJournal.Lines.Debit = 0
oJournal.Lines.ReferenceDate1 = Now
oJournal.Lines.LineMemo = "Excess-" & oCustName.Value
oJournal.Lines.Reference1 = lDocNum
oJournal.Lines.Add()
If (0 <> oJournal.Add()) Then
MsgBox("failed to add a journal entry")
Call oDICompany.GetLastError(nErr, ErrMsg)
If (0 <> nErr) Then
MsgBox("Found error:" + Str(nErr) + "," + ErrMsg)
End If
End If
oJournal = Nothing
Please help !
Regards
JohnHi John,
You can only "clear" (= "Close"?!) an Invoice by posting a Payment or a Credit Memo, if I am not totally wrong!
A Journal entry only has a connection to a document (through the Origin / Origin No. fields) when it is generated in the background of the document creation!
Sorry, Frank -
Printing Invoices using T VF03
Hi
I am trying to print invoices using Vf03. I can print most of the invoices (or the numbers that they gave me) but two.
When I enter the number for one of those two and tell it to print from the menu it says on the bottom "output could not be issues"
And if I double click on the error message, it opens up an window saying what might have cuassed the error, but not in detail.
This is what it says
"Output could not be issued
Message no. VF304
Diagnosis
An error occurred while output was being issued. It is possible, for example, that the form to be issued has not been activated or has an error. An error may also have arisen while the data to be issued was being edited.
Procedure
Check possible causes of the problem.
Now it prints othe invoices but these two. These are old invoices and needed to be reprinted.
Please help
Edited by: Anwarul Kabir on Sep 3, 2008 5:44 PMHI,
Please check the text elements in the smartform.
I mean there will be no error in the form but there may be some problems in the text elements. That too it will be while printing
For eg: if there are three text elements but you have only 2 Boxes to print it ( take it in Main window )
So if for some instances if all the three text elements are getting printed, then it will definitely give you an error like Output cannot be issued.
So you need to confirm these kind of errors also in the form. This will come into picture depending on the data what you are printing in the form.
So please check the othe data which is getting printed with the data which is not getting printed.
When ever " Output not issued ", Please check the text elements mostly. This means it is not finding proper place to print the data.
Some times in a row there will 2 columns. IF you pass 3 rows, then it will be definitely an error.
This is what i faced in 4.6 C Version.
Mostly In higer versions you can have the line and column number in the Text elements when you put them in Templates.
Regards,
Venkatesh
Maybe you are looking for
-
Different values on form and database
hi all i have a field which counts the number of rows on the form which is showing a different value (which is correct) and in the database it is showing a different value (incorrect) i have issued commit i am not understanding why this is happening
-
Does anybody know if it is possible to protect your PDF files from the following when sent to an external party: - Creating a copy of the PDF by using 'Save As' or other methods - Stopping the PDF from being Screen grabbed or screen captured - Emaili
-
Hello Why it is said that "Periodic lot sizing procedure is suitable for forecast based planning"? Also please tell what is use of Subsequent settlement indicator in vendor master record? Thanks & Regards P.S.P
-
Lost my ringtone after updating to 8.1.1 any one know how to retrieve them
hi updated to 8.1.1 and seemed to have lost my ringtone I bought on Monday
-
Rebuilding A3.0.3 library resulted in slideshow randomizing previous order!
I wI was having some odd picture ordering/duplication issues in a 500 picture slideshow. I decided to rebuild the library (restarting with option-cmd down). The slideshow was completely randomized (with the same Manual order setting as before. I thou