Stop creating sales order if no stock
Hi Gurus
In a situation like No stock in shipping plant, the system should not allow to create (save) the sales order.
Currently though no stock just the sales order can able to create, only the part avilablity will not be confirmed. As such hanging many open P.O. .
Could anyone advise the steps in detail.
Rgds
RG.
Edited by: R G on Dec 15, 2010 10:44 AM
Hi,
Similar your requirement we have configured in other way. We have save the sales order, but with dummy storage location & sch.line category.
& we triggered this storage location when there is no stock available. ( in Tx:OVZJ- we maintained checking rule as "Complete delivery"-to confirm the complete order qtty if stockk available)
stock check is done through std FM: BAPI_MATERIAL_AVAILABILITY.
if system finds ATP stock = Zero. then storage location set as Dummy.
In your case, the same logic you can write, for not to save sales order.
Regards,
Reazuddin MD
Similar Messages
-
While creating sales order stock should not go under reserved block,
While creating sales order stock should not go under reserved block,
What is the customization?
Please help me.Hi,
What exactly is your requirement?
Can you be a bit more detailed?
Thanks -
Getting error when creat sales order and Stock Posting
Hi
I have created enterprise structure, xd01, mm01, ovkk but I count't post stock.
When create sales order getting error is that
1.This material is not defined for sales area 1000, 10, 00.
And if i use this T.Code MB1C,
2. Parameters for plant 1000 not maintained in Inventory Mgt.,
*3. Unit *** is not created in language EN.*
Thanks in advanceDear selvi sankaran
1) Compare the sales organization, distribution channel and division of customer and material. In your case, either of that should have been created differently. Maintain the same sales area and retry
2) Go to omi8 and maintain the required parameters to your plant
3) Go to Material Master, select "Additional data" and click on "Descriptions". There maintain "EN" under language.
thanks
G. Lakshmipathi -
Hello All,
Good Morning,
We have received an Incident where in the Sales Order during the ATP Check we do user is getting the future schedule line date in future as enclosed in the screen shot below. User has created the Sales Order on 12052014 for 7 line items. For the Line Item 7 the Stock is available in the system on same day but still after ATP Check the date is shown in future.
I wan to replicate the scenario in Quality to find the exact bug to fix the Issue but not able to replicate for same customer and material i am getting the current date as confirmed delivery date. please guide me if you can share some inputs so that i can go in right direct and fix the issue.
Please respond it is critical Issue.
Thanks,
Farhan.Hello All Experts,
Many Thanks for all the Inputs you have given.
Finally we have replicated the Issue in Quality 2 Days Back and Indeed it was great Achievement.
Finally We have given to Abaper to debug it find the root cause.
Let me summarise the actual Issue.
Issue : Sales Order Schedule Line showing future date for the Materials which are having Product Allocation even though the Stock is available and Allocation Qty also available in the PA Master Data we maintained..
We created one Sales Order for Line Item A and B. Line Item A is having Product Allocation. When we created Sales Order for both Line Item A and B we got Schedule Line Date as 13.06.2014. Then we Schedule the Re-Scheduling Job in V_V2 and check the effect. For Line Item A the Schedule Line Date got changed to 01.07.2014 and Line Item B it was same as before.
Would like to know is there any config setting at Schedule Line Level we have missed just want to cross check if there is any or something in Product Allocation Configuration.
Please refer screen shots below for more details of Sales Order before and after effect in Re-Scheduling.
Please provide your inputs on this.
Thanks,
Farhan. -
VL10E report should show only sales order with complete stock
Hello Friends,
I have to make-to-order scenario. While creating a sales order the system proposes a delivery date based on the inhouse production day maintained in the material master.
In VL10E the system gives list of Sales Order for which delivery is due on that particular date. It does not check whether actually the material is really available on that date for the concerned sales order.
Is there any scope ( any config change or user_exit) which will show only the sales order with complete stock confirmed through production order in the VL10E report.
Regards
DebeshHi,
Check userexit LV50R_VIEWG02. If CF_SUBRC = 1 you will not see it in the list. For this purpose in the interfase you have the information in IS_VBEP. Set a break-point and check the conditions.
For more info check the Note 198137 - VL10: Customer-specific enhancements / user exits
I hope this helps you
Regards
Eduardo -
Error in confirmed quantity while creating sales order
Hi,
When I am creating sales order, I am getting confirmed quantity as 0. I have checked the following items,
1. Partial Delivery is permitted for the customer
2. Stock Ava liability is 1,100
3. Confirmed Issue I am getting 1,100
Please solve my problem why i am getting confirmed quantity as 0 and were i have to check for error
Please help me
regards,
PR Bhaskar RaoCheck what is there in the availability Check. Try to see the scope of check in the Scheduline tab of the sales order item. Also, check the date for which the item has been confirmed. You can also check what is the Requirement type that has come up.
You can also check in MMBE (for the plant, material and storage loc combination) if the quantity available is reserved for some other sales order and at the same time in the availability check you have made it to consider the reserved quantity..
All these will help you analyse why you are getting the confirmed quantity as 0.
Hope this helps...
Regards,
Mukund S -
Creating Sales Order using inbound IDOC
hi,
Using test tool WE19 if i create sales order in foregound no error occurs and order is created successfully but if i try to create in backgound it gives error "No batch input data for screen SAPMSSY0 0120".
please suggest a way out .I hope you do not have any popup windows during your order create, popups should be suppressed for batch-input.
try to run it in foreground and check if there is any warning message which forces you to press Enter once more to bypass it.
try to process it in "foreground after error" to see if it stops on any error/warning message. -
Avoid substitute material.., while creating sales order with BAPI?
Hi experts.
I use BAPI_SALESDOCU_CREATEFROMDATA1 function module to create a sales order.
Material A has a substitute material B with substitute reason 0005.
So if I use material A when creating sales order with above BAPI function, the order is created with material B.
I don't want to substitute the material automatically. I want to create the sales order with material A.
What should I do? Help me please.
Thanks in Advance.Hi bvrn Reddy,
I know, your message is almost two years old, but, did you find a solution? I'm facing the same problem. The material A has B as substitute, but in va01 a popup appears (its customizing inside the substitution reason, strategy = A). Of course, we have no popup inside the bapi, but there must be a way to decide which material the bapi should use. At the moment I only get the substitute, never the old mat (even there is something in stock).
Maybe you've got a helpful hint for me, thanks!
Ben -
Is there any settings in CO to stop the Sale Order or Invoice Document
The Invoice would not post to accounting when created as the material did not have a standard cost.
I created a cost, re-dated the invoiced and released it from VFX3.
When I looked at the PA entries I saw that the group cost entries to PA were okay but only the cost component (raw materials) of the legal cost had posted. The legal cost of goods sold was blank. Looking at the billing document I see that the VPRS condition is showing as an error with zero value. This explains why no PA entry for it was made.
Can anyone tell me why the condition wasn't corrected when the cost was created and why the invoice was released from VFX3 with an Condition error uncorrected.
Is there any settings in CO to stop the Sale Order ot Invoice when there is an error in sale order or invoice.
Thanks in advanceHi
To stop the sale order in the absence of Std Cost - use exit MV45AFZB
To Stop the invoice - CReate a Costing key in KE40 and check "Issue error msg if no cost estimate found"...
Also, you can redetrmine your pricing during billing to update VPRS
Ajay M -
Issue in V_V2: Can system rescheduling the sales order with out stock
Hello All,
I created sales orders with one material. For that material the stock is zero now. The system has not confirmed the qty in sales orders while creating.
After that as per the client we ran the V_V2 for rescheduling, but system has not rescheduled any schedu lines in any sales orders.
Is it due to lack of stock?
One more point is we do not have Delivery proposal option in sales order. Only One time delivery option.
Is it due to this setting?
Please help me to solve this issue.
Regards
LakshmikanthHi
Because there is checking rule set at order level , thats why once stocks is not there due to unavailabilty of stocks system not allow to go for V_V2.
for this u hav to deactivate under oVZ8/9
thanks
mk -
How to restrict the order reason in Tcode Va01 while creating sales order
Hi Gurus,
My requirement is
while creating sales order in VA01
if order type is Zvol
than the list of order reasons has to be restricted.
Now 15 are coming from OVAU tcode
I need only 5 from these.
Thanks & Reagrds
kals.Hi,
By doing the user exit in IW32 we achieved the requirement of restriction of maintenance order TECO functionality if any Service Entry sheet pending with reference of maintneance order.
regards
JKM -
Issue in creating sales order using BAPI's...?
Hi Guru's,
i had generated the sales order using the BAPI..but could please guide me how to declare the data declaratin same fields as globally and how to move internal table and how to append ....
thanks in advance...
REPORT z_bapi_salesorder_create.
Sales document type
PARAMETERS: p_auart TYPE auart OBLIGATORY.
Sales organization
PARAMETERS: p_vkorg TYPE vkorg OBLIGATORY.
Distribution channel
PARAMETERS: p_vtweg TYPE vtweg OBLIGATORY.
Division.
PARAMETERS: p_spart TYPE spart OBLIGATORY.
Sold-to
PARAMETERS: p_sold TYPE kunnr OBLIGATORY.
Ship-to
PARAMETERS: p_ship TYPE kunnr OBLIGATORY.
Material
PARAMETERS: p_matnr TYPE matnr OBLIGATORY.
Quantity.
PARAMETERS: p_menge TYPE kwmeng OBLIGATORY.
Plant
PARAMETERS: p_plant TYPE werks_d OBLIGATORY.
Data declarations.
DATA: v_vbeln LIKE vbak-vbeln.
DATA: header LIKE bapisdhead1.
DATA: headerx LIKE bapisdhead1x.
DATA: item LIKE bapisditem OCCURS 0 WITH HEADER LINE.
DATA: itemx LIKE bapisditemx OCCURS 0 WITH HEADER LINE.
DATA: partner LIKE bapipartnr OCCURS 0 WITH HEADER LINE.
DATA: return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
DATA: lt_schedules_inx TYPE STANDARD TABLE OF bapischdlx
WITH HEADER LINE.
DATA: lt_schedules_in TYPE STANDARD TABLE OF bapischdl
WITH HEADER LINE.
Start-of-selection.
START-OF-SELECTION.
Header data
Sales document type
header-doc_type = p_auart.
headerx-doc_type = 'X'.
Sales organization
header-sales_org = p_vkorg.
headerx-sales_org = 'X'.
Distribution channel
header-distr_chan = p_vtweg.
headerx-distr_chan = 'X'.
Division
header-division = p_spart.
headerx-division = 'X'.
headerx-updateflag = 'I'.
Partner data
Sold to
partner-partn_role = 'AG'.
partner-partn_numb = p_sold.
APPEND partner.
Ship to
partner-partn_role = 'WE'.
partner-partn_numb = p_ship.
APPEND partner.
ITEM DATA
itemx-updateflag = 'I'.
Line item number.
item-itm_number = '000010'.
itemx-itm_number = 'X'.
Material
item-material = p_matnr.
itemx-material = 'X'.
Plant
item-plant = p_plant.
itemx-plant = 'X'.
Quantity
item-target_qty = p_menge.
itemx-target_qty = 'X'.
APPEND item.
APPEND itemx.
Fill schedule lines
lt_schedules_in-itm_number = '000010'.
lt_schedules_in-sched_line = '0001'.
lt_schedules_in-req_qty = p_menge.
APPEND lt_schedules_in.
Fill schedule line flags
lt_schedules_inx-itm_number = '000010'.
lt_schedules_inx-sched_line = '0001'.
lt_schedules_inx-updateflag = 'X'.
lt_schedules_inx-req_qty = 'X'.
APPEND lt_schedules_inx.
Call the BAPI to create the sales order.
CALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA1'
EXPORTING
sales_header_in = header
sales_header_inx = headerx
IMPORTING
salesdocument_ex = v_vbeln
TABLES
return = return
sales_items_in = item
sales_items_inx = itemx
sales_schedules_in = lt_schedules_in
sales_schedules_inx = lt_schedules_inx
sales_partners = partner.
Check the return table.
LOOP AT return WHERE type = 'E' OR type = 'A'.
EXIT.
ENDLOOP.
IF sy-subrc = 0.
WRITE: / 'Error in creating document'.
ELSE.
Commit the work.
COMMIT WORK AND WAIT.
call FUNCTION 'BAPI_TRANSACTION_COMMIT'.
WRITE: / 'Document ', v_vbeln, ' created'.
ENDIF.*& Report ZAREPAS30
REPORT zarepas30.
DATA : gs_vbeln TYPE vbak-vbeln,
gs_order_header_in TYPE bapisdhd1,
gs_order_header_inx TYPE bapisdhd1x,
gt_order_items_in TYPE STANDARD TABLE OF bapisditm,
gwa_itab1 TYPE bapisditm,
gt_order_items_inx TYPE STANDARD TABLE OF bapisditmx,
gwa_itab2 TYPE bapisditmx,
gt_order_partners TYPE STANDARD TABLE OF bapiparnr,
gwa_itab3 TYPE bapiparnr,
gt_return TYPE STANDARD TABLE OF bapiret2,
gwa_itab4 TYPE bapiret2.
Sales document type
PARAMETERS: p_auart TYPE auart OBLIGATORY.
Sales organization
PARAMETERS: p_vkorg TYPE vkorg OBLIGATORY.
Distribution channel
PARAMETERS: p_vtweg TYPE vtweg OBLIGATORY.
Division.
PARAMETERS: p_spart TYPE spart OBLIGATORY.
Requested Delivery Date
PARAMETERS: p_edatu TYPE edatu OBLIGATORY.
Sold-to
PARAMETERS: p_sold TYPE kunnr OBLIGATORY.
Ship-to
PARAMETERS: p_ship TYPE kunnr OBLIGATORY.
Material
PARAMETERS: p_matnr TYPE matnr OBLIGATORY.
Quantity.
PARAMETERS: p_menge TYPE kwmeng OBLIGATORY.
Plant
PARAMETERS: p_plant TYPE werks_d OBLIGATORY.
Start-of-selection.
START-OF-SELECTION.
Header data
Sales document type
gs_order_header_in-doc_type = p_auart.
gs_order_header_inx-doc_type = 'X'.
Sales organization
gs_order_header_in-sales_org = p_vkorg.
gs_order_header_inx-sales_org = 'X'.
Distribution channel
gs_order_header_in-distr_chan = p_vtweg.
gs_order_header_inx-distr_chan = 'X'.
Division
gs_order_header_in-division = p_spart.
gs_order_header_inx-division = 'X'.
Reguested Delivery Date
gs_order_header_in-req_date_h = p_edatu.
gs_order_header_inx-req_date_h = 'X'.
gs_order_header_inx-updateflag = 'I'.
Partner data
Sold to
gwa_itab3-partn_role = 'AG'.
gwa_itab3-partn_numb = p_sold.
APPEND gwa_itab3 TO gt_order_partners .
ship to
gwa_itab3-partn_role = 'WE'.
gwa_itab3-partn_numb = p_ship.
APPEND gwa_itab3 TO gt_order_partners .
ITEM DATA
gwa_itab2-updateflag = 'I'.
Line item number.
gwa_itab1-itm_number = '000010'.
gwa_itab2-itm_number = 'X'.
Material
gwa_itab1-material = p_matnr.
gwa_itab2-material = 'X'.
Plant
gwa_itab1-plant = p_plant.
gwa_itab2-plant = 'X'.
Quantity
gwa_itab1-target_qty = p_menge.
gwa_itab2-target_qty = 'X'.
APPEND gwa_itab1 TO gt_order_items_in.
APPEND gwa_itab2 TO gt_order_items_inx.
Line item number.
gwa_itab1-itm_number = '000020'.
gwa_itab2-itm_number = 'X'.
Material
gwa_itab1-material = p_matnr.
gwa_itab2-material = 'X'.
Plant
gwa_itab1-plant = p_plant.
gwa_itab2-plant = 'X'.
Quantity
gwa_itab1-target_qty = p_menge.
gwa_itab2-target_qty = 'X'.
APPEND gwa_itab1 TO gt_order_items_in.
APPEND gwa_itab2 TO gt_order_items_inx.
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
order_header_in = gs_order_header_in
ORDER_HEADER_INX = gs_order_header_inx
IMPORTING
SALESDOCUMENT = gs_vbeln
tables
RETURN = gt_return
ORDER_ITEMS_IN = gt_order_items_in
ORDER_ITEMS_INX = gt_order_items_inx
order_partners = gt_order_partners.
Check the return table.
LOOP AT gt_return into gwa_itab4 WHERE type = 'E' OR type = 'A'.
EXIT.
ENDLOOP.
IF sy-subrc = 0.
WRITE: / 'Error occured while creating sales order '.
ELSE.
Commit the work.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
WRITE: / 'Document ', gs_vbeln, ' created'.
ENDIF. -
Creating sale order by using BAPI
Hi,
My requirement is to create a inquiry(VA11), By using the Inquiry no as a input in report, i should create a salesorder using BAPI in which the datas should be flowed from inquiry to sale order. i did almost everything except the Pricing Condition.
I am fetching the pricing condition values from table KONV-KSCHL and passing the value via BAPI_SALESORDER_CREATEFROMDAT2 it creates saleorder. In the created salesorder, there are two same pricing conditions but different rate 1.) the price of the MATNR which is maintained 2.) the changed MATNR price in inquiry level,
i need the value which is changed in inquiry level that is 2nd value.
can anyone help me in this...REPORT ZSALESORDER.
<< Cut and paste without attribution from
create sales order using BAPI
removed >>
Edited by: Rob Burbank on Feb 24, 2009 10:43 AM -
Function module to add record into incompletion log of creating sale order
Hi SD Experts,
Do you know any function module / class to add record a into incompletion log procedure of creating / changing sale order process? We can do it through configuration OVA2 but I need to add more condition before adding to this table.
Thanks,
DuyHi,
Refer to The SDN Post : [user exit to update the incompletion log in sales order for pricing error |Re: user exit to update the incompletion log in sales order for pricing error].
Limitation : While creating Sales order, this works only for document type with external number range as the code required for updating XVBUV require Sales Order Number.
Regards
Vinod -
To create Sale Order , Delivery and then Billing Automatically .
hi all ,
I want to create a program which will create SALES ORDER , then make DELIVERY of it and then BILLING .
Also i want to restrict the sale order to be create of those CUSTOMER whose credit limit is exceed , which is maintain in FD32 tcode .
If i go with BDC for Sales order it creates the sales order with a warning message , which i dont want .
Is there any BAPI for doing this ?
I do have try to find out the customer whose credit limit are exceed so as to restrict them in Program itself , but do not find the table for credit exposure to compare it with credit limit .
Please give me your Suggestion .
Secondly , Which BAPI is suitable for DELIVERY and BILLING in 4.7 version .
Thanks .Hi,
Check these below BAPI's
BAPI_SALESDOCU_CREATEFROMDATA
BAPI_SALESORDER_CREATEFROMDAT1 Sales order: Create Sales Order
BAPI_OUTB_DELIVERY_CREATE_SLS Generates Delivery for Customer Order
BAPI_BILLINGDOC_CREATE Custimer Individual Billing Document : Create Billing Document
BAPI_BILLINGDOC_CREATEFROMDATA Create Customer Individual Billing Doc.
Regards,
Jyothi CH.
Maybe you are looking for
-
Error in installing 10.2.0.4
Hi Experts, I have been using Oracle 10.2.0.3 in windows 7 machine, which has three databases. When I tried to upgrade it to 10.2.0.4, I got an error when installing the patch 10.2.0.4 stating *"OUI-10091: There are no patches that need to be applied
-
Hi all ,, i have a question if you can help me : i put choose from list in matrix but when i choose item didn't fill in the column and my code is : ** on create form oForm.DataSources.UserDataSources.Add("IDS", BoDataType.dt_SHORT_TEXT);
-
Hi I am having a problem with the date of photos being changed when taken into Editor and then saved back into a version set (Elements 8.0 for Windows). Both the edited photo and the original will then have the same (edited) date. If however I use
-
Way to wrap Column Heading in two lines
Hi, We have created one table UI element in web dynpro application. We have a requirement to wrap a table column heading in the table. Is there any way to wrap or keep the column heading in two lines. Thanks in advance.. Regards, Kranthi.
-
IMovie won't load iPhoto pictures
Ever since I upgraded to iMovie 09 (from 08), my iPhotos will NOT load to iMovie. Or Garageband or even upload to email for that matter. What happens is that my iphotos say "loading photos" or something like that, and it just has a little spinner the