Unable to book orders created by Sales Order with ATO Model Items

I am trying to create Orders for Ato Model Items with Option classes and Option using process_order API. The Issue we are facing is when we start booking the order. Although we are passing all the otions that are required for the Model, it says the configuration is incomlete when we try to book it.
DECLARE
v_line_id oe_order_lines_all.line_id%TYPE;
v_api_version_number NUMBER := 1;
l_return_status VARCHAR2(2000) := FND_API.G_FALSE;
l_line_tbl oe_order_pub.line_tbl_type;
l_msg_data VARCHAR2(300);
l_msg_count NUMBER;
l_header_rec oe_order_pub.header_rec_type;
l_new_header_rec oe_order_pub.header_rec_type;
t_header_val_rec oe_order_pub.header_val_rec_type;
t_header_adj_tbl oe_order_pub.header_adj_tbl_type;
t_header_adj_val_tbl oe_order_pub.header_adj_val_tbl_type;
t_header_price_att_tbl oe_order_pub.header_price_att_tbl_type;
t_header_adj_att_tbl oe_order_pub.header_adj_att_tbl_type;
t_header_adj_assoc_tbl oe_order_pub.header_adj_assoc_tbl_type;
t_header_scredit_tbl oe_order_pub.header_scredit_tbl_type;
t_header_scredit_val_tbl oe_order_pub.header_scredit_val_tbl_type;
t_out_line_tbl oe_order_pub.line_tbl_type;
t_line_val_tbl oe_order_pub.line_val_tbl_type;
t_line_adj_tbl oe_order_pub.line_adj_tbl_type;
t_line_adj_val_tbl oe_order_pub.line_adj_val_tbl_type;
t_line_price_att_tbl oe_order_pub.line_price_att_tbl_type;
t_line_adj_att_tbl oe_order_pub.line_adj_att_tbl_type;
t_line_adj_assoc_tbl oe_order_pub.line_adj_assoc_tbl_type;
t_line_scredit_tbl oe_order_pub.line_scredit_tbl_type;
t_line_scredit_val_tbl oe_order_pub.line_scredit_val_tbl_type;
t_lot_serial_tbl oe_order_pub.lot_serial_tbl_type;
t_lot_serial_val_tbl oe_order_pub.lot_serial_val_tbl_type;
t_action_request_tbl oe_order_pub.request_tbl_type;
v_message_index NUMBER;
v_api_message VARCHAR2(300);
v_count NUMBER := 1;
BEGIN
oe_msg_pub.initialize;
fnd_global.apps_initialize(1459,21623,660,NULL);
commit;
mo_global.init('S',82);
--header records
l_header_rec := oe_order_pub.g_miss_header_rec;
-- l_header_rec.shipping_instructions := p_special_instructions;
l_header_rec.ship_to_org_id := 1067;
l_header_rec.cust_po_number     :='9090909090';
l_header_rec.operation := oe_globals.g_opr_create;
l_header_rec.transactional_curr_code := 'USD';
--l_header_rec.org_id := 82;
--l_header_rec.context :=82 ;
--l_header_rec.header_id         := null;
--l_header_rec.order_number      := 100;
-- l_header_rec.version_number := 1;
l_header_rec.open_flag := 'Y';
l_header_rec.booked_flag := 'N';
l_header_rec.order_category_code := 'ORDER';
l_hus,
x_msg_data => l_msg_data,
x_msg_count => l_msg_count,
x_header_rec => l_new_header_rec,
x_header_val_rec => t_header_val_rec,
x_header_adj_tbl => t_header_adj_tbl,
x_header_adj_val_tbl => t_header_adj_val_tbl,
x_header_price_att_tbl => t_header_price_att_tbl,
x_header_adj_att_tbl => t_header_adj_att_tbl,
x_header_adj_assoc_tbl => t_header_adj_assoc_tbl,
x_header_scredit_tbl => t_header_scredit_tbl,
x_header_scredit_val_tbl => t_header_scredit_val_tbl,
x_line_tbl => t_out_line_tbl,
x_line_val_tbl => t_line_val_tbl,
x_line_adj_tbl => t_line_adj_tbl,
x_line_adj_val_tbl => t_line_adj_val_tbl,
x_line_price_att_tbl => t_line_price_att_tbl,
x_line_adj_att_tbl => t_line_adj_att_tbl,
x_line_adj_assoc_tbl => t_line_adj_assoc_tbl,
x_line_scredit_tbl => t_line_scredit_tbl,
x_line_scredit_val_tbl => t_line_scredit_val_tbl,
x_lot_serial_tbl => t_lot_serial_tbl,
x_lot_serial_val_tbl => t_lot_serial_val_tbl,
x_action_request_tbl => t_action_request_tbl
IF l_return_status = FND_API.G_RET_STS_UNEXP_ERROR THEN
RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
ELSIF l_return_status = FND_API.G_RET_STS_ERROR THEN
RAISE FND_API.G_EXC_ERROR;
ELSE
dbms_output.put_line('Order Created'||l_header_rec.order_number||l_return_status );
END IF;
EXCEPTION
WHEN FND_API.G_EXC_ERROR THEN
FOR x_index IN 1..l_msg_count
LOOP
OE_MSG_PUB.GET(p_msg_index => x_index,
p_encoded => FND_API.G_FALSE ,
p_data => v_api_message ,
p_msg_index_out => v_message_index
dbms_output.put_line('Execution'||v_api_message);
l_return_status := FND_API.G_RET_STS_ERROR;
END LOOP;
WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
-- To see the errors
FOR x_index in 1..l_msg_count
LOOP
OE_MSG_PUB.GET(p_msg_index => x_index ,
p_encoded => FND_API.G_FALSE,
p_data => v_api_message ,
p_msg_index_out => v_message_index
dbms_output.put_line('Unexpected'||v_api_message);
l_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
END LOOP;
WHEN OTHERS THEN
dbms_output.put_line('In Others'||SQLERRM);
END;
COMMIT;
END; -- get_process_order
assing all the otions that are required for the Model, it says the configuration is incomlete when we try to book it.
DECLARE
v_line_id oe_order_lines_all.line_id%TYPE;
v_api_version_number NUMBER := 1;
l_return_status VARCHAR2(2000) := FND_API.G_FALSE;
l_line_tbl oe_order_pub.line_tbl_type;
l_msg_data VARCHAR2(300);
l_msg_count NUMBER;
l_header_rec oe_order_pub.header_rec_type;
l_new_header_rec oe_order_pub.header_rec_type;
t_header_val_rec oe_order_pub.header_val_rec_type;
t_header_adj_tbl oe_order_pub.header_adj_tbl_type;
t_header_adj_val_tbl oe_order_pub.header_adj_val_tbl_type;
t_header_price_att_tbl oe_order_pub.header_price_att_tbl_type;
t_header_adj_att_tbl oe_order_pub.header_adj_att_tbl_type;
t_header_adj_assoc_tbl oe_order_pub.header_adj_assoc_tbl_type;
t_header_scredit_tbl oe_order_pub.header_scredit_tbl_type;
t_header_scredit_val_tbl oe_order_pub.header_scredit_val_tbl_type;
t_out_line_tbl oe_order_pub.line_tbl_type;
t_line_val_tbl oe_order_pub.line_val_tbl_type;
t_line_adj_tbl oe_order_pub.line_adj_tbl_type;
t_line_adj_val_tbl oe_order_pub.line_adj_val_tbl_type;
t_line_price_att_tbl oe_order_pub.line_price_att_tbl_type;
t_line_adj_att_tbl oe_order_pub.line_adj_att_tbl_type;
t_line_adj_assoc_tbl oe_order_pub.line_adj_assoc_tbl_type;
t_line_scredit_tbl oe_order_pub.line_scredit_tbl_type;
t_line_scredit_val_tbl oe_order_pub.line_scredit_val_tbl_type;
t_lot_serial_tbl oe_order_pub.lot_serial_tbl_type;
t_lot_serial_val_tbl oe_order_pub.lot_serial_val_tbl_type;
t_action_request_tbl oe_order_pub.request_tbl_type;
v_message_index NUMBER;
v_api_message VARCHAR2(300);
v_count NUMBER := 1;
BEGIN
oe_msg_pub.initialize;
fnd_global.apps_initialize(1459,21623,660,NULL);
commit;
mo_global.init('S',82);
--header records
l_header_rec := oe_order_pub.g_miss_header_rec;
-- l_header_rec.shipping_instructions := p_special_instructions;
l_header_rec.ship_to_org_id := 1067;
l_header_rec.cust_po_number     :='9090909090';
l_header_rec.operation := oe_globals.g_opr_create;
l_header_rec.transactional_curr_code := 'USD';
--l_header_rec.org_id := 82;
--l_header_rec.context :=82 ;
--l_header_rec.header_id         := null;
--l_header_rec.order_number      := 100;
-- l_header_rec.version_number := 1;
l_header_rec.open_flag := 'Y';
l_header_rec.booked_flag := 'N';
l_header_rec.order_category_code := 'ORDER';
l_hus,
x_msg_data => l_msg_data,
x_msg_count => l_msg_count,
x_header_rec => l_new_header_rec,
x_header_val_rec => t_header_val_rec,
x_header_adj_tbl => t_header_adj_tbl,
x_header_adj_val_tbl => t_header_adj_val_tbl,
x_header_price_att_tbl => t_header_price_att_tbl,
x_header_adj_att_tbl => t_header_adj_att_tbl,
x_header_adj_assoc_tbl => t_header_adj_assoc_tbl,
x_he
Message was edited by:
user604069

Are you able to book an order on sales order work bench with same configuartion?

Similar Messages

  • Purchase Order created against sales order.. report

    Hi Folks!
    I want to see purchase orders created against sales orders.
    Is there any report?
    Regards

    Hi,
    You can develop your own report by using table VBAK-VBELN(sales document),VBAK-BSTNK(Customer purchase order number).
    Just try....
    Hope it helps you...
    Regards,
    Jaheer.

  • How to find out the list of Production orders created for sales orders

    Dear All,
    Our company wants to generate a report for a List of Materials sold out in a particular Product Hierarchy. Along with that we want to know the list of Production orders created for the sales orders.
    How to identify the production orders which are created based on Sales orders.
    Kindly suggest.
    Regards,
    Mullairaja

    Check these threads
    [Sale Order & Production Order|Sale Order & Production Order;
    [Re: Linking Production Order against a Sale Order MRP run|Linking Production Order against a Sale Order MRP run;
    thanks
    G. Lakshmipathi

  • Purchase order created from sale order ( third party)

    Hi...
    In third party sale, when sale order is created in SAP system will automatically creates Purchase requisition which can be converted into Purchase order,
    My requirement is i need to identify against which sale order the above purchase order is created, do this purchase order has any reference of sale order.
    Is there any way where i can track the purchase order number entered while cretion of sale order in the purchase order generated after creation of sales order.
    Suggestion will be worth rewarding.
    Regards
    SARFARZ

    Hi
    I think you are little bit confused.The PO number entered while creating the Sales order is nothing but the customer Purchase order.This we may receive in different forms.Hard copy or Mail etc.We will give this number as a reference in sales order.
    Where as for third party orders, depending on the schedule line category (SD), PR will be generated.This will PR will be converted in to PO.In PO item detail, you can find account assignment tab, where you can find the sales order number.
    If you want to link customer PO to the SAP PO, then you need to link the two tables.
    Regards
    Ramakrishna

  • Cost analysis through Purchase Order created from Sales Order

    Hi Experts,
    This is the scenario: There is an Item No. which is not stocked in warehouse and is purchased only when customers ask for it. The cost of the sales order line having this item is calculated by the Purchase Order line on which the item is there. (The PO have items for other Sales Orders as well. And, Sales Orders have multiple item types) The Sales Order have the PO no. against it and Purchase Order has SO no. against the line. This is all done using MS Access and Sage Accounts. Lots of free typing and manual cost analysis involved.
    I have gathered from this forum that we can create Purchase Order from the Sales Order. The Document No. information can be pulled from one another using Formatted Search. Can we do the accounting and cost analysis as well?
    Please let me know if I have not made myself clear.
    Thank you in advance and kind regards.
    IC
    Edited by: iancameron03 on Sep 20, 2011 4:35 PM

    Hi Ian,
    I concur with Faraz, it is better if you use procurement document facility in doing back to back transaction from SO to PO.
    However, in your case, I'm afraid you can't analyze the gross profit and recording the accounting related activity as your request using standard SAP B1 function.
    As for gross profit case:
    Since you're actually using workaround in order to evade all hassles in maintaining all item master data related to this case, you create just one item code called S1 right?
    SO DocEntry - SO Line # - Item Code - Item Name - Quantity - Price
    1001 - 0 - S1 - Table - 2 - 100
    1001 - 1 - S1 - Chair - 8 - 25
    1001 - 2 - S1 - Cloth - 3 - 10
    PO # - PO Line # - PO BaseEntry (SO DocEntry)  - PO BaseLine (SO Line #) - Item Code - Item Name - Quantity - Price
    2001 - 0 - 1001 - 0 - S1 - 2 - 100
    2001 - 1 - 1001 - 1 - S1 - 8 - 25
    2001 - 2 - 1001 - 2 - S1 - 3 - 10
    Note that standard B1 gross profit calculation is that system will compare selling price for each item with item cost / certain price list of each respective item. However, in your case, you put all item as a single item master. Thus, system couldn't compare Table to Table, Chair to Chair, Cloth to Cloth since the item cost for these 3 items will be the same, the price list for these 3 items will also be the same since it is actually only one master data. Of course you could update the gross profit calculation manually for each SO, but to be honest it seems rather weird to do this manually.
    So, in order to simulate the gross profit calculation, you need to create a custom query and comparing PO line no with SO line no.
    As far as accounting related recording concern, I'm afraid you can't do it
    1. SO 1 : Item Table - Selling price 130 ; Item Chair - Selling price 30
    2. PO 1 (linked to SO 1) : Item Table - Purchase price 100 ; Item Chair - Purchase price 25
    3. SO 2 : Item Table - Selling price 150 ; Item Chair - Selling price 40
    4. PO 2 (linked to SO 2) : Item Table - Purchase price 110 ; Item Chair - Purchase price 30
    Correct me if I'm wrong, you want to record accounting wise that CoGS of Delivery based on SO 1 is 100 for Table and 25 for Chair, isn't it? No matter what costing method you use, you can't achieve this.
    If you use moving average, system will average both Table and Chair cost price, since it is actually one item master data. Even if you distinguish each item as a master data, system will average the cost price for Table and Cloth by the time GR for PO 1 and PO 2 occurred.
    Example (order by sequence of event):
    1. GR based on PO 1 - Table - Purchase price = 100, therefore Item cost = 100
    2. GR based on PO 2 - Table - Purchase price = 110, therefore Item cost = 105 (considering quantity only one for both PO)
    3. Delivery based on SO 1 - Table - CoGS incurred will be 105, not 100
    To certain extent, same thing could be said with FIFO costing method
    1. GR based on PO 1 - Table - Purchase price = 100 (qty 1)
    2. GR based on PO 2 - Table - Purchase price = 110 (qty 1)
    3. Delivery based on SO 1 - Table - CoGS incurred will be 100 (qty 1)
    4. Delivery based on SO 2 - Table - CoGS incurred will be 110 (qty 1)
    At first glance, it seems right since the CoGS for SO 1 is 100, tied up with purchase price for PO 1. And CoGS for SO 2 is 110, tied up with purchase price for PO 2. But we're using assumption here, we're assuming the sequence of Goods Receipt of PO and Delivery of SO occurred in the very same sequence as the issuance of SO and PO.
    1. GR based on PO 1 - Table - Purchase price = 100 (qty 1)
    2. GR based on PO 2 - Table - Purchase price = 110 (qty 1)
    3. Delivery based on SO 2 - Table - CoGS incurred will be 100 (qty 1)
    4. Delivery based on SO 1 - Table - CoGS incurred will be 110 (qty 1)
    If above scenario / sequence that happened, you will get the wrong figure of gross profit since the Delivery of SO 2 will take the item cost based on GR of PO 1. Since we're actually talking about real life business process, who can guarantee that above scenario wouldn't happen? It is possible that you send goods to customer who ordered late in real life, too much possibility that it is better for you to mitigate such result.
    My suggestion would be that you record the accounting transaction based on standard business process, no need to really capture the actual cost and actual gross profit for certain SO and PO. Too complicated, and the software itself doesn't cater this kind of requirement. Best thing you could do only create custom query for gross profit simulation calculation, but for very accurate accounting recording, IMO you should forget it. Hope this help.
    Best Regards,
    Hendry Wijaya

  • Issues to Production Orders created from Sales Order

    We have multiline Sales Orders that create a Production order for each sales order line (can be up to 70 or 80 per SO). We normally backflush these via multiple MB1A transactions after the SO has been completed. It is a lot of work doing the required issues to reduce stock levels and consequently they are always "late" being done and the stock is always out of date until the movements (type 261) are processed - generally monthly!!
    As a result, an Access Database has been created that reduces stock in that by entering the SO number and this is used for Stock enquiries. I would like to get rid of this Access database so as I'm sure other people have hit this same problem, is there a way of doing the same in SAP i.e. enter SO number and then relevant stocks are reduced accordingly.
    Any help would be appreciated.
    Thanks in advance
    Jim

    Hi,
    I am not clear why you are manually doing the process? When the production order is confirmed for each operation (CO11) the goods movement should be posted then, backflush selected in work centre or in the production order.
    Any failures can be processed via COGI rather than a database.
    Thanks.

  • Notification data copy to Service orders created from sales order.

    Hi,
    In our business scenario, we are creating sales order from service notification & service order from sales order. Document flow will be Service Notification  -> Sales Order -> Service Order.
    Here user wants that Notification data to be copied to service order. This is possible when we create service order directly from notification. Buit in our case we are not creating service order directly from Notification, we are creating service order from sales order. in this case notifiationdata is not getting copied to service order.
    Our ABAPer's are also tried to find the exit or enhancement points, but not able to find any thing for this requirement.
    Pl. suggest, how to do it.
    Thank you in advance.

    The only way I have seen to do this kind of billing is using Resource Related Billing (RRB) and customizing of the Dynamic Item Processer Profile (DIP Profile)
    It is not exactly like a simple flow of Notification > Sales Order > Service order (with all of the problems of how to copy notification data through to Service order) but might be a possible solution for you ?
    [http://help.sap.com/saphelp_erp60_sp/helpdata/en/3c/abae15413911d1893d0000e8323c4f/frameset.htm]
    This link will take you to the main CS help but then drill down into Call Management > Billing > Resource Related Billing > Billing Scenarios.
    regards,
    Tony

  • How to create planned order from the sales order for a processing item

    In the MTO sceanrio, assembly order is created directly from the sales order. I would like to create a planned order from the sales order.
    I tried the Planning strategy group 81 in the material master but it didnt work.
    Could you please let me know how to do it? Is it Schedule line config that controls whether planned order is created?
    Thanks
    Harish

    Narayana,
    Planning strategy 82 is the best & standard way of getting production order created on sale order create.
    just assign this strategy  in MRP 3 view under strategy group.
    If not then using sale order reqt type ( KMFA- Assembly with production order) & assigning this to your sale order item category is also another way to create prodcution order without using planning strategy in material master.
    Follow steps in SPRO-->Sales & dist --> basic functions >avail check &transfer of requirements> transfer reqts-->determination of reqt type using transaction
    Here you may select the item category you in sale orders & assign KMFA to your item category. this will then give option in sale order create to change reqt type to KFMA for assebly orders.
    If you need KFMA to be default assign it to Item cat/ MRP type ( PD) combo.
    Regards
    Ritesh

  • Hi All, We are in to Release 11.5.10.2.There is a specific requirement to Prevent users from creating Manual Sales Orders in oracle and yet users should be able to book the Sales Orders Imported from CRM system into Orcale.Please advise.

    Hi All, We are in to Release 11.5.10.2.There is a specific requirement to Prevent users from creating Manual Sales Orders in Oracle and  yet users should be able to book the Sales Orders Imported from CRM system into Orcale.Please advise.

    Thanks for your advise.
    However, I missed to mention that we have two set of users  One is for Finished Goods and another for Spares.
    Only Spares users need to be prevented from creating Direct/Manual Sales Orders in Oracle.
    As you suggested, if this will be done at Form level, that may Disallow FG users also to create Manula Sales Orders which should not be the case.
    Further, I tried to test one scenario through Processing Constraints but it did not work.
    Application
    OM
    Validation Type
    Entity
    Temp
    Short Name
    TBL
    Validation Semantics
    Created By
    Equal To
    User(Myself)
    Processing Cosntraint
    Application
    OM
    Entity
    Order Header
    Constraint
    Operation
    User Action
    Create
    Not Allowed
    Conditions
    Group
    Scope
    Validation Entity
    Record Set
    Validation Template
    101
    Any
    Order Header
    Order
    Above Created
    Please advise.

  • Issues in creating the sales order with oe_order_pub.process_order api

    Hi All,
    I am trying to create a sales order with BOOKED status using oe_order_pub.process_order api, and I am getting response as
    <X_RETURN_STATUS>E</X_RETURN_STATUS>
              <X_MSG_COUNT>1</X_MSG_COUNT>
              <X_MSG_DATA>ONTOE_LOCK_ROW_DELETED</X_MSG_DATA>
    Can any one help me in fixing this issue ..!
    Thanks,
    Vamsi…
    Edited by: user11147471 on Jul 9, 2009 2:02 AM

    When using the API, are you trying to create the order as booked using the booked flag or the book action?  I would recommend using the action if you are not. To troubleshoot, I would try the API without booking and then use the following article to determine the issue:
    Unable To Setup A Credit Card Bank Account For The Customer. CC Information On The Order Is Not Valid (Doc ID 1450936.1)

  • Trying to create a sales order in CRM with BAPI_BUSPROCESSND_CREATEMULTI.

    hi all,
    I am trying to create a sales order in CRM using the BAPI BAPI_BUSPROCESSND_CREATEMULTI.
    I need the sales order number as the out put. So I am declaring OBJECT_ID as the export parameter.
    This is my source code, I donu2019t get an error, but the sales order is not generated and I donu2019t get any output for my export parameter OBJECT_ID.
    I am setting the tables HEADER,ITEM ,SALES,PARTNER, ORGANISATION, RETURN and
        SCHEDULELINE in BAPI_BUSPROCESSND_CREATEMULTI. But still unable to display the sales order number. Please help me with information
    This is my code
    ***********************************Define the Internal Tables*************************
    DATA: IT_HEADER TYPE STANDARD TABLE OF BAPIBUS20001_HEADER_INS WITH HEADER LINE.
    DATA: IT_SALES TYPE STANDARD TABLE OF BAPIBUS20001_SALES WITH HEADER LINE.
    DATA: IT_ITEM TYPE STANDARD TABLE OF BAPIBUS20001_ITEM WITH HEADER LINE.
    DATA: IT_SCHEDULELINE TYPE STANDARD TABLE OF BAPIBUS20001_SCHEDLIN WITH HEADER LINE.
    DATA: IT_PARTNER TYPE STANDARD TABLE OF BAPIBUS20001_PARTNER_INS WITH HEADER LINE.
    DATA: IT_ORGANIZATION TYPE STANDARD TABLE OF BAPIBUS20001_ORGMAN_INS WITH HEADER LINE.
    **Values for Internal Table IT_HEADER**
    IT_HEADER-PROCESS_TYPE  =  'YWEB'.
    IT_HEADER-DESCRIPTION   =  'Web Order'.
    IT_HEADER-POSTING_DATE  =  'SY-DATUM'.
    IT_HEADER-CREATED_BY    =  'SY-USER'.
    APPEND IT_HEADER TO IT_HEADER.
    **Values for Internal Table IT_SALES**
    IT_SALES-PO_NUMBER_SOLD = '1'.
    APPEND IT_SALES TO IT_SALES.
    **Values for Internal Table IT_ITEM**
    IT_ITEM-NUMBER_INT  =  '20'.
    IT_ITEM-ORDERED_PROD  =  '50000180'.
    IT_ITEM-ITM_TYPE  =  'ZABC'.
    APPEND IT_ITEM TO IT_ITEM.
    **Values for Internal Table IT_PARTNER**
    IT_PARTNER-REF_PARTNER_NO  =  '100000620'.
    IT_PARTNER-REF_PARTNER_FCT = 'CRMH04'.
    APPEND IT_PARTNER TO IT_PARTNER.
    **Values for Internal Table IT_ORGANIZATION**
    IT_ORGANIZATION-SALES_ORG = 'O 50000100'.
    IT_ORGANIZATION-DIS_CHANNEL = '30'.
    IT_ORGANIZATION-DIVISION = '80'.
    APPEND IT_ORGANIZATION TO IT_ORGANIZATION.
    **Values for Internal Table IT_SCHEDULELINE**
    IT_SCHEDULELINE-QUANTITY  =  '2.268'.
    APPEND IT_SCHEDULELINE TO IT_SCHEDULELINE.
    **Call BAPI_BUSPROCESSND_CREATEMULTI for creating a sales 0rder******
    CALL FUNCTION 'BAPI_BUSPROCESSND_CREATEMULTI'
      TABLES
        HEADER                  =  IT_HEADER
        ITEM                    =  IT_ITEM
        SALES                   =  IT_SALES
        PARTNER                 =  IT_PARTNER
        ORGANISATION            =  IT_ORGANIZATION
        RETURN                  = IT_RETURN1
        SCHEDULELINE            = IT_SCHEDULELINE.
    ****************CALL COMMIT WORK**********
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
        WAIT          = 'X'
    IMPORTING
       RETURN        =  IT_RETURN2.
    ENDFUNCTION.
    Edited by: jessica sam on Dec 10, 2008 1:45 AM

    Hi am getting the sales order but the item data is not available in sales order. Also should I generate a new guide always for HEADER, ITEM, PARTNER, ORGANIZATION, SCHEDULELINE,u2026u2026for the tables that I use?
    I  mean do I need to create a new guide each time for all the tables that I use and finally pass only header guide to the  bapi 'BAPI_BUSPROCESSND_SAVE'.
    I donu2019t know why I am not getting the product data in the saved sales order please help me.
    this is my code
    ***TABLES
    DATA: IT_HEADER TYPE TABLE OF BAPIBUS20001_HEADER_INS.
    DATA: IT_INPUT_FIELDS_FILL TYPE TABLE OF BAPIBUS20001_INPUT_FIELDS.
    DATA: IT_ITEM TYPE TABLE OF BAPIBUS20001_ITEM.
    DATA: IT_OBJECTS_TO_SAVE TYPE STANDARD TABLE OF BAPIBUS20001_GUID_DIS WITH HEADER LINE.
    ***WORK AREA
    DATA: WA_INPUT_FIELDS TYPE BAPIBUS20001_INPUT_FIELDS.
    DATA: WA_HEADER TYPE BAPIBUS20001_HEADER_INS.
    DATA: WA_ITEM TYPE BAPIBUS20001_ITEM.
    DATA: IT_EV_GUID_32 TYPE GUID_32.
    DATA: IT_EV_GUID_32_1 TYPE GUID_32.
    *Create GUID
    CALL FUNCTION 'GUID_CREATE'
      IMPORTING
        EV_GUID_32       = IT_EV_GUID_32.
    * Fill the HEADER
    WA_HEADER-GUID                      =  IT_EV_GUID_32.
    WA_HEADER-PROCESS_TYPE              =  'ZWEB'.
    WA_HEADER-DESCRIPTION               =  'WEB ORDER'.
    WA_HEADER-CREATED_BY                =  'jiopidn'.
    APPEND WA_HEADER TO IT_HEADER.
    *For each FIELD of HEADER fill INPUT_FIELDS
    WA_INPUT_FIELDS-REF_GUID               =  IT_EV_GUID_32.
    WA_INPUT_FIELDS-REF_KIND               =  'A'.
    WA_INPUT_FIELDS-OBJECTNAME             =  'ORDERADM_H'.
    WA_INPUT_FIELDS-LOGICAL_KEY            =  '1'.
    WA_INPUT_FIELDS-CHANGEABLE             =  ' '.
    WA_INPUT_FIELDS-FIELDNAME              =  'PROCESS_TYPE'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME              =  'GUID'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME              =  'DESCRIPTION'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME              =  'CREATED_BY'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    *Create your own GUID
    CALL FUNCTION 'GUID_CREATE'
      IMPORTING
        EV_GUID_32       = IT_EV_GUID_32_1.
    * Fill the ITEM
    WA_ITEM-GUID              =  IT_EV_GUID_32_1.
    WA_ITEM-NUMBER_INT        =  '10'.
    WA_ITEM-ORDERED_PROD      =  '000000000070000000'.
    WA_ITEM-ITM_TYPE          =  'ZTAN'.
    WA_ITEM-MODE              =  'A'.
    APPEND WA_ITEM TO IT_ITEM.
    *For each FIELD of ITEM fill INPUT_FIELDS fields
    WA_INPUT_FIELDS-REF_GUID               =  IT_EV_GUID_32_1.
    WA_INPUT_FIELDS-REF_KIND               =  'A'.
    WA_INPUT_FIELDS-OBJECTNAME             =  'ORDERADM_I'.
    WA_INPUT_FIELDS-LOGICAL_KEY            =  '1'.
    WA_INPUT_FIELDS-CHANGEABLE             =  ' '.
    WA_INPUT_FIELDS-FIELDNAME              =  'GUID'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME              =  'NUMBER_INT'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME                 =  'ORDERED_PROD'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME                 =  'ITM_TYPE'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    REFRESH: CREATED_PROCESS.
    ***** CALL BAPI_BUSPROCESSND_CREATEMULTI
                   CALL FUNCTION 'BAPI_BUSPROCESSND_CREATEMULTI'
                     TABLES
                       HEADER                  = IT_HEADER
                       ITEM                    = IT_ITEM
                       INPUT_FIELDS            = IT_INPUT_FIELDS_FILL
                       CREATED_PROCESS         = CREATED_PROCESS
                       RETURN                  = RETURN.
    IT_OBJECTS_TO_SAVE-GUID = IT_EV_GUID_32.
    IT_OBJECTS_TO_SAVE-OBJECT_TYPE = 'BAPIBUS20001'.
    APPEND IT_OBJECTS_TO_SAVE TO IT_OBJECTS_TO_SAVE.
    **** CALL 'BAPI_BUSPROCESSND_SAVE
    CALL FUNCTION 'BAPI_BUSPROCESSND_SAVE'
      EXPORTING
        UPDATE_TASK_LOCAL       = true
        SAVE_FRAME_LOG          = true
      TABLES
        OBJECTS_TO_SAVE         = IT_OBJECTS_TO_SAVE
        SAVED_OBJECTS           = ITAB_SAVED_OBJECTS
        RETURN                  = itab_return.
    **** CALL BAPI_TRANSACTION_COMMIT
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
       EXPORTING
        WAIT = true
      IMPORTING
        RETURN = RETURN1.
    Edited by: jessica sam on Dec 12, 2008 3:50 AM

  • Product allocation error while creating a sales order

    Hi Gurus,
    My client is using the availability check against  product allocation functionality in sales order.while I am creating the sales order and entering the material system is throwing the error message product allocation XXX is invalid,after pressing the enter button system has thrown another error "incorrect index structure for table XMVERF_POS/000010" and unable to save the order.
    I have checked the material master and the product allocation is assigned in basic data 1 view,I have also checked the IMG settings it has maintained and assigned to infostructure.Please let me know is there any config settings are missing related to product allocation.
    Regards,
    hari challa.

    Please check if storage location is populated for the material. Also may be this material is a non-stock material and not relevant for storage location check.. If you have any non-stock items in your order and if you are populating the storage location in the order automatically, then this happens. Please check your code and bypass the check for non stock items.
    Hope this helps
    Regards
    Sai

  • Error in GTS when creating a sales order

    Hello All:
    Let me first say that I have researched the forums and web for my answer to no avail...there is not a lot of information out there for GTS issues. 
    When creating a sales order in ECC 600; I am receiving errors...I have looked at SLG1 in order to get more information on these errors.  I have validated my config in GQ0 and it appears to be correct.  Here is my errors I am receiving:
    Legal Control: Item Type Mapping not Maintained
    Item Category: ZTAE
    Item Category: ZTAQ
    Legal Control: Partn. Function Mapping not Maintained
    Partner Function: AG
    Partner Function: AP
    Partner Function: CI
    Partner Function: EN
    Partner Function: RE
    Partner Function: RG
    Partner Function: SP
    Partner Function: WE
    Legal Control: Mapping of Org. Units not Maintained For Fore
    Company Code: 1000
    Legal Control: Mapping of Org. Units not Maintained For Lega
    Plant: 1000
    I have looked under the Org Structure for these errors and think my configuration is correct.  I have checked under the following:
    In SPRO I have done the following Config under Org Structure:
    Define Foreign Trade Organizations
    Assign Company Code At Feeder System
    Define Legal Units
    Assign Legal Unit to Foreigne Trade
    Assigned Plant at Feeder System
    In Spro I have done the following Config under Partner Structure:
    Define Partner Functions
    Define Groups of Partner Functions
    Assign Partner Functions at Feeder system
    In SpRO under Compliance Management I have done the following Config under document structure:
    Define Doc Types
    Assign Doc types at feeder system
    Define item categories
    Assign item categories at feeder system
    It is obvious I am missing something....Please help...it would be greatly appreciated....

    Hi Dave
    Thanks for replying. 
    For Business Partners the error I am getting in SLG1 is the follwoing:
    Sub Object text
    Mapping of API to Customs Shipment - Arrival
    Program
    /SAPSLL/SAPLCORE_APPLOG_SERV
    @5C\QError@     
    The system was unable to determine an FT organiz. for company code 1000
    The system was unable to determine a legal unit for plant 1000
    No mapping information exists for partner function AG
    Another error for Business Partner:
    sub object text
    Business Partner Distribution
    Program
    /SAPSLL/SAPLCORE_APPLOG_SERV
    @5C\QError@     
    Please use another function to maintain the SPACE version of the address
    For Item Categories
    SubObect TextMapping of API to Customs Shipment - Arrival
    Program
    /SAPSLL/SAPLCORE_APPLOG_SERV
    @5C\QError@     
    No mapping information exists for item type ZTAQ
    The system was unable to determine a legal unit for plant 1000
    No mapping information exists for partner function AG
    Also we are using GTS 7.2 but upgrading to GTS 10 and I am trying to create our testing client for a to test after upgrade
    Edited by: Kim Blair on Sep 9, 2011 4:57 PM
    Edited by: Kim Blair on Sep 9, 2011 4:58 PM

  • Problem creating a sales order for configurable material in SAP ECC

    I have a Variant Configurable material named X.
    The structure of this VC material is
    Material X has charatcertics CHARCTERISTIC1 and CHARCTERISTIC2.
    CHARCTERISTIC1 has values VALUE1
    CHARCTERISTIC2 has values VALUE2
    I created a sales order manually from VA01 using configurable material and read the values of all configuration tables to be filled from BAPISDORDER_GETDETAILEDLIST. With the help of this data i got an idea how to fill the tables of BAPI BAPI_SALESORDER_CREATEFROMDAT2. But still i am able to create a sales order but the configuration data that i give is not getting populated in the sales order.
    Where am i missing. please some body suggest. I am unable to debug and searched the forums
    for this information but dint find solution for my problem. some body please tell me where am i missing?
    Any help would be highly appreciated
    Edited by: jessica sam on Jan 12, 2009 2:59 PM

    Even after maintaining the item category MTAC(Mills Make to order config at mat level), the configurable material is not getting replaced in the sales order (va02). It is just showing material variant exists for the configurable material.
    The setting in item category for configuration is.
    Config. Strategy     01(Sales Order Strategy (TAC, TAM))
    Mat. Variant Action  4 (Replace configurable material (Append and change))
    ATP material variant 2 (Do not substitute if not completely available)
    Structure scope      D (Configuration, poss. with BOM explosion)
    I have maintained the stock for material variant as well to take care of ATP material varinat setting shown above.
    Please suggest if missing something.

  • Error while creating a Sales Order

    Hi ,
    I have created a material master for a material Y-350 in my system.I have defined it for the Plant 1100 (Berlin), Sales Org 1020 , Distribution channel 22.When i try to create a sales order for a customer in Dusseldorf,Germanyy , i get an error saying "Material Y-350 is not defined for sales org 1020,distr.chann 22,language DE".It means that a short text with the appropriate language exists(a short text must be available in the language of either the customer or the sales organization).I had it maintained in English.From where do i go and maintain it in German ?Kindly let me know.Thanks.

    Hi,
    First check what's the sales area assigned to your customer in Dusseldorf,Germany. It has to be Sales Org 1020 , Distribution channel 22.
    To check that go to XD02 & enter customer number there and press "Customer Sales Areas" button. There you can view all sales areas available for your customer. Check whether Sales Org 1020 , Distribution channel 22. exists there. If not, from XD01, you have to extend your customer for that sales area again.
    If that's there, then check the language in Material Master.
    What you have to do is, go to MM02, give the Material number and go in by selecting Basic Data view.
    Once go in, select "Additional Data" button option from the top.
    Under "Descriptions" tab, maintain language "DE", since customer is from Germany.
    Now try & see.
    Best regards,
    Anupa

Maybe you are looking for

  • Audiobook chapters by same author messed up in the Finder?

    When I "show in finder" on a music track the track will show up in iTunes Media/ Music/ Artist/ Album - all very neat and as it should be! However with an audiobook, where I have many audiobooks by the same author, then "show in finder" takes you onl

  • Safari Doesn't display websites correctly

    Hey Everyone! I have been using Safari for a while now, but had always needed to use another OS to display a couple of java or SSL related sites because Safari in both Tiger and Leopard didn't display them correctly. At work we use Advocent's web bas

  • Can't select headers in Word for Mac.

    I'm using Word on all of my Macs due to submission requirements of my graduate program, and a document I'm creating has suddenly made headers unselectable.  Posts from 2011 suggest checking Make Master Objects Selectable from the Format menu, but no

  • Mass approval functionality for SRM work items

    Hi, We want to implement mass approval functionality for SRM workflow, so that any user is able to approve/reject multiple requests at one go through UWL. Please guide if it is possible to implement this functinality for task id TS40007952. Regards,

  • How to erase all datas and reset default

    How to erase all datas and factory reset in iMac