INVOICE NUMBER FROM SALES ORDER
HI ALL,
HOW DO WE GET THE INVOICE NUMBER OF A MATERIAL FROM A SALESORDER.
REGRADS,
NANI
Hi,
The relationship is as follows..
VBAP-VBELN = VBRP-AUBEL.
VBAP-POSNR = VBRP-AUPOS.
SELECT SINGLE * FROM VBRP
WHERE AUBEL = VBAP-VBELN
AND AUPOS = VBAP-POSNR.
IF SY-SUBRC = 0.
WRITE: / 'BILLING DOC.', VBRP-VBELN.
ENDIF.
Thanks,
Naren
Similar Messages
-
Function Module to fetch Customer Number from Sales Order or Process Order
Hi Gurus,
I am looking for a Function module which gives me customer number from Sales order or Process order.
Please let me know of any FM's available.
Regards,
MadanHi,
Thanks for your response.
I am actually looking for function modules which take "Sales Order" or "Process Order" as input (import parameter) and return Customer Number as output (export parameter).
Please suggest some function modules you know any.
Many Thanks,
Madan -
Assign batch number from sale order to production order automatic
Dear all, I have a question for all. Please help me in this case
My scenario is make to order
I have a sale order, when i create sale order, i have assigned batch number at each line item.
When i run MRP for sale order (MD50), the system generate a planned order for it and I've converted to production order.
So when I view production order, I think that batch number what I've assigned to sale order will be assign to production order but that is not happen.
So, can you help me solve this problem. I think that sap can assign batch number from sale order to production order automatic but i don't know how to configure that
Thanks allHi,
To the best of my knowledge, when system is generating planned order / production order from sales order system doesnt copy batch number from sales order.
In fact , you are following wrong practice for generating batch no.
Follow procedure like this :
Create sales order without any batch assigning there. Run MRP with MD50 and then convert planned order to Production Order.
While creation / releasing of Production order, you have option to generate batch automatically by following way :
Go to OPKP (Production Scheduling Profile) -> Take your plant & give suitable name to Production scheduling profile-> Batch Management tab -
> Automatic Batch creation in the order maintain this field as
1 Automatic batch creation at order creation
or
2 Autom. batch creation at order release
This will generate batch number automatically at the time of creation or release of order.
Then follow same process i.e. Goods Issue, Confirmation & GR for production order.
So you will get sales order stock in the form of batch managed.
Check & revert if any issue in above flow.
Regards,
Tejas -
User-exit to copy collective number from sales order to purchase order
Hi,
Can any one help me which user-exit/BADI is used to copy collective number from sales order to purchase order? please help me.
Thanks,
Alkahi
copy control would be the better option to choose.. but still u can a give a search in list below and opt for the right one..Refer to the link below..
http://www.planetsap.com/Userexit_List.htm
User exits for Sales order
1USEREXIT_DELETE_DOCUMENT
2USEREXIT_FIELD_MODIFICATION
3.USEREXIT_MOVE_FIELD_TO_VBAK
4.USEREXIT_NUMBER_RANGE
5.USEREXIT_SAVE_DOCUMENT
User exits for billing
1.USEREXIT_ACCOUNT_PREP_KOMKCV (Module pool SAPLV60A, program RV60AFZZ)
2.USEREXIT_ACCOUNT_PREP_KOMPCV
3USEREXIT_NUMBER_RANGE_INV_DATE (Module pool SAPLV60A, program RV60AFZC)
4USEREXIT_PRINT_ITEM (Module pool SAPLV61A, program RV61AFZB
5.USEREXIT_PRINT_HEAD (Modulpool SAPLV61A, Programm RV61AFZB)
Reward if Useful
Thanx & Regards..
Naren.. -
Sales Invoice Linked from Sales Order
Hello Experts!!
I want to restrict users to enter Sales Invoice Directly. We are using Sales Order But Every One Can Post Invoice Directly.
Please Guide how to restrict them
Thanks,
VikramHi Vikram,
You can restrict Sales Invoice by Putting Transaction Notification.
Please check below Two Transaction Notification. One Transaction Notification for Sales Invoice must be Copied from Sales Order and Second Transaction Notification for Authorized User Can Create Sales Invoice.
-----------NO STAND ALONE A/R INVOICE MUST BE CREATED IN SYSTEM
IF @transaction_type IN ('A','U') AND @object_type = '13'and @error = 0
BEGIN
IF EXISTS (SELECT T0.DocEntry FROM OINV T0
INNER JOIN INV1 T1 ON T0.[DocEntry] = T1.[DocEntry]
WHERE T1.[BaseEntry] <> 17
AND T0.DocEntry = @list_of_cols_val_tab_del)
BEGIN
SELECT @Error = 10, @error_message = 'BK - A/R Invoice Document Must be Copied From Sales Order'
END
END
Above Transaction Notification will Block Creation of Sales Invoice if that Invoice is not Created by Sales Order.
-----------A/R INVOICE MUST BE CREATED BY AUTHORIZED PERSON
IF @transaction_type IN ('A','U') AND @object_type = '13'and @error = 0
BEGIN
IF EXISTS (SELECT T0.DocEntry FROM OINV T0
INNER JOIN INV1 T1 ON T0.[DocEntry] = T1.[DocEntry]
INNER JOIN OUSR T2 ON T0.[UserSign] = T2.[USERID]
WHERE T0.[UserSign] IN ('1','2')
AND T0.DocEntry = @list_of_cols_val_tab_del)
BEGIN
SELECT @Error = 11, @error_message = 'BK - You are not Authorized Person to Create A/R Invoice Document'
END
END
Second Transaction Notification is for Authorized Person can Create Sales Invoice So in User Sign Please Put User Sign of those Users who are not Authorized to Create Sales Invoice.
Hope this helps
Regards:::::
Atul Chakraborty -
Invoice output from Sales Order for Point of Sales system
Dear all,
How can we print Invoice by saving a sales Order.
As per our business process at our cash register (POS) we are creating Sales Order.
Once we save the sales order, an output has to be printed to give customer.
Now we need to use Invoice smart for Sales Order. How could we use Invoice smart forms for Sales Order?
Please help me to resolve this issue; your help will be highly appreciated.
Thank you,Hi Ines
To achive this you will need to take the help of your ABAPer. He/She will write the logic in the program assigned to the processing routine in V/30.
I hope this helps. -
Excise Invoice number aginat sales order
Hi,
Is there any report available in SAP where as we can be excise invoices raised against particular sales order or scheduling agreement
Rgds,
Saurabhhi
To get the Sales order number from excise invoice you have to use the below table
Pass the EXNUM (official excise invoice number) into table J_1IEXCDTL and get RDOC2(billing doc number)
Now pass this RDOC2 to into table VBRP-VBELN and fetch the data for VBRP-AUBEL (sales order No)
regards
Edited by: PRASHANTHgoud on Mar 19, 2010 1:24 AM -
Query to display sales invoice number by sales order number
Hi,
Welcome you post on the forum.
You may check this first:
http://wiki.sdn.sap.com/wiki/display/B1/SAPB1SQLD-SLLapsedDaysOrdertoDeliveriesOrderDetailsVer3
Thanks,
GordonI've read the article and strugled and other articles for this but I haven't achieved the goal - I can display list of SO and linked Deliveries and linked A/R Invoices and A/R Memos but basing on date and client changes within the query itself.
The current goal is to have a query to ask for GP code and ask for DocDate to get list of Sales Order document numbers and A/R Invoices document numbers and A/R Credit Memos document numbers.
The ideal result would be to get final quantities of products from all further existing data with possibility to use it in Excel's (office 2007-2010) SQL native client basing on SO document number parameter.
Maybe it is not possible?
Any help would be appreciated.
Thank you,
Tomasz -
Getting purchase order number from sales order number
Hi Experts,
My requirement is to fetch the following values from a sales-order number:
Purchase Order Number,
Delivery Date
Order Type(Source of Order EDI/EFAX/..)
Ship To,
Sold To.
We are trying to fetch this data from the ECC system in our CRM system.We are exploring the possibilty of RFC calls to get the data from ECC system.
Is there any standard FM present in ECC which gives the above information from the sales order number?
Thanks in advance
Regards
ShilpiHi,
Check the FM BAPISDORDER_GETDETAILEDLIST
It provides the whole data for a particular Sales order which you need to provide Sales order number in the table 'SALES_DOCUMENTS' in tables parameter.
You have to provide the view what you need and in the import parameter 'I_BAPI_VIEW' like all the views that are in the tables parameter...
HEADER, ITEM etc...
The fields
PO_METHOD
PURCH_NO
REQ_DATE_H
SOLD_TO " will provide you the details you need in the table 'ORDER_HEADERS_OUT'
SHIP_POINT in ORDER_ITEMS_OUT table provides the ship to
Regards
Sarves -
Want to copy Serial number from Sales Order to Delivery
Hi Gurus, I want to copy the serial number from the sales order to the delivery. ¿How can I do this?
Thanks in advance
-ITaloPlease check if you get some helpful tip from the link below:
http://help.sap.com/bp_bl603/BBLibrary/HTML/126_EN_IN.htm
Regards,
Rajesh Banka -
Wrong tax in delivery and invoice (different from sales order)
Dear All experts/gurus,
I am curretly facing a problem relate to big error in SBO 2004A SP00 PL 16. It is disgusting actually. the problem is I create Sales order (SO) with 0 % tax (tax code: 0tax). however after I create delivery from this SO, the price including tax is different from price including tax in the sales order, it raised to be 20%, that is also happened in AR invoice meanwhile I never change the tax code and create 20% in the define tax group form.It is only happened in creation date on 16 february 2007,after that it is all okay, nothing happened. There is none allowed to change tax grup form.
I am afraid there are bugs or something wrong that made it happened especially relate to technical/developper. I have check company settings, BP settings and other but find out nothing that made this wrong comes. pls help me to solve this situation. I appreciate your answers so much. tks
Rgds,
Message was edited by:
steve andreDear Eddy, Experts/Gurus,
The problem has appeared again. It happened on 8 March 2007, all deliveries are subjected to have 20% tax meanwhile in column tax % of define tax groups form is zero. The big problem is how to take back all the error AR invoices sent to customer sites.
How to cancel the invoices with wrong tax without using credit memo? could I just use querry generator to delete all the taxes created by system ? I want to reprint it and send again to customers but I don't want to use credit memo, I consider to use DTW, but I am not so sure and I wanna ask what Gurus/Experts suggestions in this forum before do that. I appreciate your answer so much. TIA -
Idoc number from sales order in ECC
Hi,
Sales order is created by processing an Idoc. Now i want to trace back the idoc number for the sales order created.
Please let me how we can do this in ECC. I saw couple of posts stating ICON SERVICE FOR OBJECTS...i couldn't really identify that icon. In someother post i saw this can found under Environment.
Please let me know whether there are any prerequisites for this, and how i can i achieve this in ECC?
Thank You in Advacne
Thank You
ChallaHi Challa,
To find which idoc created the sales order, you can do the following,
Check for the customer PO no in the sales order.
Then go to any other inbound idoc which is bound to create a sales order, and see in which segment is the PO number.
Then go to WE09 and put the dates etc and then go to " Criteria for search in Data Records"
Put the segement no in Search in segement field.
Put the idoc field in which you see the PO number
and put the PO no in the " for Value" field and execute.
You will get the idoc which created the sales order.
Let us know.
Regards,
SB -
Purchase order number from Sales order
hi gurus,
i wan to pull PO number from SO number.i saw the customer PO in VA03 for that SO.
what is the customer PO(in vbkd-bstnk)?.what is the PO in EKKO-ebeln?what is the diffrent between these two?Pradeep Chintala is right!
vbak-bstnk is not long enough!
if you va01 create a SO with customer po num's length exceeding 20, you'll find the vbak-bstnk is incomplete.
and you would never find the vbak-bstnk in screens of va01, va02, va03
but you can find vbkd-bstkd. -
Automatic posting of purchase order from sales order
hiii
experts,
i m doing automatic purchase order from sales order. i have generated purchase requisition number from sales order now when i m trying to do automatic po the system says no suitable purchase requisition available.I have maintained info record, source code,automatic po tick in material master and in vendor master.what could be the problem .waiting for ur valuable inputs.
warm regards
thanks
subhash kulkarniHello,
Please check all the things mentioned by our experts e.g Source allocation ,infor record, source list.
Beside that I would suggest check document flow whether already PO is created or not.
If every thing is in place then try to create PO with reference to PR by transaction ME21N & see what error you receives.
Hope this help you ,
Regards,
Prashant -
How I put a tracking number from sales until delivery
Hi all:
Need your help about tracking and MRP, so, I thinks this is not in exclusive problem, its possible that other need make it.
I need obtain a tracking number from sales order unti delivery, need be assigned in the BOM headerBefore any else, thanks for you kind attention.
In order to explain in detail my requerimient I know that is possible allocate the source of the new production order, that was created by MRP Wizard, this new recomendation have an origin from a production order from above level normally here in Mexico the name is Sub assemble maybe is not correct in english, when run the MRP process not exist a cross reference beetween the sales order number source and first production order (Header I express of this way), and the new production orden obtained after run MRP wizard.
I hope this explanations can help to better.
Thanks a lot
Maybe you are looking for
-
How to post Credit Note to the vendor for purchasing of an Asset last year
Hi Mates, The scenario is as follows: -Asset purchased for Rs. 10000 in Fiscal year 2006. -The said asset is depreciating every month since aquisitioned as it happens. -Now in current fiscal year 2007, due to some reason, we want to debit the vendor.
-
Using Scripts to detect document size in inches?
Is it possible that a script detects the document size in inches not in pixels? Thanks for the help!
-
How do I get a modorator to reset my target SNR
At approx 11.30 on 3.5.11 my line continuously dropped and re-established connection for about 20-30 mins (each time synchronising at circa 4800kbps and SNR of 6.0). By 5.5.11, the (target) SNR had risen to 9db and the line was synching between 3700
-
Integration Repository not registering in SLD
I have had a server released to me for final config, (PI7.0 SP10) but I am having some errors during final config/post installation steps. There errors are: #10 13:24:04 [AWT-EventQueue-0] ERROR com.sap.aii.utilxi.swing.toolkit.ExceptionDialog: Throw
-
Dear all How to bring the field Division in line item in FBL5N report . There is a difference in the Header Div and Line item Div in Sale order . Thanks Anila