BAPI or FM to get open sales orders to material like TC VA05N
Hi,
i'm searching for a bapi or fm to get a list with all open sales orders to a material like the tc va05n this do. Maybe some of you know such a bapi or fm.
I tried the fm SD_SELECT_SALES_DOCUMENTS but i don't get the result i hoped.
Would be happy if someone could help me.
Hello Alexander,
To get Open Sales order has VA05N use the Function Module
RV_SALES_DOCUMENT_VIEW_3
We need to pass value to the Importing parameters VBCOM
To get the open sales order
VBCOM-VKORG = sales organisation
VBCOM-ZUART = 'A'
VBCOM-TRVOG = '0'
VBCOM-STAT_DAZU = 'X'
VBCOM-NAME_DAZU = 'X'
VBCOM-KOPF_DAZU = 'X'
VBCOM-VBOFF = 'X'
VBCOM-AUDAT = Begin Date
VBCOM-AUDAT_BIS = end date
By passing this variable you will get the all open sales for given sales organisation and given date.
Similar Messages
-
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 -
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 -
Payment terms for open sales order
Hi All,
we are using a bapi in to create a open sales order:
BAPI_SALESORDER_CREATEFROMDAT1.
for this the payment terms are being checked against the t052 table .we have no errors in the test run .But when we upload the order it shows the payterm say 'z500' is not defined.
please let provide the info.
Thanks and regards
Anitha T SPayment terms comes from the Customer Master ? have u cross checked that one ?
regards
Prabhu -
Open Sales Order table with multiple schedule line....
YUSUF BHORI wrote:
Hi Experts,
In Sales Order there are multiple schedule line for single item.
Where and in which table i can find open qty for order ,material, item and schedule line items.
I Want open items for each schedule line. For One vbeln, posnr there multiple etenr.
Urgent,
Yusuf.Hai,
Join VBAK & VBAP and store data in an internal table GT_VBAP to get Sales order numbers, items, materials.
Get Open Sales order items from VBUP into GT_VBUP where VBUP-GBSTA NE 'C'.
LOOP at GT_VBAP.
Read table GT_VBUP with key vbeln & posnr.
If sy-subrc <> 0.
delete GT_VBAP.
endif.
****Fill your Final Report Internal table with required field values **Append into that internal table
ENDLOOP.
Now Select WMENG BMENG from VBEP into GT_VBEP for all entries in GT_VBAP.
LOOP AT GT_VBEP.
*******Again Modify your Final Report internal table with these values
***VBEP-WMENG is Ordered Qty
***VBEP-BMENG is Confirmed Qty
************Open Qty = Ordered Qty = Confirmed Qty***
************Open Qty = VBEP-WMENG = VBEP-BMENG.***
ENDLOOP.
Edited by: Eswara Rao Aakula on Dec 24, 2007 9:56 AM
Edited by: Eswara Rao Aakula on Dec 24, 2007 9:57 AM -
Reg Open sales order item and the quantity
Hi experts:
I am getting open sales order item based on inner join of tables(vbak, vbap, vbep). Not using vbbe table in inner join as it doesnt carry all pending open records.
can any one say how open sales order items and their quantity can be retrieved?
I searched forum and saw usage of vbuk and vbup tables, but it does not accomplish our scenario.
Thanks in advance,
Sashti.Hi,
1) fetch the header information from VBAK table.
2) Based on VBAK table fetch all the line items from VBAP table.
3) Now fetch from VBFA table.
*-Fetch from VBFA to get the delivered qty
SELECT vbelv " Preceding sales and distribution document
posnv " Preceding item of an SD document
rfmng " Referenced quantity in base UOM
FROM vbfa
INTO TABLE lt_vbfa
WHERE vbelv = gv_vbeln
and vbtyp_n = 'J'.
4) By comparing VBFA-POSNR just filter the records from the VBAP internal table. Remained lines are open lines of the sales order.
Regards,
~Satya -
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 -
How to find open sales orders.
Hi Gurus,
Can you please help me out How to find open Sales orders in SAP.
Is there any transaction code available or we can get it through via tables.
Your afforts are highly appriciated .
SRavani.Dear SRAVANI,
You can find open sales orders from the Transaction code "VA05N", You just run this report, Below the screen you can find open sales orders radio button , you select this and give execution parameters and execute(F8).
You will get the all open orders.
Hope it fixes your issue.
Please check it and revert.
Thanks&Regards
Raghu.k -
How to make open sales order consider allocated & unallocated stocks in MRP
Dear Experts,
MAT BOM, MAT TYPE, STRATEGY GROUP, PLANNING STRATEGY, Req-DM Req-CU
3. TC180TK fert 20 KE make-to-order
2. TB300TK halb 20 KE make-to-order
1. TA300TK roh 10 LSF KSL make-to-stock
As listed above, material in line number 1 is required to produce 2, and
2 is required to produce 3.
I have open open sales order for material TF180TK(fert).
When I carry out MRP run, stocks of material TB300TK (halb), that is allocated to this sales order is considered, but unallocated stocks are not considered.
I want the system to consider both stocks, allocated & unallocated stocks.
What settings do I need to effect, to make the System consider available stocks of material TB300TK , that is not allocated to this sales order during MRP run using MD01?
RegardsDear
For MTO scinario , any depedent will be either having Account assingement PR or it will pick up the speciall stock (E) based on the Individaul and Cllective Indicator as 1 in MRP4 view .It will never getting reservaed from un-allocated stock ( i beieve u r talking abou Un-restrited stcok ) .This is a standrad behaviour of the MTO cycle in SAP system .
As you have mentioned , that you are using planning startegy 20 -MTO and also you want depdents (SFG and Compoenets in SFG) to be from un-allocated stock .In that case you should not use Planning strategy 20 and also assing Indviaul and Collective Indicator as 2 or blank .It will be purely MTS and you can have sales order with item categoery TAN .
So please keep Ind/Collective indicator as 2 in MRP4 and try
Hope this helps
Regards
JH -
How to make Open Sales Orders consider unallocated stocks in MRP run
Dear Experts,
Maerial BOM MATERIAL TYPE STRATEGY GROUP PLANNING STRATEGY DESCRIPTION
Req-DM Req-CU
3. TF180TK fert 20 KE make-to-order
2. TH300TK halb 20 KE make-to-order
1. TA300TK roh 10 LSF KSL make-to-stock
As listed above material in line no.1 is required to produce 2 and
2 is required to produce 3.
I have open open sales orders for material TF180TK(fert).
What settings do I need to effect, to make the System consider Stocks & Open Purchase Orders for material TA300TK (roh) which are not allocated to these Sales Orders , when MRP run is carried out at plant level using MD01?
RegardsDear Bisolaaina,
I Think by mistake this duplicate thread might have been created so pls close it
Regards
Madhu -
LSMW BAPI Open Sales Order Load - How to update conditions?
Hello gurus,
I was using the BAPI SALESORDER_CREATEFROMDAT2 to upload open sales orders. Wanted to overwrite the default PR00 pricing condition that gets pulled from the customer-material info record, with the price that was existing in the original legacy system when the order was created there. Used the E1BPCOND structure in the Idoc, but since there is no such thing as a E1BPCONDX structure(corresponding to the structure BAPICONDX in the origial BAPI) where you could specify whether the condition should be updated, added or deleted, it adds a second PR00 condition with the legacy system price. The original PR00 condition with the customer-material record price still stays there. Eventhough the order seems to be taking into consideration only the second one I added, to determine the total pricing, I am worried the original sitting there, might cause problems down the document flow. Is there a way to update the existing PR00 condition(rather than adding a new one) on the order, through some flag in the Idoc structure that I am not aware of?
Would greatly appreciate an answer ASAP.
Thanks a lot in advance,
WayfarerThanks and appreciate your taking your time to reply, Gerard, I guess my problem is, we are still on 46C, and the only message type available for this BAPI is SALESORDER_CREATEFROMDAT201. Just called a friend who is on ECC 60 who confirmed that the later version of this message type, SALESORDER_CREATEFROMDAT202 has the E1BPCONDX structure. I don't have that option since on LSMW it automatically defaults to the only message type(and method CREATEFROMDAT2) that is available, when you choose business object BUS2032. Guess I am out of luck, unless you have any other options to suggest.
Thanks,
Wayfarer -
Open Sale Order Value (FD33) not getting diminished even after closing SO?
Hi,
Upon Executing FD33 and clicking the status view for a Customer say XYZ , and then choosing EXTRAS-Open Sale Order . Say the value of open sale orders being shown is 75000. Even after closing the open sale orders (By Selecting VA05 and Putting reason for Rejection), and then also the Open Sales Order value is not getting diminished.
What could be the reason ?
Pls help.
Regrds,
BinayakHi Binayak,
As mentioned by you, running of Credit re-org program 'RVKRED77' is the only solution for this problem and it is known problem in SAP.
Some precautions
1. Always run the program in background by scheduling a job.
2. The idle time is around midnight when no user is working on SAP.
3. Some time the job fails as some other program may be updating same tables as this program. In such cases re-schedule the job at different time.
4. You may run the program 'RVKRED88' which will simulate without actual updation of credit values.
Hope this clarifies..
Regards,
Madhu. -
Rajesh/Sadhu/RobertoUrgent :- Open Sale Order Value not getting Reduced?
Hi,
Upon Executing FD33 and clicking the status view for a Customer say XYZ , and then choosing EXTRAS-Open Sale Order . Say the value of open sale orders being shown is 75000. Even after closing the open sale orders (By Selecting VA05 and Putting reason for Rejection), and then also the Open Sales Order value is not getting diminished.
What could be the reason ?
Pls help.
Regrds,
Binayak
Message was edited by:
Binayak Ghosh
Message was edited by:
Binayak GhoshHi Binayak,
As mentioned by you, running of Credit re-org program 'RVKRED77' is the only solution for this problem and it is known problem in SAP.
Some precautions
1. Always run the program in background by scheduling a job.
2. The idle time is around midnight when no user is working on SAP.
3. Some time the job fails as some other program may be updating same tables as this program. In such cases re-schedule the job at different time.
4. You may run the program 'RVKRED88' which will simulate without actual updation of credit values.
Hope this clarifies..
Regards,
Madhu. -
Open Sales Order values not getting updated after run RVKRED77 & RVKRED88
Hiiii,
In Production Server. We run the reports RVKRED77 & RVKRED88. Credit info structure and and Open Sales Order values not getting updated. In FD32, Status - Sales value it showing '0". At the time of creating Sales Order Dynamic Credit check not happening coz of Tables S066 not updating. Please provide me Solution.
Best Regards,
Sridhar . PDear Heagal,
I followed your suggestions and implemented in the Development and moved the changes in to Quality Server. I tested it thoroughly by creating New Customer and maintained Credit Limit. I come to know that Problem is in all Servers. I made 3 changes.
1. In Pricing Procedure Sub Total A it was not maintained against Net value. I placed it.
2. Removed Credit groups for Delivery Type.
3. In OVA8 i maintained Max. Doc Value :99,999,999.00 before it was with 1.00
I checked the OMO1 Settings it was Asynchronous. As SAP Notes Suggesting to use Synchronous but here it's a client setting. So, It's Can't possible to change. Changes will affect other Company Codes.
Tested both in DVP and QTY Dynamic Credit Check is working Perfectly and Status in FD33 Sales Value field getting update.
If i move these changes in to Production, Will i need to run the reports again or not? How it will affect on Old Cusomer Billing and Credit Limit data. For few of the Customers the Credit Limit data it was exceeded. Please provide me advice. The issue need to be Solved immediately.
Best Regards,
Sridhar -
Open sales order not getting updated in FD32
HI
We are configuring Credit management, and found that the open sales orders are not getting updated in FD32.
I have checked all the settings in OVA8 and all are working fine. This is a Static credit check and system is blocking the customer in case, the limit is exceeded. But the values are not getting reflected in FD32, for open sale orders, that are not blocked.
Info structure S066 in OMO1 all are configured perfectly. I have run F.28 and no log was issued.
Request to suggest other reasons for not getting updated in the table.
I have gone thru the previous threads, but cud not find any solution.
Regards
Vamsi Javaji.Hi Vamsi Javaji
First of all check in OVA8 wheather you have checked Open sales orders feild or not . Secondly check in your pricing procedure wheather you have maintained Subtotal A or not for the Net Value .Also check wheather you have assigned to your sales document type correctly or not Finally check in OMO1 wheather S066 has been assigned correctly or not
Check wheather you have assigned the Credit control area to the customer in CMR , in sales tab
Regards
Srinath
Maybe you are looking for
-
Gung Ho security team vs Debug with replace in development
Hi fellow developers. I'm trying to talk our security team off the ledge and I want to conduct an informal poll regarding the responsible use of debug with replace in a DEVELOPMENT environment. For the newer developers.. replace is much more powerfu
-
Form Personalization on PO Header
Hi, Could you let me know how to implement below functionality using form personalization. User Logs in PO Responsibility => Query PO (If this PO has value in Attribute10) => In this case, I have to make sure the User can't update the PO. User Logs i
-
[CAML] AND condition does not work!
I have written this code. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.SharePoint.Client; namespace ConsoleApplication1 { class Program { static void Main(string[]
-
What can I do. I have an ipad2 but all the apps requires iOS5 now.
All the apps now require ios5. What can I do if I only have an ipad2. My old apps require an update but I cannot update them as I don't have ios5 so they re not working anymore.
-
I cant find the s/n and the sku codes
Hi, I have a HP ENVY 15 specs i7 920xm and amd 5830 and the problem is that it doesnt have any sticker with the model number or sku codes anywhere the only thing it has under the battery is the windows activation key and the worst part is that recent