Problem in sales order Item availability
User created sales order with 5 materials, out of this 5 material first one material X not appear in MD04 transaction.
I try to re activate the item availability in sales order,but system not showing the availability control screen.
but in schedule line tab system show the order qty and confirmed qty on request dalivery date.
If I enter same material X in new sales order or same sales order once again it’s working properly.
Like to know the root cause for this issue and any solution to avoid this issue in future.
Thanks,
Karthikeyan R
Karthikeyan,
This is why the SO item does not appear in MD04.
You can manually enter KSV in VA02, if you are sure this is the proper RqTy.
The most likely reason this field is blank is that a user manually removed it. In general, this field is 'determined' automatically during Sales order processing in one of several ways. However, in most implementations, a user can remove this entry, and the system will not repopulate unless the sales item category is somehow altered (which can also happen in a number of ways).
If a user did this manually, you can probably see this in the change log. VA03 > Environment > changes.
Beyond this attempt at finding a root cause, it is not usually time well spent to troubleshoot something that has only happened once. If it happens 'often', you may have to revisit. Unfortunately, the NEXT most common root cause that I have seen is 'enhancements', which can be a bear to troubleshoot.
Best Regards,
DB49
Similar Messages
-
Sales Order - Item Availability Check
Hi All,
Currently I am doing some integration work between SAP B1 and another ERP system. The inventory data is maintained in the other ERP system and not in SAP B1. When I create a Sales Order in SAP B1, I need to replace SAP B1's default Item Availability Check with a customised routine. Is there a way to trap the action and replace it with my own customised check using the UI/DI API?Hello,
I have made something like that, to replace the defaut Check by one that check purchase order shipping date.. Here is a exemple code for trapping :
You must place it in SBO_Application_ItemEvent
if ((pVal.FormTypeEx == "139") & (pVal.EventType == SAPbouiCOM.BoEventTypes.et_VALIDATE) & (pVal.ItemUID == "38") & (pVal.ColUID == "11") & (pVal.Before_Action == true) & (pVal.InnerEvent == false))
CheckAvailability();
Don't forget to disable the SBO Check Availability in the document's config form.
Sorry for my poor english and good luck
Chris.
Message was edited by:
Christophe Vuignier -
BAPI for Sales Order item availability check
hi all !!!!!!!!!
May I know how to force SO item to perform AV check?
What BAPI or function should I use (In custom program, not user-exit)?
I use BAPI_SALESORDER_CHANGE to insert or update schedule lines but the confirm qty is always zero!!!! When I go into the SO to click the "Item Availability" manually, the AV check is run and qty is confirmed
I am using product allocation
thanksHi,
Could you please tell me how to use ISM_ITEM_FCODE_AVAILABLE_CHECK?
I can't find any document of it
I am using BAPI_SALESORDER_CHANGE in Z-program.
I need to call ISM_ITEM_FCODE_AVAILABLE_CHECK after calling BAPI_SALESORDER_CHANGE???
Thanks in advance -
I have a problem regarding sales order line item with confimed quanity
Hi Experts,
I have a problem regarding sales order line item with confimed quanity with '0' with delivery block but confirming the sales order quantity once the order is released from credit check.
The situation arises as per the below scenarios.
Scenario - 1 - When the sales order has two line item - one line item with confirmed qunaity in the schedule line and for the 2nd line item there is no available stock for the Material xxxxxx.
Initially the sales order is created for the line item 2 with confirmed quantity = 0, and having the delivery block = 01 for the Material xxxxxx and the order is set with credit check. Once the order is relased from the credit check. The quanity for the item 2 where the confirmed quantity will be = 0 ( Where it is not changing the confirmed quantity)
Scenario -2- Updating the order qunaity for the line item 2 as (9Pcs) it will goes to credit check and save the order.
Maintain the stock for the line item 2 ( 5 Pcs).
Once the order is released from the credit check. Then for the line item 2 the confirm quanity will be seting to 5 Pcs with Delivery blcok 01.
This should not happen, When the credit check is released even though if it has stock based on the delivery blockl it should set the confirmed quanity to Zero.
Can you please help me how to solve this issue.
Looking forward for your reply.
Thanks and Regards,Hi,
I agree with your point. In the sales order When the complete delivery check box is enabled where the confimed qty is set to zero, it is fine but when we save the orderr it goes to credit check. Once we release the order using VKM3 where in the sales order the confimed quantity is setting to 5, But it should set to Zero quantity. Quatity should not be get confirmed it should be Zero Quantity.
Further in SPRO - customizing in the deliveries blocking reasons - It has a tick mark in the confirmation blcok. But we dont want to remove the - Confirmation Block tick mark
Please any one can help me if you have any solution to solve this problem.
Thanks and Regards. -
Cancel Confirmed Quantity in Sales Order Item (VA02)
Dear All,
I am having the following scenario :
Customer have created a Sales Order, item 10, schedule line 1 with quantity 120. The delivery date is 2011.12.22.
They have confirmed the quantity using the "Check Item Availability" function.
They have then changed the delivery date from 2011.12.22 to 2011.12.23. The problem arises that in the "Availability Overview", the system still show the confirmed quantity is on 2011.12.22. It doesn't release the confirmed quantity after we have changed the delivery date. And what is worst is the system is prompting me that no stock is available on 2011.12.23.
Does anybody knows how to release the confirmed quantity in the schedule line. I have tried in VA02 by modifying the schedule line details..... but does not work..
Thanks.Hello,
One easiest way is to reject the line item and add a new line, make the delivery date as 23rd. Once you reject the line item the confirmed schedule line get reversed.
You can try with CO09 also.
Regards,
SAM -
Ignore the number of schedule lines in sale order item when run MRP
Dear All,
I have a problem when I create production order (discrete manufacturing)
When I create a sale order with one sale order item and 3 schedule lines for this sale order item.
After that, I run MRP for this sale order, what I get is 3 planned orders for 3 schedule lines. It means that I will have 3 production orders for 1 sale order item.
I want create one production order for one sale order item whatever the number of schedule lines in sale order item.
I think I have to config in MRP. Please help me.
Thanks in advanceDear
Check in OPPQ then look in Master data Availability Check & strategy for material also check whether u have maintained strategy for same material and see did u extended sales views for other material
As u said 3 schedule lines for this sale order item check whether u have extended sales views for next material
With Regards
Pushpalas -
Free goods determined in Delivery over Order Quantity in Sales Order Item
Hi Gurus,
I've a problem about using free goods determination.
First I created free goods master record with following information
ZG1010012060075 From 100 PC -> Free good ZG1040012060075 2 PC
Free goods Category = '2' (Exclusive)
Free goods delivery control = 'E' (Delivery proportional to quantity in main item)
Then I've created Sales Order with
Item 10 ZG1010012060075 4,000 PC.
Item 11 ZG1040012060075(Free good) has been automatically determined for 80 PC
Then I've splitted Item 10 into 4 deliveries. The result of free goods determine in each delivery are as follow:
Delivery#1)
Item10 ZG1010012060075 = 1,176 PC
Item20 ZG1040012060075 = 24 PC
Delivery#2)
Item10 ZG1010012060075 = 1,176 PC
Item20 ZG1040012060075 = 24 PC
Delivery#3)
Item10 ZG1010012060075 = 1,176 PC
Item20 ZG1040012060075 = 24 PC
Delivery#4)
Item10 ZG1010012060075 = 472 PC
item20 ZG1040012060075 = 9 PC
*Remark : Total quantity of 'ZG1040012060075'(free goods) = 92424+24 = 81 PC
(Greater than 80 PC)*
I think the system determined free goods in Delivery#4 correctly due to rounding up. But It might not be over the order quantity in Sales Order Item 11. Even though I've set the item category in delivery with Check overdelivery = 'B' (Situation rejected with an error message), the free goods are determined over order qty. BUT if I change delivery qty in delivery#4 Item20 from 9 PC -> 8 PC -> 9 PC, the error message occurred.
My point is to fix the system not determine free goods in delivery items over order quantity in sales order item.
Has anyone met this situation before? Do you have any idea about this issue?
Best Regards,
Prachya LalitnorasateDear Sai,
Thank you for your advice, but it didn't solve my problem.
I would like the system to determine free goods with proportional to main item AND In the last delivery main item delivered completely free goods must be determined equal to remaining open delivery item.
Do you have any idea about configuration/customization? -
Sales order item report based on results analysis key and status
Hi,
I am trying to find a a report to generate list of sales order items with following selection
-invoicing status -invoiced/not invoices (other status)
-result analysis key assigned to this item (VBAP-ABGRS)
-system status /released/teco
Basically i am CO consultant and not so familiar with the SD statuses. I tried VA05 and V.26 but all required selections are not available in these reports.
If no standard report is available in ERP, i would like to have it in BI. Can some help me with table fields for statuses.
Thanks in advance.
Regards
RaghuHi Raghu
Go to SE16 and give VBUK table and execute it there you can select the following feilds and then check wheather they are meeting your requirements or not.If they are meeting your requirements then create a new Z report by copying standard VA05 key feilds. and include the other feilds which you need.So you take your ABAP team help
Billing status FKSTK
Posting Status BUCHK
Overall status GBSTK
Document category VBTYP
Regards
Srinath -
Sale Order Item Quantity Not Populating When Create A Sale Order Using BAPI
I am having a problem when creating a sale order using BAPI
BAPI_SALESORDER_CREATEFROMDAT2
Problem is that sale order item quantity field is not populating
code is as follows
ORDER_ITEMS_IN-ITM_NUMBER = '0010'.
ORDER_ITEMS_IN-MATERIAL = '000000000010000262'.
ORDER_ITEMS_IN-TARGET_QU = 'LB'.
ORDER_ITEMS_IN-TARGET_QTY = 1.Hi,
Try populating ORDER_SCHEDULES_IN table in the bapi field REQ_QTY.
Regds,
Rudra -
Sale order item text through BAPI_SALESORDER_CREATEFROMDAT2
Hi,
We are creating a sale order through a 'Zprogram'. Uploading the required details from a excel sheet and passing to a BAPI_SALESORDER_CREATEFROMDAT2.
We are using the 'order_text' parameter to create the item text. If there are multiple lines in the same item text likes this
(we are passing it in a single line)
Order type ORDER_ID PO number u2026u2026 Item Note - Zi01
STD 2 10 Currency - RS
Test order -1
Test item - 2
It is creating the sale order with the item text and the item text when viewed normally its appears one below one. But if we click the 'detail' button and view it through the editor mode it is appearing in the same line with # characters in between.
TAX_CURRENCY = Rupees #TAX_UNIT_PRICE =0.0000# Test order = 1
It is replacing the enter statement with '#.' We can split the text where # appears and pass it as a separate line .but this will create a problem when the data itself contains a # character.
Please advise how we can avoid this and can create the sale order item text correctly.
Regards,
Charumathi BalachandranAs you said, How are creating single line text from the multi line text.
I hope you are using a CONTACTENATE statemetn to do so. Please the SEPARATOR being used for this.
I hope you have copied texts from excel sheet to SE38 editor. Please copy text from Excel to Notepad, then Notepad to SE38.
Edited by: Priyanka Chowdry on Dec 20, 2010 11:21 AM -
How to copy sales order item text in to purchase requisition
Hi Experts,
We enter text for the sales order items in the sales order item details.
we have done settings for the purchase requision to copy text from sales order into purchase requisition and this works for purchase requisitions automatically created from sales order.
we need to get text from sales order to be copied in purchase requisitions which are created by converting the planned order.
we have tried SPRO settings SPRO->Materials Management>purchasing--->text for purchase requisition.
but this settings does not works for Pur Req. created by converting the planned order.
is this because planned order does not have segment for text like sales order and purchase requisition?
Please let me know if it is possible through standard SAP or with the lease development, any help will be appreciated.
Thanks
AnandHi Rajesha,
Thanks for your reply, some of the items in sales order are procured externally by us and our customer maintains text related to price and specification in the item details of the sales order, MRP creates planned order for these materials and these planned orders are always converted in pur requisition, we want that text from the sales order item details should be copied in to the purchase requisitions converted from planned orders.
is there any user exit which can be called at the time of saving a purchase req or user exit for converting planned order in to pur req.?
if there is any such exit available, then I think I can read the pegged requirement of the planned order where sales order item will be found then read the text in the item then copy this text in pur req then save pur req may work.
but this will be a bulky development, please let me know if we can shorten the development.
Thanks again
Anand -
Changes to sales order item not reflected if Call Transaction is used
I m updating another Sales Order item quantity and reason for rejection programmatically from another sales order.
The code is working fine and the quantity does get changed as well as the reason for rejection flag get set (if required). But if I go to the change log from the menu in VA02 for the order item which has been changed. It does not record the changes.
I have tried using both BDC call transaction method as well as BAPI_SALESORDER_CHANGE in neither case the change log for the order which has been changed reflects the programmatically made changes?
What m I doing wrong. Here is the code.
IF v_update_order_flg = 'X'.
REFRESH t_bdcdata.
CLEAR s_bdcdata.
REFRESH t_messtab.
PERFORM bdc_dynpro USING 'SAPMV45A' '0102'.
PERFORM bdc_field USING 'VBAK-VBELN' <wa_r_rtb_posnrs>-zrtbvbeln.
PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.
For Going to specific Item Number
LOOP AT t_schedule_lines.
PERFORM bdc_field USING 'BDC_OKCODE' '=POPO'.
READ TABLE t_item_in WITH KEY itm_number = t_schedule_lines-itm_number.
PERFORM bdc_dynpro USING 'SAPMV45A' '0251'.
PERFORM bdc_field USING 'RV45A-POSNR' t_schedule_lines-itm_number.
PERFORM bdc_field USING 'BDC_OKCODE' '=POSI'.
PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.
v_ro_qty = t_schedule_lines-req_qty.
CONDENSE v_ro_qty.
PERFORM bdc_field USING 'RV45A-KWMENG(01)' v_ro_qty.
PERFORM bdc_field USING 'VBAP-ABGRU(01)' t_item_in-reason_rej.
ENDLOOP.
PERFORM bdc_field USING 'BDC_OKCODE' '=SICH'.
v_call_transaction_flg = 'X'.
EXPORT v_call_transaction_flg TO MEMORY ID 'call_transaction'.
CALL TRANSACTION 'VA02'
USING t_bdcdata
UPDATE 'S'
MODE 'N'
MESSAGES INTO t_messtab.
v_call_transaction_flg = space.
FREE MEMORY ID 'call_transaction'.Hi Srikrisna,
This is a typical problem with BDC for updating QUANTITY and CURRENCY fields.
You need to create a character variable of the same length as your quantity field. Move your quantity value to the newly created Character variable.
Now use this new char variable in the BDC.
This correction should solve your problem.
NOTE: BDC RECOGNIZES CHARACTER FIELDS ONLY.
Regards,
Prakash Pandey -
How can i capture sales order items in C# and pass them to a BAPI?
Hi everybody,
here is another novice question for you.
What control should i use in Visual Studio to allow the user to enter sales order items (material and qty) as a table on the screen and then put these items on a table and call the BAPI to create an order?.
I've tried using a Datagrid and set the "edititemindex" as "1" but doesn't work.
Any help will be greatly appretiated.
thank you
Javier ...Dear Todd,
thanks for your reply. I'm using ASP. I tried a grid but i cannot seem to make it work, it doesn't appear at first because it's empty, i tried creating some blank rows but the same happens.
The other thing i tried just to test is to create a row on the table "partners" to pass the needed "AG" (sold to party) and its number and the BAPI keeps returning an error "Please enter Sold ot or Ship to party". Like if the table was empty. Is there any special way to send a table to a BAPI ?. I'm sending it by ref, and i'm creating the record by first creating a structure, filling it an then calling the ADD method of the table and passing the structure. I'm i missing something here?
Please Help, it's been days with this problem,
I'll appreatiate it very much
Best regards and have a great day.
Javier .. -
Mandatory partner function at sales order item level
Hi all,
I'm customizing partner schema at item level for sales order. I have created a custom partner function, I put it in a new sales order item partner procedure and i set this partner function as mandatory (I want that system show me a message if this function is missing at item level in sales order). This partner function is defined only at sales order item level (not at header level or customer master).
If i create and save a sales order with an item type that use the item partner procedure I have created, system don't show me any message for the item custom partner function missing, else if it is set as mandatory in sales order item partner procedure.
I have read some posts in these forums about this functionality, but it seems a different situation.
Someone had a similar type of problem?
Thank you in advance for any possible suggestion.
Regards
GianpaoloHi,
First you have to create a new partner function.
Then assign that partner function to the account group.
Then assign that partner function to partner determination procedure for the item category.
Over here click on the mandatory button also.
Then assign that partner determination procedure to item category.
Then to XD02 and give your customer number and in the partner tab maintain the data for that partner function.
Now go to VA01 and create your sales order you will see you partner function.
If you wont have maintained it in the customer master then it will prompt an error.
Regards
Raj. -
BAPI - Problem in Sales order creation
Hi Friends,
I have problem in Sales order creation using BAPI ,I am getting a messsage - Error in creating document ,I have sent the code along with this mail ,can you help it out.
Code:
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(20) v_text FOR FIELD p_auart.
PARAMETERS: p_auart TYPE auart OBLIGATORY.
SELECTION-SCREEN END OF LINE.
Sales organization
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(20) v_text1 FOR FIELD p_vkorg.
PARAMETERS: p_vkorg TYPE vkorg OBLIGATORY.
SELECTION-SCREEN END OF LINE.
Distribution channel
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(20) v_text2 FOR FIELD p_vtweg.
PARAMETERS: p_vtweg TYPE vtweg OBLIGATORY.
SELECTION-SCREEN END OF LINE.
Division.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(20) v_text3 FOR FIELD p_spart.
PARAMETERS: p_spart TYPE spart OBLIGATORY.
SELECTION-SCREEN END OF LINE.
SKIP 1.
Sold-to
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(20) v_text4 FOR FIELD p_sold.
PARAMETERS: p_sold TYPE kunnr OBLIGATORY.
SELECTION-SCREEN END OF LINE.
Ship-to
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(20) v_text5 FOR FIELD p_ship.
PARAMETERS: p_ship TYPE kunnr OBLIGATORY.
SELECTION-SCREEN END OF LINE.
SKIP 1.
Material
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(20) v_text6 FOR FIELD p_matnr.
PARAMETERS: p_matnr TYPE matnr OBLIGATORY.
SELECTION-SCREEN END OF LINE.
Quantity.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(20) v_text7 FOR FIELD p_menge.
PARAMETERS: p_menge TYPE kwmeng OBLIGATORY.
SELECTION-SCREEN END OF LINE.
Plant
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(20) v_text9 FOR FIELD p_plant.
PARAMETERS: p_plant TYPE werks_d OBLIGATORY.
SELECTION-SCREEN END OF LINE.
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.
Initialization.
INITIALIZATION.
v_text = 'Order type'.
v_text1 = 'Sales Org'.
v_text2 = 'Distribution channel'.
v_text3 = 'Division'.
v_text4 = 'Sold-to'.
v_text5 = 'Ship-to'.
v_text6 = 'Material'.
v_text7 = 'Quantity'.
v_text9 = 'Plant'.
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.
WRITE: / 'Document ', v_vbeln, ' created'.
ENDIF.
Regards,
Dineshwhat messages u are gettting in RETURN ? Please check the RETURN tables data.
[code]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.
Regards
Prabhu
Maybe you are looking for
-
Everytime i go into itunes and try to update my iPod Touch 4th gen running on iOS 4.3.5 its says i need to be connected to the internet please check it or something like that and as far as i know i have the latest version of itunes
-
There was a bug in iOS6 where rejecting an invite would cancel the event. Has anyone seen the same problem in iCal (5.0.3 on OS 10.7.5)? Here's the iOS 6 link. http://zahirshahblog.com/2012/10/07/apple-iphone-ios-6-bug-for-exchange-server-m eeting-i
-
Ok...I have 2 flv files that come from my database that tell the player where the 2 FLV"s are that it needs to play. (videos/geeksquad.flv and videos/geeksquadoffer.flv). The first one is loaded and plays upon result from the database like so... vPla
-
Syncing pictures without duping the file
I already had a photo library file on my Iphone with a few pics. I added new pics by syncing from my pc and it duplicated the file on my Iphone and added a second file using the name I had the pictures saved in from the PC. Now I have two files with
-
Hi Team, Can we upgrade from windows 2003 to 2012 ? We have 300, 2003 Servers we need to upgrade to 2008 or 2012. Now question is what are the steps I have to think before start to execute the process . i have to send a document to my manager about m