How to get material and plant by providing control key as input ?

How to get the material and plant info based on control key values using a function module?
kindly help..

Hi,
Check the FM
K_VALID_PLANTS_OF_MATERIAL.
Sandeep Kaushik

Similar Messages

  • Need help on enhancement of 0CO_OM_OPA_1 with Material and Plant

    Hi,
    I have a requirement that need to build a BW report which shows Actual costs and Planned Costs of Service Orders. We are getting Actual costs from 0CO_OM_OPA_6 and now i am getting planned costs from 0CO_OM_OPA_1. For actual costs we are getting Service Orders, Material and plant from Satandard DS 0CO_OM_OPA_6. Where as For Planned Costs standard data source 0CO_OM_OPA_1 is not having Material and Plant information. For this we decided to enhance 0CO_OM_OPA_1 with Material and Plant.
    But we are not sure the source tables for material and plant and the logic to extract these data from the tables. Can anybody please help me out.
    Thanks for your supprt in advance.

    It's possible you may need to use a CO-PA (profitability analysis) datasource instead of 0CO_OM_OPA_6.  0CO_OM_OPA_6 extracts data from CO tables. 
    Based on the path you provided "...Profit. segment...", the requested data might exist with CO-PA.
    If you determine the required data resides in CO-PA, you'll have to create a datasource based on the operating concern.  You can perform a search within the online docs for steps to create this datasource.
    Hope this helps.
    Rod

  • How to Get user profile properties in provider -cloud hosted app in sharepoint online - office 365 using REST API?

    How to Get user profile properties in provider -cloud hosted app in sharepoint online - office 365 using REST API?
    any idea?

    Hi,
    From your description, my understanding is that you want to get user profile properties in provider-hosted app in SharePoint online using REST API.
    Here is sample code for getting user profile properties:
    http://www.vrdmn.com/2013/07/sharepoint-2013-get-userprofile.html
    Here is a blog below about accessing data from the provider-host apps:
    http://dannyjessee.com/blog/index.php/2014/07/accessing-sharepoint-data-from-provider-hosted-apps-use-the-right-context/
    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]

  • Plannning Material and Plant for MRP Run

    Hi,
    If I have a material (01) extended on 2 plants, on one plant (A) we have production and planning/MRP + stock and on the other one (B), just stocking and transfer. B's requirements are to be entered and planned at A. I also want stock at B to be considered with stock at A when MRP runs at A. In the material master, I have some settings. I want to know if these would be any good:
    Material 01 on Plant A:
    MRP PD
    Strategy 40
    Lot size EX
    Coverage profile applied
    Material 01 on Plant B:
    MRP ND/PD tried both
    Strategy 40
    Lot size EX
    Coverage profile applied (same)
    Planning material: Material 01 itself
    Planning plant: Plant A
    I particularly want to know about points 5 and 6. Will they make any difference if I run MRP on scope of planning(all plants) or just plant A? Will stock at B be considered? What difference does that setting make in my case? Please help!
    Thanks!

    No sales on Plant A. Only transfers and STO's. Stock is STO'd to Plant B (and other Plants, as well)
    Plant B sells the stock.
    Yes, I want to load the forecast in Plant A (COPA to SOP to DM to MRP). What do I do in this case?
    I tried another case, as well. In that I put a special procurement on the material in Plant B view and marked it as external procurement. (the planning material and plant were there, didn't remove)
    Then I entered the forecast in both plants separately (PIRs for both Plants) The requirements from Plant B made STPO Planned orders in Plant B and STCK Planned orders in Plant A. I am using coverage profiles (period is month, standard length 25 days, target 10 days for 1st period for 2 months, target 10 days for 2nd period  for 1 month, target 10 days for the rest of the horizon) Not using any consumption modes.
    The results I am getting don't make sense to me. I have attached screen shots for both plants MD04 and the MRP + work scheduling views

  • Any ideas why placing Material and Plant in same DIMENSION is a bad idea?

    Hi,
    I place Material and Plant in the same dimension and a colleague argued that it is a bad combination in the same dimension although he did not explain.
    Can you provide some examples to explain to me why  this is a good or bad combination?
    What are the rules in making decisions on which characteristics go into the same dimension?
    Thanks

    1.
    m:n relation
    If I place a Material and Plant in a dimension, let's say 5 plants and 1000 materials, then there will be 5 x 1000 = 5000 material-plant combinations.
    1. Is this 5000 material-plant combination taking place in the Dimension or in the cube?
    In the dimension table.
    Remember we are trying to see that the size of the dimension table is lot smaller than the size of the fact table.
    m:1 relation
    Similarly, if I place a Material and in a dimension, let's say 5 Material Groups and 1000 Materials, then there will be 5 x 1000 = 5000 Material-Material-Group combinations.
    2. What is the difference between the
    5000 Material-Material-Group combinations &
    5000 Material-Plant combinations ?
    Here the example is wrong. Imagine if 200 materials each fall under one material group, then there are not 5000 combinations but only 5 material groups with 200 each.
    3. And why does one improves performance over the other
    i.e. why is the
    5000 Material-Material-Group combinations better than that of 5000 Material-Plant combinations
    In the second case the dimension table is lot smaller and improves performance.

  • How Adobe gets DATE and its format?

    Hello,
    I am getting current (todays) date by using below JS in some flds, and by using below FormCalc for some flds into my_form,
    JS:
    var currentTime = new Date()
    Form Calc:
    $.rawValue = num2date(date(), DateFmt(MM/DD/YYYY))
    But, i dont have much idea that how adobe is getting this date? For my company this is the very first form, hence they are asking me how adobe gets date and its format whether,
    1) From local IP/Interner provider address's date, format?
    2) or user PC/laptop's LOCAL settings date, format? if so, for example, if Germany user (Laptop settings) has a DD.MM.YYYY configured, if this user comes to US on a busines trip and if that user opens the form, then how the date looks like for this user? as per user laptop settings DD.MM.YYYY or local internat provider date format MM//DD//YYYY?
    Thank you

    Hi,
    the date() function returns the number of days since 01.01.1900 for the local date of the current system (related to the system clock of the OS).
    If you travel from Germany to the US but don't update your date/time settings, then it returns the same date in the US as in Germany.
    You can check the behavior by changing your local date/time setting or the timezones.

  • Outbound delivery allows only the unrestricted stock for particular material and plant

    Hi,
    In STO I have an problem the outbound delivery creations allows all stocks under unrestricted, Quality inspection, Block stock.
    I want the outbound delivery creation of a particular material and  plant it allows only the stock under the unrestricted only. It doesn't allows the stocks under the Quality inspection and Block stocks.
    I need to know how to configure this or how to solve my requirements.
    Regards,
    Ramesh N

    Dear Mohammed ,
    as per your scenario , there is two movement type has to trigger in the Delivery level according to the plant and material combination .
    as per my knowledge it will not configurable in standard process . this will possible with user exit logic only .
    follow the below logic to achieve your issue .
    you have to create two item categories and two schedule lines with (655 &653) , that means your movement type has to trigger at sales order level only . write a logic in the user exit - MV45AFZZ -USEREXIT_MOVE_FIELD_TO_VBAP , if this combination matches then automatically item category has to over write other wise it will copy the existing item category .at delivery level you can see two movement types in item level.
    wait for other experts solution , if any standard is possible or not  .
    Regards,
    C.B Reddy.

  • Characteristic values for the material and plant combination...

    Hi Friends,
    I would like to know how can we maintain the characteristic values for the combination of Material and Plant though the material is not batch managed?
    Thanks in advance,
    Ram

    Hi Rajendra,
    Thanks for quick reply. I am maintaining under classification view but it does not ask plant any where. So the value will be same across all the plants but i want to maintain characteristic values separately under each plant for same material.
    Regards,
    Ram

  • User Exit to check whether chapter id for Material and Plant combination is maintained while creating sales order

    Hello all,
    my requirement is, system should give error message while creating sales order, if chapter ID is not maintained for a material and plant combination.
    please suggest the user exit.

    Hi
    CASE 1 : All Plants are excisable.
    In Material master , Foreign Trade data tab-  mentioned Control code field mandatory. ( i.e nothing but Chapter ID)
    CASE 2 : Few Plants are excisable
    In the Case 2 you need to go for Enhancement
    Program Name : MV45AFZB 
    User Exit:            USEREXIT_CHECK_VBAP ( Item Level Check )
    By using above user exit you write a logic with the help of ABAPer
    Plant and Chapter ID combination table : J_1IMTCHID

  • How to get gui_download and gui_upload with popup filename?

    how to get gui_download and gui_upload with popup filename?

    Here is a short example.
    report zrich_0003 .
    data: ifiletab type filetable.
    data: xfiletab like line of ifiletab.
    data: xstring type string.
    data: rc type i.
    data: itab type table of string.
    data: xtab type string.
    start-of-selection.
      call method cl_gui_frontend_services=>file_open_dialog
        changing
          file_table              = ifiletab
          rc                      = rc.
      read table ifiletab into xfiletab index 1.
      xstring = xfiletab-filename.
      check not xstring is initial.
      call method cl_gui_frontend_services=>gui_upload
        exporting
          filename                = xstring
      changing
        data_tab                = itab.
      loop at itab into xtab.
        write:/ xtab.
      endloop.
    Regards,
    Rich Heilman

  • How to get nodes and its attributes of an XML file usiong DOM parsing?

    how to get nodes and its attributes of an XML file usiong DOM parsing?
    i am new to XML parsing.......
    Thanking you........

    import org.w3c.dom.Document;
    import org.w3c.dom.*;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.DocumentBuilder;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;      ...
    //Setup the document
    DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
         DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
         Document doc = docBuilder.parse (new File("MY_XML_FILE.xml"));
    //get elemets by name
         String elementValue = doc.getElementsByTagName("MY_ELEMENT").item(0).getTextContent();
    //This method can return multiple nodes, in this instance I get item(0) , first nodeRead the api for other methods of getting data.

  • How to get vendor and company code based on logistic invoice document

    how to get vendor and company code based on logistic invoice document in abap/4?

    Hello Kumar
    When you call BAPI_INCOMINGINVOICE_GETDETAIL using
    INVOICENUMBER = <number of invoice>
    FISCALYEAR = <fiscal year>
    the returned HEADERDATA contains what you are looking for:
    HEADERDATA-COMP_CODE
    HEADERDATA-DIFF_INF
    Regards
      Uwe

  • Transaction code to display exception messages by material and plant

    Hi,
    Is there a transaction code or standard report in SAP  to display exception messages by material and plant? I see the exception messages by individual material and plant in MD04 but I need to see a collective view. I tried Collective access in MD04 and MD46 but they are not giving me exception groups but I need exceptions listed out by material and plant.
    Thanks.

    Visu,
    I have never seen such a report.
    MD06 does support fine tuning the output display, once the list has been generated.  If you use this feature, the resulting display is the entire list as created by selecting the initial parameters (such as exception group), but with the specific items that contain your selected message highlighted.  If you are addressing the messages interactively, you can select the review (glasses)  screens, and scroll through just the ones which contain your  selected exception message(s).
    To try this, execute MD06.  Select the groups as necessary.  Execute.  Wait for the list.  Now, immediately, select 'search' (binoculars).  Experiment with the output.
    As mentioned in the previous post, if MD06 does not meet your needs, you will need to have a custom report written.
    Rgds,
    DB49

  • How to get tools and other bars back in view after deleting show-bar?

    How to get tools and other bars back in view after deleting show-bar?

    Hello Jouko.
    You can go into View > Toolbars and select the ones you want to see. If you can't see the menu bar you can simply tab ALT on your keyboard (I think F10 works too) to show it.

  • How to get max and min salary in a table

    How to get max and min salary in a table

    SQL> select max(sal),min(sal) from emp;
      MAX(SAL)   MIN(SAL)
          5512        800
    SQL>

