Batch classification for BOM items

Hi ,
I am developing a conversion program to upload the class and characteristics to a BOM item . The class type is a custom class which needs to be assigned to the BOM item along with the class and characteristics value . Is there any FM/Bapi which can create the classtype for the BOM item and assign the class and values . I have tried with the FM 'BAPI_OBJCL_CREATE' but was not successful. Any help would be highly appreciated .
Sanjeev

this program can create bom succcess.but add stpu(subitem) ,have some problem.
REPORT ZPDM_CREATEBOM .
DATA: i_stko like STKO_API01.
data: T_STPO like table of STPO_API01 WITH HEADER LINE.
data: T_STPU like table of STPU_API01 WITH HEADER LINE.
data: BOM_HEADER like BICSK.
DATA: return TYPE char100,
return2 TYPE char100.
i_stko-BASE_QUAN = 1.
T_STPO-ITEM_CATEG = 'L'.
T_STPO-ITEM_NO = '0010'.
T_STPO-COMPONENT = '52008022702'.
T_STPO-COMP_QTY = '10'.
APPEND T_STPO.
T_STPO-ITEM_CATEG = 'L'.
T_STPO-ITEM_NO = '0020'.
T_STPO-COMPONENT = '52008022701'.
T_STPO-COMP_QTY = '20'.
APPEND T_STPO.
T_STPU-POINTER = 20.
T_STPU-UPOSZ = '0001'.
T_STPU-EBORT = 'A1'.
T_STPU-UPMNG = '10'.
APPEND T_STPU.
T_STPU-POINTER = 20.
T_STPU-UPOSZ = '0002'.
T_STPU-EBORT = 'A2'.
T_STPU-UPMNG = '10'.
APPEND T_STPU.*
CALL FUNCTION 'CSAP_MAT_BOM_CREATE'
EXPORTING
material = 'FERT005'
PLANT = '1000'
bom_usage = '1'
VALID_FROM =
CHANGE_NO = 'ECO200909096'
REVISION_LEVEL =
i_stko = i_stko
FL_NO_CHANGE_DOC = ' '
FL_COMMIT_AND_WAIT = ' '
FL_CAD = ' '
FL_DEFAULT_VALUES = 'X'
IMPORTING
FL_WARNING =
BOM_NO =
TABLES
T_STPO = T_STPO
T_DEP_DATA =
T_DEP_DESCR =
T_DEP_ORDER =
T_DEP_SOURCE =
T_DEP_DOC =
T_LTX_LINE =
T_STPU = T_STPU
EXCEPTIONS
ERROR = 1
OTHERS = 2

