Adding new assignment block in the sales order component

Hi ,
In sales order ,  qty filed is available at line item general details  level .now my requirment, the qty field has to display  in the new assinment block. i am thinking to create new view and context  node in the same component and ii will add this view to SOItemOV page . Please guide me this  approach is correct or not.

Dear Venky,
Refer to this [WIKI|http://wiki.sdn.sap.com/wiki/display/CRM/Howtodisplayaz-tableinanassignmentblock] for help.
Thanks
Vishal

Similar Messages

  • Assign batches at the sales order level

    Hi
    Client wants to assign batches at the sales order level and keep ttack of the batch quantity at the same level.
    (the reason for the requirement is that somtimes they may want to change the batch number where th stock is picked)
    Thanks for any help
    Regards
    apsara

    Hi,
    You want to assign the batch at sales order level is possible but you have to choose
    the batch using CTRL + TAB in QTY Field before add the document.
    Once you not choose batch system allow to add the sales order without allocate batch.
    *Close the thread if issue solved
    Regards
    Jambulingam.P

  • Mass delivery block in the sales order

    Hi
    Is there any way to remove the delivery block at the itel level in the sales order using the mass.
    I have some thousand of sales orders with the delivery block at item level.
    please let me know, this is urgent requirement.
    Thanks
    Aravalli

    Dear Aravali
    If I am correct, you cannot assign delivery block in sale order at item level, but can assign Reason for Rejection at item level.  Only at header level, delivery block is there.
    Nevertheless, if you want to remove the reason for rejection, go to MASS, input BUS2032 and execute.  There select [Sales Order Item Data]  and click on Fields. Select the field MASSVBAP-ABGRU and execute.  Give the required sale orders which you wanted to change and execute.  You can change and save so that the block will be removed at item level.
    Alternatively, if you are referring to field [LIFSK]  in that case also, select Sales Order Item Data and click on Fields.  There choose the field MASSSDHEAD_S-LIFSK and execute.  Make the required changes and execute.
    thanks
    G. Lakshmipathi

  • Billing block in the Sales Order

    Hi All,
    Can you please tell me the path for removing the billing block mandatory for my sales Return orders.
    I have cheked the Order Type Configuration at VoV8.There it is mentioned 11 as the Incompl.Proced.
    I have chekd in the incompletion procedure also.But i have not found FAKSK-VBAK.
    Please Guide me for the same
    Regards
    Kumar

    Hello,
    In standard SAP, For all the Retrn Order there will be BILLING BLOCK,
    If you want to remove the Billing block at Configuration level, yo can remove using the transaction code VOV8 foro your return order types,
    If you want to remove the Block at Transaction/Order exection level, you can remove it from the sales order in the change move in VA02.
    In VA02 transaction code at the Header u can remove the Billing block.
    regards,
    santosh

  • Adding new element block before the original nodes

    I want to form a new xml like this:
    <xml>
    <form id="name1"> // this is
    </form> // new element i'll add
    <form id="_name1"> // this is
    </form> // original element
    <form id="name2"> // this is
    </form> // new element i'll add
    <form id="_name2"> // this is
    </form> // original element
    </xml>
    how to insert new element parts into xml file by using Jdom?
    Thanks
    jj

    Sorry for my format
    I added i.previous();
                                            i.add(newFormElement);
                                            i.next();still not work properly.
    How can i do?? pls see my code again!
         public void modifyvxml(Document doc){
                   Element root = doc.getRootElement();
                   java.util.List forms = root.getChildren();
                   if(forms.size()>0)
                        for(int formloop=0; formloop < forms.size() ; formloop++)
                             List newFormList = new java.util.LinkedList();
                             Element form = (Element)forms.get(forms.size());     
                             String form_id = form.getAttributeValue("id");
                             System.out.print ("Form_id is  "+form_id+"\n");
                   ListIterator i = forms.listIterator();
                   while (i.hasNext()) {
                        Element form = (Element) i.next();
                             String form_id = form.getAttributeValue("id");
                             if(form_id != null){          
                                            int j = 0;                    
                                            StringBuffer sb_form = new StringBuffer(form_id);
                                            sb_form.insert(0, '_');
                                            form_id = sb_form.toString();
                                            form.setAttribute("id", form_id);
    //==================add new forms                         
                                            Element newFormElement = new Element("form");
                                            Element subdialog = new Element("subdialog");
                                            int index = forms.indexOf(newFormElement);
                                            newFormElement.setAttribute("id", form_id);                                        
                                            newFormElement.addContent(subdialog);
                                            subdialog.setAttribute("src", "call.jsp");
                                            i.previous();
                                            i.add(newFormElement);
                                            i.next();
    //                                        newFormList.add(formloop,newFormElement);
    //                                        newFormList.add(formloop,forms);
                        System.out.print ("new form_id is "+form_id+"\n");
    //=====================
                        try{               
                        XMLOutputter out = new XMLOutputter();
                        File myXML = new File("testvxml.xml");
                        out.output(doc,new FileOutputStream(myXML));                                   
                        }catch (IOException e) {
                        e.getMessage();
    }Thanks

  • Better approach for adding a new assignment block in a standard component

    Hi
    I need to add a new assignment block in the standard component bt116h_srvo. There are two approaches :
    1. create a new view in the component bt116h_srvo
    2. create a custom component and embed it into bt116h_srvo using component usage.
    Please tell which one is a better approach and why ??
    Thanks,
    Swati.

    Thanks for the quick reply lakshmi. However I am sure there is no possibility of reuse . My  main concern here is tat will patch upgradation in future would have any impact on the views added directly in standard component  or any other risk in adding view directly.
    Rgds,
    Swati

  • Check if the Sales Order is credit block.

    Hello Everyone,
    I have a requirement related to third party sales order and delivery. In the first system, a sales is created and then the PO gets created. Upon the creation of the PO a IDOC gets generated. The inbound IDOC in the other system triggers and a sales order gets created. The requirement is that if sales order in the first system is on credit block then automatically the sales order in the second system should go on delivery block.
    The solution that I have thought is that when the IDOC gets created after PO generation there itself add a flag to IDOC in case of credit block in sales order. BUT HOW TO CHECK CREDIT BLOCK of the SALES ORDER IN THE CUSTOMER EXIT?
    Any help is appreciable.

    Hi Rahul,
    Need some more clarification on why sales order is created in the second system, if it is a third party process ?
    are you creating delivery from the corresponding sales order of second system to replenish sales order of first system ?
    are you using standard IDOC type for creating Sales order from PO ?, if so check the Corresponding Function module which may have user exists
    check Function module : IDOC_OUTPUT_ORDRSP
    At first system, if the sales order is credit block you can restrict creation of PR-->PO in the first system itself, this is a standard Functionality
    This would be easier than looking for user and coding in IDOC function module
    try and revert
    thanks
    santosh

  • Adding an assignment block

    hi
    I have to add a new assignment block on the UI. I  have done it by creating a view in a new component and then getting the fields displayed on the UI by including that component in the Component Usage for the required component. The problem i am facing is that, all the fields are getting displayed in  the non-editable mode. I am not able to manipulate the values for these fields using the GET, GET_I methods also. Please help me in solving this problem.
    Help would surely be rewarded.
    Regards,
    Radhika

    Hi Radhika,
    Please note that fields will get value either from custom controller or component controller in your case.
    When you include any component in other component you need to specify which custom controller your component will be using to fetch the value.
    Eg: Your componet is C1 and you have added it in component useage of C2. Also C2 has cuco.Also you need to create cuco in c2 for your component c1so that c1 is able to fetch the value.
    Now when you have specified the cuco, you need to tell in component controller that if your component is C1 then your cuco is cuco(that you created in C2).
    This you do in implementation class of component controller and wd_usage_initialize method of implementation class of component controller. If you check any standard component, you will find custom controller for component usage components. Write code for your component C1.
    Then you will be able to use values and fetch values.
    Best regards
    Pankaj Kumar

  • BAPI_SALESORDER_CHANGE Quantity in the sALES ORDER NOT GETTING UPDATED.

    Hi Experts,
    i am adding a new line item to the sales order with line item number and material number and QUANTITY.
    by using BAPI_SALESORDER_CHANGE bapi every thing is geeting updated but QUANTITY field is not getting updated.
    regards,
    Jay Sawant.

    I m using this code..
    Fill Line Item Details
      fl_order_itm-itm_number = line_item + 1000.
      fl_order_itm-material   = mpn.
      fl_order_itm-target_qty = qty.
       fl_order_itm-sales_unit = unit.
      APPEND fl_order_itm TO it_oditm.
    Fill the Header Order Details
    fl_order_itm_inx-itm_number = line_item + 1000.  "added
      fl_order_itm_inx-updateflag = 'U'.
      fl_order_itm_inx-material   = 'X'.
      fl_order_itm_inx-target_qty = 'X'.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
        EXPORTING
          salesdocument            = vbeln
      ORDER_HEADER_IN             =
          order_header_inx         = order_header
      SIMULATION                  =
      BEHAVE_WHEN_ERROR           = ' '
      INT_NUMBER_ASSIGNMENT       = ' '
      LOGIC_SWITCH                =
      NO_STATUS_BUF_INIT          = ' '
        TABLES
          return                   =  it_ret2
       order_item_in               =  it_oditm
       order_item_inx              =  it_oditx
      PARTNERS                    =
      PARTNERCHANGES              =
      PARTNERADDRESSES            =
      ORDER_CFGS_REF              =
      ORDER_CFGS_INST             =
      ORDER_CFGS_PART_OF          =
      ORDER_CFGS_VALUE            =
      ORDER_CFGS_BLOB             =
      ORDER_CFGS_VK               =
      ORDER_CFGS_REFINST          =

  • How close the sales Order

    Hi Guru,
    Greeting from Sanjeev
    My client want to enter the old inquries/Quatation & Sales order in new system. after making the sales order we cannot make delivery as this SO are already invoiced!! we cannot create the Invoice.I want to close this SO. Can we do so in bulk or a ABAP program can be created so that we can provide a screen where the user will enter the Invoice No & the SO will be reflct as closed

    These reason for rejection will lead the sales order to complete status and you will not be able to create any further subsequent document for those docs..
    So, as per requirement, you need maintain a rejection reason (Tcode OVAS and assign them accordingly to relevant sales doc type), say Z1 as "Legecy Data w, Invoice".
    Old SOs are invoiced then we cannot give rejection reason
    Thats a warning message which you can overlook for the partialy referred sales orders, i.e., sales oders with being process status. By maintaining these reason for rejections you will be able to lead/convert being process status order to complete status.
    Try or in case of any concern and share your feedback.
    Regards
    JP

  • Create a new assignment block

    Hello everyone,
    I am new in the topic SAP CRM Web Client and I have to create a new assignment block for the accounts site.
    In this assignment block you should see the last ten orders of the account. I already have the code to get the data from the tables. But I have no idea how to show this in a new assignment block. Can anybody help me, please? Or do you know a good document, where the process is described?
    I have the book SAP CRM Web Client Customizing and Development. So I've understood the basics. But it was not really helpful for my project.
    So help me, please.
    Thanks and regards,
    Stefanie

    Stefanie,
        Assignment block is nothing but a view. So you need to create one view with view type as Table view. Columns of the table would be the value attributes of the view. Write the population logic in ON_NEW_FOCUS method of the CNxx class associated with the view you created.
    You can refer following code to get the TABLE View populated -->
    data: lr_wrapper type ref to cl_bsp_wd_collection_wrapper, " BP collection wrapper
    lr_entity type ref to if_bol_bo_property_access, " wrapper entity
    lv_bp_nr type string, " BP (business partner) number as string
    lv_partner type bu_partner, " BP number in correct format (for RFC call)
    ls_smof_erpsh type smof_erpsh, " structure of the RFC destination
    lr_col type ref to if_bol_bo_col, " collection to fill node ZBP_FAVS
    lr_valuenode type ref to cl_bsp_wd_value_node, " value nodes to fill a collection
    lr_tabline type ref to zbp_favs_s, " table line reference to fill value node
    lt_favs type zbp_favs_tab, " local table with data from ERP-table ZBP_FAVS
    ls_favs type zbp_favs_s. " local structure of table above
    get partner entity and partner number
    try.
    lr_entity ?= focus_bo.
    catch cx_sy_move_cast_error.
    return.
    endtry.
    lv_bp_nr = lr_entity->get_property_as_string( 'BP_NUMBER' ).
    if lv_bp_nr is initial. " no partner...
    return. "...return without selection
    endif.
    get RFC destination of ERP system, if needed
    if ZL_ZBP_FAVS_ZBPFAVORITES_IMPL=>gv_destination is initial.
    call function 'CRM_GET_ERP_SYSTEM'
    exporting
    iv_rfcdest =
    iv_siteid =
    importing
    es_smof_erpsh = ls_smof_erpsh.
    if sy-subrc = 0 and ls_smof_erpsh-rfcdest is not initial.
    ZL_ZBP_CUCL_ZCURRENCYCLAU_IMPL=>gv_destination = ls_smof_erpsh-rfcdest.
    endif.
    endif.
    get favorite things for partner
    lv_partner = lv_bp_nr. " call RFC function in ERP system
    call function 'Z_CRM_GET_FAVS_FOR_BP'
    destination ZL_ZBP_CUCL_ZCURRENCYCLAU_IMPL=>gv_destination
    exporting
    iv_partner = lv_partner
    importing
    et_favs = lt_favs
    exceptions
    others = 4.
    if sy-subrc <> 0.
    " should never happen
    endif.
    create collection object to transfer data
    create object lr_col
    type
    cl_crm_bol_bo_col.
    loop through all found data...
    loop at lt_favs into ls_favs.
    "...create line object
    create data lr_tabline.
    "...create value object with current line for colleciton
    create object lr_valuenode
    exporting
    iv_data_ref = lr_tabline.
    "...set current line data
    lr_valuenode->set_properties( ls_favs ).
    "...add current line to collection
    lr_col->add( lr_valuenode ).
    endloop.
    set collection
    me->set_collection( lr_col ).

  • New assignment block

    Hi,
    I'm trying to create a new assignment block on an Overview page. Here are the steps that I followed:
    1) BSP_WD_COMPOMENT->Navigate to component->Create view set->Create view(Table view type for a Value node with a Z table).
    2) Runtime Repository->Added the view set Create above.
    3)Runtime Repository->Add the View created into the viewset.
    4)Runtime Repository->Add Viewset into the Overview page viewset.
    Now, I was hoping to the see the above created view in the available assignment blocks list. But, I do not see it. Please guide me as to how will I be able to add the assignment block.
    Thanks

    Hello Sreesanth,
    Please check out the following [thread|Creating an overview page with content; where I described the steps necessary to add new assignment block to the overview page.
    I hope it helps.
    Best Regards,
    Yevgen

  • Delivery date on the sales order

    Hi frnds
    I am facing an issue here. When the sales order comes of credit hold the system proposes a new delivery date in the sales order. How can i change the settings to avoid the system from assigning weekends(Saturday & Sunday) as the delivery date????
    I have checked that the factory calendar is set for weekdays only and also the propose del date is check marked in VOV8, OVX5 & OX10 have factory calendar asssigned but i am not able to figure out how to restrict the delivery date to weekdays to be proposed by the system.!!!
    Am i missing something???
    Will appreciate your suggestions.
    null

    Hi,
    The fields needs to be activated in the filed group in accounting.
    The path is SPRO -> Financial accouting -> Accounts Receivables and Accounts Payables -> Customer accounts -> Master data -> Preparations for creating Customer master data -> Define account groups with screen layout.
    Shiva

  • To Put a Schedule line block while saving Sales Order

    Hi Experts,
    I have a requirement of putting an 'AH' block at schedule line. In the User exit USEREXIT_SAVE_DOCUMENT_PREPARE  i have coded it in the following manner.
         loop at xvbep where posnr = xvbap-posnr.
           xvbep-lifsp = 'AH'.
           modify xvbep index sy-tabix.
          endloop.
    However it is not putting the block when the Sales order gets saved.
    Please help me out.
    Regards,
    Anjali
    Edited by: Anjali Steeve on Oct 7, 2009 1:26 PM

    HI anjali,
    Try doin the same in this Form Routine: FORM USEREXIT_MOVE_FIELD_TO_VBEP  
    Guess it should work.
    Best Regards,
    Navin Fernandes.

  • Problem in blocking that amount in the sales order through routein

    Dear Experts,
    We are facing a problem in Routine,
    We have developed a Z rebate module in that we are saving the accrual value for a perticular customer in "Z" Table.
    We are having a senerio of adjusting that perticular accrued amount in the next month sales order as a discount  at the item level. In table  itself we fix this much amount as to flow to sales order for a Perticular material (EX- for 100001 material 5 rs per TON).
    We have devaloped 901 routine that will go to "z" table and check any accrued amount is there then depending on the quantity ordered it will take accrual amount (simultanusly it will block the respective amount in the "z" table) and it will come and update in sales order pricing. Once we save sales order then it will reduse the perticular amount in from "z" table.
    Now we are facing a problem, when we create a sales order first time depending on quantity routine will pull the value from "z" table and it will block respective amount in the "z" table. but before saving the sales order if you change the quantity again (EX- from 100 qty to 200 qty) then the routine is not pulling any value because the amount is already blocked. 
    Can any one tell me how check in run time this was the earlier quantity and this is changes quantity Or is there any logic to block that perticular amount.
    Regards
    Nagesh

    HI Sree
    Could you please justify your post stating
    "Now we are facing a problem, when we create a sales order first time depending on quantity routine will pull the value from "z" table and it will block respective amount in the "z" table. but before saving the sales order if you change the quantity again (EX- from 100 qty to 200 qty) then the routine is not pulling any value because the amount is already blocked. "
    Your discount is based on qty, so when you are adding new item means order qty increased, so discount is applicable.
    Or please put your requirement clearly

Maybe you are looking for

  • How to copy my home video to my PC? Or iTunes even?

    Hello, Very simple; I have my brand new, awesome, battery life sucking iPhone 4S. I upgraded from a iPhone 3G and was super excited because now, I can shoot videos in 1080p @ 30 fps no less. Before, on my 3G, I used an app(iCamcorder) that "hacked" t

  • Logic won't boot after Quitting or Crashing

    If Logic Crashes (more often than it should since L9) it won't reboot unless I restart the computer. This is fairly new (mis) behavior. If I even quit Logic without a crash, it won't reboot until I've restarted the computer.. Does anyone else have th

  • Dynamic Header in JSP

    hi i need to have single Login.jsp whose Header will change. Looks of header will depend upong Id value present in HTTP HEADER. Lets say user A with id value 1 hit Login.jsp URL. it will show header with company abc.com LOGO and other info now user A

  • Cisco ASA5520 multiple context revert back to single context

    Hi all, We have a redudant set of Cisco ASA5520's. This firewalls runs in multiple context mode. No we want to make both "virtual" firewalls physical. We already migrated on of the two firewalls to another physical set. Now we would like to revert ba

  • Buying an older Mac

    Hey there! I'm thinking about buying one of those cool old colourful Mac G3's. They told me it's running Mac OS X Panther. How useful is this version of the operating system? Does it contain iTunes or anything like that? Will I be able to install Win