How to set local currency in AR/Invoice through DI API SAP B1?
Dear Expert,
I am using DI API to add AR/Invoice document, but I can't find how to set local currency for BP with foreign currency.
This my code snip :
oSO = oCompany.GetBusinessObject(BoObjectTypes.oInvoices)
oSO.DocDate = dtpPostDate.Value
oSO.DocDueDate = dtpDueDate.Value
oSO.TaxDate = dtpDocDate.Value
oSO.Series = cSeries
oSO.DocNum = txtNumber.Text
oSO.DocCurrency = doccur
oSO.CardCode = txtBP.Text
oSO.CardName = txtName.Text
oSO.ContactPersonCode = cntctCode
oSO.JournalMemo = txtRemarks.Text
For i = 0 To dgv.RowCount - 2
oSO.Lines.SetCurrentLine(i)
oSO.Lines.ItemCode = dgv.Item(0, i).Value
oSO.Lines.ItemDescription = dgv.Item(2, i).Value
oSO.Lines.Quantity = dgv.Item(4, i).Value
oSO.Lines.Price = dgv.Item(5, i).Value
oSO.Lines.DiscountPercent = dgv.Item(6, i).Value
oSO.Lines.TaxCode = dgv.Item(7, i).Value
oSO.Lines.LineTotal = dgv.Item(9, i).Value
oSO.Lines.Currency = doccur
oSO.Lines.Add()
Next
lRetCode = oSO.Add()
If lRetCode <> 0 Then
oCompany.GetLastError(lErrCode, sErrMsg)
MsgBox(sErrMsg, 16, "Attention")
Else
MsgBox("Operation completed successfully.", 64, "Information")
End If
When trying to Add, system show error message " Enter valid currency code [OINV.DocCur][Line:1], '$' "
I am not lucky after trying for a day , wish enlightenment from the experts here, Thank you.
My machine : SAP B1 9 PL 4
Best Regards,
Muh.Ulfah
Hi
In the other thread I suggested that you can add document using interface first because there is a possibility that B1 doesn't accept this currency code not because you set it improperly in your code but because of some other reason, for example this currency is not valid for this particular business partner. Despite the fact that this way you can eliminate other possible problems you can also use DI to save an existing document as XML and check what is the actual currency code that B1 itself placed in the document lines object.
Afterwards you can again try to add document using DI.
btw
check this thread:
How to set local currency in sales order for BP with foreign currency through DI?
Kind regards,
Radek
Similar Messages
-
How to clear local currency balance in foreign currency account
hi,
i have a bank account in EUR but local currency is USD.
in the account balance, it has 0 in EUR but has balance in USD. i need to clear the amount in USD.
i tried f-02 to post EUR 0 and balance which in USD i enter in amount in local currency field but when simulate, the system converts the USD amount for EUR and EUR with an amount.
may i know how to clear local currency balance for a foreign currency bank account which has ZERO balance.
thanksDear ,
can u give me the details
what is the invoice transaction (Entry
how u clear that transaction (entry)
what is the difference values.
Regards
radha -
Help Needed: Enable local currency for Customer Invoicing
We are needing to enable local currency for customer invoicing on a project coming very soon. Does anyone have any information on the best way to get this done and/or documentation to look over? Any help would be greatly appreciated!!
Thank You in Advance!
Jay Esparza
SAP Functional ConsultantHi
Local currency automatically gets activated as you set your company code currency.
No need to enable separately for customer invoicing
Plz assign points if it is helpful.
Regards
Tapan -
Is it possible to set Local Currency - INR in SAP B1 8.81
Hi,
In SAP B1 Version 8.81 , i have taken Type -Chart of Accounts - as Global
and Localization - United Kingdom And just tell me is it possible to set
Local Currency - INR in SAP B1 8.81Hi,
You can set any currency till the time there is no transactions in the database.
Please do remember that the on selection of the Localization UK, the legal aspects and the tax law pertaining to the UK will be applicable and also you have to check for the exchange rate calculation based on settings (direct/indirect).
Also, taking INR as LC will lead to INR being the main currency and hence the reports generation and reconciliation of all the Multi-Currency will be performed in the Lead Currency.
All the Best.
Kind Regards,
Jitin
SAP Business One Forum Team -
How to set default currency and Country in R12 financial modules
Hi all,
How to set default currency and Country in R12 financial modules (AR,AP,GL,FA,CE) becuase I found some default settings are shown "USD" & "United States" such as create AR Customer, the Country is shown the default "United States"....
Can anybody advise ?
Thanks & Regards,Hi,
Change the below profile for the user to a territory different than the US :
In System Administrator, navigate to Profiles -> System.
Select Site, Application, and Responsibility.
Profile options:
Default Country
HZ: Reference Territory
ICX: Territory
Regards,
Raju. -
Setting Local Currency as default display in all accounting document displa
Hi,
I have a Requirement where I am looking to set Local Currency as default display in all accounting document display screen.
Can you please help me here.Hi,
I already followed this but this is not working. I still getting the FB03 figures by default in the Document Currency only and I have to Click the Display Currency Button to see the Figures in the Local Currency.
Is there is any way by which the Document display in Local Currency only and I don't have to press Display Currency Button to see them in the Local Currency. -
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 -
Creating A/R Reserve Invoice through DI API
Hello everyone,
I am trying to create a A/R Reserve invoice through DI API, for that i have to set invoice documnet property is:
oInvoice.WareHouseUpdateType = SAPbobsCOM.BoDocWhsUpdateTypes.dwh_CustomerOrders;
but it throws a exception -
The object does not support this method, Or method not implemented yet.
please anyone have sample code for add A/R reserve invoice or any solution for that, provide me.
Thanks,
NikhilHi,
The Reserve Invoice is coming in the 2007 Version.
See here:
/people/community.user/blog/2007/01/24/whats-new-in-sdk-2007-a
Kind Regards,
Owen -
Withholding TAX - AP INVOICE through DI API
Hi Experts,
I am posting AP INVOICE through DI API. When am posting WITHHOLDING TAX for AP INVOICE am getting error like "Total taxable amount of all rows exceeds the base amount [pch5.taxbleamt]". My code
APINVOICE.WithholdingTaxData.WTCode = ORec1.Fields.Item("WTCode").Value
APINVOICE.WithholdingTaxData.WTAmount = ORec1.Fields.Item("WTAmnt").Value
APINVOICE.WithholdingTaxData.Add()
Please help me to solve this issue.
Thanks in advance,
Jeevan.Hi
The below code can be used to add WT tax, But ensure that BP having the WTCode mapped.
APINVOICE.WithholdingTaxData.WTCode = "TC-2"
APINVOICE.WithholdingTaxData.Add()
TC-2 is the WTCode mapped to Vendor i chose to add A/P invoice thro DI API.
Regards,
Tamizh. -
How to set local path for load library
Hi,
How do i set local path for native dll as i dont want to set the path in the environment variable.
can i do like this
System.loadLibrary("c:\abc");
ThanksI believe that System.load() does exactly the same thing, but accepts fully qualified filenames. So give that a try.
Failing that.... maybe you can add -Djava.library.path=
to your command line to explicitely override the path set ?
regards,
Owen -
How to set local help as default in ID CS5?
Just received a replacement laptop w/CS5 installed & cannot figure out how to disable/turn off community help...I want it to default to local help whether connected to the net or not.
Thanks
Update Info:
Or, if setting local help as default is not possible, what about turning off or disabling internet sensing by the program? This will be used in the field and sometimes slow connections are the only thing available. Testing it on a dial-up connection, it just set there trying to access community help without allowing access to the local help until the dial-up connection was closed.Thanks Peter...I'd already found that, but when I first found it, the last section was not in that screen and in playing around, I found that Air was not installed proprly, uninstalled & re-installed that & that last section with the 2 ticks showed up & selected local help.
Next, I get a message that there is no PDF reader installed...but a working copy of AR7 is & it works...I'm thinking that CS5 should be uninstalled & re-installed, however, that will have to wait until I can get the laptop back to the company we're working for.
The community help window indicated the local help file to be 40Meg, but a search found no PDF that large on this machine.
Is this PDF available for direct download & I'll just access it outside of the help screen if necessary.
Laptop/program owner is in Canada, I'm visiting in Georgia & have an overseas flight on Wednesday... -
How to set Password change in Web templates through WEB DYNPRO
Hello All
Before dropping my question i will explain you what was the Real scenario, i am using WAD 3.50 Version and server is BW 3.0B.we are not using portal, and Enduser will view the reports in the browser through the WAD execute Http link.
Question.
whenever the enduser uses Http link of web template in the browser, he will connect through VPN and they can able view the reports. the question is That Some system Enduser won't have SAPGUI in their system so they wants to change the password because they won't know even if it is expire. is it possble to set password change system through WEBDYNPRO ABAP in the WEB Templates
Please Help me how to set Change Password in the browser for the WAD Application.To do this you will have to use either make use of portal or BSP application or Dynpro..
It is not possible for the user to change the password just from the web query -
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 -
How to do Local setup for Retail Invoice matching Application using OC4J
Hello ,
I am trying to configure Retail invoice matching application to local,Server i am using is Oracle OC4J Standalone Server 10.1.3.n at localhost..
I have imported the application code to eclipse and trying to add oc4j server to my app, but its giving me error saying "*Server Oracle OC4J Standalone Server 10.1.3.n at localhost failed to start*."
I am not getting the issue. need to resolve it ASAP.
Any help would be grateful.
Thanks in Advance
Edited by: Akash11 on Oct 2, 2012 10:32 PMIf you can't set up JBoss on your local machine, then you can create a simple HTTP server that imitates the JBoss server at least with respect to the HTTP connections that you'd be sending to it.
For example, on a project I'm working on recently, I set up a HTTP server using Python (the standard library comes with a simple HTTP server) with some extensions to mimic our Java-based server. It's actually pretty simple. Python's great for that sort of thing.
But if you don't want to use Python you could, set up Apache, and extend it with some CGI scripts, etc. Just use whatever is available to you that's quick and extensible and which hopefully you already know how to use. -
How to set local file copy buffer size?
Is there any sysctl parameter or any other mechanism to set or change file copy buffer sizes? I'm backing up a huge number of files to a local hard drive connected by firewire, and I'd like to play with file copy buffer sizes for the best performance. The machine used is a new macbook pro running OS-X 10.6.7. Any ideas?
Here is a bash script that uses the dd command to copy a file. Use the -b option to set the file size.
example:
/Users/mac/config/forumcopy.command -vb 4096 /Applications\ \(Mac\ OS\ 9\)/Civilization\ II/Civ\ II\ Map\ Editor /Applications\ \(Mac\ OS\ 9\)/Civilization\ II/Civ\ II\ Map\ Editorv8
I haven't tested this a lot.
Of course, I haven't figured out how best to post code. Trying HTML mode. Using the <pre> tag.
#!/bin/bash
# macteracopy [ -b blocksize ] [-v ] [-V ] input_file output_file
# Purpose of this script:
# Copy a file with optional block size. Default size of 4096.
# Notes:
# chmod u+x macteracopy
# You may have to restart the finder to notice a customized file icon.
# Copyright 2010 rccharles
# GNU General Public License
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# For a copy of the GNU General Public License see
# <http://www.gnu.org/licenses/>.
# debug info
export PS4='+(${BASH_SOURCE}:${LINENO}):'
## not in the tiger version of bash ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
declare -x verbose="No" \
veryVerbose="No"
blockSize=4096
# Check for command-line options used when calling the script
if [ $# -gt 0 ] ; then
while getopts "b:vV" Option ; do
case "${Option}" in
b ) blockSize=$OPTARG
v ) verbose="Yes"
V ) veryVerbose="Yes"
\? ) echo 'usage macteracopy -b blocksize -V input_file output_file'
* ) echo "Unknown argument among arguments $* on command line."
exit 6
esac
done
fi
# We're done with switches / options from the command line
shift $(($OPTIND - 1))
[ "${veryVerbose}" = "Yes" ] \
&& set -x
inputFile="${1}"
outputFile="${2}"
[ "${verbose}" = "Yes" ] \
&& echo \
&& echo "$0 script revised $(GetFileInfo -m $0)" \
&& echo
[ ! -f "${inputFile}" ] && echo "File not found. ${inputFile}" && exit 4
[ -d "${inputFile}" ] \
&& echo "Directories are not supported, yet. ${inputFile}" \
&& exit 4
[ "${veryVerbose}" = "Yes" ] \
&& ulimit -a \
&& df \
&& echo
if [ "${verbose}" = "Yes" ] ; then
dd bs=${blockSize} if="${inputFile}" of="${outputFile}"
dd bs=${blockSize} if="${inputFile}/rsrc" of="${outputFile}/rsrc"
else
dd bs=${blockSize} if="${inputFile}" of="${outputFile}"
dd bs=${blockSize} if="${inputFile}/rsrc" of="${outputFile}/rsrc"
} 2>/dev/null
fi
[ "${verbose}" = "Yes" ] \
&& echo \
&& ls -l "${inputFile}" \
&& ls -l "${inputFile}"/rsrc \
&& GetFileInfo "${inputFile}" \
&& ls -l "${outputFile}" \
&& ls -l "${outputFile}"/rsrc \
&& GetFileInfo "${outputFile}" \
&& echo
SetFile -a $(GetFileInfo -a "${inputFile}" ) \
-c $(GetFileInfo -c "${inputFile}" | sed 's/"// g' ) \
-t $(GetFileInfo -t "${inputFile}" | sed 's/"// g' ) \
"${outputFile}"
[ "${verbose}" = "Yes" ] \
&& echo "after SetFile" \
&& GetFileInfo "${outputFile}"
Maybe you are looking for
-
Is database Engine necessary or should I use one in my Java application?
I am writing a program which similar to a telephone directory kind of application. I have a database and I am thinking to use JDBC with mySQL for the database. My question is that later when this program is ready and I am going to burn it to CD, what
-
Can't get past align screen step after hard reset
I have a palm 755 and I performed a hard reset to restore the default settings on the phone to access some features I couldn't figure out and my touch screen won't work now. The first step says to touch the screen to begin setting up the phone, so I
-
The folder path 'c drive' contains an invalid character
is what my pc says when i try to open itunes. it immediately stops the installation and says its a fatal error during installation. this just occurred & i just updated my itunes. i recently put all my music on an external hard drive - i tried to down
-
Attaching Explorer File Name in Organizer View
In PS5 is there any way to get the explorer file name to appear with each thumbnail in organizer view ?
-
after i update my ipad 2(wifi+3g/64g) to ios 5.0.1..everything works ok except 3g can not connect to internet.. in the top of my ipad screen it show 3g sign..before update the 3g was working ok