Disable 'Direct Material' Button

Hello SRM-gurus,
is there a way to disable the 'Order as direct material'-button which appears under 'Internal products / Services' --> basic settings in SRM shopping-cart transaction?
I found badi BBP_DP_PROD_CHK_BADI and Parameter EV_DP_FLAG, but can't set it inactive despite being in change-mode. The only thing I could do is delete the whole line, so that there's only the line IS_PRODUCT left.
It it possible to delete the whole entry EV_DP_FLAG to not get displayed the button any more or would this be fatal?
Thanks for your help.
Regards,
Henning

Hi,
What do you mean by "can't set it inactive despite being in change-mode"???You just need to create an active implementation of the badi BBP_DP_PROD_CHK_BADI in trascn SE19 and in the method PRODUCT_CHECK ,just write the foll line:
EV_DP_POSSIBLE = ' '.
Please take help of an ABAPER  for implementing the BADI.You just need to implement this BADI  to  hide the ORDER AS DIRECT MATERIAL button!
Related  links:
Re: Removing the button 'Order as Direct Material'
Re: how to hide, turnoff, disable a button, checkbox on Shopping Cart
(The previous reply to your post  seems to be picked up from the above threads!!!)
BR,
Disha.
DO reward points for useful answers.

Similar Messages

  • Activating Order as Direct material button on Shopping cart screen

    Hello SRM experts,
    we are in SRM 5.0. we implemented BADI: BBP_DP_PROD_CHK_BADI to suppress Order as direct material button on Shopping cart screen.in this BADI under PRODUCT_CHECK method  we have this code CLEAR ev_dp_possible.Now the requirement is to bring back that order as direct material on to shopping cart screen and we need to check there for direct material and non direct material.
    i commented the code in METHOD PRODUCT_CHECK . but still i'm unable to see that button on SC screen.After bringing that button on to screen we need to check for Direct and non direct materials, if it is a non-direct material and trying to press button Order as Direct Material it should hav to give some error.
    please help me.
    thanks in Advance....

    Dear Poster,
    As no response has been provided to the thread in some time I must assume the issue is resolved, if the question is still valid please create a new thread rephrasing the query and providing as much data as possible to promote response from the community.
    Best Regards,
    SDN SRM Moderation Team

  • Removing the button 'Order as Direct Material'

    Hi,
    I have to remove the button called 'Order as Direct Material' in shopping cart in item details of each material.
    I used the BAdI BBP_UI_CONTROL_BADI. But when I am creating the shopping cart, the browser is not calling the badi. Can anyone tell me how to hide the field in SC?
    Thanks in Advance.
    Regards,
    Nowsath
    Edited by: Nowsath RM on Jan 4, 2008 2:09 AM

    Hi,
    For 'Order as Direct Material' button to be disabled ,use the BADI "BBP_DP_PROD_CHK_BADI".
    In method PRODUCT_CHECK, just clear EV_DP_FLAG.
    BR,
    Disha.
    Pls reward points for helpful answers.

  • Order as Direct Material Changes the Delivery Address

    Hello,
    We have encountered an odd behavior when the Order as Direct Material button is pressed. The delivery address that previously displayed is changed to the plant address.
    Is this normal? Can it be de-activated so that is does not changes the address?
    Regards, Dean

    Muthu,
    Thanks for the reply.. been busy...Is there a way to change this behavior with BADIs, etc? I think I can do it BBP_DOC_CHANGE_BADI. However, I thought there might be a more elegant way .
    Regards, Dean.

  • Why account assignment is not deleted when push "Order as Direct Material"?

    Hi Gurus,
    I have a problem with shopping carts (SC) of stock items:
    1.- I add 5 items.
    2.- I push "Order as Direct Material" button for 3 items only.
    3.- I push "Hold" button to set SC with held status.
    4.- I modify the SC and push "Order as Direct Material" button for 2 items missing.
    5.- I order the SC.
    One of the effects that it has the "Order as Direct Material" button is that it deletes the account assignment because the items will use to create a PO stock.
    But for the last 2 items (number 4.-) the account assignment is not deleted.
    This is causing that the PO's have error: "Invalid tax code".
    Somebody can say to me why is not deleting the account assignment for items previously hold?
    My systems are:
    SRM 4.0 (SRM_SERVER 500) level 8
    R/3 4.7 (SAP_APPL 470) level 24

    Juan Alonso Valenzuela Rodríguez wrote:
    > Hi Gurus,
    >
    > I have a problem with shopping carts (SC) of stock items:
    >
    > 1.- I add 5 items. -- O.K - Assumed that you have 5 items added
    > 2.- I push "Order as Direct Material" button for 3 items only.O.K.You selected as ORDER as direct only for 3 rd item
    > 3.- I push "Hold" button to set SC with held status.- O.K. now HOLD the shopping cart
    > 4.- I modify the SC and push "Order as Direct Material" button for 2 items missing.- Now you went to 2 nd items and ORDER as direct
    > 5.- I order the SC.but this 2 nd item account data was not removed though you selected as ORDER as direct-
    check item data what is stored here DP ? if account assignment not cleared it could be a bug. but you need to convince them to get a correction note.
    >
    > One of the effects that it has the "Order as Direct Material" button is that it deletes the account assignment because the items will use to create a PO stock.
    >
    > But for the last 2 items (number 4.-) the account assignment is not deleted.
    >
    > This is causing that the PO's have error: "Invalid tax code".
    >
    > Somebody can say to me why is not deleting the account assignment for items previously hold?
    >
    > My systems are:
    > SRM 4.0 (SRM_SERVER 500) level 8
    > R/3 4.7 (SAP_APPL 470) level 24

  • Order as Direct material with result of reservation document

    Hi All,
    Currently, the client requirement is to active the "Direct Material" button during the shopping cart creation to differentiate between Direct and Indirect material purchase.
    As I understand to active the button, we need to active "Extended Classic Scenario" to have "Direct Material" button. But they would like to have reservation document to be created after Shopping cart is approved and this is conflict with setting as only classic scenario to allow reservation document to be created.
    Please share your idea.
    This is my thought.
    (1) Ext Classic with "Direct Material" button and use badi to change the document to reservation? Which Badi?
    (2) Stay with Classic and control certain product category to have always resevervation document.
    Rgds,
    Paul

    The 'order as direct material' is active by default only.
    You don't need to activate ECS for this.
    You can control the same by BBP_DP_PROD_CHK_BADI.
    Only thing whenever you will create a SC for direct matl,
    SRM will try to create the follow-on locally only & not in ECC.
    So creating reservation via SC direct matl line item will not be easy.
    May be you can try to control the follow field
    BBP_PDIGP-SUBTYPE
    in BBP_DOC_SAVE_BADI
    & then use BADI BBP_CREATE_BE_RQ_NEW
    2. this option would be easy if business allows you reservarion for certain matl grps
    BR
    Dinesh

  • Procure item for inventory in Shopping cart as  Order as Direct Material

    Hello Experts,
    When i procure a an item for inventory click u201COrder as Direct Materialu201D and then the system would not ask for an account assignment,
    1.) where i can do this setting
    2.) the actual problem am facing is "SC is created but PO goes to status Saved and when i see PO i can see  the error and this is  "Backend error : enter account assignment category".
    Please let me know on this....i hope this will also be a great learning for me towards a journey of become masters in SRM like all of you
    Smriti

    yes. for order as direct account assignment folder disappear.
    Ordering a direct material means ordering a product that will be received into stock.
    You have to press the Order as Direct Material button in the item detail view.
    Selecting Order as Direct Material replaces the goods recipient with the plant you
    are ordering for and removes the Account Assignment information. The plants and
    storage locations are defined in the organizational structure in the extended attributes
    Locations and Storage Locations. After ordering the material as a direct material, you
    cannot change back to indirect; so, in case of a mistake, you have to delete this item.
    If you have a valid and definite source of supply, such as a contract, this will be used.
    Items without a source of supply will have to be completed by the purchaser in
    sourcing transaction or in the worklist of incomplete purchase orders. The complete
    purchase order will then be replicated to the back end system. Changes to the purchase
    order is only possible in Enterprise Buyer, which is the leading system for this process.
    Any changes made in Enterprise Buyer are transferred to the back end.

  • PR is not creating in Backend ECC for Direct material Shopping carts

    Hello Experts,
    i have one issue, due to some reasons we deactivated 'Order as Direct Material' button on our SRM shoppingcart screen. But again due to the requirement we activated the 'Order as Direct Material' button. Now the issue is when we are creating a shopping cart by using order as direct material button no Purchase Requisition is creating in the backend ECC. we are in SRM 5.0. we already implemented BADI: BBP_CREATE_BE_RQ_NEW. we are able to create PR for the shopping carts which we order normally i.e for non-direct materials (with out using that order as direct material button).
    please guide me on this!!!
    thanks in advance!!!!
    regards
    CD Reddy

    Hello,
    You can use note 1173815 to debug if follow-on document determination is occurring in backend.
    Also, you will be able to check if any error happened during this process.
    Kind regards
    Ricardo

  • Activate order as a direct procurement button

    Hi Experts,
    We are on SRM 701
    Classic Scenario
    can anyone let me know whether we can activate order as a direct procurement button in item tab of SC? is it possible to activate it in classic scenario?
    Regards
    Elham

    Hello Elham,
    There are 4 ways of adding an item to the SC
    1. Selecting from the catalogs
    2. From Old SC and Templates
    3. Description of the Requirement as Free Text
    4. Product.
    From my understanding i think the checkbox 'Order as Direct Material" will be available for selection only incase when you select "Product". So i think it will be visible only for the materials which are replicated from ECC to SRM system.
    Can you check by trying to create a SC and then see whether it is available for selection.
    Regards
    Pramod

  • Functionality "Order as Direct Material"

    Hi All,
            What exactly is the business need for the check box "Order as Direct Material"? (A check box in ?Shopping Cart and in PO of Item details)
    I know that when you order as a direct material in SRM EBP, the account assignments disappear and
    the system asks for Storage location and plant (and the product behaves as an extend classic scenario product)
    But my doubt is for what product category you use this check box "O A D M"? If the material / prod category I enter in SC or in PO is already a direct material, then there is no point in flagging the check box. If I am ordering a indirect material, there is no need to order it as a direct material.
    It will be very helpful if you could give the circumstances to use this check box and a business scenario
    will help to clarify that.
    Also I am keen to know how the R/3 sytem picks up the data from SRM and goes for the posting of the material.
    Thanks in advance.
    Vardhan

    Hi,
    I agree with David.
    When we click this order as direct material it will create a PO for stocks. In other words, it is like creating a PO in the backend for a material with material master. The accounting takes place by the material master valuation class. Only difference here is the document type which is not changeable in R3 backend.
    When we procure without this then, it is like creating the same PO with the account assignment K in the backend for which it is mandatory to give a cost centre and hence the G/L account. So final accounting is not routed through material master any more and you can have stocks or you can skip based on the material type you use in this case.
    In simple classic scenario we have the flexibility of either procuring for costcenter without clicking on the OADM button or for stocks by clicking this(in this case the R3 PO is not changeable)
    So the business requirement if a client want to procure for stocks from SRM then this is useful, as he can do GR and IR in the backend just like R3 scenario. They can differentiate this by the document type.
    Best regards,
    Sridhar.

  • Account assignment check for non-direct material in shopping cart creation

    Hello Guru's
    i'm very new to SRM please help me
    We require all non-direct material shopping carts to be ordered with a valid account assignment. Therefore we implemented BADi ZUB2MB_DP_PROD_CHK to suppress the u201COrder as Direct Materialu201D Button. This button allows any order to be placed without account assignment like a direct material.
    We started ordering direct materials in SRM at go-live with a cost center, but when they were received, SAP considered them consumed due to the account assignment and did not place them into QA Inspection or assign a batch. We immediately, switched back to SAP for direct materials.
    We need a solution that will require all non direct material shopping carts to have account assignments, while allowing direct materials to be ordered with or without account assignments. All while keeping the current checks in place regarding the mixing of account assignments, Z required for TBI catalogs, etc.
    please tell me how to write the logic in the DOC_CHEK_BADI  to check weather account assignment is made for non-direct material while creating a shopping cart.
    thanks in advance....

    Account Assignment notification, should be take care by standard SRM functionality itself..
    Your using SRM 7.0 or 5.0 ??
    Thanks!!
    Bharath

  • How to disable a submit button on click using javascript

    Hi,
    We have built custom pages for mobile device (PDT) using OAF.
    The application is running on mobile IE 6.12 browser. In mobile platform, the cursor style is not changing to hour glass upon clicking.
    Due to this, user is able to click the same button multiple times before the operation is complete and it is getting submitted multiple time. But the same is working fine in Desktop browsers.
    We have tried with ((OABodyBean)body).setBlockOnEverySubmit(true); But the API documentation states that
    "Sets If set to true, user input will be blocked after EVERY submit (not just PPR submits). This attribute is not supported on the following agent types: pda, phone, voice."
    Hence, I am trying with javascript to disable the submit button after the first click. The issue is, even in the desktop browser
    I am not able to get the button disabled after first click. Please help me.
    I have tried the following statments in PR. But none of them seems to be working.
    //Try 1: directly using id
    OASubmitButtonBean updBtn = ((OASubmitButtonBean)webBean.findChildRecursive("UpdateBN"));
    updBtn.setOnClick("document.getElementById('UpdateBN').disabled=true;document.getElementById('UpdateBN').submit()");
    //Try 2:
    OASubmitButtonBean updBtn = ((OASubmitButtonBean)webBean.findChildRecursive("UpdateBN"));
    updBtn.setOnClick("javascript:this.disabled=true;this.form.submit();");
    //Try 3:
    OASubmitButtonBean updBtn = ((OASubmitButtonBean)webBean.findChildRecursive("UpdateBN"));
    updBtn.setOnClick("this.disabled=true;this.form.submit();");
    //Try 4: using a function
    static final String JS_MULTI_CLICK = "<Script LANGUAGE=\"JavaScript\"> "
    +" function DisabSub(btn)"
    + "{"
    + "btn.disabled = true;"
    + "}"
    +" </Script>" ;
    OARawTextBean rawMultiClick = (OARawTextBean)webBean.findIndexedChildRecursive("JSMultiClick");
    rawMultiClick.setText(JS_MULTI_CLICK);
    OASubmitButtonBean updBtn = ((OASubmitButtonBean)webBean.findChildRecursive("UpdateBN"));
    updBtn.setOnClick("javascript: var obj =disable(this);return DisabSub(obj);");
    Can any one please help.
    Thanks in advance.
    Regards
    Saravanan

    Hi,
    Create two submit buttons A and B adjacent to each other.
    On page Load ,make A as rendered false and disabled true and B as rendered true. using SPEL.
    now on click of button B make button A as rendered true and Button B as rendered false through SPEL.
    In this way on button click the button will become disabled without the use of any javascript.
    Try it if it helps you...
    Thanks,
    Gaurav

  • Create PO as direct material

    Hello SRM Experts,
    SRM 5.0 (classic scenario)
    we like to create a PO, from a QUOT after BID, with transaction type "ECDP" (Direct Material). Therefore we select in QUOT the transaction type "ECDP" and press the "Create PO" button. I can´t see any differents to the transaction type "ECPO" (Normal PO). The Backround is that we like to create a PO without account data (e.g. G/L account, cost center), but we got the same error message both "ECPO" and ECDP". The error message from backend is ME 083 "No cost center".
    Has anybody of you an idea how I can use the direct material functionality in QUOT.
    Thanks for you help in advance.
    Kind regards
    Axel

    Hi
    <b>Please go through the following - ></b>
    Note 815849 FAQ: Account assignment system response
    Note 496082 FAQ: Account assignment in purchasing
    Note 891978 ME51N: Account assignment dltd after source of supply detmn
    <b>Related links -></b>
    Re: Regarding direct material procurement in Classic scenario.
    Re: Question regarding direct material
    Re: Direct material POs question
    Re: direct material and ECS
    Error in Invoice thru SRM  for backend Direct material PO
    Re: Direct Material Procurement scenario
    SRM Bid Invitation for Direct Material
    Re: PO is not getting created in SRM for Local Material
    Do let me know.
    Regards
    - Atul

  • Disabling windows close button in dialog

    Hi,
    I am using Jdev 10.1.3.x(10g)
    I am opening a dialog pop up for a functionality. What i want is to force user to use cancel button provided inside dialog to come out of it and want user to not to use windows cance X button.
    Is there any way by which i can hide the title bar or disable the close button or on click of widow close i actually click on cancel button throgh java script?
    Main concern is i am passing some data from parent to dialog throgh process scope and i want to clear it on cancel. In my application there are many popup dialog which may lead to memeory issue so i seek solution to clear this data once it is not desired any more.
    Also i tried Request object to pass the data but in popup it is not recognised.
    Suggestion in any direction will be helpful.
    Regards,
    Kevin Chheda

    Hi,
    answering this question for 10.1.3 since 11g is different and provides a af:dialog component to handle this case. In 10.1.3 the window you open is an external browser window. You cannot disable the close button here because it is part of the browser window that JavaScript cannot control
    Frank

  • HELP: disabling  the corresponding buttons

    I'm on the last step of this program. Basically what i'm having trouble with is as follows:
    �     When the circle gets all the way to an edge, disable the corresponding button. When it moves back in, enable the button again.
    I have put in BOLD where my errors occur. It seems to be simple placement of { } brackets but everytime I place one somewhere code is interrupted in another location.
    //   CirclePanel.java
    //   A panel with a circle drawn in the center and buttons on the
    //   bottom that move the circle.
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class CirclePanel extends JPanel
        private final int CIRCLE_SIZE = 50;
        private int x,y;
        private Color c, r, o, bl, b;
        CirclePanel circlePanel;
        // Set up circle and buttons to move it.
        public CirclePanel(int width, int height)
        circlePanel = this;
         // Set coordinates so circle starts in middle
         x = (width/2)-(CIRCLE_SIZE/2);
         y = (height/2)-(CIRCLE_SIZE/2);
         c = Color.green;
         r = Color.red;
         o = Color.orange;
         bl = Color.black;
         b = Color.blue;
         // Need a border layout to get the buttons on the bottom
         this.setLayout(new BorderLayout());
         // Create buttons to move the circle
         JButton left = new JButton("Left");
         left.setMnemonic ('L');
         left.setToolTipText ("Moves the circle in the left direction 20 pixels");
         JButton right = new JButton("Right");
         right.setMnemonic ('R');
         right.setToolTipText ("Moves the circle in the right direction 20 pixels");
         JButton up = new JButton("Up");
         up.setMnemonic ('U');
         up.setToolTipText ("Moves the circle upward 20 pixels");
         JButton down = new JButton("Down");
         down.setMnemonic ('D');
         down.setToolTipText ("Moves the circle in the downward direction 20 pixels");
         // Add listeners to the buttons
         left.addActionListener(new MoveListener(-20,0));
         right.addActionListener(new MoveListener(20,0));
         up.addActionListener(new MoveListener(0,-20));
         down.addActionListener(new MoveListener(0,20));
         // Need a panel to put the buttons on or they'll be on
         // top of each other.
         JPanel buttonPanel = new JPanel();
         buttonPanel.add(left);
         buttonPanel.add(right);
         buttonPanel.add(up);
         buttonPanel.add(down);
         //Creates a button for each new color
         JButton red = new JButton("Red");
         JButton orange = new JButton("Orange");
         JButton black = new JButton("Black");
         JButton blue = new JButton("Blue");
         // Add listeners to the color buttons
         red.addActionListener(new ColorListener(r));
         orange.addActionListener(new ColorListener(o));
         black.addActionListener(new ColorListener(bl));
         blue.addActionListener(new ColorListener(b));
         //Adds the color buttons to the panel
         JPanel colorPanel = new JPanel();
         colorPanel.add(red);
         colorPanel.add(orange);
         colorPanel.add(black);
         colorPanel.add(blue);
         // Add the button panel to the bottom of the main panel
         this.add(buttonPanel, "South");
         this.add(colorPanel, "North");
        // Draw circle on CirclePanel
        public void paintComponent(Graphics page)
         super.paintComponent(page);
         page.setColor(c);
         page.fillOval(x,y,CIRCLE_SIZE,CIRCLE_SIZE);
        *// Class to listen for button clicks that move circle.*
        *private class MoveListener implements ActionListener*
        *private int dx;*
        *private int dy;*   <--- Syntax Error { Expected
       *     if (x > -60 )*
       *          left.setEnabled(true);*
    *      if (x < -60)*
    *          left.setEnabled(false);*  <--- Syntax Error } Expected
         // Parameters tell how to move circle at click.
         public MoveListener(int dx, int dy)
             this.dx = dx;
             this.dy = dy;
         // Change x and y coordinates and repaint.
         public void actionPerformed(ActionEvent e)
             x += dx;
             y += dy;
             repaint();
        // Listens for button clicks that change the circles color
        private class ColorListener implements ActionListener
             Color circleColor;
         // Constructor
         public ColorListener(Color buttonColor)
              circleColor = buttonColor;
         // Repaints the circle according to which button is pushed
         public void actionPerformed(ActionEvent e)
              c = circleColor;
             circlePanel.repaint();
    }

    I've just posted a reply in the programming forum (after you were redirected here)

Maybe you are looking for

  • BRAND NEW IPOD TOUCH WONT APPEAR IN WINDOWS OR ITUNES

    I just bought a brand new 8gb ipod touch and when i plug it into my computer the it lights up and beeps but nothing comes up on itunes or my computer. I have a working ipod video that syncs and is recognized by my computer everytime (even with the us

  • Did you know that the software purchased from the App Store could be an old version?

    Today I purchased Adobe Photoshops Elements fro the App Store.  I never thought to check the version number, it never crossed my mind that could be the old version I was buying.  Apparently the latest version available on the App store is version 10

  • My dvd only plays the left speaker of my song...

    Hello everyone. I recently exported onto a dvd from adobe premiere 2.0 that included a song that i had recorded in mp3 format. In the song, some of the instruments come out of the left speaker, and some come out of the right. When i play this video o

  • Edit to Tape Function Changed?

    A few versions ago, FCP's Edit to Tape function popped up a screen that gave you options for applying bars and tone, slate, and black slugs, etc..etc.. After those options were decided you had a button to start the recording to tape process. Now in v

  • Changing the position of desktop icons

    how to change the position of the desktop icons and can they placed on the desktop directly instead of being arranged on the dock?