Function module for Open Sales Orders.
Can u any one tell me is there any standard function module to
retrieve OPEN-SALES orders. I tried to debug VA05 but not of use...
Thanks in advance,
Sanjay.
hi
you can get open sales orders from vbuk and vbup
SELECT
A~VBELN
A~GBSTK
B~GBSTA FROM VBUK AS A
INNER JOIN VBUP AS B
ON AVBELN = BVBELN INTO TABLE T_OPENS
FOR ALL ENTRIES IN T_VBELN WHERE A~VBELN = T_VBELN-VBELN
AND A~GBSTK IN ('A','B')
AND B~GBSTA IN ('A','B').
in t_vebeln table is haveing sales orders by user selection you can get it like this
regards,
varma
Similar Messages
-
Function module for open sales order and open PO
hi all,
can anyone please tell me that is there any function module to get open sale order and also for open purchase order?
regards saurabh.Hi ,
In EKPO Table u select this fields Purchase Document no and Item no of Purchsing Document , Material no , and Purchase Order Qty.
In MSEG Table u select this fields Purchase Document no and Item no of Purchsing Document , Material no , and Qty.
Both Tables having Purchase Document no , So Purchase Doucment no throguh u will get the Material and qty , Finally u Subract the both Material Qty's .
u will get the Open Po For particular Material.
If ur not getting ,Inform me .
Regards ,
Shankar GJ -
Function Module for open Purchase Order & Sales Order?
Hi, commonly I read the data from tables and calculate the open quantity for sales order and purchase order, but I want to know, are there any standard function modules for getting the list of open "purchase order" and "sales order" respectively?
Thanks and Regards.hi Ren,
u can check all these bapi's related to salesorder
BAPI_SALESORDER_CHANGE Sales order: Change Sales Order
BAPI_SALESORDER_CONFIRMDELVRY Sales Order: Confirmation of Delivery; Document Flow Update
BAPI_SALESORDER_CREATEFROMDAT1 Sales order: Create Sales Order
BAPI_SALESORDER_CREATEFROMDAT2 Sales order: Create Sales Order
BAPI_SALESORDER_CREATEFROMDATA Create Sales Order, No More Maintenance
BAPI_SALESORDER_GETLIST Sales order: List of all Orders for Customer
BAPI_SALESORDER_GETSTATUS Sales Order: Display Status
BAPI_SALESORDER_SIMULATE Sales Order: Simulate Sales Order
May be this FM can help you
MB_ADD_PURCHASE_ORDER_QUANTITY (Reading and adding open purchase order quantities)
Regards,
Naveen -
Function module for finding sales order GT total value(vbak-netwr)
Can anyone tell which function module is used to find the Sales order greater than the input parameter which is total value(vbak-netwr).Output should be the details of sales order satisfying the condition.ie greater than the total value.
Hi chandra
I hope you are giving the logic to the ABAP'ers . By giving the input and the outputs. So here , VBAK-NETWR are related to functional consultants .
Based on the requirement , SD,FI etc the give the logic but mostly it is related to SD consultants only
Reagrds
Srinath -
Urjent-Any function module for finding Sales order, Delivery and Invoic
Hi Experts,
I am having selection screen like
Sales order
Delivery
Invoice
Customer
If i give sales order
Delivery and Invoice should pull
If i give delivery
sales order and Invoice should pull
If i give Invoice
sales order and delivery should pull
If i give customer
all customer related data should pull
Do we have any function modules to meet this reqirement?
If we have please provide function modules.
Thanks,
mahe
Edited by: Rob Burbank on Mar 30, 2009 4:17 PM
Edited by: mahahe on Mar 31, 2009 9:12 PMYou can use VBFA table, right? in the FM also, you can find the same logic, like pulling from VBFA table.
thanq -
Transaction for Open Sales Orders
Hi Experts
can u let me know the Transaction for Open Sales Orders.
Regards,
kumaryou can check the tcode
VA05.
vijay -
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
-
Collective deliveries for open sales orders
Is there any process or transaction code for creating the collective Picking for open sales orders.
In my company we are not using the Warehouse management, so we pick the goods manually.
If there is any way plzpost the answer.Check if VG01 helps you if you enter "K" as Group Type
Cheers -
Can someone tell me if there is any FM to list out the Open and Closed Sales Orders as per indicator?
Thanks,
Archana.you can check this program.... SDEWUORD
It contains the logic for open sales orders. you can check the routine FORM FILTER_OPEN_ORDERS in th above program it might be helpful for you.
siri...
check this fm also..........OPEN_ORDER_SALES -
Transaction code for Open sales order other than VA05
Hi all,
Can any one tell me what is transaction code for open sales order other than VA05.
Please help me .
Thanks & Regards ,
Srikanth P.Hi Srikanth,
You can try below options.
1- VA05N - This can be run for multiple sold to party & multiple material, etc which was not in VA05. But this doesn't have all columns in VA05 report.
2 - You can check the sales order tables from transaction SE11 or SE16N
Try with below tables for your requirement.
Sales order Header data - VBAK
Sales order Item data - VBAP
Schedule Line Data - VBEP
Business data - VBKD
Status header - VBUK
Status items - VBUP
Best regards,
Anupa -
Function module to get Sales Order classification.
Hello everyone,
Can someone give me a function module to get Sales Order classification? Really appreciate it.Hi
Check the following BAPI's:
BAPI_OBJCL_GETDETAIL
BAPI_OBJCL_CHANGE
or use the fun module:
CLAF_CLASSIFICATION_OF_OBJECTS.
Reward points if useful
Regards
Anji -
Table For Open Sales Order And Customer Invoices
Dear Gurus,
Are there any table to know open Sales orders and pending invoices for Customers?
Wishes,
AbhishekHi,
Go to T code VA05 and select open sales order radio button. Put other input parameters like date range or sold to . Execute you shal get list of all open sales order.
For pending invoices go to T code VL04 and you get list of all billing not yet created even though GI is done.
These are standard SAP functionality and can be used rather than looking in a table level.
Regards
Vivek -
Logic for Open Sales order qty
What should be the logic given to determine "open sales order qty" during designing a report.
Note the criterias are as under:
1) Open sales order qty is the confirmed qty less the delivery qty.
2) The delivery qty should be delivery order qty (The delivery should not necessarily be pick, packed & PGI)sorry it doesn't work for services, since they do not create requirements.
in this case you can use VBFA table, subracting all the delivered quantities VBFA-RFMNG with VBFA-VBTYP_N = J and VBFA-VBELV/VBFA-POSNV = to your order/item from the ordered quantities
hope this help you.
Roberto -
Dear all,
I need to create a open sales order report. Could you please tell me from which table i can get open sales order. Its standard report is VA05 and also I checked in table VBBE. but all record which i get from VA05 are not visible in VBBE table. It means VBBE doesnt carry all pending open records.
Please guide me from which table i can get it or what is the sriteria to get it?
Thankyou very much in advance
Punnet Sharmahi,
my logic goes like this:
Note: Open cursor is used since we are dealing with huge amnt of data:
* Select orders based on their Delivery status
SELECT vbeln
FROM vbuk INTO TABLE git_vbuk
WHERE lfstk = 'A' OR lfstk = 'B' .
* Filter selected orders
* Selection using open cursor
DATA: lwa_op_sal_ord1 TYPE gt_comtab.
IF sy-subrc = 0.
OPEN CURSOR c1 FOR
SELECT vbap~matnr
FROM vbap INNER JOIN vbak
ON vbap~vbeln EQ vbak~vbeln
FOR ALL entries IN git_vbuk
WHERE vbap~vbeln = git_vbuk-vbeln AND
vbak~vbtyp = 'C'.
DO.
CLEAR lwa_op_sal_ord1.
FETCH NEXT CURSOR c1 INTO CORRESPONDING FIELDS OF lwa_op_sal_ord1.
IF sy-subrc = 0.
APPEND lwa_op_sal_ord1 TO li_op_sal_ord1.
ELSE.
CLOSE CURSOR c1.
EXIT.
ENDIF.
ENDDO.
ENDIF.
here filter orders based on 'A' and 'B' from VBUK...
then frm header table VBAK get order for vbtyp ='C'.
now li_op_sal_ord1 will have open sales orders..
Moreover as per ur query y do u need the item data frm VBAP as u are only concerned abt VBELN.
If u need item u hv 2 run another select.
regards,
ags -
Hi..
my client want the report for all open sales orders in following manner :
CUSTOMER NAME ITEM 1 ITEM 2 ITEM 3 ITEM 4
Customer 1 23 45 54 76
Customer 2 10 20 30 50
Customer 3 40 10 30 10
TOTAL 73 75 114 136
please let me know the sql query which i can put in crystal report to creat this report
Regards
RakhihI rAK
HERE IS UR QUERY FOR OPENSALES ORDER I THINK THIS WILL SOLVE UR PROB
SELECT T0.[DocNum], T0.[DocDate], T2.[CardCode], T2.[CardName], T0.[DocTotal],
(T0.[GrosProfit]/(T0.[DocTotal]-T0.[GrosProfit])*100)'PROFIT%', T2.[CntctPrsn], T2.[Phone1], T3.[GroupName]
FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
INNER JOIN OCRD T2 ON T0.CardCode = T2.CardCode
INNER JOIN OCRG T3 ON T2.GroupCode = T3.GroupCode
WHERE T0.[DocTotal]!= T0.[GrosProfit] and T0.[DocStatus] ='O'
GROUP BY T0.[DocNum], T0.[DocDate], T2.[CardCode], T2.[CardName], T0.[DocTotal],
T0.[GrosProfit], T2.[CntctPrsn], T2.[Phone1], T3.[GroupName]
REGARDS
JENNY
Maybe you are looking for
-
I want to stop my printer from printing the same thing every time I turn it on.
HP 6500A: how do I cancel printing jobs so that the printer doesn't continue to reprint them?
-
Trying to hook up Bluetooth to my ford sync
I have an iPhone 5. Trying to hook up to my ford sync. It is not working. My phone just does not pick up any devices. Just keeps searching. I checked my Bluetooth settings in my car and they are all good. Then I reset phone and Bluetooth connection o
-
Export a single body from a Catia v5 multibody part
Hi. We just purchased Adobe Acrobat 9 Pro Extended for the purpose of converting cad-files. It works great! One problem though is when I'm converting a file, in this case Catia V5, which contains several bodies, to a parasolid. When I open the part o
-
I am just about ready to biff this IPad ! I bought a tv series and it keeps telling me I didn't have enough storage .... Finally figured out how to delete a previous series I bought and it looks as tho it goes to iCloud ? This is great ! However ...
-
In.mpathd: No test address configured on interface
Hi, I am getting error messages related to multipathing in dmesg output May 10 02:29:29 sskidb2 in.mpathd[165]: [ID 975029 daemon.error] No test address configured on interface ce2; disabling probe-based failure detection on it May 10 02:29:29 sskidb