Updating Batch classification data from MIGO for Purchase order

Hi,
I need to update batch classification data (in MSC3n) from MIGO for purchase order. The logic needed for this is as below,
1) Pass material and batch to MCH1 table to get CUOBJ_BM.
2) Pass CUOBJ_BM to INOB table to get INOB-OBJEK.
3) Pass INOB-OBJEK to CLAF_CLASSIFICATION_OF_OBJECTS to get class name & characteristic name.
4) Pass INOB-OBJEK, CLASS name and characteristic name to BAPI_OBJCL_CHANGE to update batch classification data.
I created implicit enhancement at the bottom of FM "CLVF_VB_INSERT_CLASSIFICATION". But the problem is, the return parameter of BAPI_OBJCL_CHANGE is giving the following error.
Class type 023, object type MCH1, object RAW-6             0000001151
Object is currently locked by user
The assignment was not changed
Please let me know how to do it. Is there any BADI or User Exit?

Hi,
As you said the break point is not triggering did you activate your exit and activated even the project to which your exit is assigned.
I hope you missed activating your project in CMOD transaction. Please verify it once and if it is not activated then immediately activate it and try debugging again.
Regards,
Rafi

Similar Messages

  • Pull Service tab data from Contract to Purchase order

    Hi All,
    I Just want to know if is possible to pull service tab data from contract to purchase order. When i create PO w.r.t Service Contract the data from the service tab is not pulled. So need help on how can I pull.
    Please help..
    Thanks,
    Ros

    Hi if u r referring service contract maintain it in the line item (Outline agreement no). All the other details will copied from Contract.
    Check it out
    Regards,
    Raman

  • Release date and time for Purchase order

    Hi Masters,
    Could you please let me know that in which table the release date ane time will get stored for purchase order.
    Regards,
    Panneer

    Hi,
    You can find out from CDHDR & CDPOS table.
    Select Date Time from CDHDR table & Join with CDPOS table where CDHDR-OBJECTCLAS = EINKBELEG and CDHDR-OBJECTID = PO number and CDPOS-TABNAME = 'EKKO' and CDPOS-FNAME = FRGZU and CDPOS-VALUE_NEW = 'X'.
    You will get the date time from CDHDR table.
    Regards,
    Udayasankar Rajagopalan

  • Warning info when run MIGO for purchase order

    Dear everyone:
      When i use the MIGO to receipt the purchase order ,i want that the  system can give my one warning infomation only if the field of "posting date "(in MIGO screen) is less than the field of create date of the <b>purchase order</b>.
      I want to use the user exits "EXIT_SAPLMIGO_001" ,but it looks that it does not works.
    so, any advice to me anyone?

    Dear Rico:
      i follow your advice to get it ,but failed:(.
    my code like this:( in inlude :ZXQSMU06)
    *&  Include           ZXQSMU06                                         *
    data: zebeln like mseg-ebeln.
    data: zeindt like eket-eindt.
    tables: eket.
    zebeln = S7_TAB_MSEG-EBELN.
    select single * from eket where ebeln = zebeln.
        zEINDT = eket-eindt.
    field-symbols: <fs> type mkpf.
    data: field(30) type c.
    field = '(SAPMM07M)mkpf'.
    assign (field) to <fs>.
    check sy-subrc  = 0.
    check not <fs>-budat is initial.
    if zeindt <> <fs>-budat.
    message 'info' type 'I'.
    endif.
    is it correct?

  • To send IDOC to vendor from SAP for purchasing order

    Hi Gurus,
    I want to setpu an EDI for send the outbound & inbound idocs to vendor for purchasing order from SAP and below are the message type I am using:
    Outbound message type :
    ORDERS
    Inbound message type :
    ORDRSP
    INVOIC
    I know how to set up the link, making the partner profiles attaching the process code, assigning the ports but I want to know the below customize set up:
    1) Which transaction I need to used for customize this sceranio
    2) Could you provide me any documentation which specifies the steps for configuration
    And other details which I am suppose to know.
    Please reply me as soon as possible as I am urgently in need of this.
    Regards,
    Sagar

    Hi Sagar
    For the Confirmation you need to do the customizing for confirmation control, like what would you like to do after the confirmation. Confirmation is an inbound process.
    For Invoice you need to complete the customizing under LIV in SPRO- for Invoices received via EDI.
    Please go throught the help link for further details.
    http://help.sap.com/saphelp_47x200/helpdata/en/a8/b99f58452b11d189430000e829fbbd/frameset.htm
    Reward points if useful
    Thanks & regards
    Kishore

  • User Exit MIGO for Purchase Orders

    I need to check a purchase order during the Migo process.
    I tried the User Exit EXIT_SAPLEINR_001, but the break-point has no effect. The user- exit is useful for schedule agrmts but it seems that there is a different handling.
    Do you have an idea where I can check the MIGO date?

    hi alexander,
    this program will display all the user exits available for any specified Tcode.
    when u execute this code...... it will ask for tcode..... u enter any tcode.... it will display all available exits for specified tcode.....
    i hope this may help u...... all the best....
    report y_user_exit .
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
    tables : tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode obligatory.
    select single * from tstc where tcode eq p_tcode.
    if sy-subrc eq 0.
    select single * from tadir where pgmid = 'R3TR'
    and object = 'PROG'
    and obj_name = tstc-pgmna.
    move : tadir-devclass to v_devclass.
    if sy-subrc ne 0.
    select single * from trdir where name = tstc-pgmna.
    if trdir-subc eq 'F'.
    select single * from tfdir where pname = tstc-pgmna.
    select single * from enlfdir where funcname =
    tfdir-funcname.
    select single * from tadir where pgmid = 'R3TR'
    and object = 'FUGR'
    and obj_name eq enlfdir-area.
    move : tadir-devclass to v_devclass.
    endif.
    endif.
    select * from tadir into table jtab
    where pgmid = 'R3TR'
    and object = 'SMOD'
    and devclass = v_devclass.
    select single * from tstct where sprsl eq sy-langu and
    tcode eq p_tcode.
    format color col_positive intensified off.
    write:/(19) 'Transaction Code - ',
    20(20) p_tcode,
    45(50) tstct-ttext.
    skip.
    if not jtab[] is initial.
    write:/(95) sy-uline.
    format color col_heading intensified on.
    write:/1 sy-vline,
    2 'Exit Name',
    21 sy-vline ,
    22 'Description',
    95 sy-vline.
    write:/(95) sy-uline.
    loop at jtab.
    select single * from modsapt
    where sprsl = sy-langu and
    name = jtab-obj_name.
    format color col_normal intensified off.
    write:/1 sy-vline,
    2 jtab-obj_name hotspot on,
    21 sy-vline ,
    22 modsapt-modtext,
    95 sy-vline.
    endloop.
    write:/(95) sy-uline.
    describe table jtab.
    skip.
    format color col_total intensified on.
    write:/ 'No of Exits:' , sy-tfill.
    else.
    format color col_negative intensified on.
    write:/(95) 'No User Exit exists'.
    endif.
    else.
    format color col_negative intensified on.
    write:/(95) 'Transaction Code Does Not Exist'.
    endif.
    at line-selection.
    get cursor field field1.
    check field1(4) eq 'JTAB'.
    set parameter id 'MON' field sy-lisel+1(10).
    call transaction 'SMOD' and skip first screen.
    reward me if it is useful..............
    with regards.....

  • Date difference issue for Purchase order in R/3 and APO

    Hi,
       I am sending the purchase order from APO to R/3. When I transfer the data through CIF and see the curresponding entries in stock requirement list in R/3, purchase order is 1 day earlier than in SCM.
    However, when this purchase order is CIFed back to SCM, date appears correct in SCM ( as what it was before). Is this something because of timezone that difference in date appears in SCM and R/3.
    Can someone who came across date issues for transaction data transfer between SCM and R/3 elaborate in more detail please.
    Thanks,
    Sanjay

    Hello Somnath ,
    I am also facing the same issue which sanju was facing earlier in PRs .
    In APO I am not able to understand how system calculates the opening , start and end date .In my case the transportation time is 48 hrs , planned delivery time is 1 day and all calenders are 5*24 , GR proceeeing time .01 day . When I am creating PR at destination location on 06/06/2008 , 24:00:00 Hrs . System calculates the dates as follows :-
    Start date -06/05/2008 , 00:45:00 , end date -06/06/2008, 24:00:00 , opening date -05/20/2008 ,23:25:00 Hrs  . I tried to understand the formula given by you in your reply as Opening Date = Requirement Due Date - GR Time - Planned Delivery Time
    Start Date = Requirement Due Date - GR time - Transportation Duration
    End date = Requirement Date.
    But I am not getting the desired results.
    Could you let me know why the system is behaving in such way.I also want to know does system can create orders in such a way the opening date lies in past. If yes then can we restrict that ?
    Regards ,
    Mukesh
    Edited by: Mukesh  Kumar on Mar 9, 2008 1:59 PM

  • Delivery date from Requisition to Purchase Order

    Hi,
    let's suppose to have a material code and its inforecord.
    I create the Purchase Order Requisition and I put a delivery date. When I create the Purchase Order (ME21N) moving the POR into the basket, the delivery date I find in the PO is the one indicated in the POR. I would like that the delivery date I find in the PO will be calculated based on the "delivery time" indicated in the inforecord. For example, in the POR the delivery date is 15th May, today is 11st May, I'm creating the PO and I have 15 days of delivery time in the inforecord. I want that the delivery date in the PO will be 26 May (11+26). Now, if I create the PO, the delivery day will be 15th May...
    How can I set up the system to do this?
    Is there a set up that I have to do into the inforecord, maybe?
    Thanks,
    FT

    I you create the PR manually, then you manual entries have precedence over system defaults. Maybe you can control it with a user exit.
    if you create PRs is with the MRP run, then SAP takes the delivery date from the material master.
    if you maintain source list and indicate it as MRP relevant, then SAP can find the info record and can propose the delivery date based on the info record.

  • Issue in finding  GR posting date and quanity for Purchase order item

    Hi All,
    I have a requirement to list all PO items with Goods receipt posting date and quantity.
    So for each po item I have fetched Goods receipt posting date and quantity from table EKBE for movement type 101.
    But in transaction ME23n   in PO history tab it is displaying 3 records.
    2 are movement type 101 and 1 is movement type 102 GR quantity with minus sign.
    How  to find out Goods receipt posting date and quantity.
    what are the movement types we  have to consider.
    Thanks,
    Jwala

    movement type 102 is for GR for PO reversal that is why the quantity is negative.

  • Migo for purchase order

    Hi Friends,
    I want to have pop up in migo while doing GR for PO to see the line items that are selected for goods receipt .i.e. Item ok is checked.
    If PO is for 100 lines & want to do GR only for 10 items. after clicking item ok on all these item I want to check only selected item in Popup to check whether selection done by me is correct.
    I want to have button on task bar clicking on which it should give this pop up. I want to know whether this is possible.
    Thanks,
    Kiran

    I think your previous post was rejected..
    You can't add any button in MIGO screen for your requirement.
    How can system tell you that you have selected correct tick box for line item(s).
    Instead of doing such development, you can recheck your tick box for line item. I don't think it will take much time to recheck this.
    If you want to set tick box for all item then you can use default value..
    Regards
    Dev

  • User Exit - Create Asset Master Data from MIGO

    Hi Experts,
    I want to create an asset master data from Good Receipt Purchase Order, when the user saves the document, but I didn't find none user exit, BADI or BAPI that I can use.
    Cuold you help me?
    Thank a lot.
    Kind Regards
    Giampaolo

    Hi,
    Why you want to create the Asset master at the time of MIGO.
    Posting MIGO is end user activities and Creation of Asset is of Super User, he have to assign cost center plant etc in master which will not be known by the end user and can create lot of problem in later stage.
    If we create Asset it MIGO or PO level how user know that he have to post to new asset or to existing asset. This decision is of Finance person.
    If it is that important in your business process then give the authorization of Asset Master data creation to User.
    I personally feel this requirement is not feasible.
    Regards,
    Shayam

  • Creating a Query for Purchase Order Approval

    I need to develop a query to check if any of the line totals in a new purchase order exceeds $500. I have to attach this query to the approval procedure (under 'Terms' in 'Define Approval templates'). When the 'Add' button on the purchase order is clicked, the values on the form are still not available in the database. This means, my query has to pick the data from the new purchase order form. Is there any way to build such a query? Thanks.

    Satish, Alerts just notify the appropriate parties. They do not stop a document from being posted. This means, it is not capable to recognize the situation unless it's already stored in the DB.
    Alexey. what about creating a Development Request about this topic?
    Regards,
    Felipe

  • SRM - Datasource for Purchase Order Response

    Hi All,
    Is there any standard data source exists for Purchase Order Response in SRM? 
    Since Purchase Order and Purchase Order Documents are different, we require to instal separate data source for POR Document.
    Please help in this regard.
    Thanks,
    Anil

    Found that there is no standard data source for POR Documents, which needs to be extracted with generic extractor.
    Delta will be populated by the FM 'BBP_BI_DELTA_UPDATE' in SRM, which wont support POR object type.
    Reference:
    http://help.sap.com/saphelp_nw70/helpdata/en/ba/a4daa0fe7c4b558206db120b31e555/content.htm
    Thanks,
    anil

  • Basics for Batch Classification Data

    Hello Experts ,
    I have few queries for Batch Classification Data .
    1. Which are the tables where Batch Classification Data for the batches is stored .
    2.Which Function module is called once we do the Goods movement which determines the batch
    classification data .
    3.When we do stock transfer for batches , then the Batch classification will run in Issuing plant and
    the batch classi. data will be copied in the receiving plant . Can you please tell me that which object
    carries this data from issuing plant to receiving plant.
    4.There is also a user exit with which we can play with Batch classification , can you please give some information on this .
    Thank you very much for the help !
    Regards
    Shashank

    1. The table is AUSP - but why would you need to know that. There are good function modules to query, read, change classifications of batches - so why would you like to read directly from DB?
    2. This depends on your release. Typicall in MIGO the module VB_CREATE_BATCH is called, the same one that is called within the BAPI to create batches.
    3. See 2. When you create a batch with reference, you call the same module additionally with the key of the reference batch (this is the issueing batch). 
    Inside that module are loads of user exits for all kind of purposes.
    Why not have a look yourself in Customizing at Logistics General -> Batch Management -> Batch Valuation.
    There's the "customer exits for goods movements in inventory management" (this is called e.g. in the goodsmovement bapi and the old transactions)  --> EXIT_SAPMM07M_004
    and the  "Valuation of Creation of New Batches Using Function Module" (this is called in the MSCxN and in MIGO) --> EXIT_SAPLV01Z_014 .
    In Customizing there's also the documentation what you can achieve with the exits.
    Hope this helps.
    Stefan

  • Updating Scheduling data for Purchase Order

    Hi,
    I need a function module which can update the scheduling data for purchase order in EKET table. Normally we create Purchase Order as a reference from purchase requisition through BAPI_PO_CREATE1. That time it takes care of all the scenarios. But as per the requirement I want to create a PO which is created from more than one Purchase Requistions so I can't use the said BAPI. But still I am using this BAPI and after creation is completed I am updating the Requistions. The same scenario is taken care in ME59N, but I can't copy that code because of some requirements. So could any one please give me the idea to replicate the same functionality with any function module or other ways.
    Thanks
    Somnath paul

    try to pass all u sheduling related fields to POSCHEDULE and make sure u have enabled POSCHEDULEX along with sheduling related fields .....also (if no changes  are there  leave it with space )...
    this will definetly update not only eket table ....it will update every table regarding to purchase order,ekpo,ekko,eket ...etc
    Example of population of BAPI interface in the Function
    Parameter: POHEADER
    COMP_CODE            =                    1000
    DOC_TYPE             =                    NB
    ITEM_INTVL           =                    00001
    VENDOR               =                    0000001000
    PMNTTRMS             =                     0001
    PURCH_ORG            =                     1000
    PUR_GROUP            =                     001
    CURRENCY             =                     EUR
    Parameter: POHEADERX
    COMP_CODE            =                     X
    DOC_TYPE             =                     X
    ITEM_INTVL           =                     X
    VENDOR               =                     X
    PMNTTRMS             =                     X
    PURCH_ORG            =                     X
    PUR_GROUP            =                     X
    Parameter: POITEM
    PO_ITEM              =                     00001
    MATERIAL             =                    100-100
    PLANT                =                    1000
    STGE_LOC             =                    0001
    QUANTITY             =                    15.000
    TAX_CODE             =                    V0
    ITEM_CAT             =                     0
    ACCTASSCAT           =                    K
      Parameter: POITEMX
      PO_ITEM              =                    00001
      MATERIAL             =                    X
      PLANT                =                    X
      STGE_LOC             =                    X
      QUANTITY             =                    X
      TAX_CODE             =                    X
      ITEM_CAT             =                    X
      ACCTASSCAT           =                    X
      Parameter: POSCHEDULE
      PO_ITEM              =                    00001
      SCHED_LINE           =                    0001
      DELIVERY_DATE        =                    02.12.2002
      QUANTITY             =                    6.000
      PO_ITEM              =                    00001
      SCHED_LINE           =                    0002
      DELIVERY_DATE        =                    03.12.2002
      QUANTITY             =                    5.000
      PO_ITEM              =                    00001
      SCHED_LINE           =                    0003
      DELIVERY_DATE        =                    04.12.2002
      QUANTITY             =                    4.000
      Parameter: POSCHEDULEX
      PO_ITEM              =                    00001
      SCHED_LINE           =                    0001
      PO_ITEMX             =                    X
      SCHED_LINEX          =                    X
      DELIVERY_DATE        =                    X
      QUANTITY             =                    X
      PO_ITEM              =                    00001
      SCHED_LINE           =                    0002
    Parameter: POACCOUNT
    PO_ITEM              =                    00001
    SERIAL_NO            =                    01
    QUANTITY             =                    15.000
    GL_ACCOUNT           =                    0000400000
    COSTCENTER           =                    0000001000
    CO_AREA              =                    1000
    Parameter: POACCOUNTX
    PO_ITEM              =                    00001
    SERIAL_NO            =                    01
    QUANTITY             =                    X
    GL_ACCOUNT           =                    X
    COSTCENTER           =                    X
    CO_AREA              =                    X
    Parameter: POCOND
    ITM_NUMBER           =                    000001
    COND_ST_NO           =                    001
    COND_TYPE            =                    PB00
    COND_VALUE           =                    79.900000000
    CURRENCY             =                    EUR
    CURRENCY_ISO         =                    EUR
    COND_UNIT            =                    KG
    COND_P_UNT           =                    1
    CHANGE_ID            =                    U
    Parameter: POCONDX
    ITM_NUMBER           =                    000001
    COND_ST_NO           =                    000
    ITM_NUMBERX          =                    X
    COND_TYPE            =                    X
    COND_VALUE           =                    X
    CURRENCY             =                    X
    CHANGE_ID            =                    X
    Parameter: POPARTNER
    PARTNERDESC          =                    OA
    LANGU                =                    EN
    BUSPARTNO            =                    0000001100
    PARTNERDESC          =                    GS
    LANGU                =                    EN
    BUSPARTNO            =                    0000001200
    PARTNERDESC          =                    PI
    LANGU                =                    EN
    BUSPARTNO            =                    0000001000
    reward points if helpful....

Maybe you are looking for