Similar Messages

  • Early batch opening for order item is activated in the QM data settings

    Hi Team
    I am not able to generate inspection lot inspite maintaining 04 inspection type in QM view.
    Getting this message - ( Make sure that an inspection type for inspection lot origin (03) or for inspection lot origin 04 with
    early batch opening for order item is activated in the QM inspection data. )
    Please suggest me required settings.
    Thanks

    Hi
    Go to MM02 select the QM view
    Clcik the inspection setup button
    Select the inspection type 04 detail icon in right corner.
    in that screen Control insLot field select the  Y Early lot creation for the order item.
    Save
    Thanks
    S.Murali

  • Special procurement type for BOM item

    Hi Experts
    I am creating BOM using BAPI : CAD_CREATE_BOM_WITH_SUB_ITEMS
    There is no field to update Special procurement type for BOM item in this BAPI.
    Could you please suggest some way to update this.
    Thanks in Advance

    hi Janardhan,
    phantom assembly is the assembly which is not kept in stock rather it consumes directly.
    Use of phantom assemblies are as below
    Phantom assemblies are assemblies that have their own product structure, but whose assembly does not actually physically exist. The components of the phantom assembly are incorporated directly in the superordinate product. The product structure of the superordinate product contains a reference to the phantom assembly.
    example - A car with music system.
    During backflush, only the goods movement for the phantom assembly components are posted. The phantom assembly is marked as backflushed but does not trigger any goods movement.
    Experts pl correct me if i'm wrong.
    Regards,
    Anil

  • How to create new Batch No for An Item

    Dear All,
              I am doing Issue for production task through DI API. In that I need to Create a Batch no for an Item. That item was created as Batch with Release only in Item Master. Please help me how to create the batch no when I am Issue for Production ?.
    Thanks,
    lingam.

    Dear Lingam,
    If the process need manual selection as the one you are requesting, it will not be available to DI API. You may try UI API to see.
    Thanks,
    Gordon

  • Function module for BOM item update

    Hi,
    Please enlightenn  us, which  FM   is  do  the update  for  BOM item datas. ( current  FM  is  updated  line  item  one item then come out  and log in again  updating  another line item , thus cause  more error are facing.)
    we want a FM to update   one time all the line time and come out from the screen.
    Thx
    Sathiya

    HI
    You Can use function module CSAP_MAT_BOM_MAINTAIN to process simple material BOMs.
    To change BOMs, you can also use the following function modules:
    CSAP_MAT_BOM_OPEN
    CSAP_BOM_ITEM_MAINTAIN
    CSAP_MAT_BOM_CLOSE
    You can use FM CSAP_ORD_BOM_MAINTAIN to Maintain Order BOM.
    With Regards
    Naveen

  • How can mass create batch classification for many material batches? ?

    Hi Experts,
    In our system , there are so many material batches which have not been classified,see by
    BMBC Tcode.
    That means these batches has no values in the batch class. I know we can create
    classification for these batches with MSC2N Tcode.
    But there are so many batches  which have not been classified,more then 2000.
    It is not possible to create classification for every batch with with MSC2N once a time.
    So how can I create batch classification for so many batches once a time?
    How can I mass create batch classification for so many batches??
    Thanks for any reply!

    Hi,
    Please be aware that SAP does not support the use of batch
    input in the classification system. SAP recommends you use BAPI's for
    example in your case BAPI BAPI_OBJCL_CREATE and BAPI_OBJCL_CHANGE
    would be able to help. For more information, please have a look at the
    note: 943559 - Point 2 and 13. Point 13 references the note 1083986.
    I hope this helps!.
    Best Regards,
    Arminda Jack

  • Update Batch Classification for a Material

    Hello friends,
    I'm facing the following problem : A specific BTCI wich simulates MB01 was calling another program called SAPLCTMS to update Batch classification for a Material, this program (SAPLCTMS ) seems to be not necessary after the support package Level 57 (we just installed SAP4.6C). I didn't find any note on OSS for this...
    Now i'm trying to use this BAPI instead of BTCI for the Material batch classification  :
    CALL FUNCTION 'BAPI_OBJCL_CHANGE'
             EXPORTING
                  objectkey          = l_objnum
                  objecttable        = 'MCH1'
                  classnum           = 'ZGB_TIDCLASS'
                  classtype          = '022'
                  status             = '1'
                  keydate            = sy-datum
             TABLES
                  allocvaluesnumnew  = t_valuesnum
                  allocvaluescharnew = t_valueschar
                  allocvaluescurrnew = t_valuescurr
                  return             = t_return.
    But its not working, it keeps asking for a batch number. I guess i'm not using the right FM ?
    Any ideas about this ?
    Thank you in advance for your help !
    Best Regards.
    Edited by: Soufiane FAYSSAL on Jun 18, 2009 11:42 AM

    Hello,
    I am Ashok Chelikani. I am working on the same Issue.
    i am getting following message:
    TYPE ID    NUMBER  MESSAGE
    E       |C1   |003          |Characteristic DIMENSIONSCOLOR not found or not valid
    I        |CL   |736          |Assignment was not created 
    my procedure as follows:
    CLEAR: lv_objnum.
    lv_objnum = I_MSEG-MATNR.
    **Get Object Details
    CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
    EXPORTING
    objectkey = lv_objnum
    objecttable = 'MARA'
    classnum = 'Z_RMBCH1'
    classtype = '001' 
    TABLES
    allocvaluesnum = lt_alloc_num
    allocvalueschar = lt_alloc_char
    allocvaluescurr = lt_alloc_curr
    return = lt_return.
    IF NOT lt_return IS INITIAL.
    CLEAR: lv_objnum.
    lv_objnum(18) = I_MSEG-MATNR.
    lv_objnum+18(10) = I_MSEG-CHARG.
    CALL FUNCTION 'BAPI_OBJCL_CHANGE'
    EXPORTING
    objectkey = lV_objnum
    objecttable = 'MCH1'
    classnum = 'Z_RMBCH1'
    classtype = '023' 
    tables
    allocvaluesnumnew = lt_alloc_num
    allocvaluescharnew = lt_alloc_char
    allocvaluescurrnew = lt_alloc_curr
    return = lt_return.
    lt_return returing error message. Kindly help me.

  • Batch Classification for Auto GR during Production Order Confirmation

    Dear All,
    I have a scenario,where Auto GR has been activated in last operation of an order.Material is batch managed with certain characteristics.When I use CO11n, and go to goods movement tab,batch for 101 movement type is entered but Batch classification pop up doesn't come.For that we need to select the line item,goto extras and create batch,then Pop up for batch classification comes.But,if we do GR with MIGO & MB31, This classification screen automatically in Co11n. i have tried certain exits also, but nothing works.

    Hi Stuti<
    Refer the below links it will solve the issue.
    [Batch Determination - help|http://help.sap.com/saphelp_45b/helpdata/en/25/283cb44f7811d18a150000e816ae6e/frameset.htm]
    [SDN Thread-1|Re: Batch Determination issue -reg]
    [SDN Thread-2|Batch Determination;
    Regards,
    Shyamal

  • Avoid  automatic creation of purchase requisition for bom item N

    Dear.
    When I create a production order , for the components  with bom item N the system create a purchase requisition. I need to avoid this automatic creation , do you know a solution to obtain this ?
    Thanks.

    For the many people that have asked this question.
    N item category in the BOM is always going to propose direct procurement. Through configuration I have not found a way to make it go away from the planned order. You can make it go away from the production order.
    The IMG path: 
    Plant Maintenance and Customer Service 
    -> Maintenance and Service Processing 
    --> Maintenance and Service Orders 
    ---> Functions and Settings for Order Types 
    ----> Define Change Docs, Collective Purc. Req. Indicator, Operation No. Interval
    Under the Res/PurRq -> Specify Never
    In order make this setting effective, you must define the following
    system message to error or warning, as it is stated on note 569984
    Version Appl.A. No. Cat
    00000000 C2 280 W
    Please note that this setting is effective for reservations and
    requisitions.
    The best solution is to use BOM item category L with the bulk indicator set. You will not get any direct procurement proposals or planned orders and you can use long term planning to see the time phased MRP results.

  • Documentary Batch Field for Line item when calling BAPI_GOODSMVT_CREATE

    hi all,
    Iam unable to locate the Documentary Batch Field for each line item while posting a Goods Issue using BAPI BAPI_GOODSMVT_CREATE.
    BAPI2017_GM_ITEM_CREATE structure has got no field to enter the DB number against each line item. Although its not a mandatory field while posting a goods issue when calling the BAPI, but there shud be a input field for the same. When doing a similar posting in SAP using MIGO transaction it's mandatory to enter a Documentary Batch number(SAP Field name DOCUBATCH_CHARG). Does anyone have come across this situation. Is there a field with different name in the  BAPI2017_GM_ITEM_CREATE structure ? Appreciate your thoughts !
    Regards,
    Gilmour

    Hi Vindy,
    bapi2017_gm_item_create-batch is the field for the Batch.
    However Iam looking for a field called DB No which is basically a Documentary batch ensure the traceability of a material, without it being necessary for the stock of the material to be managed in batches. If you look at the Item section in MIGO you would have Batch and DB No for each line item and Iam looking for the DB no and not the primary Batch.
    Thanks,
    Gilmour

  • FM for updating Batch Classification for a Batch (MSC2N)

    Hi,
    This is in regards to the Batch Classification (MSC2N).
    Is there a Function Module available to load data into the Classification tab for the batch, in MSC2N?
    Please Help.
    Thanks,
    John

    BAPI_OBJCL_CREATE
    and you may also refer tho this one -
    Look at Note 619913 - FAQ: Basic functions of batch management
    Change classification data of a batch
    Up to and including Release 4.6C, BAPI BAPI_OBJCL_CHANGE needs to be used.
    In later releases, BAPI BAPI_BATCH_SAVE_REPLICA may also be used for that purpose.
    Regards,
    Amit

  • User Exit for batch classification for tcode mb1c

    HI experts,
    I have implement customer exit MBCFC004 EXIT_SAPMM07M_004 and CLFM0002 EXIT_SAPLCLFM_002 to set a value for
    a customize  characteristics.
    Now I have a issue.
    MBCFC004 EXIT_SAPMM07M_004  can work with migo but when I with mb1c to do same transaction it didn't
    work.
    CLFM0002 EXIT_SAPLCLFM_002  only work when I input a value in the customize  characteristics it can change the input value.
    I have set extension in OMCV for my move type. and assigned the bath to material.
    I have reference
        Re: User Exit for batch classification
    but I haven't found any question for my solution.
    please help me.
    thanks a lot.

    Class ZBATCH has status 1 (= 'Released') but the customizing of classtype 023 doesn't allow to classify with classes of this status. Settingsfor class status in class type 023 are different from what SAP delivers.Correct please these settings. You may lookup the correct definition of
    the class status in class type 022.

  • Change batch Classification for a BATCH.

    Hi,
    Does anyone know how to change the classification for a BATCH (Txn. MSC2N) programatically. Recording is not possible for the transaction MSC2N.
    Thank you,
    Mahesh

    Use the BAPI 'BAPI_OBJCL_CHANGE'. Ensure to commit data afterwards.
    Manoj

  • Batch Classification for Finished Goods

    Hi,
    Can anybody explain me the significance of maintaining batch classification data for a finished material?
    Currently we have batch management active for all the finished materials but for some materials we have not maintained the classification data.
    When I checked the batch data in MMBE it shows me the Production date & Shelf life expiration date based on the values maintained in the material master.
    The class type is maintained at the plant level as 022 with characteristics as Last Goods Receipt & Shelf Life Expiration date.
    I want to know what impact will be on the distribution of these materials if I do not maintain the classification data?
    Thanks & Regards,
    Abhijit

    Hi Ravi & Lakshman,
    Thanks a lot for the response. I understand what batch classification is & how it is implemented to use in coordination with Batch Determination. What I would like to know is what if the batch search strategy & class type (022) is defined at the plant level and  batch management for a finished material is active but classification data is not maintained. GR (101) for this finished material is possible but does this mean that not having classification data will not have any impact on the goods movement of this material?
    In case of production when the classification data is not maintained for a back flushed material (raw / semifinish), after the process order confirmation the 261 movements end up in COGI with reason Enter Batch. Since the selection criteria fails due to the unavailability of classification data; the batch needs to be selected manually instead of the system picking up the correct batch automatically.
    Like in inventory (consumption of raw & semifinish) do we have batch determination & search strategy for distribution where the finished stock will be picked up for the sales orders based on the selection criteria & sorting rule?
    Thanks & regards,
    Abhijit
    Edited by: Abhijeet K. Nerurkar on Feb 14, 2011 2:18 AM

  • A/R invoice PLD for BOM items need to hide the unit price

    Dear All,
    Our customer would like to have an A/R invoice like this: if the invoice has any BOM item, the unit price of child items should be hid. That means, I need to determine, if the item is the child of its parent, hide the unit price of it. Is there any way for me to know which item is the child item in A/R invoice PLD? I cannot find a column like status of item in the table that tells me this item is a regular item and that item is the child of an item. Thanks a lot.
    Regards,
    Yuka

    Thanks for your reply. The problem is, an item in the invoice might be the child item or the regular item.
    e.g, we have item A and B, they the child item of C. In the invoice, the customer may order 5 item C then add 10 item A as well.
    Then the invoice will like this
    C    5
    A    5
    B    5
    A    10
    Then they would like to hide A 5 B 5 but display A 10 as regular item.

Maybe you are looking for