How to Close A/P Invoice in SAP B1 9.0 using SDK without creating an outgoing payment
Hi Team;
I have an issue about of how to close an A\P invoice that has two different tax definitions because I have recorded in a sap Business One A\P Invoice that Have Withholding tax (3%) and have Value Added Tax (18%) at once but when doing Payment of those invoices I did it separately without linking A\P invoice with payment so that I can do a journal entry that credit the VAT Account and debit the Supplier to record that VAT while doing reconciliation I get I message ‘’ Use the same payment category withholding tax code for all transactions during reconciliation [Message 3821-32]”” I need your help if there is a way that I can close (Changing the status of those invoices because they still open ) invoices without doing A reversal Transaction that affect the accounting report in SDK.
Please anyone can help me.
Hi pallavi p,
That's good but as I said above when I add the reference of UI API Version 9.0 in the project which has the system form or user form of sap b1 it exactly gives errors in menu.vb of the project.
So let me give you the way you can try.
1. Open new project/ visual basic/ sap business one/ sap business one add-on project. and save it any where
2. Right click on your project
3. Add new item
4. Sap Business One
5. System form (Employee master data) or user form
6. Add
And then if your form is opened
7. Go to add the reference of UI API Version 9.0
8. Check errors found in menu.vb (or in OutPut)
So if it's possible try to solve that problem.
Please anyone can help me.
Similar Messages
-
A/R Invoice - Create two outgoing payments
Hi,
We have issue here regading A/R Invoice Payment.
The A/R Invoice is $100, the payment is $200 with Interact card (Direct account payment) with $100 cash return.
The present does not work in B1; but will be developed in future release.
The present can be solved according to Peter Dominik, B1 Solution Management as follow:
Create two outgoing payments:
- payment to vendor (payment for his bill)
- payment on account reposting balance from Bank Account to some
PettyCash account (cash
withdrawal from bank account)
Now I need to source code for the present solution; because all SDK is 1 A/R Invoice and 1 Payment. Now we have to do 2 outgoing payments. We need your help for this solution.
Please find the code for one transaction below; we need 2 payment transactions.
Thank you,
Rune
oPayments = (SAPbobsCOM.Payments)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments);
oPayments.Invoices.DiscountPercent = 0;
oPayments.Invoices.DocEntry = vmp_DocEntry_Int32;
oPayments.Invoices.DocLine = 0;
oPayments.Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_Invoice;//13;
oPayments.Invoices.SumApplied = vmp_Amount_double;
oPayments.Invoices.Add();
oPayments.CardCode = vmp_CardCode_string;
oPayments.DocDate = DateTime.Now;
oPayments.JournalRemarks = "Incoming - Payment Bank Transfer";
oPayments.TaxDate = DateTime.Now;
oPayments.TransferAccount = vmp_BankAccount_string;// "_SYS00000000343";
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)hi Vitor,
I need a code sample for Peter's suggestion using the code I provided:
Create two outgoing payments:
- payment to vendor (payment for his bill)
- payment on account reposting balance from Bank Account to some
PettyCash account (cash
withdrawal from bank account)
Thank you,
Rune -
How to know whether SAP license has expired using SDK
Hello ,
How to get information whether the system SAP License has expired or not .So that if expired then the addon will not work .
By using which function i cen get that information .
Thanks,
AmitAmit,
If you are looking to find this information out via code ... you should review this blog ...
/people/lisa.mulchinock/blog/2009/05/08/sap-business-one-license-api
Other than via code, I believe you would get a warning when the user tried to log in that the license expired.
Eddy -
Create an AP Invoice based on a Purchase Order using SDK
Hi,
What are the steps to create an AP Invoice based on a Purchase Order using DI API?
Which methods of which objects to use and what parameters to pass?
Thanks.Hi Rajesh,
Here is a sample to create an Invoice based on a Sales Order. The same way you can change as per your requirement:
SAPbobsCOM.Documents oInvoice = default(SAPbobsCOM.Documents);
oInvoice = (SAPbobsCOM.Documents)SBO_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices);
oInvoice.CardCode = "C000003";
oInvoice.DocDueDate = DateAndTime.Now;
oInvoice.Lines.BaseType = Convert.ToInt32(SAPbobsCOM.BoObjectTypes.oOrders);
oInvoice.Lines.BaseEntry = Convert.ToInt32(3616);
oInvoice.Lines.BaseLine = 1;
oInvoice.Lines.Quantity = 3;
oInvoice.Lines.Add();
oInvoice.Lines.BaseType = Convert.ToInt32(SAPbobsCOM.BoObjectTypes.oOrders);
oInvoice.Lines.BaseEntry = Convert.ToInt32(3616);
oInvoice.Lines.BaseLine = 2;
int kth = 0;
kth = oInvoice.Add();
if (kth != 0)
int irrcode;
string errmsg;
SBO_Company.GetLastError(out irrcode, out errmsg);
Program.oMainSAPDI.ShowMessage(errmsg, BoStatusBarMessageType.smt_Error);
The main thing to remember is Base Type, Based Entry and Base Line.
Hope it helps.
Thanks & Regards
Ankit Chauhan -
i have a brand new macair and am a novice to apple--how do i close off a webpage similar to using the top right hand X on my old PC ??
Hover over the tab's corner and you should see this:
If you do not see the tab bar, go to View > Show Tab Bar
The key combination command + w will also close a tab. -
Hello,
I want pass value in STATUS and Reason for rejection according to requirement when i am creating multiple lead using BAPI_LEAD_CREATEMULTI. Please help me how can i pass value. Please give some sample code that in which table i have to pass values and please also tell me INPUT_FIELDS values. Please help me
Regards,
Kshitij RathoreHello,
Please help me for solve this problem. I am trying to solve problem from last 4 days but i didn't get any solution.
Regards,
Kshitij Rathore -
How can I transfer music from my iPhone to my computer using itunes without syncing?
Got a bit of a dilemma here... I had all my music backed up on my laptop and I usually transferred files using iTunes from there but it got a virus so I had wipe the whole thing out. I lost everything I had there but I had iTunes on my computer, I just didn't have all the files that were on my iPhone on that computer, only on my laptop. Now I want to add music onto my iPhone from my computer but I'll have to sync it, which means loosing half of my music. Is there anyway I can transfer music onto the device without loosing half of the data or is there any way I can transfer the music from iTunes to my computer so that when I sync it, all the music stays there? And if I need a third party transfer tool, which one is the most reliable to avoid viruses again?
Hello ZabeM
Anything that was purchased can be transferred to your new iTunes library by following the steps in the article below. You can also look at your purchased history and download the tracks to your computer.
iTunes Store: Transferring purchases from your iOS device or iPod to a computer
http://support.apple.com/kb/ht1848
Download past purchases
http://support.apple.com/kb/ht2519
Regards,
-Norm G. -
How can I select 5-star photos in one catalog and use them to create a new catalog
I've been using Lightroom since LR1. I now have several LR 5.5 catalogs generally organized by year and camera. I want to create a new catalog which will contain my best from each catalog. BUT, I don't want to remove the photos from their "home" catalog. The photos will continue to reside in both their original catalog and in the new "Portfolio" catalog. The easiest way to approach this is to filter photos in catalog "A" by rating, select all 5-star photos and create a new catalog containing just the selection. I don't want to export or remove them from their catalog or move them on disk. I want them to appear in BOTH catalogs. Since Lightroom is built on a database that merely points to image files, it seems like this should be possible.
I realize I can create an empty catalog and select File->Import from Another Catalog... , then locate the photos one at a time by name and location clicking the import checkbox - tedious is an understatement when you have several 10's of thousands of photos.
Any ideas?jimfeet wrote:
Yes, that's an option I've considered. But as with any database, size is inversely proportional to speed - larger database equals slower performance. LR 5 is much better than earlier versions in this regard but when you reach 100,000 images you can feel it.
This is incorrect. I accept that you think the database is getting slower, but the database (and really all databases) are designed to work pretty much the same regardless of the number of records, except for perhaps searching through the entire catalog. We have seen in this forum people who are now editing larger RAW files than a few years ago, they see it is slower, and decide it is the size of the database, rather than the size of their photos.
What aspects of Lightroom are slow? If it's scrolling and displaying the previews and searching, then it might be the database. If its displaying images in the Develop module, it is NOT the database at all.
Have you taken steps to improve the performance of the database, such as Optimizing it regularly? have you tried these performance tips: FAQ: Experiencing Performance related problems in Lightroom? -
How do I get the Weblogic system name in WLS 6.1 sp2 without creating T3Client
Hi Folks,
In Weblogic Server 5.1, I get the weblogic.system.name using the following code:
T3ServicesDef t3services = T3Services.getT3Services();
String systemName t3services.config().getProperty("weblogic.system.name");
What is the counterpart for Weblogic Server 6.1?
Thanks in advance for your help.
BillThe class doesn't seem to be documented in the normal documentation, but
you can get an overview of the methods by executing
javap weblogic.management.Admin
with weblogic.jar in your classpath.
Hope that helps,
Nils
Bill Lam wrote:
>
Jim,
Can you tell me where I can find documentation for
weblogic.management.Admin?
Thank you.
Bill
"Bill Lam" <[email protected]> wrote:
Jim,
Thanks. I appreciate your help.
Bill
Jim Brown <[email protected]> wrote:
Bill:
The weblogic.server.name property in WLS 5.1 has been replaced by the
property weblogic.Name in WLS 6.X. Although it is possible to retrieve
this value by calling System.getProperty(), I would encourage you to
use
the new JMX services which have replaced our proprietary management
interfaces (T3ServicesDef, et. al.). For example, you could write aJMX
client to read the various properties of ServerMBean. To get started,
here is the link to our WebLogic JMX documentation:
Programming WebLogic JMX Services
<http://e-docs.bea.com/wls/docs61/jmx/index.html>
Please post any follow-up questions about JMX to the
weblogic.developer.interest.management.general_and_jmx newsgroup.
Besides writing a JMX client, you can also take advantage of the
following short-cut for retrieving the server name. The remaining code
for this example can be found in your WebLogic Server samples directory
under: ./wlserver6.1/samples/examples/cluster/rmi/HelloClusterImpl.java
private String getLocation(){
String toReturn = null;
try{
toReturn = weblogic.management.Admin.getServerName();
}catch(Exception e){
System.out.println("HelloClusterImpl failed getLocation");
e.printStackTrace();
if(toReturn==null){
return "";
}else{
return toReturn;
Regards,
Jim Brown
Bill Lam wrote:
Hi Folks,
In Weblogic Server 5.1, I get the weblogic.system.name using the followingcode:
T3ServicesDef t3services = T3Services.getT3Services();
String systemName t3services.config().getProperty("weblogic.system.name");
What is the counterpart for Weblogic Server 6.1?
Thanks in advance for your help.
Bill--
Jim Brown
Developer Relations Engineer
BEA Support
============================
[email protected] -
How can I use sdk to create a dll?
I would like to extract text with it's coordinates using Acrobat SDK (I think I can use PDEdit API).
Can I use my plug-in like a dll?
I want to use it from the external application.
Thank you.
TanyaHow can I use java to create a shortcut on a surfers
desktop?
A surfer clicks on a link and it creates a shortcut
back to a certain website and/or a shortcut is created
on load
thanks
You have to sign your applet to create files... and thank god too. I hate it when web pages add shiite to my desktop. -
How to customise "Excise challan *** Commercial Invoice" in SAP
How to customise "Excise challan *** Commercial Invoice" in SAP? Explain in detail
Hi Gopala,
Please Create 2 differnet Billing documents types for Commercial Invoice and Excise Chanllan and Ensure that Copy controls to be maintianed for the both the Billing types.
Hope this Clarifies your Doubts and Please Reward If Really Helpful,
Thanks and Regards,
Sateesh.Kandula -
HI,
I open previous thread and i don't get answer ,
i wont to close it how i do that?
RegardsBy searching this forum, I found the thread below which explains on how to close threads.
https://forums.sdn.sap.com/click.jspa?searchID=16410079&messageID=5867611 -
How to close appstore and camera ?
app store and camera always running when i use system monitor even i close from the background ?
how to close them from processes and what is the processes that usually work in system monitor ??
it was mail also running but after i delete the iclould account it gone ...
plz help ...Thank you for that link. I bought two tutorial programs for Iphone 4 and that's where I saw that it was adviced to close Safari and other Apps entirely as they were running in the background and in doing so were wearing down on the battery.
As far as I understand the link you went me Safari and other Apps are kind of closed once I have clicked the Home button so that should be OK.
However, when I opened a radio program it did not seem to be possible for me to close it down even though I was using the Home button. The music kept playing which of course many times would be great however I would like to know how to close a program when I do not want to use it any more. -
How to close Safari and Apps entirely?
I recently got Iphone 4 and have been reading through the manual where I noticed that Safari and other programs are still running in the background if I do not close the programs entirely. I thought all programs were closed once I clicked the 'home' button and opened another program.
I am not sure exactly how to close Safari or the App programs so I would be grateful to learn about how to do that.
Thank you.Thank you for that link. I bought two tutorial programs for Iphone 4 and that's where I saw that it was adviced to close Safari and other Apps entirely as they were running in the background and in doing so were wearing down on the battery.
As far as I understand the link you went me Safari and other Apps are kind of closed once I have clicked the Home button so that should be OK.
However, when I opened a radio program it did not seem to be possible for me to close it down even though I was using the Home button. The music kept playing which of course many times would be great however I would like to know how to close a program when I do not want to use it any more. -
How to close my skype account.
Can anyone tell me how to close my account with skype as I do not use it?
You can follow the guidance in this FAQ to close out your account. https://support.skype.com/en/faq/FA142
Maybe you are looking for
-
iPod won't Sync to computer, says 74gb out of 80gb are used -but there's nothing on ipod. How do I restore? Is anyone else familiar with this problem? It had over 25 movies, thousands of songs & hundreds of pictures, and it seems like they're still o
-
How to change emailadress which apple use to sent verification on chancing password
I like to change my password of my iCloudaccount. I've been logged in with mine Apple ID and selected 'Change password' Got 2 controle questions which I do not know the answers of. When forgotten the password Apple sent a safetyinformation to a email
-
i have set the window size to be w=590 h=333 the size of tab canvas is w=580 h=328 the problem is that when i run forms, the database objects that reside after 350( x axis) gives an error that objects falls out of canvas. how can i resolve this probl
-
Photos and thumbnails not in synch
I have deleted photos, but their thumbnail still shows up. Also, other deleted photos show up but there is no thumbnail under "Event" for the event. It seems that deleted photos are not in synch with their thumbnails. is there a way to resynchronize
-
Connect to unathenticated email server?
How do you connect an iphone 4s to an unathenticated email server? iphone defaults require some form of authentication (password, etc), but my POP3 email host does not use authentication on their server. Currently no work email on my new work phone