Get Invoice number in BADI INVOICE_UPDATE
Hi all.
It`s posible to get a invoice number in badi invoice_update. I create invoice in tc MIRO. I create my implementation and i call my function group (here i need number just creating invoice)
Thx
Grzegorz
HI,
Check the methods parameters for CHANGE_AT_SAVE method: S_RBKP_NEW or S_RBKP_OLD.
S_RBKP_NEW-BELNR will ahve the document number.
Regards,
Ravi
Similar Messages
-
BAdi for VF01 - Get Invoice Number
Hi,
I am working on the VF01, I want to save the outbound delivery number(LKIP-VBLEN) from VL01N as invoice number(VBRK-VBELN) when creating billing document.
The below enhancement seem not trigger debugging mode.
Enhancement
J_3RSINV
V61A0001 Customer enhancement: Pricing
V60P0001 Data provision for additional fields for display in lists
V60A0001 Customer functions in the billing document
V05N0001 User Exits for Printing Billing Docs. using POR Procedure
V05I0001 User exits for billing index
SDVFX011 Userexit for the komkcv- and kompcv-structures
SDVFX010 User exit item table for the customer lines
SDVFX009 Billing doc. processing KIDONO (payment reference number)
SDVFX008 User exit: Processing of transfer structures SD-FI
SDVFX007 User exit: Billing plan during transfer to Accounting
SDVFX006 User exit tax line in transfer to accounting
SDVFX005 User exit reserves in transfer to accounting
SDVFX004 User exit G/L line in transfer to accounting
SDVFX003 User exit cash clearing in transfer to accounting
SDVFX002 User exit for A/R line in transfer to accounting
SDVFX001 User exit header line in delivery to accounting
Business Add-in
SD_CIN_LV60AU02 BADI for billing
VOR_WA_FAKTURA Billing before Goods Issue
I am looking for "$" sign number. Any idea?Also check this user exits as well.
USEREXIT_NUMBER_RANGE (Module pool SAPLV60A, program RV60AFZZ)
The internal number range used in the standard system is specified in the billing type table and can be changed in this user exit. This user exit is only called when the billing documents is created.
USEREXIT_ACCOUNT_PREP_KOMKCV (Module pool SAPLV60A, program RV60AFZZ)
In this user exit additional fields for account determination that are not provided in the standard system are copied into communication structure KOMKCV (header fields).
USEREXIT_ACCOUNT_PREP_KOMPCV (Module pool SAPLV60A)
In this user exit additional fields for account determination that are not provided in the standard system are copied into communication structure KOMPCV (item fields).
USEREXIT_FILL_VBRK_VBRP (Module pool SAPLV60A, program RV60AFZC)
This user exit is only called when the billing document is created. It is used to provide the header and the item of the new billing document with deviating or additional data. -
Get Invoice Number after adding the invoice
Hi,
I am adding a service invoice to SBO using the DI api. I am able to create the Invoice successfully. Immedietly after I execute the Invoice.Add line, I would like to get the Docentry that was assigned to the invoice. What is the bst way to do this? Appreciate any help you can give me.\
See code I am using:
private void CreateSAPServiceInvoice()
SAPbobsCOM.Documents oServiceInvoice;//ChargeBack Invoice.
SAPbobsCOM.Documents oPaymentInvoice; //Orig: Invoice
SAPbobsCOM.Payments_CreditCards pCC;
oServiceInvoice = (SAPbobsCOM.Documents) frmMain.oCompany.GetBusinessObject(
SAPbobsCOM.BoObjectTypes.oInvoices);
oPaymentInvoice = (SAPbobsCOM.Documents) frmMain.oCompany.GetBusinessObject(
SAPbobsCOM.BoObjectTypes.oInvoices);
oServiceInvoice.DocType=SAPbobsCOM.BoDocumentTypes.dDocument_Service;
oServiceInvoice.CardCode = pmt.CardCode;
int x = pmt.Invoices.Count;
//Get CC Payment Info
pCC = pmt.CreditCards;
for (int i=0;i<pCC.Count;i++)
pCC.SetCurrentLine(i);
this.CBAccountInfo= modcb.cbaccts.Find(pCC.CreditCard);
if (this.CBAccountInfo != null)
//Service lines
oServiceInvoice.Lines.ItemDescription = this.pCBAcct.AccountName;
oServiceInvoice.Lines.AccountCode = pCC.CreditAcct;
oServiceInvoice.Lines.Price = pCC.CreditSum;
oServiceInvoice.Lines.TaxCode="0";
oServiceInvoice.Lines.Add();
//Add the invoice only if any lines have been added to the
//Service Invoice.
if (oServiceInvoice.Lines.Count > 0)
//Add the invoice
int j = oServiceInvoice.Add();
if (j!=0)//If there is an error
int ix; string m;
frmMain.oCompany.GetLastError(out ix,out m);
throw new Exception(ix + ":" + m);
else
j =oServiceInvoice.DocNum;I think this thread might have some useful information for you.
After Save Document: How to get DocNum, LineNum -
Purchase Order report with MIRO invoice and/or FI invoice number
Hello,
I am searching for a standard report which will allow PO number as input and dispaly the MIRO invoice number/s and if possible the corresponding FI document numbers.
I have exhausted all the reports I know of - ME80FN. ME2* series, FBL3N.
These are two options I know of but want to avoid:-
SQVI query
Z-report
If there are no standrad reports, can someone explain use of Flexible analysis to create such a report.
(Must confess that I have not fully explored that option yet).
Thanks,
Saurav.Hi,
You can get invoice number in RSEG table
pass this invoice number in BKPF into field AWKEY field where you will get invoice number+fiscal year and in same table you will get BELNR FI dc for same invoice number
Regards
Kailas ugale -
ABAP Table - Invoice number & accounting doc date
Hi ,
In which ABAP Table i can get invoice number and Accounting document date ?
SriniHi Srini,
I guess what you're really asking is "How can I find the tables that contain certain fields". So, if that is really your question you should check out a blog like this;
/people/martin.english/blog/2010/01/13/finding-what-tables-and-fields-lie-behind-an-sap-transaction
Otherwise, every time you need to find a table for a field you don't know you'll have to ask the forum.
Regards,
Nick -
How to get invoice via material document
HI,
How to get invoice via material document is there any table or any inderect way?
thanks
panduHi Lakshimipathi,
thanks for your reply.
i have checked in vbfa but it's not showing anything.
my client is providing below information and asking that invoice number.
material,
plat,
material doc,
movement type,
posting date.
i have ran the mb59 by giving material , plant , movement type and Archive info struct as Z_MM_MATBE. here i got the material doc and same doc i have checked at table levle but it's showing.
and how can i get invoice number by using this information..
please letme know if you have any idea.
thanks in advance.
pandu. -
Invoice number of a FI document.
How to get Invoice number of a FI document.
Is there any table or function module available ?Hi Lavanya,
Give some more details> What are you trying to do, what all data is availbale, so that we can query tables, are you developing a report, workflow, function module, dynpro, etc.....
Warm Regards,
Anuj Nagpal -
How to get invoice field from SD tables
Hi, experts,
what is the "invoice field name" in SD tables.
please specify in which tables i can find itHi Praveen,
in SD the order,delivery or invoice , evrything has field name vbeln.
only difference is which table your are referreing.
if you are working on VBAk, the vbeln will give the sales order..
if in LIPs, it will give delivery while in VBRK for vbeln you will get invoice number.
VBFA will give you the complete flow of order, delivery and invoice
e.g:-
Find sales order number and item from the delivery document
number and delivery item no by using sales document flow table
select single VBELV POSNV from VBFA into ITAB where
VBELN = mseg~oivbeln and "delievry
POSNN = mseg~oiposnr, and "Delivery item
VBTYP_N = 'J'. -
How can i get an old itunes invoice number if I permanently deleted it from my email
I need an old itunes invoice number to fix an itunes ID issue but i delete these invoices every three months from my email and email trash i can i get a copy
Login to the iTunes Store.
From the menu bar click Store > View My Account
Click Purchase History from the Account Information window. -
To get the invoice number of amount applied in view prepayment applications
hi all
In AP abc Manager-Invoices--when we give invoice number in the invoice number field we get to see supplier name etc in the same Invoices Form there is a
tab called General from which we can get Amount Paid ,
Similarly there is a tab called View Prepayment Applications ,when clicked on this tab we can see Amount Applied and invoice number corresponding to that amount applied
KIndly help me from which table or view this invoice number can be obtained
i got amount applied from the view AP_UNAPPLY_PREPAYS_V,but i cant find the invoice number.
kindly guide
thanking in advance
Edited by: makdutakdu on Dec 19, 2011 11:29 AMThanks Robin,
i was able to get a work around for this. For the time being i am using the following code snippet, i will try using the one u sent an will see if this works too.
// create nodeinfo object for the node that table will bind to
final IWDNodeInfo nodeinfo = wdThis.wdGetContext().node<NODENAME>().getNodeInfo() ;
//get the structure of the node
final IStructure struct = nodeinfo.getStructureType() ;
Iterator iter = nodeinfo.iterateAttributes() ;
if (null != struct)
totalFields = struct.getNumberOfFields();
else
for ( Iterator i = nodeinfo.iterateAttributes(); i.hasNext(); i.next() )
totalFields++;
for(count = 1; count <= totalFields; count++)
fieldName = nodeinfo.getStructureType().getField(count).getName(); -
Excise invoice number getting reflected in the reference field in VF01
Hello,
I require excise invoice number to get get reflected in the reference field of billing document number . (i.e accounting document generated from VF01)
Thanks,Dear Muscan,,
As per STANDARD SAP PROCESS this functionality is not Possible. The reason is very clear, Excise Invoice is always created after creating billing/invoice document. Without creating excise invoice you cannot have excise invoice number reflected in the reference field of billing document.
Hope this clarifies your doubt?
Regards
MBS -
Use SQL function to get the original order number using the invoice number
Hi All,
wondering is someone can help me with this challenge I am having? Often I need to return the original order numbers that created the resulting invoce. This is a relatively simple seriese of joins in a query but I am wanting to simplify it using a SQL function that can be referenced each time easily from with in the SELECT statement. the code i currently have is:
Use SQL function to get the original order number using the invoice number
CREATE FUNCTION dbo.fnOrdersThatMakeInvoice(@InvNum int)
RETURNS nvarchar(200)
AS
BEGIN
DECLARE @OrderList nvarchar(200)
SET @OrderList = ''
SELECT @OrderList = @OrderList + (cast(T6.DocNum AS nvarchar(10)) + ' ')
FROM OINV AS T1 INNER JOIN
INV1 AS T2 ON T1.DocEntry = T2.DocEntry INNER JOIN
DLN1 AS T4 ON T2.BaseEntry = T4.DocEntry AND T2.BaseLine = T4.LineNum INNER JOIN
RDR1 AS T5 ON T4.BaseEntry = T5.DocEntry AND T4.BaseLine = T5.LineNum INNER JOIN
ORDR AS T6 ON T5.DocEntry = T6.DocEntry
WHERE T1.DocNum = @InvNum
RETURN @OrderList
END
it is run by the following query:
Select T1.DocNum, dbo.fnOrdersThatMakeInvoice(T1.DocNum)
From OINV T1
Where T1.DocNum = 'your invoice number here'
The issue is that this returns the order number for all of the lines in the invoice. Only want to see the summary of the order numbers. ie if 3 orders were used to make a 20 line inovice I only want to see the 3 order numbers retuned in the field.
If this was a simple reporting SELECT query I would use SELECT DISTINCT. But I can't do that.
Any ideas?
Thanks,
MikeThanks Gordon,
I am trying to get away from the massive table access list everytime I write a query where I need to access the original order number of the invoice. However, I have managed to solve my own problem with a GROUP BY statement!
Others may be interested so, the code is this:
CREATE FUNCTION dbo.fnOrdersThatMakeInvoice(@InvNum int)
RETURNS nvarchar(200)
AS
BEGIN
DECLARE @OrderList nvarchar(200)
SET @OrderList = ''
SELECT @OrderList = @OrderList + (cast(T6.DocNum AS nvarchar(10)) + ' ')
FROM OINV AS T1 INNER JOIN
INV1 AS T2 ON T1.DocEntry = T2.DocEntry INNER JOIN
DLN1 AS T4 ON T2.BaseEntry = T4.DocEntry AND T2.BaseLine = T4.LineNum INNER JOIN
RDR1 AS T5 ON T4.BaseEntry = T5.DocEntry AND T4.BaseLine = T5.LineNum INNER JOIN
ORDR AS T6 ON T5.DocEntry = T6.DocEntry
WHERE T1.DocNum = @InvNum
GROUP BY T6.DocNum
RETURN @OrderList
END
and to call it use this:
Select T1.DocNum, dbo.fnOrdersThatMakeInvoice(T1.DocNum)
From OINV T1
Where T1.DocNum = 'your invoice number' -
How to get sales invoice number when you know print spool id
I'm using a version of program rstxpdft4 to download printed invoices to pdf. I'd like to include the invoice number in the name of the download file, but I don't know how to determine that value. I'm getting the spool id from table TSP01.
Thanks,
DenHi,
In case of Support project, we get the high severity issues from users and needs to be closed withn 2 hours... so what we do we get the requirement from user and checking the same in production from our id, but we can not save the sales order as we are not authorized to do the same, so in such cases it is required to get the sales order number before saving... where we can guide the users.... but actuallly it is not getting saved in the table until and unless u save it manually. It works like a material master... when u create material master, the material number appears in advance in material number field "MATNR"
If it is possible can you please suggest step by step to work on parameter in SU3 for sales order number before saving.
Thanks & regards,
Rahul Verulkar -
How to get PO number in FI Invoice Document??
Dear All,
Please guide me to get PO number in FI Logistics invoice Verification number against the vendor line item.
Our requierement to develope a report to send to the vendor about -- Invoices -- pending & Invoices paid -- against each invoice there
Regards,
Siva Reddy.SHello,
When you want to define the required fields from the Index tables as special fields in the line item display, then you modify the item basic structure RFPOSX in the Data Dictionary (SE11) by attaching your own fields in an Append structure.
The item structure RFPOSXEXT is generated automatically following the maintenance of the special fields in Customizing or alternatively by executing program RFPOSXEXTEND.
The 'basic structure' for displaying the items is RFPOSX.
Upon appending to the above structure, the entries in RFPOSX and the relevant entries in the T021S table, the system generates the structure RFPOSXEXT, which is used for the display.
The special fields must have the first characters 'U_u2019.
Alternate way:
Alternatively to create the special fields, use Transaction FAKP, menu path: Account -> Display line items -> Special fields' or the R/3 Customizing via the IMG (Transaction SPRO).
The fields you enter on this screen are saved in table T021S. Afterwards, the system generates structure RFPOSXEXT automatically so that the special fields starting with 'U_' are appended to structure RFPOSX. You can also regenerate the structure subsequently using program RFPOSXEXTEND.
Thanks!
Raju -
BAPI to get Invoice Details based on PO Number
HI,
Is there any BAPI to get Invoice Details based on PO number. If so could you pls let me know that.
Regards,
RameshHi Ramesh ,
there is no Direct BAPI to get the List of Invoices ,But based on the Vendor list u can get the List .
pass Vendor list , Document Dates.
<b>BAPI_INCOMINGINVOICE_GETLIST</b> for more info check the Documentation of this FM.
Regards
Prabhu
Maybe you are looking for
-
After upgrading to iOS 5, my iPhone won't sync to iTunes and has 3 GB or "other" data
After none of my music would play yesteday, and I wasn't able to sync my phone, I decided to restore my phone and see if that helped. All it did, was wipe everything except for that 3 GB or "other" data that I don't understand. And now, I can't do an
-
Dynamic Lov in Tablular Report
We have been working on a tabular report region within a master-detail form where the values populated in a drop down field are based on the value chosen from previous field. Thought we saw info on how to do this with javascript (without submitting t
-
How do I get/unarchive this file...?
I erased my hardrive from my powerbook G4 about a year ago. I thought I archived/saved the files I needed, but idiot me, didn't check to see what got saved and found out the archive failed less than half way through. I had the files on my idisk/webpa
-
on startup I get this on the screen "Mouse not Detected" and my touchpad and keyboard will not work. Any help with this would be grateful Thanks Steve
-
Hi , have include program name need to find the Enhancement name for purpose to activate the cmod project , Please guide hpw to do it Regards, Sant