Maybe you are looking for

  • This connection is untrusted with (Error code: sec_error_unknown_issuer) received for one user on computer on various https connections, same sites accessible by other users

    Windows 7. Firefox 9.0.1. Receiving above error on various sites which I have used succesfully before and which I can still use if I log on as a different user on this pc.

  • GUI_UPLOAD error

    Hi, I am getting a dump error while using the FM GUI_UPLOAD, i am using the FM KD_GET_FILENAME_ON_F4 to get the file name and the Parameter is defined as parameters: p_pcfile type rlgrap-filename. The error is  CALL_FUNCTION_CONFLICT_TYPE CX_SY_DYN_C

  • AS2 Certificate Problem

    Hi, I'm doing one IDOC to AS2 Scenario. Where we are posting the IDOC successfully, but we are not able to receive the message. It is giving some certificate error. Definitely some connectivity issue. The exact error is : "Message processing failed.

  • Shift Differentials on PTOs

    Team, Requirement is to pay shift differentials on PTO days! I tried using the Premium Eligibility form and obviously the shift differential is already setup but it aint working. When I put in say Jury Duty, its not getting exploded to Jury Duty 8 an

  • BP is a duplicate

    Hello everyone, While replicating a BP from R3 to CRM, I get the BDoc error "BP is a duplicate". I checked in the ADRC table of CRM. There were 4 entries with the same city, telephone number, country, street, name, etc. Considering this, its logical