PLM updating BOM in SAP

Hi,
I have problem in updating the item status for a BOM using a RFC  which inturns uses SAP Funcation module - 'CSAP_MAT_BOM_MAINTAIN'.
My goal is reset the Checkbox for 'Indicator: item relevant to production' from PLM. SO, when we pass the value ' '[Space] in XML tag 'REL_PROD' it doesn't work.
Do let me know if you come across such problem & what needs to passed as input to reset the checkbox for the BOM in SAP.
Thanks & Regards,
Bhargava

PLM wants to manipulate the Indicators u2013 u201CBulk Materialu201D & u201CCost Relevancyu201D in BOM.
Note: The 2 indicators [u201CBulk Materialu201D & u201CCost Relevancyu201D] are interlinked with each other for a business functionlity given by SAP. So, if we try to set both indicators we get the below SAP standard error.
E 29127 Bulk material not allowed for items relevant to costing
SAP Field Name                             RFC Tag       SAP values    PLM values  Meaning for SAP field
Indicator: bulk material                   BULK_MAT   Space             !                   No
Indicator: bulk material                   BULK_MAT    X                   X                  Yes
Indicator: item relevant to costing  REL_COST    Space            !                    Not relevant to costing
Indicator: item relevant to costing  REL_COST     1                   1                   Not relevant to costing
Indicator: item relevant to costing  REL_COST     2                   2                   Packaging operation
Indicator: item relevant to costing  REL_COST     3                   3                   Packaging material
Indicator: item relevant to costing  REL_COST     X                   X                  Relevant to costing
To achieve the clear/reset/set value for 2 indicators [u201CBulk Materialu201D & u201CCost Relevancyu201D] from PLM, only eitheir of indicators status needs to sent [i.e 1 indicator status @ a time].

