'How to trigger Material determination again' when Price group changes

Hi All,
I have a requirement like this
1. I have a line item for which the material detemination is done based on condition records.
     Say the order has been saved now.
2. Now, for this line item if I change the price group (Double click on line item ->Sales B), the material dermination should trigger again.
3. I know that the FM PRODUCT_SUBSTITUTION  would be used to determine the material.
4. But, where exactly should I call this again?
Please let me know if there is any user exit available for this.
Thanks,
Babu Kilari

No. I have not got the solution for this. Luckily, requirement got changed. So, couldnot invest much time on this.
But, I think you need to write the code in MV45AFZZ(USEREXIT_MOVE_FIELDS_TO_KOMP). Not sure. Please check it
Thanks,
Babu Kilari

Similar Messages

  • How to get Material Master Moving average price into Purchase Order

    Hi,
    How to get Material master moving average price into purchase order instead of Purchase Info record.
    Thanks,
    Sridhar

    Hi,
            I  cannot understand whether it is necessary .
           How about as following step?
                 1. create Purcahse requisition
                                Price come form moving average price in material master.
                 2. Create Purchase order reference Purchase  requisition
                                There is a setting  from the unit price of P/R onto the unit price of P/O.
      Regards,
         Gaito

  • Mass upload for info records when price gets changes

    Dear All,
    How to do Mass upload for info records when price gets change.
    Regards,
    Bhargav

    Hi Bhargav,
    Please upload the present price (Map) by  LSMW . When you are doing the transactions  then automatically by selecting option info update price will be updated the  info record in Order Price history
    Regards
    M B Raju

  • How to deal with the situation when the database change into ms-sqlserver ?

    Hi,dear all,
    How to deal with the situation when the database change into ms-sqlserver or other database?
    Now, i want to build a j2ee project with ORACLE ADF bc,but this project may be used in several diffrent databases for example oracle db,ms db,mysql and so on.however,if i have developer this project in jdeveloper and this project connection was config as a oracle database,and then,can this project be reused for other databases espasially including the model codes? if yes,how should i do?
    all who know how to resolve this,tell me pls,thanks.
    bruce Li,
    China
    Message was edited by:
    user526724

    Hi Paulbin,
    Do you want to supply a function-pointer to a DLL so it can call[back] your VI?  Here's how it can be done with .NET, though, that solution requires a C compiler.   A single "VI_to_function-reference" utility could handle all cases where the callback passes no parameters.  Maybe someday somebody will share that dll.
    Did you know that LabVIEW can use Events for some COM-signals change?  See pic.  (Note: DTR is not listed - - )
    Another question is another function's prototype is WORD SetTestType(WORD comHandle, bool type1, bool type2, bool type3),   I tried to use a boolean control and a Boolean to (0,1) node in labVIEW to pass parameters to CLF, I config the bool input value as U8(according to C++ bool type) and U32(according to WIN32 BOOL type), it dose not help, when I execute the VI, LabVIEW will be disappeare, it seems to be closed, I must start it again.
    Could someone has similar experience on this points?
    It's easy to crash LabVIEW misusing CLF - maybe there's another reason for the crash besides bool mis-match(?)  Do you know which "Calling convention" is required?  What type is comHandle? (where does comHandle come from?) 
    Cheers!
    Message Edited by tbd on 03-23-2007 09:34 PM
    Message Edited by tbd on 03-23-2007 09:35 PM
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
    Attachments:
    evt.jpg ‏7 KB

  • How can I terminate my sequence when DI signal changed?

    Hello, I have a problem that  I want to stop my sequence by DI signal changed.
    How can I terminate my sequence when DI signal changed?
    Thanks
    Solved!
    Go to Solution.

    Hi, you can test the DI signal in vi using a while structure in another thread while main sequence is running. Then you can make use of an if statement to determine whether to get on running the sequence by the value of the vi.

  • How is the resolution variable or when would we change the resolution of an image and why?

    How is the resolution variable or when would we change the resolution of an image
    and why?

    It all depends on the output:
    * for viewing on screen 90 -120 ppi
    * for printing on a laser printer 180  -300 ppi
    * for printing on a desktop printer 240 - 300 ppi
    Some people claim 360 ppi is optimum but I don't see any difference compaired to 300 ppi at least not with the naked eye...

  • How to trigger Material CIF change pointers when changing Source List

    I need to trigger a Material Change pointer (CIFMAT) creation when the Source List is updated for that material.  In BD52 (ALE configuration) table EORD is not an option for CIFMAT message type, so by standard ALE this can not be done automatically.  I could not find any BAdI/Userexit which will help me to create a material master change pointer so that the Material (Product) will be sent to APO via the CIF when the Source List in R/3 is changed.

    Hi , Can you please check user exit CIFMAT01 function module EXIT_SAPLCMAT_001.You can use this enhancement to influence the logic according to which material data from SAP R/3 is mapped to APO product interface data.
    I suggest to put logic in user exit to check table source list table EORD changes & trigger CIF for material master.You can pull  change data from table CDPOS using EORD table reference & material object value details.
    Based on change record CIF user exist should trigger material CIF run and feed to APO.
    Hope this solution will work in your case.thanks
    Sanjay Karkun

  • How to configure material determination???

    hi,
    v r working on automatic material determination for christmas..so please guide me how i can proceed???
    specifically i need info on material exclusion and inclusion..
    thanks a lot
    h shah

    Hi Shah,
    MATERIAL DETERMINATION:
    A method to determine the material to be used in the sales order. Material determination uses the condition technique to swap one material for another when certain conditions apply. It is triggered by the material entered in the line item of the sales order.
    Maintain prerequisites for materialMaterial DeterminationSD- IMG determination –Maintain field catalog, create condition table, Maintain access sequences, define condition types, and maintain material determination procedure. Lastly create your condition records with valid dates and substitution reasons.
    - Creating a condition record: Logistics, SD, Master data, Products, Material determination, Create [VB11].
    Material Determination: - Substituting one product with other product is called material determination.
    Maintaining the records for Material Determination: -
    SPRO
    Logistics
    Sales and Distribution
    Master Data
    Products
    Material Determination
    VB11 – Create.
    Enter the determination type [A001] (Material Entered).
    Material Entered: - Here enter the original material which has to be substituted.
    Material: - Enter the material with which we want to substitute the main material.
    Reason for Substitution: - specifies the reason why the system automatically carried out material substitution.
    To enter multiple materials as substitution select the icon alternative materials.
    This concept is based on condition technique.
    SPRO
    Sales and Distribution
    Basic Functions
    Material Determination
    Maintain prerequisites for material determination.
    Create condition tables [OV16]
    Maintain access sequences
    Define condition types
    Maintain procedure
    SPRO
    Sales and Distribution
    Basic Functions
    Material Determination
    Assign procedures to sales document types [OV14]
    Defining the reason for substitution: -
    SPRO
    Sales and Distribution
    Basic Functions
    Material Determination
    Define substitution reasons [OVRQ]
    Go to new entries and define
    Substitution reason: - Specify the substitution reason [0001]
    Description: - Advertising campaign
    Entry: - If we check this field the system prints the name or number of the original material on the corresponding output.
    Warning: - If we check this field the system displays a warning message before substituting the material.
    Strategy: - Controls whether the product selection should occur automatically in the background or whether the alternative materials should be offered for a selection in dialog box.
    Out come: - Controls whether the out come of product selection should replace the original entry or whether it should be recorded as a sub item of the original entry.
    Please Reward If Really Helpful,
    Thanks and Regards,
    Sateesh.Kandula

  • How to trigger a JAVA class when replication is processed?

    Hi,
    How I can trigger a JAVA class when a replication is processed?
    Also I want to get the payload involved in that process.
    Is there any way to do this?
    Please post your suggestions on this...
    Regards,
    Shankar .A

    If you are interested in building your own payload format, check the ContentBuilder interface.
    If you want to get notified, when a replication is triggered, check the Sling event tab in the Felix console (http://localhost:4502/system/console/events). You can register your event OSGI event listener and process that information. See http://sling.apache.org/documentation/tutorials-how-tos/how-to-manage-events-in-sling.html for some more information and samples.
    Jörg

  • How to trigger a custom code when user log in?

    Hi my friends,
    We are using multiple sharepoint sites at work. Users log in with AD accounts, so they dont see any login page.
    I need to run a custom code when user login to website. Event receivers do not help at this point. Any suggestions?
    thanks in advance

    Hi Ahmet,
    From your description, my understanding is that you want to trigger some custom code when users log in SharePoint.
    As a solution, you could customize a login page for your SharePoint, then you could trigger your code.
    You could also use httpmodule to monitor user login. Please refer to this article about how to use httpmodule:
    http://sharepoint.stackexchange.com/questions/100976/get-the-current-logged-in-user-in-sharepoint-added-httpmodule
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to keep filename in textfield when filter is changed in a filechooser

    Hi, guys,
    I met a problem to keep filename in textfield when filter is changed in a filechooser
    for example, a JFileChooser has two filters
    *.jpg
    *.png
    Before I open JFileChooser, I used setSelectedFile(File) to set "aaa.jpg" as default name in textfield.
    when I change the filter to "*.png, ", I want to change the text in textfield to "aaa.png", Actually, I used setSelectedFile(File), If there is an existed file named "aaa.png", this file will be selected on fileView, but the name will not be shown on the textfield. Anybody has ideas?
    Thanks in advanced.

    I really thank you for your answer, but it seems you misunderstand what I said because of my poor english..
    what I said is:
    after you open the filechooser, the filechooser has a combobox to choose file filter and a field to show filename.
    what I want is:
    when you open the filechooser, initial name in field is "test. jpg"
    change filter, "test.jpg" will be change to "test.gif" in the field.
    I don't want to close the filechooser.
    That's why I used a listener to listen JFileChooser.FILE_FILTER_CHANGED_PROPERTY event.
    and I modified your codes
    import java.awt.BorderLayout;
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.beans.PropertyChangeEvent;
    import java.beans.PropertyChangeListener;
    import java.io.File;
    import javax.swing.JButton;
    import javax.swing.JFileChooser;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.filechooser.FileFilter;
    class Testing extends JFrame {
         String defaultFile = "";
         JFileChooser fc = new JFileChooser(".");
         ExtensionFileFilter eff;
         public Testing() {
              setLocation(200, 300);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              JButton btnShow = new JButton("Show Chooser");
              JPanel p = new JPanel(new GridLayout(1, 2));
              p.add(btnShow);
              getContentPane().add(p, BorderLayout.SOUTH);
              pack();
              fc.addPropertyChangeListener(new Listener(fc));
              fc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
              fc.setAcceptAllFileFilterUsed(false);
              fc.setFileFilter(new ExtensionFileFilter(".gif"));
              fc.addChoosableFileFilter(new ExtensionFileFilter(".jpg"));
              defaultFile = defaultFile.equals("") ? "Test.jpg" : "Test.gif";
              fc.setSelectedFile(new java.io.File(defaultFile));
              btnShow.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent ae) {
                        fc.showOpenDialog(Testing.this);
         public static void main(String[] args) {
              new Testing().setVisible(true);
    class ExtensionFileFilter extends FileFilter {
         String fileTypes = "";
         java.util.List extensions = new java.util.ArrayList();
         public ExtensionFileFilter() {
         public ExtensionFileFilter(String ft) {
              fileTypes = ft;
         public String getDescription() {
              return fileTypes;
         public boolean accept(File f) {
              if(f.isDirectory()) return true;
              if (f.getName().endsWith(fileTypes)) {
                   return true;
              return false;
    class Listener implements PropertyChangeListener {
        JFileChooser fChooser = null;
        Listener(JFileChooser fChooser) {
            this.fChooser = fChooser;
        public void propertyChange(PropertyChangeEvent evt) {
            if (evt.getPropertyName().equals(JFileChooser.FILE_FILTER_CHANGED_PROPERTY)) {
                 FileFilter fileFilter = (FileFilter) evt.getNewValue();
                if (fileFilter != null) {
                    String fileName = null;
                    if (fileFilter.getDescription().equals(".jpg")) {
                        fileName = "Test.jpg";
                    } else if (fileFilter.getDescription().equals(".gif")){
                         fileName = "Test.gif";
                    String newFileName = "C:\\" + fileName;
                    fChooser.setSelectedFile(new File(newFileName));
    }Thanks again.
    Message was edited by:
    JadeSword

  • How to trigger renumbering of rows in a group?

    Suppose we have a table ORDER_DETAILS with columns (ORDER_ID, LINE_NUMBER,DESCRIPTION).
    We have these rows:
    order_id, line_number, description
    17,1,'A'
    17,2,'G'
    17,3,'R'
    17,4,'Q'
    Next we insert a new row
    17,2,'K'
    How to trigger renumbering?
    This should be the result after renumbering.
    17,1,'A'
    17,2,'K'
    17,3,'G'
    17,4,'R'
    17,5,'Q'
    Next we move line 5 to line 2.
    How to trigger renumbering?
    This should be the result after renumbering.
    17,1,'A'
    17,2,'Q'
    17,3,'K'
    17,4,'G'
    17,5,'R'
    This question is related to another discussion:
    https://forums.oracle.com/thread/1088303

    create table order_details
    (order_id number,
    line_number number,
    description varchar2(30)
    rowdependencies;
    begin
    insert into order_details values (17,1,'A');
    insert into order_details values (17,2,'G');
    insert into order_details values (17,3,'R');
    insert into order_details values (17,4,'Q');
    end;
    select * from order_details order by line_number
    ORDER_ID
    LINE_NUMBER
    DESCRIPTION
    17
    1
    A
    17
    2
    G
    17
    3
    R
    17
    4
    Q
    create or replace procedure renumber(p_order_id number) as
    begin
      update order_details od
         set line_number = (select rn
                              from (select rowid rid,
    /* for autocommit active APEX etc. */  row_number() over (order by line_number,ora_rowscn desc) rn
    /* for autocommit = OFF  preferred     row_number() over (order by line_number,ora_rowscn nulls first) rn */
                                      from order_details
                                     where order_id = p_order_id
                             where rid = od.rowid
       where order_id = p_order_id;
    end;
    begin
    insert into order_details values (17,2,'K');
    renumber(17);
    end;
    select * from order_details order by line_number
    ORDER_ID
    LINE_NUMBER
    DESCRIPTION
    17
    1
    A
    17
    2
    K
    17
    3
    G
    17
    4
    R
    17
    5
    Q
    begin
    update order_details
        set line_number = 2
      where order_id = 17
        and line_number = 5;
    renumber(17);
    end;
    select * from order_details order by line_number
    ORDER_ID
    LINE_NUMBER
    DESCRIPTION
    17
    1
    A
    17
    2
    Q
    17
    3
    K
    17
    4
    G
    17
    5
    R
    Regards
    Etbin

  • How can I execute a vi when a switch changes

    I have a switch which controls the input to a VI (it is slightly more complicated than that, but that's the basic idea).
    The VI is a "set" function.  So it really should only execute when the value changes. 
    Is there some way to set the switch so that there is only data available on the output when the switch is switched, thus executing the VI once?
    If not, what is the best way to do this?
    Thank you.
    B.

    BPerlman wrote:
    Thank you.
    An event structure sounds like just what I need.  I am not going to get into the design patterns you mentioned here .... this is a demo program and there is a switch on the front panel that demos a feature in our library, turning it on and off.  I just want to call a library function to turn the feature on or off at user request....the rest of the demo works (right now, I call the VI to turn on/off the feature every time through my main loop -- this is ugly and causes us timing problems... but everything else is finished)
    I tried to add an event structure but don't seem to have it in my edition of LabVIEW....
    What I just added now is a shift register to save the value of the switch between loop iterations, and I compare it to the current value, then feed it into a true/false case structure, only calling my "set" VI when the two values are different...
    Is there a better way, or is that all I can do unless my company buys a fancier LabVIEW version?
    Thanks.
    B.
    Shameless plug for an idea in the idea exchange. Since this would have helped you resolve your issue you might want to consider giving a kudo to this idea.
    The way you are doing it now with the shift register is pretty much the only way you can do this without using an event structure.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • How to produce Material output message when use bapi function?

    Dear Experts :
    I use bapi BAPI_GOODSMVT_CREATE to receive stock.
    I find the output message can't create automatically even when I have set the type in MR21.
    Hope someone can teach me how to produce the message when I create the material document by BAPI function.
    Thanks a lot.

    Hi,
    The messages are stored in the return table of the bapi.
    You can search in SCN or Google for BAPI error handling.

  • How to bypass material rounding rules when using 'BAPI_PO_CREATE1'?

    How to bypass rounding rules when create a PO using 'BAPI_PO_CREATE1'?
    I faced a problem when using the BAPI to create PO. As the material has rounding rule, thus, when I create the PO using this BAPI, the quantity will be rounded according to the rule.
    How can I bypass the rounding rule so that I can upload the quantity according to the quantity that specify in my upload file?
    Edited by: Irene Sam on Jun 17, 2008 1:08 PM

    I've solved the problem with passing the parameter no_rounding into the BAPI.
    poitem-no_rounding = 'X'.
    poitemx-no_rounding = 'X'.
          CALL FUNCTION 'BAPI_PO_CREATE1'
            EXPORTING
              poheader         = poheader
              poheaderx        = poheaderx
            IMPORTING
              exppurchaseorder = w_ebeln
            TABLES
              return           = poreturn
              poitem           = poitem
              poitemx          = poitemx
              poschedule       = poschedule
              poschedulex      = poschedulex
              potextheader     = pohdrtext
              poaccount        = poaccount
              poaccountx       = poaccountx.

Maybe you are looking for