Logic for materia Vs workcenter

Can some body help to fetch the best table to get the below report with given selection fields.
Create a report to Display material, material description, work center
and plant.
The selection should have the material type(mtart) the material
pricinggroup(kondm) and plant.
Capture the work center from the routing. These should only be active
materials.
as we can get from below tables  and expecting a logic to get the work center with respective mateial.
Material : MARA, MACR, MAKT,
-Work Center :CRHD
-Tasklist : MAPL, PLKZ, PLKO, PLFL,PLAS,PLPO.

Hi Srinivas,
The following tables will help you in APO to fetch the required data.
1)  Location details:- /sapapo/loc
2)  Material details:- /sapapo/matloc
3)  PPM details:- (Bom, routing, work centre, tasklist)  /sapapo/ppmt
Hope this helps.
Please confirm.
Regards,
R. Senthil mareeswaran.

Similar Messages

  • How to extract this criteria? Logic For material Extraction?

    Hi,
    If we specify, say, 3 raw materials, we only want a listing of products that contain all three raw materials.
    I know by FM CS_WHERE_USED_MAT we get list for single material.
    But How Do I Achieve it in report which has all three materials?
    Basically Cs15 Fullfills their criteria but they need it for range of materials now..
    regards
    Kumar

    I tried exactly like that but my requirement is I should display only
    the products which has all three of them( entered via slection screen).
    right now it is displaying all products..irrespctive of 1,2 or 3 materials.
    Check my code.
    SELECT matnr FROM mara
    INTO TABLE itab
    WHERE matnr IN s_matnr.
      IF sy-subrc IS INITIAL.
        LOOP AT itab.
          MOVE itab-matnr TO p_matnr.
          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
            EXPORTING
              input  = p_matnr
            IMPORTING
              output = p_matnr.
          CALL FUNCTION 'CS_WHERE_USED_MAT'
            EXPORTING
              datub                      = p_datub
              datuv                      = p_datuv
              matnr                      = p_matnr
              postp                      = p_postp
              stlan                      = p_stlan
              werks                      = p_werks
              stltp                      = stltp_in
            IMPORTING
              topmat                     = selpool
            TABLES
              wultb                      = ltb
              equicat                    = equicat
              kndcat                     = kndcat
              matcat                     = matcat
              stdcat                     = stdcat
              tplcat                     = tplcat
              prjcat                     = prjcat
            EXCEPTIONS
              material_not_found         = 02
              no_where_used_rec_found    = 03
              no_where_used_rec_selected = 04
              no_where_used_rec_valid    = 05.
          IF sy-subrc IS INITIAL.
            LOOP AT ltb.
              MOVE ltb-matnr TO t_data-matnr.
              MOVE ltb-idnrk TO t_data-idnrk.
              MOVE ltb-stlan TO t_data-stlan.
              MOVE ltb-werks TO t_data-werks.
              MOVE ltb-ojtxb TO t_data-ojtxb.
              MOVE ltb-postp TO t_data-postp.
              WRITE ltb-menge TO t_data-menge.
              WRITE ltb-meins TO t_data-meins.
              WRITE ltb-bmein TO t_data-bmein.
              SHIFT t_data-matnr LEFT DELETING LEADING '0'.
              SHIFT t_data-idnrk LEFT DELETING LEADING '0'.
              SELECT SINGLE maktx FROM makt
              INTO t_data-maktx
              WHERE matnr = ltb-idnrk
              AND spras = 'EN'.
              APPEND t_data.
            ENDLOOP.
          ENDIF.
        ENDLOOP.
      ELSE.
        MESSAGE 'No data exists for chosen selection' TYPE 'I'.
        SUBMIT (sy-repid) VIA SELECTION-SCREEN.
      ENDIF.
    regards
    Kumar
    Message was edited by:
            praveen kp

  • Please provide logic for schedule lines and material document Quantity.

    Hi ABAPers,
    Please help in the following context.
    Is there any connecting or refrence field for which a particular schedule line item are considerd for the goods reciept of a particular material document.
    Also provide the logic.
    19                    34
    15
    14                   35
    11
    10
    If 19 15 14 11 10 are schedule lines, and 34 35 are two recived quantities,
    Then how can be the possible permutations and combinations logic to find out that, 34 = 19 + 15 and
           35 = 141110.
    Thanks in advance...

    Niles Raut wrote:
    Hello Gurus,
    >
    > This is intracompany STO scenario with delivery. There is one STO for quantity say 1000 pc created in 2008. Delivery and PGI done for 1000 qty in 2008.  Goods are received in receiving plant for qty 1000 in 2008. Now this delivery document is archieved and user has reversed the GR material document in 2010. Now this reversal material docuemnt has zero material qty becasue the delivery was archieved(which is the probable reson)
    >
    > When I want to cancel this reversal material document it gives error that "Qty and / or "delivery completed" ind. or final issue ind. are missing" which is logical since material document has zero quantity.
    >
    > Is there any sap notes or any other way to fix this?
    >
    > Please guide.
    >
    > Regards
    > Nilesh
    Where is actually the problem, if one only reversed 0 quantity?
    Why do you think you need to reverse this reversal again?
    why with year 2010?
    Dont you do anual inventories?  Such stock counts have corrected your stock anyway. if you start cancelling older movements then you create stock inconsistencies again.

  • System/logic of material codification for sap

    hi,
    what is the good system/logic of material codification? i mean how can i give a usefull code to material like spares, raw material?
    any link where can i find material coding system for sap?
    thanks and regards

    Hi Buddy,
    As said in earlier post before the coding logic can used either internal or external
    1> Internal is normally used for raw materils or material which r been used internally in organization
    2> external is used for finished products which are to be saleable
    Eg: For Electronic manufacturing firm of
    Can have internal number range for IC's , PCB's , Speakers etc procured for production of the finished products.
    Were as the Material code for this Finished product shouldbe used as External so that nomenculture can be alloted for every specific Catergory of product ie lets consider this firm produces TV , Music System etc
    So for TV the external code can be :
    TVCRT211000W
    which states as:
    TV : Television
    CRT : Type of Display section ie Cathode ray tube
    21 : 21 inch sizing
    1000W : Sound output
    TVLCD42450W
    which states as:
    TV : Television
    CRT : Type of Display section LCD
    42  : 42 inch sizing
    450W : Sound output
    and so on
    Hope so this was usefull to u .
    Thanks

  • Logic for carry forward of previous stock to current period stock.

    Hi Experts,
    Client is using already MC.9 for see the stock analysis report, however as per there requirement we are exploring BOM as well as fetching quantity from table level as well. in my report I am experiencing  difficulty to carry forward previous period closing stock quantity to current period stock quantiy, if there is no received for current period, however the same is happens in MC.9
    Could any one tell me what is the logic behind MC.9 which is do carry forward previous period closing  stock to current period stock quantity in report.
    As per the requirement I am using S031, S032,S033, however unable to get logic for carry forward the previous month stock quantity to current month.
    have a requirement of creating a report of showing material stock period wise for each plant in below mention format.
    Header 1
    Header 2
    Header 3
    Header 4
    LFGJA/LFMON
    ROH (MT)
    HALB (MT)
    FERT (MT)
    11.2013
    100.000
    121.000
    121.00
    12.2013
    50.000
    12.000
    123.00
    01.2014
    23.231
    .23.234
    45.342
    02.2014
    23.231
    34.094
    45.098
    03.2014
    34.098
    98.983
    00.000
    04.2014
    00.000
    69.093
    98.098
    05.2014
    00.000
    89.098
    00.000
    For Example Break up of ROH material plant wise in below mention format.
    LFGJA/LFMON
    WERKS
    MENGE (MT)
    11.2013
    P001
    30.000
    11.2013
    P002
    50.000
    11.2013
    P003
    20.00
    Thanks in advance,
    SKN

    Hi,
       The last period closing stock = current period opening stock. You may get the details from MBEWH and S032 tables. Refer the doc: Material Stock and Valuation History tables - how to read them
    Regards,
    AKPT

  • How to prevent error message for material description in MDG material detail screen, when user click on check action

    Dear Experts,
    I have a requirement for making material description as non mandetory in change request view of mdg material screen.
    I have done that using field usage in get data method of feeder classes, but still message is displaying.
    This message 'Material description is mandatory is displaying with check action only, but not with save or submit after i anhance field property as not mandetory.
    How to prevent error message for material description in MDG material detail screen, when user click on check action.
    Thanks
    Sukumar

    Hello Sukumar
    In IMG activity "Configure Properties of Change Request Step", you can completely deactivate the reuse area checks (but will then loose all other checks of the backend business logic as well).
    You can also set the error severity of the checks from Error to Warning (per CR type, not per check).
    Or you provide a default value for the material description, e.g. by implementing the BAdI USMD_RULE_SERVICE.
    Regards, Ingo Bruß

  • What is required userexit or badi or enhacement for material number ??

    HI Sir,
    Issue,
    In MM01  TCODE
    when we are entering the material number   it should be the  12digit  otherwise it has to give the error message.
    so plz help what is the exact exit and the code .
    thanks and regards
    syed

    Hi,
        Check these BADI's
    WRF_DISCONT_PARAMS_I                    BAdI: Parameters in Fashion Discontinuation
    WRF_DISCONT_FACT_E                      BAdI: Follow-Up Actions in Discontinuation
    WRF_DISCONT_CHECKS_I                    BAdI: Scope of Check in Material Reorganization
    MG_MASS_NEWSEG                          User-Specific Fields & Segments in Mass Maintenance
    MATGRP_SKU_UPD                          BAdI for Article Hierarchy Connection
    CDT_CHECK_MATERIAL                      Checks for Existence of a Material in a CDT
    BADI_MM_MATNR                           Modification-Free Archiving Enhancement of MM_MATNR
    BADI_MATNR_CHECK_PVS                    Check Material for Use in iPPE
    BADI_MATERIAL_REF                       Addition of customer-defined default data for material
    BADI_MATERIAL_OD                        Integration of New Objects in Material or Article Master
    BADI_MATERIAL_CHECK                     Enhanced Checks for Material Master Tables
    BADI_GTIN_VARIANT                       User Exit for Customer-Specific GTIN Variant Check
    BADI_EAN_SYSTEMATIC                     BAdI for Internal Control of EAN Logic
    Regards,
    Srini.

  • Reg : Logic for Report

    Hi ,
    I would like to know one logic for preparing functional specification for one MM report. This report should fetch all materials that are below safety stock.
    Please help me.

    HI,
    The logic is you take the current unresticted stock of a material from MARD table, field name is LABST.now you check for the safety stock of the particular in MARC table Field name-EISBE.
    Now compare the current stock with the safety stock,generate a report for the materials whose present stock is less than the safety stock.
    for this requirement safety stock should be maintained in the material master,other wise your report will not work.
    Regards,
    velu

  • Link Material Document generated for material movement due to production

    Hello Expert,
    I am creating a zreport for Material Consumption during Production. I am assuming Confirmation entry in PP module as a base of this report and linking to Material Movement data in MM Module. But I am not able to link this data from tables.
    Can you pls guide me how to link Material Document generated for material movement due to production confirmation entry and actual production confirmation entry.
    Thanks
    Shailendra

    Hi Shilendra ,
    You can create a report with the logic. That all the materials which are created due to backflushing confirmation are created with movement type 131 and the component material are consumed by movement type 261.So you can create the report with this logic.
    Dont forget to award Points if it helps.
    Lekhram

  • How to ensure for material POs, TDS does not get deducted.

    Dear Seniors,
    Single vendor is supplying material and doing some service also.  How do we ensure that for material POs, TDS does not get deducted.
    Regards
    KVKR

    Hi kkvr,
    As i see your requirement is to execute MRRL alongwith the performing a proper TDS deduction and also using single vendor.
    There is no Standard SAP solution for this, as a workaround you will have two options for doing the same
    Option 1 : Create a different vendor code then you can run mrrl for the vendor code one for service and another for material
    The demerits of this solution is duplication of vendor code, which results in not having proper information for the SCM personnel for the purpose of vendor evaluation and vendor reconcilation
    Option2:
    you need to enahce the Purchase order at line item level with the a custom fields for the WHT tax code to be selected at the time of PO creation. For this you need to do a screen enahcement in PO and also at the time of providing the popup for selection it should only dipslay the wht codes available in the vendor master so that proper control on the tax code selection will happen.
    The practical issues here is the po creation person should have the knowledge of the tds code which you need to see whether it is possible or not or you can also suggest that finance controller should be part of po release startegy to check these po's to ensure the correct tds code populated.
    Further to this you need to also perform additional enahcement changes for the selected tds codes in the po it should be replaced at the time of mrrl transaction making other tds tax codes base as 0 or removal of tds codes not applicable in the exit.
    This exit with the help of the abaper you will be able to find hte standard enhacements available for mrrl and code the same over there so that at the time of posting this will happen.
    Further, to this while writing the logic you can also further stream line it as for material po's the tds not to be deducted at all so that user input for the material po's can be avoided and it is required only for service po's this disticntion you can do with the item category.
    With this you can perform the enahncement with a minimal changement to achieve your purpose.
    Do let me know if you have any quereies,
    Regards,
    Bharathi

  • EDI FOR MATERIAL CREATION AND CHANGE

    Hello all,
    I have a requirement that when a material is created it whole detial about that material is saved at a given location as idoc.
    ie EDI configration.
    How know to configure EDI process order. How can we do for material creation.

    Since we are not using any message control, we don't need to setup the process code in WE41.  
    The function module has already been assigned to the message type in WE57.          
    Step1: Create a logical system - BD54.
    Step2: Create a distribution model - BD64.
                     Create a model view and add the Sender (SAP ECC)  and Receiver (Logical System you created).
                     Then add the message type MATMAS.
    Step3: Create a RFC Destination - SM59
    Step4: Create a port and assign it to the RFC Destination created above. - WE21.
    Step5: Create Partner profiles - WE20
                       Partner type - LS
                      Message type - MATMAS
                      Basic type - MATMAS05
    Step6: Trigger the material material through BD10.
    Hope it helps.

  • Search help for material number in table control

    Hi
    I have a table which i have generated using table control wizard.
    I have used an interal table while creating the table control through wizard.
    In this internal table i have field matnr.Now my requirement is to have a search help for this field.
    I want a default search help for material as you get one instandard transactions.
    In my other i have ip/op field i.e matnr and i have used the field directly from ztable,it has got the search help but since i am using the internal table i am notting getting a search help .
    can anyone tell how to assign a search help to my table control material field

    hi deepthi,
    chk a sample one which will help u. <b><i>f4 hlp in table control</i></b>
    * Screen flow logic........
    PROCESS BEFORE OUTPUT.
    *MODULE PBO_MODULE.
    PROCESS AFTER INPUT.
    *MODULE PAI_MODULE.
    PROCESS ON VALUE-REQUEST. "F4
      FIELD EKPO-EBELP MODULE help_ekpo.
    * populate screen field from within PROCESS ON VALUE-REQUEST(F4) call
    *&      Module  help_responsibility  INPUT
    *       text
    MODULE help_ekpo INPUT.
    **Transport values to table dynpro/screen table control
      DATA: l_stepl LIKE  sy-stepl,
            l_indx  LIKE  sy-stepl.
      DATA: dynpfields        LIKE dynpread OCCURS 5 WITH HEADER LINE.
    * Adjust for scroling within table control
      CALL FUNCTION 'DYNP_GET_STEPL'
        IMPORTING
          povstepl        = l_stepl
        EXCEPTIONS
          stepl_not_found = 0
          OTHERS          = 0.
      l_indx = tc_ekpotable-top_line + l_stepl - 1.
              "tc_ekpotable should already have been declared
      REFRESH dynpfields.
      CLEAR   dynpfields.
      dynpfields-fieldname  = 'EKPO-EBELN'.
      dynpfields-fieldvalue = '00010'   "wa_ekpo-ebeln.
      dynpfields-stepl      = l_stepl.
      APPEND dynpfields.
      dynpfields-fieldname  = 'EKPO-EBELP'.
      dynpfields-fieldvalue = '00020'   "wa_ekpo-ebelp.
      dynpfields-stepl      = l_stepl.
      APPEND dynpfields.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          dyname     = 'SAPLZZ_EKKO'    "Program name
          dynumb     = '0100'           "Screen number
        TABLES
          dynpfields = dynpfields
        EXCEPTIONS
          OTHERS     = 0.
    ENDMODULE.                 " help_ekpo  INPUT
    rgds
    Anver
    <b><i>if hlped kindly mark points</i></b>

  • Adobe Forms for Material Pocurement

    Hi Experts,
    Pls provide some Samples of Adobe Forms for Material Pocurement Process.
    Thank U.
    Ravi

    You may not get the complete standard form which will match this functionality. But you can develop your business logic in custom code for fetching the data and the interface and use the standard templates for layouts if any template matches your requirement. You can see the complete lest of templates in : "transaction SFP->Form->Layout->Tools->Template Manager
    Most of the common templates are available here.

  • Message for Material Document Generated

    Hello Friends,
    On creation of Production Order, we do picking of components thru CO27. After completion of this Pick, though goods movements ( mvt type 261 ) are successful we are not able to see the message stating material document number in status bar ( left bottom part of the screen ) as we get it in other cases/transactions. Are we missing any parameter settings pertaining to these kind of messages and T-code CO27. Kindly advice.
    Regards
    mahesh

    Dear Ram
    you are right. Since it is a mass transaction, it does create multiple documents ( probably my user never exploited the potential of this transaction and used it for single order only ). I tried it for multiple orders (3 Nos ) and results were as expected ( 2 documents got created ). But I didn't understand the system's logic of material document creation here, as it is observed that for one component it has created only one document for 3 different orders ( same batch nos) where as for other component it has created 2 documents for 2 different orders even though batch nos are same. All the components are consumed from same Storage location. I checked and compared both the documents but didn't find anything noticable. Any idea, what it could be?
    regards
    mahesh
    P.S. : Mangal, Thanks for your inputs too.

  • Table entry for Valuation variant for material prices

    We want to define a valuation variant for costing run.  In that we need to select the material price based on the plan price.  We have provision of entering three plan prices in the Costing tab-2 in the material master.  But we want to enter plan  prices for more than three dates. For this, we propose to enter the dates and prices in a separate table and that table needs to be accessed in the valuation variant for material prices closest to the date of valuation.  How we can go about this ?

    Hi
    When you create Valuation Variant, choose Strategy U i.e. Price from userexit
    Then code the exit COPCP0005 with the help of ABAP consultant
    The logic should be:
    a. Refer the "costing date from" entered in Ck11N
    b. refer the Z table... and pick the price relevant on that date
    br, Ajay M

Maybe you are looking for

  • I just updated iTunes to 11.1.4.62 and it doesn't recognize my iPod.

    Hello All! I've just recently updated iTunes to the latest version but it no longer recognizes any of the iPods in my house.  It shows up in Windows but for some reason when I open up iTunes, iTunes just doesn't recognize that it's plugged in.  I've

  • As a result of very poor customer service, I am a ...

    I decided to come back to BT after a 2-year stint with Virginmedia. I think I've made a huge mistake ! It all started so well, too. I signed up to the Anytime Call Plan and Broadband Option 3, with a discount for the first 3 months. It all started ve

  • Batch Derivation Logic

    Dear Experts, I have one issue in Batch derivation Logic: For Batch derivation we have to create Strategy Type & Condition Type suppose if i create 2 condition types for sending Material like 1) Plant specific means In condion Table We have to give S

  • Making a video call another event

    How can I make a Flash video call up a new event by embedding (?) something in the timeline? I want it to start a second video, which will play through and end when the character in the original video returns her attention to the viewer (she's turned

  • Changes to PDF creation.

    If Adobe Acrobat 9 Professional is used to create a file, is it possible for somebody using Reader 9 to make changes to the file and send back?  Or, does the person trying to make changes need Acrobat as well?