Similar Messages

  • Creating a Sales BOM in SAP CRM 7.0

    Hi All,
    How to create a Sales BOM in SAP CRM 7.0 system?  What is the transaction code for it ? I want to define a high level Package material in the BOM and 3-4 low level items in this BOM. What are the steps to achieve this ? We do not have ECC system connected to CRM and we are using CRM 7.0 as stand-alone system.
    Thanks in advance.
    --R D

    Hi R D,
    Please could you let me know how you achieved this. I am trying to do the same thing. But when I assign products in the component relationship, it does not explode when I use it in a contract. Please let me know if the solution you used.
    Regards,
    Neena.

  • What are the latest updates in the SAP GUI patches?

    Hi All,
    Can anyone let me know what are the major updates in the SAP GUI 730.
    Any note that says this..The release note with each patch is too grainy and i cannot consolidate what are the major updates.
    We are currently on patch level 1 and SAP GUI have patch 8 released?
    Can someone kindly assist in identifying the major updates in SAP GUI 730?
    Thanks,
    Deep Desai

    Hi,
    You can see in the info section what are the new notes added in that patch.
    Please see the below screenshot for your reference.
    Regards
    Sudhir Sadhu

  • Extracting updated data from SAP R/3 to BOBJ DS

    Hi all,
    I have a doubt reg extracting updated data from SAP to BOBJ DS. For example i am extracting 50000 records from SAP table to BOBJ DS say its taking half an hour, after extracting data 10 more records have added in the same table. Do we need extract the whole record again or do we have some other way to extract only those 10 records from table.
    Please help me.  I have searched in forums but cudnt find the exact solution fyi.
    Thanks,
    Guna

    Apart from stepd 1,2, you need to create a Target Data store and a table to load your MARA data.
    3. Now the MARA data will be available in data store(DS_ERP), say table name as BO_MARA
      Why do you want to change the table name? Are you planning to stage the data anywhere?
    4. Create a dataflow source as BO_MARA, query transform and destination as a table
    Data transport object is required if you are using R/3 Data Flow.
    This would suffice just for a full load, if all your transformations can be incorporated inside the Query transform.
    5. Do Transformation.
    6. Transformed data will be available in target table.
    Only after executing the job that the transformed "data" will be available in the target.
    The above part mentions only about a Source, Query transform, Source Data Store and table.
    Apart from these
    You would require a Script object to write the condition, to SELECT the MAX timestamps. You would require Variables to be created in your job to redirect your job path and to restrict the data extracted.
    Use your DataFlow in a Conditional object. If load type is first, in the then part use the dataflow which you might have already designed. Else part will have a replicated Data Flow with the above mentioned WHERE condtion in Query transform.
    Suggest you to refer Desiger document and DI supplement for SAP as well. Inform if you are stuck.
    Regards,
    Suneer Mehmood.

  • Function Module to Change / Update BOM Line Items

    Hi,
    I need a Function Module to Change / Update BOM Line Items.
    Please help.
    Thanks.

    Try this FM - CSAP_MAT_BOM_MAINTAIN

  • Program to update BOM by CSAP_MAT_BOM_CREATE as error KEY_INCOMPLETE coming

    Hi to all,
    Can any one provide me sample program to update BOM via Function Module CSAP_MAT_BOM_CREATE.
    As i already have created the program , but run time error is coming KEY_INCOMPLETE for CSAP_MAT_BOM_CREATE.
    as i have already search the SDN , but cant get any specific answer for that.
    Note: itab_bom_header and itab_bom_item_details are of same line type as
      i_stko and t_stpo  with data.     
    DATA: wa_bom_header  TYPE     zia_str_bom_header,
          wa_itab_bom_item_details TYPE zia_str_bom_item_details.
    IF  itab_bom_header[] IS  NOT INITIAL .
      READ TABLE  itab_bom_header INTO wa_bom_header INDEX 1 .
    ENDIF.
    *---- BOM header data structure
    DATA: BEGIN OF tstko OCCURS 0.
            INCLUDE STRUCTURE stko_api01.
    DATA: END OF tstko.
    DATA: wa_tstko  LIKE LINE OF tstko.
    *---- BOM items table
    DATA: BEGIN OF tstpo OCCURS 0.
            INCLUDE STRUCTURE stpo_api01.
    DATA: END OF tstpo.
    DATA: wa_tstpo LIKE LINE OF tstpo.
    **---- Object dependencies table
    Basis data
    *data: begin of tdep_data occurs 0.
    *include structure csdep_dat.
    *data: end of tdep_data.
    Description
    *data: begin of tdep_descr occurs 0.
    *include structure csdep_desc.
    *data: end of tdep_descr.
    Source
    *data: begin of tdep_source occurs 0.
    *include structure csdep_sorc.
    *data: end of tdep_source.
    Sequence
    *data: begin of tdep_order occurs 0.
    *include structure csdep_ord.
    *data: end of tdep_order.
    Documentation
    *data: begin of tdep_doc occurs 0.
    *include structure csdep_doc.
    *data: end of tdep_doc.
    CALL FUNCTION 'CALO_INIT_API'
    EXPORTING
      FLAG_DB_LOG_ON                 = 'X'
      FLAG_MSG_ON                    = 'X'
      FLAG_API_API_CALL_ON           = ' '
      FLAG_COLLECT_MSG_ON            = ' '
      EXTERNAL_LOG_NO                = 'API'
      DEL_LOG_AFTER_DAYS             = '10'
      DATA_RESET_SIGN                = '!'
    EXCEPTIONS
       LOG_OBJECT_NOT_FOUND           = 1
       LOG_SUB_OBJECT_NOT_FOUND       = 2
       OTHERS                         = 3
    LOOP AT itab_bom_header INTO wa_bom_header.
    wa_tstko-BASE_QUAN =  wa_bom_header-base_qty.
    wa_tstko-BASE_UNIT  =  wa_bom_header-BASE_UOM.
    wa_tstko-BOM_STATUS  = wa_bom_header-BOM_STATUS.
    ENDLOOP.
    LOOP AT  itab_bom_item_details INTO  wa_itab_bom_item_details.
      wa_tstpo-item_categ   = wa_itab_bom_item_details-item_category.
      wa_tstpo-item_no      = wa_itab_bom_item_details-bom_itm_number.
      wa_tstpo-component    = wa_itab_bom_item_details-component.
      wa_tstpo-comp_unit = wa_itab_bom_item_details-uom.
      wa_tstpo-comp_qty = '10'.
      wa_tstpo-valid_from   = wa_itab_bom_item_details-valid_from.
      wa_tstpo-itm_ident    =  wa_itab_bom_item_details-item_id  .
      APPEND wa_tstpo TO tstpo .
    ENDLOOP.
    FM to create BOM
    CALL FUNCTION 'CSAP_MAT_BOM_CREATE'
      EXPORTING
        material               =   wa_bom_header-material
        plant                  =   wa_bom_header-plant
        bom_usage              =   wa_bom_header-bom_usage
        VALID_FROM             =   wa_bom_header-VALID_FROM
      CHANGE_NO                =
      REVISION_LEVEL           =
      i_stko                   =    tstko  " bom header
      FL_NO_CHANGE_DOC         = ' '
      FL_COMMIT_AND_WAIT       = ' '
      FL_CAD                   = ' '
      fl_default_values        = 'X'
    IMPORTING
    fl_warning               =  fl_warning
    bom_no                   =  bom_no
    TABLES
    t_stpo                    =  tstpo   " bom item
      T_DEP_DATA               = tdep_data
      T_DEP_DESCR              = tdep_descr
      T_DEP_ORDER              = tdep_source
      T_DEP_SOURCE             = tdep_order
    T_DEP_DOC                 =  tdep_doc
      T_LTX_LINE               =
      T_STPU                   =
    EXCEPTIONS
    error                    = 1
      OTHERS                   = 2
    IF sy-subrc <> 1.
      WRITE 'error'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF fl_warning EQ 'X'.
      WRITE 'done'.
    ENDIF.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          =
    IMPORTING
      RETURN        =
    please can any one provide me the solution for that.
    i shall be thankfull to you for this.
    Regards
    Pavneet Rana
    Edited by: pavneet rana on Aug 18, 2011 3:01 PM

    Thanks for reply,
    i have debug my program and found that run time error is coming at GET_MAST function module.
    but  i have already checked that     MATNR and STLNR  is already filled before reaching to that FM.
    GET_MAST
    IF NOT SET IS INITIAL.
          IF     WA-MATNR IS INITIAL
             AND WA-STLNR IS INITIAL.
             RAISE KEY_INCOMPLETE.
          ENDIF.
          IF     WA-MATNR <> SPACE
             AND WA-STLNR <> SPACE.
             RAISE KEY_INVALID.
          ENDIF.
    please can any one provide me the solution for that.
    Regards
    Pavneet Rana

  • Updating BOM and Routing

    Hi
    I have requirement  to update BOM and Routing . Please suggest me BAPI or functional module  to Update BOM and Routing .
    Thanks
    Uday

    Dear Shankar,
    For BOM use the T Codes CS20 or else CEWB for making mass changes or else check with this Functional Module,
    CS_CL_P_BOM_MASS_CHANGE 
    For routing use the T Code CEWB or else check with these Functional Modules,
    CP_CL_S_OPR_MASS_CHANGE 
    CP_CL_S_TSK_MASS_CHANGE 
    EWB_MASS_CALL_OPR       
    EWB_MASS_SAVE_OPR       
    EWB_MASS_SELECT_OPR     
    Regards
    Mangalraj.S

  • While uploading the excel BOM to SAP in PRD getting the ABAP dump error not

    Hi Experts,
    While uploading the excel BOM to SAP in PRD getting the ABAP dump error not able to proceed further.
    and if I visit ST22 t code it is telling that :RAISE_EXCEPTION and DYNPRO_NOT_FOUND.
    PLease help.
    Regards,
    Mohan

    Hi,
    Better ask this question in ABAP forums.
    Regards,
    Harsh.

  • BOM in SAP SRM?

    Hi,
    Can you please help me answer:
    Which possibilities are there to use bills of material (BOMs) in SAP SRM 5.0 or beyond? We are using Material Master data replicated from MM in SRM Extended Classic Scenario?
    Is there any documentation available? I have not been able to find any.
    Thanks.
    Best regards,
    Johan

    Hi
    Please go through the pointers below ->
    BOM DAta Access in SRM
    Can we maintain the BOM for the trading(HAWA) material
    Costing of phantom in  a BOM
    Re: Account assignments
    Re: Contract Upload Issue
    Re: block materials in R3
    bid invitation
    Do let me know.
    Regards
    - Atul

  • Exit for production order creation that update BOM explosion date

    Hi Guros
    does any one know a user exit for production order creation that update BOM explosion date = AUFLD.
    or a UE that run before the BOM explosion.
    thanks.

    Dear,
    I dont think user exist will work for you,
    You need to find BAdi for it, cl_exithandler=>get_class_name_by_interface .
    Or try with SE84,
    Enter the package name and check the " Enhancements"
    Regards,
    R.Brahmankar

  • Any bapi for update MCJ4 report(SAP performance reports)

    Hi,
    Any bapi for update MCJ4 report(SAP performance reports)
    or
    how to update MCJ4 report from my webdynpro application.
    Regards,
    Deepak Singh

    Hi,
    Have you gone through this ,We already have the discussion on this .
    [http://forums.sdn.sap.com/thread.jspa?threadID=1162642]
    BTW , As you say, you are going to create the Milsetsone what is your reference is it WBS element and project definition or network , How are you planning to bring the reference data from the legacy system [ As example the WBS element against which the Milestone s are craeted] into SAP . Becuase as far as i know milestones area attached with project definition and then further down to WBS element so you need to bring the Project definition + WBS element to change create the milsetone .
    Thanks,
    Anjaneya .

  • PLM WUI BOM Enhancement

    Hello,
        I have a requirement for PLM WUI BOM enhancement. The requirement is adding a custom tab in the item details view....
    I have tried with call method io_oif->add_subview and call method io_oif->add_mainview.
    Could anyone guide me in this topic?  Thanks!!
    Regards,
    Saravana

    Hello,
        Thanks for your replies....
    I have enhanced Web Dynpro component /PLMU/WDC_MBOM by adding a new view. But still the new tab is not populated in item details view.... is anything else, we need to check ?
    Regards,
    Saravana

  • Updating BOM Sub Items using CS_BC_BOM_CHANGE_BATCH_INPUT

    Hello,
    I am trying to update BOM sub items by using this function module. I am filling up all fields in all tables, still it is giving error.
    Any body has any sample code for this function module...
    Unfortunately there is no documentation for this FM and very little usage in standard programs...
    Regards,
    Krishna.

    Hi,
    My Code for create
    DATA: BOM_HEADER     TYPE CAD_BICSK ,"STRUCTURE FOR HEADER DATA
          IT_BOM_ITEM    TYPE TABLE OF CAD_BOM_ITEM,"INTERNAL TABLE FOR ITEM
          WA_BOM_ITEM    TYPE CAD_BOM_ITEM,"WORK AREA FOR ITEM
          IT_BOM_SUB_ITEM  TYPE TABLE OF CSSUBITEM ,"INTERNAL TABLE FOR SUB ITEM
          WA_BOM_SUB_ITEM  TYPE CSSUBITEM ,"WORK AREA FOR SUB ITEM
          IT_DMS TYPE TABLE OF CLS_CHARAC,"INTERNAL TABLE FOR DMS_CLASS_DATA
          WA_DMS TYPE CLS_CHARAC,"WORK AREA FOR DMS_CLASS_DATA
          IT_SAP_FIELD TYPE TABLE OF RFCDMSDATA,"INTERNAL TABLE FOR SAP_FIELD_DATA
          WA_SAP_FIELD TYPE RFCDMSDATA,"WORK AREA FOR SAP_FIELD_DATA
          E_RETURN       TYPE CAD_RETURN-VALUE,"STRUCTURE FOR RETURN
          E_MESSAGE      TYPE MESSAGE-MSGTX,"STRUCTURE FOR MESSAGE
          E_MESSAGE_LEN  TYPE CAD_RETURN-MESSAGE_LEN."STRUCTURE FOR MESSAGE LENGTH
    LOOP AT IT_DATA INTO WA_DATA.
        MOVE-CORRESPONDING WA_DATA TO WA_DATA1.
        APPEND WA_DATA1 TO IT_DATA1.
      ENDLOOP.
      SORT IT_DATA1 BY MATNR WERKS.
      DELETE ADJACENT DUPLICATES FROM IT_DATA1 COMPARING MATNR WERKS.
      LOOP AT IT_DATA1 INTO WA_DATA1.
        CLEAR: BOM_HEADER, WA_BOM_ITEM,WA_RET.
        REFRESH: IT_BOM_ITEM.
    FILL BOM HEADER
        PERFORM DATE_FORMAT USING WA_DATA1-DATUV CHANGING BOM_HEADER-DATUV.
        BOM_HEADER-MATNR = WA_DATA1-MATNR.
        BOM_HEADER-WERKS = WA_DATA1-WERKS.
        BOM_HEADER-STLAL = WA_DATA1-STLAL.
        BOM_HEADER-STLAN = WA_DATA1-STLAN.
        BOM_HEADER-ZTEXT = WA_DATA1-ZTEXT.
        LOOP AT IT_DATA INTO WA_DATA WHERE MATNR = WA_DATA1-MATNR and werks = wa_Data1-werks.
    FILL ITEM
          if wa_data-postp = 'T'.
            WA_BOM_ITEM-POSNR     = WA_DATA-POSNR.
            WA_BOM_ITEM-POSTP     = WA_DATA-POSTP.
            WA_BOM_ITEM-POTX1     = WA_DATA1-ZTEXT.
          else.
            WA_BOM_ITEM-IDNRK     = WA_DATA-IDNRK.
            WA_BOM_ITEM-POSNR     = WA_DATA-POSNR.
            WA_BOM_ITEM-POSTP     = WA_DATA-POSTP.
            WA_BOM_ITEM-MENGE     = WA_DATA-MENGE.
          endif.
          APPEND WA_BOM_ITEM TO  IT_BOM_ITEM.
        ENDLOOP.
        CALL FUNCTION 'CAD_CREATE_BOM_WITH_SUB_ITEMS'
          EXPORTING
            I_BOM_HEADER   = BOM_HEADER
          IMPORTING
            E_RETURN       = E_RETURN
            E_MESSAGE      = E_MESSAGE
          TABLES
            BOM_ITEM       = IT_BOM_ITEM
            BOM_SUB_ITEM   = IT_BOM_SUB_ITEM
            DMS_CLASS_DATA = IT_DMS
            SAP_FIELD_DATA = IT_SAP_FIELD.
        WA_RET-MATNR = WA_DATA1-MATNR.
        if e_return = 0 .
          wa_ret-status = 'SUCCESS'.
        ELSE.
          wa_ret-status = 'ERROR'.
        ENDIF.
        WA_RET-WERKS = WA_DATA1-WERKS.
        WA_RET-MSG = E_MESSAGE.
        APPEND WA_RET TO IT_RET .
      ENDLOOP.
      LOOP AT IT_RET INTO WA_RET.
        if wa_ret-status =  'ERROR'.
          APPEND wa_ret to it_erv.
          ENDIF.
        WRITE: /.
        WRITE:(12) WA_RET-MATNR,(6) WA_RET-WERKS,(8) wa_ret-status,(70) WA_RET-MSG.
      ENDLOOP.
    Regards,
    Manesh.R

  • CAN I UPDATE DATABSE OF SAP FROM BACKEND

    Dear Experts,
    can i update database of SAP from Backend , if i update some fields from backend using update query , then sap chage behavior like series not show  or some previous record does not find. etc etc.
    so my que is can i update the sap databse using any tric which is not affect to SAP Behavior it's behave normally after updation.
    thanking you,
    ganesh mahajan

    Dear sir,
    Actually we are goes to validate delivery and outgoing excise invoice ,means
    your delivery doc num should be outgoing excise invoice otherwise massage fir " document number does not match."
    so that time from above table.
    but the eroor is baseref num is nvarchar but error madssage is " can not covert nvarchar to int "
    Thanking you,
    ganesh Mahajan

  • Updating BOMs via DTW

    Hello,
    I am trying to update my BOMs via DTW. There is a tick box called "Hide BOM Components on Printoutu201D on the SALES BOM that i would like to tick but it doesnt seem to have a mapping in the DTW template. I've tried adding a column called "HideComp" to the ProductTrees template but DTW does not recognize this or allow me to manually map the feild.
    What can i do? Any suggestions are much appreciated.
    Greeshma

    HI Joseph,
    If i tick what you suggested in the Document SEttings then the Component items of the Sales BOM can still be seen when you are adding the document in SAP but you just cannot see their indivdual prices. When you do a print preview of the document the component items still show. I do not want them to show on the physcial printout of the document-whether it is a SAles Order or Invoice.
    Kind regards,
    Greeshma

Maybe you are looking for