How to create Invoice using SDK?
Hi Friends,
I m creating invoice using SDK functions..
Company comp = new Company();
comp.Server = "CSNSYS026";
comp.CompanyDB = "SBODemo_US";
comp.UserName = "manager";
comp.Password = "manager";
comp.Connect();
comp.XmlExportType = SAPbobsCOM.BoXmlExportTypes.xet_NodesAsProperties;
SAPbobsCOM.SBObob oSBObob = (SBObob)comp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoBridge);
Documents inv = (Documents)comp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices);
inv.ManualNumber = "20000";
inv.DocDate = DateTime.Now;
inv.DocDueDate = DateTime.Now;
inv.CardCode = "C40001";
inv.CardName = "EarthshakerCorp.";
inv.DocCurrency = "USD";
inv.Lines.ItemCode = "A00001";
inv.Lines.Quantity = 10;
inv.Lines.Price = 100;
inv.DocTotal = 1000;
int i = inv.Add();
MessageBox.Show("Invoice created "+i);
<b>While i execute the above c# code,Invoice din't created,Wht's missing in the above code</b>..
Thanks in Advance
regards
Sooriyakala.P
Ho Sooriya,
what is the returncode from inv.add?
If you call comp.getLastErrorDescription, you get the errordescription
you should also set handwritten to true
Regards
Ad
Similar Messages
-
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 = -
How to create Invoice list??
Hi guyz,
could you please tell me how to create invoice list, i have created sales order, done the delivery,created billing.
appreciate immediate reply.
Thanks.
Mohammed.Hi Mohammed,
To create an invoice list:
Select the Billing screen.
Depending on the number of billing documents that you want to include, you can choose one of two ways to create the invoice list. You can either
· Select Invoice list Create and enter each billing document separately
· Create a list for all billing documents that are relevant for the invoice list. You can then process the work list for invoice lists.
This procedure shows you how to create the work list.
Select Invoice list Edit work list.
Enter your selection criteria and press ENTER.
The system displays a list of billing documents that meet your selection criteria.
Select the billing documents that you want to include in the invoice list and select Invoice list Save.
You can also simulate creation of invoice lists via the work list for invoice lists. This is useful as a test option. The simulation also allows you to carry out a split analysis, which shows you why billing documents are written to different invoice lists (e.g. due to different payers).
Prerequisites
You can only process invoice lists if the following prerequisite data is defined by your system administrator in Customizing for Sales:
Condition type RL00 (factoring discount) must be maintained and, if required, also the condition type MW15.
An invoice list type must be assigned to each billing type that you want to process in invoice lists. The standard version of the SAP R/3 System includes two types of invoice lists: LR for invoices and debit memos, LG for credit memos.
Copying requirements must be defined (for example, the payer, terms of payment and other fields that must be identical in the documents to be included in the invoice list)
In addition, before you process an invoice list, you must maintain the following master data:
A customer calendar must be defined, specifying the time intervals or dates on which invoice lists are to be processed.
The customer calendar must be entered in the Billing Sales Area view of the customer master record.
Pricing condition records for the condition type RL00 and, if necessary, (e.g. in Germany) the condition type MW15 must be maintained.
Output condition records for condition types LR00 and RD01 must be created.
Hope with this info you can do it. Pl. reward if it helps.
Thanks & Regards
Sadhu Kishore -
when creating invoice using the API AR_INVOICE_AP_PUB.Create_Single_invoice Am Getting the below Error:
Transaction type is invalid with current transaction date
invalid transaction type
either an inventory item description must be provided
Kindly help me hereHi Team,
I tried creating the invoice and I got the above errors, however, when updated the batch source ID I am now getting this following error only, i am just left with the following Error only
Either an inventory item or description must be provided.
Please help me on this. -
How to create and use mutable array of UInt8
Hello!
If I get it right, UInt8 *buffer, buffer - is a pointer to a start of array?
Then how to create and use mutable array of UInt8 pointers?
The main target is a creation of the module that will store some byte array requests and will send all of them at the propriate moment.I try
- (void) scheduleRequest:(UInt8 *)request {
if (!scheduledRequests) scheduledRequests = [[NSMutableArray array] retain];
[scheduledRequests addObject:request];
But get warning:"passing argument 1 of 'addObject:' from incompatible pointer type" -
HOW TO CREATE and USE EVENTS IN WORKFLOWS .
HOW TO CREATE and USE EVENTS IN WORKFLOWS with the help of classes.
What i am doing is..
open se24
event tab->event name->parameters
method tab->method name->event handler->copy parameters
interface tab->if_workflow->enter
tell me what else to do step by step
Another important thing is that HOW to use these class events to trigger the workflows.
REPLY ASAP
THXS IN ADVANCEHi,
Pl. see this blog...
Raising ABAP OO events for workflow
Regards,
JOy. -
how to Create and use of Coherence servers in weblogic serevr 11g (10.3.6)?
See the below discussion
How to create and use Webservice controls using WSDL in weblogic portal10.3
Thanks,
Venkat Sarvabatla -
How to create and use dynamic queue in JMS
Plz tell me how to create and use a dynamic queue in jms and can reciever file lookup it as it lookup any server configurred queue(written in the server).
Hi,
We can use Azure File services to do this, for more information, please have a look at this article:
http://blogs.msdn.com/b/windowsazurestorage/archive/2014/05/12/introducing-microsoft-azure-file-service.aspx. The Azure File service exposes file shares using the standard SMB 2.1 protocol. Applications running in Azure can now easily share files between
VMs using standard and familiar file system APIs like ReadFile and WriteFile.
Best Regards,
Jambor
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Requesting all to help me how to create lsmw using idoc method
hi
thanx for ur answer
requesting every body in the forum to help me how to create lsmw using idoc method.
regards,
balajiHi Balaji,
LSMW using IDOC is similar to using flat file method. Here you are getting data from IDOC container and mapping data with Idoc segments insted of flatfile column.
Hope this is what you are looking for. If helpful then dont forget to reward me for that
Darshan -
How to create database using shell script
hai
how to create database using shell scriptThe documentation details the steps to create a database manually. Another option is to use DBCA to create the scripts. DBCA will give you a complete set of scripts that will create a database.
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/create.htm#sthref220 -
How to create Invoice Approval in oracle Payable R12 ?
Hi All..
Can any one let me know how to create Invoice Approval in oracle payable R12?pl.go thru following link.
http://oracleerpfunctional.blogspot.in/2012/08/ap-invoice-approval-workflow-setup-and.html
http://oracleerpfunctional.blogspot.in/2012/08/oracle-approvals-management-ame-setup.html
http://www.scribd.com/doc/101107120/Oracle-Payables
HTH
Sanjay -
How to create indexes using CREATE TABLE statement
Hi,
Can anyone please tell me how to create indexes using CREATE TABLE staement? This point is part SQL Expert exam (1Z0-047) and please guide me to use which books for this particular exam.
Thanks in advance.Can anyone please tell me how to create indexes using CREATE TABLE staement?e.g. creating a primary key or a unique constraint will generate indexes along with the create table syntax:
SQL> create table t (a integer primary key, b integer unique)
Table created.
SQL> select index_name, index_type, uniqueness
from user_indexes
where table_name = 'T'
INDEX_NAME INDEX_TYPE UNIQUENES
SYS_C0016575 NORMAL UNIQUE
SYS_C0016574 NORMAL UNIQUE
2 rows selected. -
HOW TO CREATE INVOICES AND BOOK RECEIPTS FOR THE SERVICE CUSTOMERS
whenever a customer approaches our Customer Service Officer he create a
customer account from "Contact Centre" but he does not check "Create account"
checkbox so the client is not created as customer in Oracle Receivables.
How to create invoices and receipts for service customers whose reciprocal
accounts are not created in Oracle Receivables?
Regards
Ahmad Bilal
Message was edited by:
user531507I am on EP7.0 with NWDS 7.0 SP8, i am getting the exact same error though my Webservices are hosted on PI 7.1 ESR. Where to define the logical destinations of the WSDLs.
-
Error in creating JE using SDK
I am using B1 2004 B and trying to create JE using SDk(vb6).I am getting the following error:
[OJDT.BtfStatus][line: 2] , 'Row in Transaction with Account No.'
Following is my code:
Dim vJE As SAPbobsCOM.JournalEntries
Set vJE = oCmp.GetBusinessObject(oJournalEntries)
vJE.Lines.AccountCode = "500005"
vJE.Lines.ContraAccount = "131000"
vJE.Lines.Credit = 0
vJE.Lines.Debit = dblAmount
Call vJE.Lines.Add
vJE.Lines.AccountCode = "C003"
vJE.Lines.ContraAccount = "400000"
vJE.Lines.Credit = 0
vJE.Lines.Debit = (dblAmount * 105) / 100
vJE.Add()
B1 gurus please help.
ThanksWhen you encounter a problem when working with DI API, please remember that you should try to do the same in the SAP Business One application!
In your case the first thing which is wrong is that at least one of the account codes in the second line is wrong (AccountCode or ContraAccount); unfortunately the error message does not really tell you that, but this happens quite often in software development.
Secondly the principle of journal entries is to have a "balanced transaction", i.e. <total of Debit(s)> = <total of Credit(s)>... (this will be the next error you will be running into).
I recommend that you check-out the material in the Developer Area on this site (https://www.sdn.sap.com/sdn/developerareas/businessone.sdn?node=linkDnode10) + check-out the SAP Business One-related material in the Education area in the SMB Portal on SAP Service Marketplace (http://service.sap.com/smb)...
HTH,
Frank -
How to create crossword using Adobe captivate
how to create crossword using Adobe captivate
OK. Again I am not needing clarification here. Did you INSERT the SWF as an animation into the Captivate project? Or, did you keep the SWF as an external file? If the SWF is external to the main Cp SWF then perhaps it's not working when you publish because the content cannot find the SWF. If you have made sure that the SWF is definitely in the publish location, check whether or not you have that location set as a trusted location in your Flash Global Security settings.
Maybe you are looking for
-
I can no longer send from my apple mail since icloud.
I have made a mess of things. I can no longer send from my apple mail since icloud. My outgoing mail remains offline no matter how I reconfigure it. How do you check your tls certificate? Is is me.com or mac.com? I am so frustrated.
-
IBook with dead display (i think)?
Hi, I have an ibook that needs desperate help. I was having problems with it in October last year with the carbonlib which i posted about here: http://discussions.apple.com/message.jspa?messageID=738743#738743 Before i managed to try to update the ca
-
MESSAGE_TYPE_X - In PR5
All, I am done some code changes in Program ZEX_SAPLXRSA related to structure ZAMC11VA0ITM ,And field has been added in DS-2LIS_11_VAITM. All chnages transported to Production System,setup tables filling done and pulled data to ODS. In daily loads be
-
How to I get a transparent background in CS4 ?
I have a Mac computer and am following Lynda.com's tutorials, but I haven't been able to find anything about how to clear the background of a photo so that I can give it another background. Could anybody help me?
-
Can you add folders to your email accounts? How?
I read somewhere that folders can now be added to Mail with iOS5. If that is true can someone help me do that? Thank you.