List of open Sales order in a plant.
Hi,
I need to pick up all the sales order for one particular plant with all open status (which do not have any delivery document)
I want to write a SQL qurrey can any one help me with logic pla how to join and which fields will help me to get that open orders data.
Thanks,
T.Nishanth
select * from vbap client specified into table ivbap
where mandt = sy-mandt and
werks = 'Plant'.
itvbap[ ] = ivbap[ ].
loop at ivbap.
select single * from vbfa client specified
where mandt = sy-mandt and
vbelv = ivbap-vbeln.
if sy-subrc eq 0.
delete itvbap where vbeln = ivbap-vbeln.
endif.
endloop.
Now , the resultant itvbap will have open orders.
saravanan
Edited by: k saravanan on May 14, 2008 11:17 AM
Similar Messages
-
Hi All,
I am in need of a report to display list of open Sales orders, Requirement Date or Requested Delivery Date and Requirement Qty for given Materials (Multiple Input) and Plant.
Please guide me, Is there any Standard Report Available to display the above information except VA05.
Or else
Please guide me, the list of tables to fetch those information.Did you try in VA05N ?
How ever , you will not get the requirement date oir requested delivery date here .You can get only Document date or creation date .
I suggest you to try to build a report with the below SAP field and data element :
VBELN VBAK-VBELN, "SALES ORDER
POSNR VBAP-POSNR, "ITEM
MATKL VBAP-MATKL, "Material Group
AUART VBAK-AUART, "ORDER TYPE
AUDAT VBAK-AUDAT, "ORDER DATE
BSTNK VBAK-BSTNK, "CUSTOMER PO NO.
BSTDK VBAK-BSTDK, "CUSTOMER PO DATE
WAERK VBAK-WAERK, "Currency
PSTYV VBAP-PSTYV, "Sales document item category
ZMENG VBAP-ZMENG, "TARGET QTY.
KWMENG VBAP-KWMENG, "SO QTY
OPENQTY VBAP-KWMENG, "OPEN QTY
LFIMG LIPS-LFIMG, "DELIVERY QTY
LFIMG1 LIPS-LFIMG,
SHKZG VBRP-SHKZG,
NETPR VBAP-NETPR, "UNIT PRICE
NETWR VBAP-NETWR, "NET VALUE
BALWR VBAP-NETWR, "NET VALUE FOR BALANCE QTY.
BALLOC VBAP-NETWR, "BALANCE VALUE IN LOCAL CURRENCY
KURSK VBKD-KURSK, "EXCHANGE RATE
FPLNR VBKD-FPLNR, "BILLING PLAN NO.
FKSAF FPLT-FKSAF, "BILLING STATUS
LOCVAL VBAP-NETWR, "AMT. IN LOCAL CURRENCY
KUNNR VBAK-KUNNR, "CUSTOMER
VKORG VBAK-VKORG, "SALES ORG.
VKBUR VBAK-VKBUR, "SALES OFF.
VDATU VBAK-VDATU, "Req.Del.Date
MATNR MARA-MATNR, "MATERIAL NO
ARKTX VBAP-ARKTX, "MATERIAL DESC
WERKS VBAP-WERKS, "PLANT
LFSTA VBUP-LFSTA, "Item Delivery Status
FKARA TVAK-FKARA,
GBSTA VBUP-GBSTA, "Overall Status
FKSAA VBUP-FKSAA, "Item billing statuS
NAME1 KNA1-NAME1, "CUSTOMER NAME
VBTYP VBAK-VBTYP, "Doc. Category
LFARV TVAK-LFARV, "Delivery type
LIFNR LFA1-LIFNR, "Vendor Number
SPSTG VBUK-SPSTG, "Overall blkd status
COST KONV-KWERT, "COST
DISC KONV-KBETR, "DISCOUNT
SPRICE VBAP-NETWR, "SELLING PRICE
The above field are similiar kind of report .But I feel you have to keep two opetion one will be Open Sales Order and other All the sales order .Discuss with your abaper in this regard in line with VA05N and VA05
Hope this will be useful
Regards
JH
Edited by: Jiaul Haque on Jun 20, 2010 9:07 AM -
List of open sales order deliveries
Hi Gurus
I'm trying to fetch the list of open sales order relevant deliveries in the system. Is there any standard report to fetch the same?
In the current requirement, we have tried the below logic:
Join table VLPMA & VBUK at VBELN
VLPMA u2013 Pass MATNR(Material) & LFART(Delivery Type) and fetch VBELN values
VBUK u2013 VBELN values from above with WBSTK(Goods Movement status) Not Equal to C {open deliveries}
LIPS u2013 Pass VBELN from above and MATNR & WERKS to fetch open sales order relevant deliveries for a material in a plant.
The above logic takes a lot of time to execute and hence the report has performance issue. Is there any other means to link the multiple fields in the Deliveries to fetch, only sales order deliveries that are still open?
Regards
Deepak Prasanna SHi
You can also enhance tcode VA05 and create your variants to filter these SO. See these notes
SAP Note 37871 - List display of open sales documents
SAP Note 350068 - Additionl fields in VA05:Customer material number as example
So, you'd have a list with the pending orders.
I hope this helps you
Regards
Eduardo
Edited by: E_Hinojosa on Mar 6, 2012 10:01 AM -
How to count List of open sales orders?
HI Gurus,
Client requ: List of no of open sales orders?
I used T.code: VA05, given date range as desired and selected radio button as OPEN SALES ORDERS. I got huge list of sales orders with line item wise. say for example in a sales order 100 line items, in the report i got line item wise. But client wants no of open sales orders ony, not by line item wise. So I converted into XLS and did it.
Is there any way to find out no of open sales orders thru Table. (Like sales orders created - go to SE 16 (VBAK) , you get no of sales orders created)
Please suggest me way out to find the same.
Thanks a lot in advance.
Regards,
Vamsi.Hi,
I can recommend you another solution (is what I'm doing usually ...) - I'm extracting the data in Excel and here I can do anything anything I want with the data (in your case I will run a pivot table on the resulting table with the sales orders no)
In this case (transaction VA05) option to extract data using XXL Viewer from ALV grid was deactivated; I really don't know what was the reason ...
You can still use the second option - to use Excel In-place. For this, after running your report go to Settings -> Layouts -> Current ... (in the menu).
Go to "View" page.
Here select "Excel" option.
A list of available excel templates should be displayed (if they are made available by your basis).
Select one of them and press OK.
If everything is OK you should see your report open directly in your GUI as Excel.
I hope this will help you,
Valentin -
How to list incompleted sales order documents by plant or profit center
Hi, Is it possible to to list incompleted sales order documents by plant or profit center? How?
Thanks very much.Hi
You can have list of open sales orders wrt to plant and probably it may be useful to you.
This can be done with configuration so that you can add plant to the selection criteria in the T code VA05.
Goto IMG - Sales & Distribution - Sales - Lists - Define Selection Criteria - Execute
Click New Entries and enter the below fields save the changes.
Program Name - SAPMV75A
TRG (Transaction Group) - 0
Display Group - K
Event - SELK
It - 8
Field Name - WERKS
Goto VA05 and now you can see the field Plant in the Fur Sel Criteria.
Regards,
Phani Prasad
Edited by: phani.prasad on Nov 8, 2011 9:36 AM -
Confirmed Open Sales Order List
Hi Every body,
Is their any best way to find the list confirmed open sales order list. because i am working on one report, where user will run the report in foreground.
the problem is we dont have time period field as a input parameter. i found some table like V_VMVAC to list the unconfirmed sales order. In same way do we have any other tables. or any other to list these confirmed open sales order.
Regards,
Srinivas.You can use open order report VA05.
Once you executed with date selection parameters, in the output report, you can sort the column status. The status with "OPEN" displays the sales order items that are confirmed but not delivered.
Regards, -
Open Sales orders through IDOC
Hi
We are trying to send the list of open sales orders of a customer in an IDOC to the customer. For example, if the customer has got 15 sales order to be delivered to him , he needs the details of all these 15 orders in an single IDOC
Is there any IDOC message type available for this in SAP R/3 4.7 version or is there a standard solution of sending these details through IDOC
Regards
AnandhHi
We are trying to send the list of open sales orders of a customer in an IDOC to the customer. For example, if the customer has got 15 sales order to be delivered to him , he needs the details of all these 15 orders in an single IDOC
Is there any IDOC message type available for this in SAP R/3 4.7 version or is there a standard solution of sending these details through IDOC
Regards
Anandh -
Hi all,
As everyone must be knowing in FD32 we can see Sales value ( Open sales orders + Open deliveries).
For one of my customers i can see an amount in open sales orders field, but i could not find the SO in VA05 report.
Can anyone help me to find list of Open sales orders which are reflected in FD32 sales value field.
Thanks all.
RajeshDear Rajesh sandbhor ,
First please check whether there is any value in FD32>Extras>Sales Value.
If YES, then Instead of going for VA05, in fd32, go to environment>sales and distribution documents>open orders.
Please check and revert back if there is any issues.
Thanks & Regards,
Hegal K Charles -
Open Sale Orders against Materials
Hi Friends,
I want a list of Open Sale Orders against a list(set) of Materials.
I will give a example :-
If material A, B and C.
I should be able to search Open Orders against all three materials at a time.
Please help me find a solution.
Regards,
Nikhil PavagadhiHi,
may be you can think of developing a Z report which would have all the functionality you are looking for.
for the selection screen you can give all the materials for which you want to find the open sales orders, from there these materials are searched in VBAP table to find all the sales orders for the given period or even may be range of sales orders. Then, all these sales orders are checked for status at VBUP(item status) table since you want to find out open status at item level.
Hope this might fulfill your requirement. Please consult your abaper to develop this.
regards
Sadhu Kishore -
IDOC Message type for open sales orders
Hi
We are trying to send the list of open sales orders of a customer in an IDOC to the customer. For example, if the customer has got 15 sales order to be delivered to him , he needs the details of all these 15 orders in an single IDOC
Is there any message type available for this in SAP R/3 4.7 version
Regards
AnandhTry VA05 schedule lines standar variant...include status fields and both ordered qty and confirmed qty. In SAP standard system order status, status A means open orders fully (Nothing shipped, everything opened). Status B means in process orders (Partially processed - shipped). Status C means complete orders (Nothing opened). As there is no delivered qty in VA05, you need to download to excel the file and calculate the difference between both qty fields for each A and B status. That is a way to get the missing qty to be delivered or open qty as you stated.
Hope it helps.
Jorge Fernandez -
Tables related for open sales orders
Hi all,
I need to fetch the list of open sales orders
based on the range of customers. I have seen va05
but in that only single customer
is allowed. I want for range of customers based on that list of open
sales orders.
can any tell me for this requirement is any std tcode available if not
what tables I have to use to fetch data.
any suggestion will be rewarded.Hi ,
can you check these tables in sales
Name Description Uses
LIKP Shipped Lines header
LIPS Shipped Lines detail
VBAK Order header Every order (unless archiving)
VBAP Table fields Every line item (unless archiving)
<b>VBBE</b> Open sales order line items Great file, but be careful. Contents don't reflect orders that do not affect purchasing (go figure).
VBEP Schedule line item
VBFA Document flow Let's you move from order to shipping document to invoice.
VBUK Order status
VBUP Line item detail status
VBFK Invoicing header
VBFP Invoicing detail
<b>Reward pts if found usefull :)</b>
regards
Sathish -
New Report for Opens Sales order and P.O from Plant and S.Loc
Dear Gurus
We have repory requiement for Open sales order and P.O to deliver from particular plant and S.Loc.
If you have already developed this kiond of report help me inthis case.
Thanks
ramkiclosed
-
How can i get the open sale orders for given material no and plant
Hi,
I have to retrieve the open sale orders depending on the material number and plant.
For only open sale orders at header level and item level.
I want to use VBUK-GBSTK to find open sale order at header level and
VBUP-GBSTA at item level.
Can any one suggest me the best logic as performance is concerned?
Thanks,
Kumar.hi Prasanth,
select werks matnr from ZVSCHDRUN into table it_plant.
sort it_plant by matnr werks.
select
vbeln
posnr
matnr
werks
erdat
kbmeng
vrkme
from vbap
into table it_vbap
for all entries in it_plant
where matnr = it_plant-matnr and
werks = it_plant-werks.
and again i have to write one more select query for vbup.
am i right? -
How to find the Open sale orders till date for given plant and material ?
Hi experts,
I have a requirement to calculate the open sale orders for a given plant and material. I have tried in VA05 wherein i can get only for the material and sales area combination. From the document nos obtained from VA05 i can then find the plant. But my question is how do i get the output of VA05 into my progra. (can i use submit for a module pool report ).
Also if ther is some other standard table or Function module to find the open sale orders till a given date ,it will be even more helpful....in which case i can drop the VA05 route.
Kindly help
Thanks in advance
AshwinHi Ashwin,
You can use SAP Tables VBAK and VBUP to get to know if the document is complete or not.
VBUK-GBSTK is the field that will give you the status of the Sales Order .
VBUK is used at header level , whereas VBUP is used for Item level.
So in your case what I would do is :
Get the Sales Orders that satisy the plant and material criteria from VBAP table , take this Sales Document numbers and go to VBUK or VBUP table to get the Sales Order Status.
If I need to find the open quantity as well I will link to VBFA table based on the document number.
Reward if helpful.
Thanks,
Imran -
List of open purchase order for a sales division
Hi experts ,
I want to generate report for open purchase orders.This report is reqired for a perticular sales division.
I tried to use ME2L , for this we need to give list of vendors for that division. However i guess that in purchasing we dont maintain vendors at sales division level. Can you help me in this regard
Thanx in advance.
Regards,
AnandHi Anand,
One way to get the desired output is
First you get a list of all Sales Orders for a particular division.
then use transaction ME2K and input all Sales Order that belong to particular division and excute.
you will get all POs for that division. But the layout of the report is not very friendly still it serves the purpose.
Regards
Seema
Maybe you are looking for
-
Mplayer cache option greatly reduces performance
Hi. I needed a larger cache because I have some videos stored on another samba server and it's laggy. I set options: cache=20000, cache-min=10 , and that helped to play those videos smoothly, but that caused all 1280x720 mp4 files stored on my local
-
Unable to persist data using oracle BC
HI all I am using Jdeveloper 11.1.2.3.0. I have followed the Adf insider BC and Faces component tutorials. All works fine and i am able to view all data correctly. When i try to insert a new record, using create and insert or create, i can see the ro
-
Can someone help with device authorisation for adobe digital editions?
This may not be the right forum, I could not find one for Adobe Digital Editions. As you can see in the attached image the activation server is not responding. I tried with another email address, same problem. Have reset password on both accounts and
-
How to Coordinate system in vision builder?
Hello, I'm trying to perform a pattern matching in 8bit images but my image is not always in the same place so I need to stablish coordinates to analize the image, I'm using vision builder 6.1, does anybody have an example of how to stablish coordina
-
Hi Gurus, we are using Active version : 01 of work center capacity for detailed planning. Now we want to use Capacity vesion : 04 - constrained capacity for LT scenario. Can any one explain me how to create a master data for capacity through work cen