Volume of Sales Order Item - Sales - SAP Library

To add a comment, please log in or register on the top of this page and choose Reply. Please write your comment in English.
You can also go back to the SAP help page.

Hello,
Business Requirement:
After 90% quantity of an order quantity is delivered, the item should not be considered by MPS planning run and the item should not appear in MD04.
Current workaround:
Currently, for that item we are setting Partial Delivery / item = A, manually, and then the order item disappears from MD04.
Question:
I found in the customer master sales area data, Partial Delivery / item can be set to A and it gets copied in the sales order. But, the underdelivery talerence is nil in our customer master records. So I dont know how to satisfy the condition of 10% underdelivery. Is there any way by which this can be done, other than writing a program and scheduling it for nightly batch job.
Any help is appreciated.
Thanks.
Madhura

Similar Messages

  • 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
    Anand

    Hi 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

  • Find Sales Order Item Basic Data by Elements query fails

    I am trying to consume Find Sales Order Item Basic Data by Elements in .NET 3.0.
    Every thing appears to be working fine -- I could query by PO number, Creation time, SalesOrganisationID etc.
    However, the most basic query is mysteriously failing. I just want to query by Sales order number, and have given a valid sales order number 6718 that exists in SAP.
    It fails giving the following errors:
    (in Log.LogItem.Note variable):
    <b>"Conversion failed: Invalid input format"</b>
    (in Log.LogItem.TypeID variable):
    <b>"701(SFB)"</b>
    Code is pretty simple, and I am just trying to query Saler Order number 6718. Of course there is nothing wrong with its format.
    From the ESOA site, all I could get was:
    <i>----
    QUOTE -
    The following values are optional selection criteria for restricting the search result:
    SelectionByID – Document number range
    INCLUSION_EXCLUSION_CODE
    INTERVAL_BOUNDARY_TYPE_CODE
    LOWER_BOUNDARY_ID
    Value
    UPPER_BOUNDARY_ID Value
    Value
    UNQUOTE -
    </i>
    I could not even have any  documentation on what to put in InclusionExclusionCode, and IntervalBoundaryTypeCode. They apper to be some Global Data Types for which I couldn't find any documentation. By sifting through Wiki, I just guessed a couple of values praying that it may work. I am a bit new to ESOA, but have expertise in .NET 3.0. Would someone guide me where to find the documentation for that, where are the error codes listed, so that I make the queries with little better preparation.
                querydata.SelectionByID = new SalesOrderERPItemBasicDataByElementsQueryMessage_syncSalesOrderERPItemBasicDataSelectionByElementsSelectionByID[1];//Single element array is good enough
                querydata.SelectionByID[0] = new SalesOrderERPItemBasicDataByElementsQueryMessage_syncSalesOrderERPItemBasicDataSelectionByElementsSelectionByID();
                querydata.SelectionByID[0].InclusionExclusionCode = "E";
                querydata.SelectionByID[0].IntervalBoundaryTypeCode = "6";
                querydata.SelectionByID[0].LowerBoundaryID = new SalesOrderID();
                querydata.SelectionByID[0].LowerBoundaryID.Value = "6718";
                querydata.SelectionByID[0].UpperBoundaryID = new SalesOrderID();
                querydata.SelectionByID[0].UpperBoundaryID.Value = "6718";

    How do you test with a SOAP Client  - I am trying to use same dataset as provided?
    I did with WSDL Test - SAP, SOAP Client and got the following error:
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
       <soap-env:Body>
          <nr1:SalesOrderERPBasicDataByElementsResponse_sync xmlns:nr1="http://sap.com/xi/APPL/Global2">
             <Log>
                <MaximumLogItemSeverityCode>1</MaximumLogItemSeverityCode>
                <Item>
                   <TypeID>701(SFB)</TypeID>
                   <SeverityCode>1</SeverityCode>
                   <Note>Conversion failed: Invalid input format</Note>
                </Item>
                <Item>
                   <TypeID>701(SFB)</TypeID>
                   <SeverityCode>1</SeverityCode>
                   <Note>Conversion failed: Invalid input format</Note>
                </Item>
                <Item>
                   <TypeID>701(SFB)</TypeID>
                   <SeverityCode>1</SeverityCode>
                   <Note>Conversion failed: Invalid input format</Note>
                </Item>
                <Item>
                   <TypeID>701(SFB)</TypeID>
                   <SeverityCode>1</SeverityCode>
                   <Note>Conversion failed: Invalid input format</Note>
                </Item>
                <Item>
                   <TypeID>701(SFB)</TypeID>
                   <SeverityCode>1</SeverityCode>
                   <Note>Conversion failed: Invalid input format</Note>
                </Item>
             </Log>
          </nr1:SalesOrderERPBasicDataByElementsResponse_sync>
       </soap-env:Body>
    </soap-env:Envelope>
    Thanks..
    Vikas

  • BAPI_SALESORDER_CHANGE to update reason for rejection of sales order item

    Hi,
    The FM BAPI_SALESORDER_CHANGE is not working properly as I am getting below error when try to update the reason for rejection at sales order item level.
    The delivery is done for this salesorder. Is it because the reason for rejection field is not as an input field when delivery done?
    error in return table is " Field 'ABGRU' cannot be changed, VBAPKOM 000010  ready for input"
    Request your suggestions to avoid this error.
    Thanks

    >
    anikaushi wrote:
    > Hi,
    > The delivery is done for this salesorder. Is it because the reason for rejection field is not as an input field when delivery done?
    >
    >  error in return table is " Field 'ABGRU' cannot be changed, VBAPKOM 000010  ready for input"
    >
    >
    > Thanks
    Yes, Most likely.. You can confirm this by trying to change a order without delivery and see if it goes thru (to ensure that you have passed correct parameters)...
    you may have to delete the delivery (and if billing document exist, cancel it), before you can reject the line item... it would be safer to raise an error message and let the users manually delete delivery document as long as you don't have large volumes of this scenario..
    Please see the SDN thread for how you can avoid this error...
    Re: Cancel Sale Order after Issued Billing

  • EK01 and EK02 not copied to sales order item

    Dear colleagues,
    Is it possible to have EK01/EK02 transferred to the sales order item for assembly type = "0 no assembly order processing"
    (specified in requirement class definition)? I would like to have planned production costs in EK02/EK01.
    I don't specify costing method, variant and sheet in requirement class definition (transaction ovzg)
    The steps are following:
    1. create sales order
    2. set manually proper item category (which refers to assembly type = "0 no assembly order processing")
    3. MD04 - convert generated planned order (lower-level for HALB) into production order
    4. MD04 - release HALB production order
    5. MD04 - convert generated planned order (higher-level for FERT) into production order
    6. MD04 - release FERT production order
    7. ????? we could expect EK02/EK01 in sales order item coming from production orders ?????
    I have found SAP note 857299 nevertheless it is not stated precisely there.
    Please let me know your observations in this area.
    Regards,
    Wojtek

    Hi..
    Hi
    Small change in the program will copy the PO number from Contract to sales order.In case need take help of ABAPer
    Data which is not copied
    LOCAL: VBKD-FKDAT.
    LOCAL: VBKD-FPLNR.
    LOCAL: VBKD-WKWAE.
    LOCAL: VBKD-WKKUR.
    LOCAL: VBKD-DELCO.
    LOCAL: VBKD-BSTKD.
    LOCAL: VBKD-ABSSC.
    LOCAL: VBKD-BSTDK.
    In your data declaration, you have
    LOCAL: VBKD-BSTDK
    Regds
    MM

  • Sales order item data & sales order schedule data

    Hello,
    I have a Sales Orders cube which is pulling data from two DSOs (one for sales order item data and the other for sales order schedule data). The common fields between these two DSOs is the Sales Order number but in my cube I have dual entries for each Sales Order document (item and schedule info).
    Example of how the data looks now:
    Sales Order . . Item Cat. . . Article . . . Net Price . . . Delivery . . . Act GI Date
    1. . . . . . . . . ...TAN. . . . . ABC123. . . .10
    1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 . . . . . . . . 01/01/2000
    2. . . . . . . . . ...TAN. . . . . CBA321. . . .15
    2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 . . . . . . . . 01/02/2000
    How do I merge the data on the Sales Order number in the cube so it looks like below?
    Sales Order . . Item Cat. . . Article . . . Net Price . . . Delivery . . . Act GI Date
    1. . . . . . . . . ...TAN. . . . . ABC123. . . .10 . . . . . . . . . .1 . . . . . . . . 01/01/2000
    2. . . . . . . . . ...TAN. . . . . CBA321. . . .15 . . . . . . . . . .2 . . . . . . . . 01/02/2000
    Many thanks,
    Matt

    > Hello,
    >
    > I have a Sales Orders cube which is pulling data from
    > two DSOs (one for sales order item data and the other
    > for sales order schedule data). The common fields
    > between these two DSOs is the Sales Order number but
    > in my cube I have dual entries for each Sales Order
    > document (item and schedule info).
    >
    Two previous remarks:
    1) If you need to report on very detailed data consider doing an info-set joining both datastores. 2 reasons why:
    - not a good idea to report on very detailed information (sales order, GI dates) on cube level, if you have a scenario with lots of data. You end up with big dimension tables a poor report times;
    - there are better alternatives, like drill-through from cube query to DS query with report to report interface or Datastore-based reporting...so...
    With this solution you do not need to change the data model, I think, but test to be sure. See if the reporting times are acceptable. If not...
    2) First confirm your requirements, because what you show in your example as "to-be" have details that do not make sense, probably..
    - if you have more that one schedule line for each item then you would have many times the item information like material/price;
    - if not or if you could cope with that, then you can consider:
    2.1) create a new DS that agregattes from the previous on, with the same key of sales order item; do you have schedule line kf's? if so you these KF's should be additive in DS update; But if you may have more one scheduled line for 1 item then you have to decide what to do with the GI data (keep the last one posted, use code..) and other characteristics.
    2.2) update the shedule line datasource to the sales order item DS; same comments apply.
    2.3) maintain the missing data in the cube update rules from sheduled lines DS. Using code, refer to the respective item in the order item ODS. You would have to make sure that DS's data are correctly activated before updating the infocube.
    What solutions to choose?
    2.1 is better in terms of flexibility and architecture...because you could re-arrange the new DS to answer future needs, without loosing the 1st line DS's data;
    2.2 choose if data volumes and disk space are a concern...
    or
    2.3 it's OK, but i do not like it because of what explained in point 1...
    Message was edited by:
            Miguel Costa

  • How to put some tabs in sales order item level  invisible mode

    Hello Gurus ,
    Good evening everybody ,
    We have some specific requirement from the client - Client does n't want few  end users to see the price details in sales so they want  the condition tab to be  invisible mode in sales order item lvel only for few users  i.e the condition tab  should not be displayed  for that user  is this possible  ?
    Note : I only have idea setting few fields in  sales order  but not tabs in sales order through screen variant -SHD0
    Looking for your inputs
    Thanks and regards
    Venkat

    Hi,
    There are a couple of options you can go with.
    1) You can use Transaction and Screen variants to create your own ZVariant and then put that to user profile.  Allow the user to run only with the variant you setup for the user via authorizations.
    2) Get GUIXT software by Synactive, to perform the above task for you. 
    3) If you happen to have latest version of SAP ECC i.e. 6.0 with EHP3 or above, you can go with NWBC (Netweaver Business Client).
    Thanks
    Kapil Sharma

  • Sales order costing - tracking of actual costs at sales order item level

    Hi
    We are going with sales order costing for services
    Service material is non-valuated hence the scenario is non-valuated sales order stock
    PP module is not implemented.
    I am having following questions
    1. How to track the actual costs at sales order item level? Is Internal order/CO production order is required to be created for the same?
    2. Can I do activity confirmations directly from cost center to sales order item.
    3. Can Raw material is issued directly against sales order item.
    4. Is Sales order is a real or statistical account assignment object?

    dear friend,
    please look here:
    http://help.sap.com/saphelp_47x200/helpdata/EN/42/d7248ab27111d19e9a080009b0db33/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/EN/90/ba6cfb446711d189420000e829fbbd/frameset.htm
    reagrds,

  • How to change material discription at sales order item level ?

    Dear Gurus,
            We have some requirement need to change material description at sales order item level , but in system it is in disable mode how to change that  into change mode in sales order item level?
    Thanks in advance
    Regards
    Venkat

    Not possible in SAP Standard.
    Instead why not create a Customer Material Info Record in T-Code - VD51?
    Alternatively it the requirement to change the Description is only for few Sales Order then create a Text ID & Enter the Description in Text Feild. Then in Smartform program wrie a code which will check for Material Description in the Text first & if not found then take from normal material Description in Sales Order.
    But Customer Material info Record seems to be the best solution.
    Hope this helps,
    Thanks,
    Jignesh Mehta

  • Create additional field in sales order item and copy to purchase order item

    Dear SAP Gurus,
    I am hoping that someone could help me by providing me with how to implement the following 2 requirements in the SD order and in the purchase order.
    1. I am wanting to add a custom field to the SD sales order item copying a value from the vendor customer master.
    2. I then want to add a custom field to the purchase order item and copy the value from my custom field in 1. to this new custom field..
    Can you please advise how I would go about implementing the above requirements?  I am assuming that there are exits to allow me to implement these 2 requirements.
    Many thanks
    Henry

    Hi,
    For the first requirement you can use the USEREXIT_MOVE_FIELD_TO_VBAP in report MV45AFZZ.
    For the second, as I think that you will create a RFQ you can try to use the enhancement MEREQ001.
    Regards,
    Eduardo

  • Profit center is missing in the Sales Order Items

    Hello,
    I would like to ask why a profit center field in the sales order item data is blank but in the material master, the profit center is maintained.  Why was it not populated during order entry?
    Hoping for your support.
    Thanks.

    Hi Cynthia,
    Please check if you have maintained Profit Center at correct place in Material Master. It is maintained at Mat master: Sales: gen/plant view (MARC-PRCTR)
    If it is maintained here, it should get populated at Sales Order Item -> Account Assginment tab. This is Standard SAP behavior.
    Regards,
    Rianka

  • Incompletion procedure -Sales order Item level.

    Hi
    I want to add the field "MATERIAL SALES TEXT" in Incompletion procedure -Sales order Item level.
    The Table that i need to enter in procedure is VBAP.
    But what should be the "Field Name" and  Screen for creating missing data?
    Plz Help....
    Regards
    Subhasish

    Field ARKTX refers to 'Description' of material in sales order and not to 'material item text'.
    'Material sales text' flows into sales order from the text you maintained in customer master record or Material master record.
    Of course, you could also maintain sales text at sales order stage also.
    Incompletion process inspects specific fields in order to see if data has been maintained in these fields. Should data not be maintained in these specified fields, the system is told how to respond, that is, whether or not to give a warning message and to what extent does it allow further processing of the document.
    Material sales text is not a field.
    So, you cannot add material sales text at incompletion procedure.
    Please reward points for good answers as this would help increase the total donation that SAP will make to the United Nations World Food Programme.

  • Sales Order creation using SAP NCo 3.0 x64

    Hi,
    I have been trying to create a sales order using the SAP NCo from Visual Studio (C#) and I'm stuck.
    The  code I have used is:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using SAP.Middleware.Connector;
    namespace ConsoleApplication2
        class Program : IDestinationConfiguration
            static void Main(string[] args)
                RfcDestinationManager.RegisterDestinationConfiguration(new Program());
                RfcDestination destination = RfcDestinationManager.GetDestination("EHP6");
                try
                    RfcRepository repo = destination.Repository;
                    IRfcFunction salesDoc = repo.CreateFunction("BAPI_SALESORDER_CREATEFROMDAT2");
                    IRfcFunction salesDocCommit = repo.CreateFunction("BAPI_TRANSACTION_COMMIT");
                    IRfcStructure salesHeader = salesDoc.GetStructure("ORDER_HEADER_IN");
                    IRfcTable salesItems = salesDoc.GetTable("ORDER_ITEMS_IN");
                    IRfcTable salesPartners = salesDoc.GetTable("ORDER_PARTNERS");
                    IRfcStructure salesItemsStruct = salesItems.Metadata.LineType.CreateStructure();
                    IRfcStructure salesPartnersStruct = salesPartners.Metadata.LineType.CreateStructure();
                    //Sales Header
                    salesHeader.SetValue("DOC_TYPE", "MOR");
                    salesHeader.SetValue("DOC_DATE", Convert.ToDateTime("2014-06-19"));
                    salesHeader.SetValue("SALES_ORG", "M210");
                    salesHeader.SetValue("DISTR_CHAN", "01");
                    salesHeader.SetValue("DIVISION", "M1");
                    salesHeader.SetValue("CURRENCY", "USD");
                    //Sales Items
                    salesItemsStruct.SetValue("ITM_NUMBER", "000010");
                    salesItemsStruct.SetValue("MATERIAL", "MP_SHEET_22");
                    salesItemsStruct.SetValue("SHORT_TEXT", "Sheet Grade B, BWT 20lb/75gsm");
                    salesItemsStruct.SetValue("PLANT", "M210");              
                    salesItemsStruct.SetValue("TARGET_QTY", "2000");
                    salesItemsStruct.SetValue("TARGET_QU","LBR");
                    salesItemsStruct.SetValue("TARGET_VAL", "11655.67");
                    // Partner
                    salesPartnersStruct.SetValue("PARTN_ROLE", "SP");
                    salesPartnersStruct.SetValue("PARTN_NUMB", "MP-CUST201");
                    RfcSessionManager.BeginContext(destination);
                    salesDoc.Invoke(destination);
                    salesDocCommit.Invoke(destination);
                    RfcSessionManager.EndContext(destination);
                    Console.WriteLine("Sales Order Created!!");
                    Console.ReadLine();
                catch (RfcCommunicationException e)
                    e.ToString();
                    Console.WriteLine(e);
                    Console.ReadLine();
                catch (RfcLogonException e)
                    e.ToString();
                    Console.WriteLine(e);
                    Console.ReadLine();
                catch (RfcAbapRuntimeException e)
                    e.ToString();
                    Console.WriteLine(e);
                    Console.ReadLine();
                catch (RfcAbapBaseException e)
                    e.ToString();
                    Console.WriteLine(e);
                    Console.ReadLine();
            public RfcConfigParameters GetParameters(String destinationName)
                if ("EHP6".Equals(destinationName))
                    RfcConfigParameters parms = new RfcConfigParameters();
                    parms.Add(RfcConfigParameters.AppServerHost, "xx.xxx.xxx.xx");
                    parms.Add(RfcConfigParameters.SystemNumber, "00");
                    parms.Add(RfcConfigParameters.SystemID, "IE6");
                    parms.Add(RfcConfigParameters.User, "user");
                    parms.Add(RfcConfigParameters.Password, "password");
                    parms.Add(RfcConfigParameters.Client, "800");
                    parms.Add(RfcConfigParameters.Language, "EN");               
                    return parms;
                else return null;
    It returns me no error and even displays "Sales Order Created!!" from the try block. But when I check in VBAK, no Sales Order is being created.
    Can somebody help me understand, if I have missed out something or if I'm going wrong somewhere?
    All dependencies have been added correctly, platform being set to x64. No build/run-time errors.

    Hi Sreyan Choudhury
    have you check if you have completed all the mandatory field?
    the partner "SP" is the customer in your system?
    here an example on how I've used this bapi in a webdynpro:
    * Order Header Details
      CLEAR w_order_header_in.
      w_order_header_in-doc_type = zauart.
      w_order_header_in-sales_org = zvkorg.
      w_order_header_in-distr_chan = stru_order_header-distr_chan.
      w_order_header_in-division = 'GN'.
      w_order_header_in-purch_no_c = stru_order_header-purch_no_s.
      w_order_header_in-purch_no_s = stru_order_header-purch_no_s.
      w_order_header_in-sales_grp = zvkgrp.
      w_order_header_in-sales_off = zvkbur.
      w_order_header_in-compl_dlv = stru_order_header-compl_dlv.
      w_order_header_in-req_date_h = stru_order_header-req_date_h.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = w_order_items_in-material
        IMPORTING
          output = w_order_items_in-material.
    * Order Partner Details
      CLEAR: i_order_partners,w_order_partners.
      w_order_partners-partn_role = 'AG'.
      w_order_partners-partn_numb = stru_order_partners-partn_numb.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = w_order_partners-partn_numb
        IMPORTING
          output = w_order_partners-partn_numb.
      APPEND w_order_partners TO i_order_partners.
    *partener roles
      SELECT * INTO w_agenti FROM zagenti WHERE vkgrp = zvkgrp.
        CLEAR w_order_partners.
        w_order_partners-partn_role = w_agenti-parvw.
        w_order_partners-partn_numb = w_agenti-lifnr.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = w_order_partners-partn_numb
          IMPORTING
            output = w_order_partners-partn_numb.
        APPEND w_order_partners TO i_order_partners.
      ENDSELECT.
    * Order Items
      LOOP AT stru_order_items INTO i_order_items.
        CLEAR: w_order_items_in.
        MOVE-CORRESPONDING i_order_items TO w_order_items_in.
        w_order_items_in-store_loc = i_order_items-lgort.
        w_order_items_in-itm_number = sy-tabix * 10.
       w_order_items_in-item_categ = 'TAN'.
       w_order_items_in-ship_point = 'LS00'.
       w_order_items_in-plant = 'DS00'.
        APPEND w_order_items_in TO i_order_items_in.
        w_order_items_inx-itm_number = w_order_items_in-itm_number.
        w_order_items_inx-target_qty = 'X'.
        w_order_items_inx-item_categ = 'X'.
        w_order_items_inx-ship_point = 'X'.
        w_order_items_inx-plant = 'X'.
        IF w_order_items_in-batch IS NOT INITIAL.
          w_order_items_inx-batch = 'X'.
        ENDIF.
        IF w_order_items_in-store_loc IS NOT INITIAL.
          w_order_items_inx-store_loc = 'X'.
        ENDIF.
        APPEND w_order_items_inx TO i_order_items_inx.
        w_order_schedules_in-itm_number = w_order_items_in-itm_number.
        w_order_schedules_in-sched_line = '0001'.
        w_order_schedules_in-req_qty = w_order_items_in-target_qty.
        APPEND w_order_schedules_in TO i_order_schedules_in.
        w_order_schedules_inx-itm_number = w_order_items_in-itm_number.
        w_order_schedules_inx-sched_line = '0001'.
        w_order_schedules_inx-req_qty = 'X'.
        w_order_schedules_inx-updateflag = 'I'.
        APPEND w_order_schedules_inx TO i_order_schedules_inx.
    * Order Condition Details
        IF i_order_items-prriga <> i_order_items-prnet AND
           i_order_items-prriga <> i_order_items-prbase.
          CLEAR: w_order_conditions_in.
          w_order_conditions_in-itm_number = w_order_items_in-itm_number.
          w_order_conditions_in-cond_type = 'ZMAN'. “manual
    price condition
          w_order_conditions_in-cond_value = i_order_items-prriga / 10.
          APPEND w_order_conditions_in TO i_order_conditions_in.
        ENDIF.
        DATA: v_message_riga TYPE string.
    * Get message manager
        DATA: l_current_controller TYPE REF TO if_wd_controller,
              l_message_manager TYPE REF TO if_wd_message_manager.
        l_current_controller ?= wd_this->wd_get_api( ).
        CALL METHOD l_current_controller->get_message_manager
          RECEIVING
            message_manager = l_message_manager.
        IF i_order_items-prriga = 0 AND i_order_items-omaggio = ''.
          CONCATENATE 'Error during the creation '
                      'empty line INTO v_message_riga.
    *    v_message_riga = 'Errore durante la creazione. Riga non
    *valorizzata'.
    *   Report Error message
          CALL METHOD l_message_manager->report_error_message
            EXPORTING
              message_text = v_message_riga.
          i_bloccasalva = 'X'.
        ENDIF.
      ENDLOOP.

  • Sales Order and Sales Item not copy over to table AFPO-KDAUF and AFPO-KDPOS

    Hi Expert,
    May I know why I run MRP and convert planned order to production order based on Sales Order, why the sales order and sales item is not copied and save in table AFPO-KDAUF and AFPO-KDPOS?
    I can see the sales order and sales item is appearing in MD04, but how is the linkage between production order and sales order/item?
    Thanks.

    Sales order No. and sales line item will only be transfer to production order in MTO ( Make to Order) scenario.
    If your scenario is MTO and the sales order reference is not getting  transfer, then check your requirement type and  requirement class setting in T.Code OVZH and OVZG.
    In standard SAP 'KE' requirement type  40 requirement class is used  for MTO scenario.

  • How to read Sales order Item Text of item node?

    Hi Sap Guru's,
    I have urgent requirement, i want to read Sales order item text of item node.
    can anybody give detail code.
    Thanks in Advance,
    Venkat

    hi venkat,
    take a look at this code
    data:
      git_line type standard table of tline.
    data:
      gwa_head type thead,
      gwa_line type tline.
    data:
      v_first type c.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
      CLIENT                        = SY-MANDT
        id                            = '0002'
        language                      = sy-langu
        name                          = '1000000122000010'
        object                        = 'VBBP'
      IMPORTING
        HEADER                        = gwa_head
      tables
        lines                         = git_line
    EXCEPTIONS
       ID                            = 1
       LANGUAGE                      = 2
       NAME                          = 3
       NOT_FOUND                     = 4
       OBJECT                        = 5
       REFERENCE_CHECK               = 6
       WRONG_ACCESS_TO_ARCHIVE       = 7
       OTHERS                        = 8.
    loop at git_line into gwa_line.
      at first.
        move 'X' to v_first.
      endat.
      if v_first eq 'X'.
        write: / gwa_line-tdline+10.
        clear v_first.
      else.
        write: / gwa_line-tdline.
      endif.
    endloop.

Maybe you are looking for

  • Setting filename sending output to Excel form servlet

    Hi All I am successfully sending my tab separated output to Excel from the servlet using the following: response.setContentType("application/vnd.ms-excel"); response.setHeader("Content-Disposition","inline;filename=statistics.txt"); The output is aut

  • How can I copy and paste a long page here without using email?

    How can I copy and paste a long page without using email?

  • Cant open a upnp port on my router

    just bought an iomega nas cloud edition and i want to configure it for remote access, have been into settings on the router and cant figure it out, anyone got any ideas. TIA. Den

  • Problem with WAR

    hi all, i m little confuse in creating a WAR file for my web application, i have JSP file and bean classes and no servlet. 1- in this scenario should i need to creat web.xml and if so what i write in it? 2- my main confusion is during my search i fou

  • I can't import Keynote files into my iPad from MobileMe

    Firstly, I have spent an hour or two on the web and on these forums trying to solve my problem. My goal is this: I want to open presentations on my iPad that I created on my Mac Pro. Simple enough? But every time I try to open any presentation (I sto