MIGO-Plnt restriction in ECC

Hi,
I have few  goods movement derived  roles with MIGO,ME2V  transactions.
which have been restricted by plant. In org level  I have populated with plant value.
we do have purchase org, purchasing group as * in org.level. but there is no relation between purch.group and plant.
I have assigned this goods movement role to a user . actually user should able to accees that perticular plant data. but he is able to access purchase orders in other plants as well.that means -ve testing is failed.
when I traced , what ever the auth,object and values are showing in trace report..  those objects are laredy existing in role.
can we restrict plant in MIGO ? can any one help me in this regard.
this is an urjent requirement .
Thanks in advance.

HI,
if the standard authority-checks are not sufficient, there are some exits available wher you coul perform own checks.....
I have found:
MB_CF001 Updating of material document data upon posting                   
MBCF0002 Filling the item text in the material document                    
MBCFC003 Maintaining batch master data upon goods movements                
MBCFC004 Maintaining batch specifications upon goods movements             
MBCF0005 Filling the item data on goods receipt/ issue slips               
MBCF0006 Transferring the number of the WBS element for subcontracting     
MBCF0007 Posting a reservation                                             
MBCF0009 Filling the Storage location field                                
IQSM0007 Serial numbers, user exit for goods movements                     
XMBF0001 Stock determination: - changing the stock determination rule -    
         Adjusting the stock determination item table                      
Each enhancement is documented.
b.rgds, Bernhard

Similar Messages

  • BADI for MIGO for restricting User to entered other MVT types?

    Hi All,
    BADI for MIGO for restricting User to entered other MVT types?
    I want to restrict some of user not to use 501 Movement type ..I already created a Ztable for checking User for 501 type.
    Please let me know any Enhancement to be used to restrict user ?
    Thanks and Regards
    Steve

    Hi Steave,
    You can use this enhancement exit MB_CF001, this exit will be called every time before posting, you can use your logic in this exit. see its documentation first before implementing.
    Regards
    Ahsan

  • Short dump in trx VL02N and MIGO after upgrade to ECC 6.0

    Hello,
    We are doing an upgrade from R/3 46C to ECC 6.0 and we face a shortdump in trx MIGO (upon saving the document).
    DBIF_RSQL_INVALID_REQUEST
    a BKPF_INSERT in program SAPLF005
    The same shortdump happens when doing a Goods Issue on the SD side.
    Looking at the program, this is not modyfied so I guess it is a standard SAP error.
    OSS however, up to know did not respond to my message and there does not seem to be a SAP Note on this issue!
    Anyone had this problem before. How did they solve it.
    Thanks for any reply,
    Aart

    When exactly does this error appear? On save? clicking on a specific entry?
    I suggest opening an OSS call for this problem, this doesn't seem to known (at least I didn't find any notes)
    Markus

  • Control/Restriction of ECC SoS as per Source List in MM ?

    Hi Experts,
    We are configuring SRM7.0 with ECC6 ( Ehp4) having Classic Scenario .
    We are going to use ECC Contract & info Record as a SoS in Shopping Cart in SRM.
    Can we control / restrict the proposing of these SoS as set in Source List in ECC just like in MM Module?Thanks
    NAP

    I checked it and it is Possible.

  • Universal Worklist task restrictions for ECC transactions

    All,
    We are on NW04 and have recently implemented the Universal Worklist (UWL) and have limited our tasks displayed to just two tasks as specified below as mentioned in thread: UWL restrict list of tasks to display .
    supportedItemTypes="uwl.task.webflow.TS21300098, uwl.task.webflow.TS90700186"
    These are both Web Dynpro java tasks (and configuerd in the Visualization SWFVISU) and this works as expected.  We would now like to add a new task which is not web dynpro.  It is a dailog task to an ECC transaction.  If I add the task to the string of supported item types, it does not appear.  If I remove the restrictions and change the supporteditemtypes parameter back to "uwl.task", then the new task appears and executes correctly.
    Can anyone assist with getting the transaction task to be a supported item type?  Do I need to add visualization for this task?  If so, what is the visualization type?  The options in the drop down in SWFVISU do not seem to apply.
    By the way, the approval task I'm adding is delivered task TS40007901 for approval of the CATS Timesheet.
    Any help is appreciated.  Thanks in advance.
    -Jeff-

    You can call also pages using the IViewLauncher.
            <Action name="launchWebDynPro" groupAction="" handler="IViewLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
              <Properties>
                <Property name="iview" value="ROLES://portal_content/Fresenius/kabi_nl/Iviews/ESS/Zeitmanagement/com.fresenius.Abwesenheitsmitteilung"/>
                <Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no"/>
                <Property name="DynamicParameter" value="wi_id=${item.externalId}"/>
                <Property name="openInNewWindow" value="yes"/>
                <Property name="display_order_priority" value="5"/>
              </Properties>
    But why would you want to have the navigation too in a new window ?
    That would confuse me as a user to have 2 navigations in 2 windows.
    The problem with UWL in general (using a popup) is that after you are finished in the popup,
    the task is still there. I get lots of complaints; waiting for EhP3 or 7.3. There should be a instant refresh UWL feature.....
    Regards,
    Kai

  • Restricting Creation/Update of Profit Center Master Data through KE51/KE52

    Hi,
    I have a scenario where profit center master data is maintained in MDM which acts as central repository and the master data is syndicated from MDM to ECC through PRCMAS IDoc. Business requirement is that since MDM is acting as central repository creation/update for profit center through transactions KE51/KE52 should be restricted in ECC. I know that through roles we can restrict user to create profit centers but is there any way/configuration steps which we can perform to restrict user to create profit centers through transaction and I also want to know if that process would affect the creation/updation of master data through PRCMAS IDoc.
    Thanks,
    Amit

    Hi,
    As I told you can go forward using SetID but for that you have to create the SET than assign it to a table and also have to cutomize a standard FM.
    Meanwhile I will tell you a easy way you can opt for Transaction Variant usinh SHD0 where dont give the option to save so that no user can create any Profit Centre and than assign that Tcode to the users.
    Its a simple way hope it helps you.
    Thanks
    Arbind

  • Excise Base value wrong in MIGO

    Hello ,
    PB00 and some Z condition types are used in Pricing Procedure....And Excise is calculted
    on the addition of PBoo+Z condition types, The BED and ECS and SECess is calculted correctly
    While capturing the excise invoice in MIGO
    We are using Ecc 6.0
    While MIGo iam planng to capture the excise Invoice, while in Excise Invoice Tab, iam selecting
    the "only Capture Excise Invoice"(In header)
    In Item level Excise tab... we may see the BED.ECS,SECess  and excise base value
    We are getting the BED and ECS and SECESS  is calculting the values correctly  BUT
    The Excise Base Value showing in the Base value field is wrong... why?
    It is only showing the PB00 value here means PB0O value * Qty.......  Here it is not giving the
    addttion of Z condition types
    But the BED and remaining values are calculated on PB00 and Z condition type.  But why system
    is taking only PB00 value in Base value tab in MIGO.
    Regards
    sapman man

    Hello.
    In this Z conditions are Stastical .... and We are not asigning any Account keys to them.....
    In This case..... while Procurning the material for manufacturing plant..We are get the BED and ECS and SECEss are calculated on ZMRP-ZABT charges....
    He re in our case the BED and ECS and SECess are correct. means it is calculated on ZMRP-ZABT charge...... But In MIGO the Base value shown is worng.... i,e is only showing us the PB00 value(means PB00 X Qty)
    How to get the correct excise base value
    Regards
    Sapman man

  • Updating custom fields to MSEG through MIGO

    Hi,
    I got a requirement to add a tab with custom fields in MIGO transaction, which I did using BADI MB_MIGO_BADI
    and requirement also says to extend table MSEG with custom fields and store the values in MSEG.
    I have gone through example implimentation and updated MSEG in similar way. IS it a good approach to extend MSEG table? I read one thread says we can't extend MSEG table with custom fields. is it true?
    Goods receipt will be done only through MIGO to restrict inconsistensies in material documents.
    One more question.
    How to restrict the additional custom screen to be displayed for particular action in MIGO?
    Thanks

    Hi,
    Yes you can do it, i did it with the same BADI method to update to custom fields in MSEG table through MIGO transaction.
    Here is the steps you need to follow :-
    1. Create a append structure or you can use the CI include to add fields in MSEG table. I did it though append structure only.
    2. Create a implementaion of MB_MIGO_BADI through SE18 or SE19 transaction.
    3. Inplement the interface IF_EX_MB_MIGO_BADI methods, the details of interface implementaions are described below:-
    Attribute
    GV_VEND_LOT     Instance Attribute     Public     Type     CHAR1     'X' : Purchase order Type NB (Standard PO) found                                                                               
    GIT_MSEG     Instance Attribute     Public     Type     TY_T_MSEG     Table MSEG                                                                               
    GV_BSART     Instance Attribute     Public     Type     ESART     Purchasing Document Type                                                                               
    GV_GRMODE     Instance Attribute     Public     Type     CHAR1     X: Document is of Type GR with PO and Y : Document with Mat.                                                                               
    GWA_MSEG     Instance Attribute     Public     Type     MSEG     Document Segment: Material                                                                               
    GC_CLASS_ID     Constant     Private     Type     MIGO_CLASS_ID     Class ID for MIGO Components (External Detail Screen)     'ZIMP_MB_MIGO_BADI'
    GV_LINE_ID     Instance Attribute     Private     Type     GOITEM-GLOBAL_COUNTER     LINE_ID of Line Displayed in Detail                                                                               
    GIT_LINE_ID     Instance Attribute     Private     Type     /KYK/TRG_NUMC6     Range Table: NUMC6                                                                               
    GWA_LINE_ID     Instance Attribute     Private     Type     /KYK/SRG_NUMC6     Range Structure: NUMC6                                                                               
    GC_X     Constant     Private     Type     CHAR1     'X' : Select     'X'
    GC_BSART     Constant     Private     Type     ESART     Purchasing Document Type     'NB' 
    IF_EX_MB_MIGO_BADI~INIT
    METHOD if_ex_mb_migo_badi~init.
      IF gv_grmode = gc_x.
    Regristration of BAdI-Implementation:
    Append class attribute GF_CLASS_ID (='ZIMP_MB_MIGO_BADI') to
    regristration table.
        APPEND gc_class_id TO ct_init.
      ENDIF.
    ENDMETHOD.
    IF_EX_MB_MIGO_BADI~PBO_DETAIL
    METHOD if_ex_mb_migo_badi~pbo_detail.
    Lines added to do display Vendor lot tab in the item level
    Only for Purchase order type NB (Standard PO)
    Local constants
      DATA : lc_cprog TYPE sycprog VALUE 'ZMMM_MIGO_VENDOR_COO',
             lc_dynnr TYPE sydynnr VALUE '0100'.
            lc_heading TYPE migo_badi_heading VALUE 'Vendor Lot Number'.
    Read Line item from buffer table
    if sy-subrc =0 then only display vendor lot tab
      READ TABLE git_line_id WITH KEY low = i_line_id
      BINARY SEARCH TRANSPORTING NO FIELDS.
      IF sy-subrc EQ 0 AND ( gv_grmode IS NOT INITIAL
        AND gv_vend_lot = gc_x ).
        e_cprog   = lc_cprog. " Program name
        e_dynnr   = lc_dynnr. " Screen number
        e_heading = text-001. " Tab Heading
        gv_line_id = i_line_id. " line Item
      ENDIF.
    ENDMETHOD.
    IF_EX_MB_MIGO_BADI~PAI_DETAIL
    METHOD if_ex_mb_migo_badi~pai_detail.
      IF gv_grmode IS NOT INITIAL AND gv_vend_lot = gc_x.
    'X':  The Method LINE_MODIFY Is Processed
        e_force_change = gc_x.
    Reset the Flag for next line item selection
        CLEAR gv_vend_lot.
      ENDIF.
    ENDMETHOD.
    IF_EX_MB_MIGO_BADI~LINE_MODIFY
    METHOD if_ex_mb_migo_badi~line_modify.
      IF cs_goitem-ebeln IS NOT INITIAL.
    Look for Purchase order number from EKKO and get the Order Type.
    If the Order type is NB (Standard PO) then set the flag GV_VEND_LOT.
        SELECT SINGLE bsart FROM ekko INTO gv_bsart
          WHERE ebeln = cs_goitem-ebeln.
        IF sy-subrc EQ 0 AND gv_bsart = gc_bsart.
          gv_vend_lot = gc_x.
          IF NOT i_line_id IS INITIAL.
            gwa_line_id-low = i_line_id.
          ENDIF.
          IF git_line_id IS NOT INITIAL.
            SORT git_line_id BY low.
          ENDIF.
          READ TABLE git_line_id WITH KEY
          low = i_line_id BINARY SEARCH
          TRANSPORTING NO FIELDS.
          IF sy-subrc <> 0 AND gwa_line_id IS NOT INITIAL.
            APPEND gwa_line_id TO git_line_id.
          ENDIF.
        ELSE.
          CLEAR gv_vend_lot.
        ENDIF.
        CLEAR : gv_bsart,
                gwa_line_id.
      ENDIF.
    *************Buffer MSEG table with custom fields **********************
    *Item is Adopted in Document
      IF NOT cs_goitem-take_it IS INITIAL.
        CLEAR gwa_mseg.
        MOVE-CORRESPONDING cs_goitem TO gwa_mseg.
        APPEND gwa_mseg TO git_mseg.
      ENDIF.
    ENDMETHOD.
    METHOD if_ex_mb_migo_badi~post_document.
    Delete duplicate line item if avail in GIT_MSEG table
      SORT git_mseg BY zeile.
      DELETE ADJACENT DUPLICATES FROM git_mseg COMPARING zeile.
    To access these valu in Ennhancement Spot ZENHIMPL_MM_MB_MIGO_BADI_MB
      EXPORT : git_mseg FROM git_mseg TO MEMORY ID 'GIT_MSEG',
               gv_grmode FROM gv_grmode TO MEMORY ID 'GV_GRMODE'.
    Refresh all class content
      CLEAR : gv_vend_lot,
              gv_bsart,
              gv_grmode,
              gwa_mseg,
              gv_line_id,
              gwa_line_id.
      REFRESH : git_mseg,
                git_line_id.
    ENDMETHOD.    
    METHOD if_ex_mb_migo_badi~mode_set.
    Local Constants
      DATA : lc_a01 TYPE goaction VALUE 'A01', " Goods Receipt
             lc_r01 TYPE refdoc VALUE 'R01',   " Purchase order
             lc_a04 TYPE goaction VALUE 'A04', " Display
             lc_r02 TYPE refdoc VALUE 'R02',   " Material Document
             lc_y   TYPE char1 VALUE 'Y'.      " Indicator for Display material document
    Set mode variable for Good Receipt with Purchase order
      IF i_action = lc_a01 AND i_refdoc = lc_r01.
        gv_grmode = gc_x.
      ELSEIF i_action = lc_a04 AND i_refdoc = lc_r02.
    Set mode variable for Good Receipt with Purchase order
        gv_grmode = lc_y.
      ELSE.
        CLEAR gv_grmode.
      ENDIF.
    ENDMETHOD.
    METHOD if_ex_mb_migo_badi~publish_material_item.
      IF ls_goitem-ebeln IS NOT INITIAL.
    Look for Purchase order number from EKKO and get the Order Type.
    If the Order type is NB (Standard PO) then set the flag GV_VEND_LOT.
    This method is used to material document display
        SELECT SINGLE bsart FROM ekko INTO gv_bsart
          WHERE ebeln = ls_goitem-ebeln.
        IF sy-subrc EQ 0 AND gv_bsart = gc_bsart.
          gv_vend_lot = gc_x.
          IF NOT ls_goitem-zeile IS INITIAL.
            gwa_line_id-low = ls_goitem-zeile.
          ENDIF.
          IF git_line_id IS NOT INITIAL.
            SORT git_line_id BY low.
          ENDIF.
          READ TABLE git_line_id WITH KEY
          low = ls_goitem-zeile BINARY SEARCH
          TRANSPORTING NO FIELDS.
          IF sy-subrc <> 0 AND gwa_line_id IS NOT INITIAL.
            APPEND gwa_line_id TO git_line_id.
          ENDIF.
        ELSE.
          CLEAR gv_vend_lot.
        ENDIF.
        CLEAR : gv_bsart,
                gwa_line_id.
      ENDIF.
    ENDMETHOD.
    METHOD modify_mseg.
      DATA : lwa_mseg TYPE mseg.
    Check if buffer MSEG table is not initial
    and mode is GR with PO then only update XMSEG from GIT_MSEG
      IMPORT : git_mseg TO git_mseg FROM MEMORY ID 'GIT_MSEG',
               gv_grmode TO gv_grmode FROM MEMORY ID 'GV_GRMODE'.
      IF git_mseg IS NOT INITIAL
         AND gv_grmode = gc_x.
        SORT git_mseg BY zeile.
        LOOP AT xy_mseg INTO lwa_mseg.
    Identify the record and update XMSEG
          CLEAR gwa_mseg.
          READ TABLE git_mseg
          INTO gwa_mseg
          WITH KEY zeile = lwa_mseg-zeile BINARY SEARCH.
          IF sy-subrc EQ 0.
            MODIFY xy_mseg FROM gwa_mseg
            TRANSPORTING zvendlot zcoo WHERE zeile = gwa_mseg-zeile.
          ENDIF.
          CLEAR lwa_mseg.
        ENDLOOP.
    Reset buffer table and mode
        REFRESH git_mseg.
        CLEAR gv_grmode.
      ENDIF.
    Free memory ids
      FREE MEMORY ID : 'GIT_MSEG',
                       'GV_GRMODE'.
    ENDMETHOD.
    4. Now go to the function module MB_POST_GOODS_MOVEMENT andcall the method modify_msegfrom the implemented class ZCL_IM__MB_MIGO_BADI.
    ENHANCEMENT 110  ZENHIMPL_MM_MB_MIGO_BADI_MB.    "active version
    Data declaration for badi method
      Data : lo_ZCL_IM__MB_MIGO_BADI TYPE REF TO ZCL_IM__MB_MIGO_BADI.
      CREATE OBJECT lo_ZCL_IM__MB_MIGO_BADI.
      if sy-subrc eq 0 and xmseg[] is NOT INITIAL.
        CALL METHOD lo_zcl_im__mb_migo_badi->modify_mseg
          CHANGING
            xy_mseg = xmseg[].
      endif.
    ENDENHANCEMENT.   
    Regards,
    Dhirendra Pandit

  • Block posting for restricted stock

    Dear all,
    Currently when perform migo for restricted stock,system only show warning message.
    How to block the system to perform any posting for restricted stock?
    Thank you

    check the message number and change the message category form warning to Error at SPRO: MM > Inventory management and physical inventory > define attributes to system messages.
    OR
    take ABAP help

  • How MIGO/MIRO updates SRM PO with GR/IR number?

    Hi Experts,
    For a ECS SRM PO, if we do MIGO/MIRO directly in ECC, which FM updates the PO history in SRM with ECC GR/IR number immediately? Since CLEANER or GET STATUS jobs run at intervals, I guess these jobs do not do it.
    So I would like to know the call stack of FMs. What is the FM that is called by MIGO/MIRO transaction till the FM that updates PO's RELATED DOCs section with ECC GR/IR number?
    Thanks!
    Regards,
    Karthik

    Hi Karthik,
    If you post GR directly in ERP via MIGO, when program clean_reqreq_up processes the "AV" entry of the PO in table bbp_document_tab, it will only update the statistics data of SRM PO. GR document number is not updated back and saved anywhere in SRM PO.
    Report: clean_reqreq_up
    =========================================================
                    WHEN gc_doc_be_po_call_offs.
                      CALL FUNCTION 'BBP_PD_PO_ACT_VAL_UPDATE'
                        EXPORTING
                          iv_po_number   = selarea-reqno
                          iv_no_statics  = gc_yes
                        EXCEPTIONS
                          po_locked      = 2
                          internal_error = 2
                          OTHERS         = 2.
    =========================================================
    System will only read the GR document information when you check the SRM document history, for example, navigate to the Tracking tab at PO header or Related Document tab at PO item.
    Regards,
    Wendy

  • SAP AFS and SAP ECC

    Hi,
    As I understand AFS offers additional functionalities required for Apparel industry but does it take away or restricts standard ECC functionalities.
    What If an organization is into 2 businesses i.e. Garments and FMCG, can they still go ahead and use SAP AFS for both businesses? Is there an impact on Master data, logistics related processes, Financial reporting etc?
    Business processes and dynamics in terms of planning, transactions and reporting are quite different for Apparel and FMCG businesses. I am new to AFS and would request experts to guide me on such a solution proposal.
    Please share your views.
    Thank You
    Manish

    Hello Vishal,
    Thanks for the information.
    What about version management of ECC and AFS? I mean with release on a new enhancement pack of ECC, certain new business functionalities are offered...but with AFS being active, will it not mean that the customer has to wait till the add-on of AFS is also made compatible?
    Just the way you mentioned about PP-PI issue... are there any other business functionalities that get impacted? I did come across a message posted where it is stated that free goods functionality is not available with AFS being activated.
    Is there any official document from SAP on how AFS activation restricts ECC functionalities...like the one of PP-PI you mentioned?
    Thanks
    Manish

  • Creation of Batch number

    Hi Experts,
    I have a probelm with the Transaction MIGO to restrict the ignore the batchnumber entered by the user.
    If the user is not enter the batch number, then i can generated the new number by using the following 2 UE's
    EXIT_SAPLV01Z_001 (ZXVBZU01)  & EXIT_SAPLV01Z_002 (ZXVBZU02) and it is working fine.
    If the user enters , then System first check that whether it is already exist in the Database . If it won't find then automatically it is considering the same number.Which needs to be stopped.
    Any body has an idea about this requirement, to ignore the user entered value.
    Actually, there are 2 more exists, EXIT_SAPLV01Z_011& EXIT_SAPLV01Z_012 there i can't change the value of the batch number.
    Any suggestion or Any alternative way or Any idea Please......?
    Warm Regards,
    Vijay

    Hi,
    I think you can restrict by using FM EXIT_SAPLV01Z_001, this i copied the FM documentation for your reference. Just read the FM documentation you will get an idea
    You can restirict by using automatic generation using number ranges
    <<Function module Documentation>>
    Functionality
    You can use this customer function call (CFC) to replace the standard number range (object, subobject, number range, and year) with one of your own. This is used subsequently to determine a new batch number.
    Number assignment is carried out using the central number assignment.
    The communication structure X_BNCOM contains the application data known up to this time. You can extend this structure in the DDIC using structure BNCOMZ.
    Using the parameter CUST_NO_INTERNAL, you can suppress the number assignment function. Then you can either generate a batch number in function module EXIT_SAPLV01Z_002 using your own criteria or suppress the entire number assignment function.
    Using the parameter MESSAGE_WHEN_AUTO, you can decide if a dialog box is to appear before a new number is assigned. This only happens during online processing.
    Example
    You can define internal batch number assignment according to your requirements via the enhancement SAPLV01Z with the exits EXIT_SAPLV01Z_001 and EXIT_SAPLV01Z_002
    SAP delivers a total of 6 examples for batch number assignment:
    1. Copying the production order number to the batch number
    2. Copying the sales order number to the batch number
    3. Material-type-dependent batch number assignment
    4. Material-number-dependent batch number assignment
    5. Including the date in the batch number
    6. Including the plant number in the batch number
    For examples 1 and 2 you have to use the exits EXIT_SAPLV01Z_001 and EXIT_SAPLV01Z_002.
    For examples 3 and 4 you have to use the exit EXIT_SAPLV01Z_001.
    For examples 5 and 6 you have to use the exitEXIT_SAPLV01Z_002.
    For a detailed description of the examples, see below.
    Prerequisites
    1. Internal batch number assignment via the customer exit is activated:
    To do this, in Customizing, choose Logistics general -> Batch management -> Batch number assignment -> Activate internal batch number assignment.
    2. Maintaining the number range object
    Two number range objects are provided for batch number assignment:
    Standard number range for batch number assignment BATCH_CLT
    Number range for material-type-dependent or material-number-dependent batch number assignment BATCH_MAT
    Activities
    1. Use the SAP enhancement SAPLV01Z:
    a) In transaction CMOD, create either a new project or use an existing project.
    b) Add the SAP enhancement SAPLV01Z to the project.
    2. Copying the example code:
    a) Choose Component.
    b) Choose Change.
    c) Choose:
    EXIT_SAPLV01Z_001 for examples 1-4
    EXIT_SAPLV01Z_002 for examples 1-2 and 5-6
    d) Choose Edit -> Copy SAP source text.
    The example code is copied to the relevant table in the function module exit.
    e) To copy the example, remove the comment symbol before the include it pertains to.
    3. Activate the project.
    When you activate the project, the enhancement with the function module exits EXIT_SAPLV01Z_001 and EXIT_SAPLV01Z_002 comes into effect.
    Examples
    Example 1
    Copying the production order number to the batch number
    When a batch is produced, the process order number or production order number is copied as the batch number. This type of assignment is only possible in connection with process orders or production orders.
    Outwith an order, a number range is determined for batch number assignment. In this example, it is the standard number range BATCH_CLT.
    If the order has not yet been saved (for example, when a number is assigned when the order is created), a temporary number is created. A message appears prompting you to save the order. The system then assigns an order number which is accepted as the batch number.
    The system checks whether a batch already exists with this number. If this is the case, the system aborts internal batch number assignment with a corresponding error message.
    Note:
    In this example, note that the include LXVBZB21 in EXIT_SAPLV01Z_002 has to be activated at the same time, as actual batch numbers are not assigned until this is activated.
    Example 2
    Copying the sales order number to the batch number
    If a batch number is assigned in connection with a sales order, the sales order number is accepted as the batch number.
    If there are no sales orders, a number range object is defined with a number range from which the batch number is taken. If a batch already exists with this sales order number, the batch number is assigned externally.
    Note:
    In this example, note that the include LXVBZB22 in EXIT_SAPLV01Z_002 has to be activated at the same time before actual number assignment can take place.
    Example 3
    Material-type-dependent batch number assignment
    In the number range object BATCH_MAT a separate sub-object is created for each material type. Note that the number range object is maintained accordingly or batch number assignment cannot take place.
    For example, if the material "flour" belongs to raw materials, it is maintained in the sub-object ROH, and the batch number is taken from the same number range as the material "eggs" which also belongs to the raw materials group.
    Example 4
    Material-number-dependent batch number assignment
    In material-number-dependent batch number assignment, materials that are handled in batches must be maintained in the table BNMAT, which specifies the assignment of the material to the number range.
    If there is no assignment in the table, the system aborts batch number assignment. An error message appears informing you that batch number assignment is not possible and specifying the table that has to be maintained.
    Each material number is assigned a number range object, a sub-object, and a number range in the table BNMAT. This is how each material receives its own batch number range.
    The number range object BATCH_MAT is an example of this. The material numbers are divided into groups via their material type that match the sub-object. Each material number is then assigned its own number range by table BATCH_MAT. The number ranges used must be maintained in the number range object.
    Examples 5 and 6
    Including the date or plant number in the batch number
    The number ranges for the batch numbers must be defined in a way that ensures that no characters are overwritten by the templates.
    Parameters
    X_BNCOM
    CUST_NO_INTERNAL
    NR_RANGE_NR
    OBJECT
    SUBOBJECT
    TOYEAR
    MESSAGE_WHEN_AUTO
    MESSAGE_DONE
    Exceptions
    CANCELLED
    Regardas
    Krishna

  • MM-Purchasing doubts

    Hello All,
    I've some queries on purchasing and inventory management. request your help on the same:
    1) My client wants to restrict users to post goods receipt after the validity period mentioned in the Purchase order (Addl data).
    Is there any message or config that needs to be done?? Or any other purchasing document which can be used??
    2) Is there any way by which we can restrict "future date" in purchase orders?
    3) The client send materials for subcontracting. These materials are maintained in KG. However the finished products come in EA/ NOS. Now the client is not sure whether the subcontractor is sending him the entire finshed products.
    Example: The client says that for 100 KG used,  95-100 pipes (of say 30mm and 10metre) are to be manufactured. However the client gets 80-85 EA/NOS from the subcontractor.
    So the client is unable to track if they are getting the entire lot or there is any losses to be booked to the subcon.
    How can address this issue?
    Would appreciate if the solutions are in detail.
    Regards,
    Manoj

    Hi,
    If you are using Purchase Order document in SAP for your procurement then your first 2 requirements can't be met in standard SAP. Hence you have to find out same BADI's in MIGO for restricting GRN based on validity date mentioned in the PO. Also to control the entry of future document date in PO you have to use some BADI's/exits.
    Your last requirement can be met by maintaining/using Alternative UOM in Material master for KG & EA, also maintain a proper BOM with correct qty's for the Parent & Child material.
    Thanks & Regards,

  • Buind User ID with IP

    Hi All,
    I want to restrice some User to log on from specific IP Address.
    No any other user are allowed to logon from that IP except which I defined.
    e.g. From IP address 111.111.111.11, only User ID TEST1 is allowd to logon in SAP server. If User ID TEST2 will try to Logon from IP address 111.111.111.11, then User TEST2 is not able to  logon in the system
    Is it possible to do this kind of restriction in ECC 6.0? If yes then how?
    Regards,
    Nisit

    Hi,
    There is no such facilities available in SAP Logon pad still (as far as I know). For this I would suggest to raise a support message to SAP and check their comments.
    Regards,
    Dipanjan

  • How to restrict the quantity & rate of MIRO with MIGO and PO

    Hi friends,
    Can any body tell me how to restrict the quantity & rate of MIRO with MIGO and PO.
    e.g. if we have done MIGO for quantity 10 and the rate maintained in the PO is Rs.100.Then at the time of MIRO system should not allow to change the quantity and rate.
    How we can do this?
    Regards  
    Purnesh Sharma

    Hi,
    You are misunderstanding the use of MIRO.
    If you change the details in MIRO you are NOT changing anything. You are just entering the price and quantity from the Invoice.
    If this price and or qty is different from the GR aqty and PO price then the system will block the invoice for payment (and it can issue messages toinform the buyer if configured correctly).
    The whole design of MIRO is based on the principle that you enter EXACTLY what the vendor has put on the invoice. By preventing the users from changing anything you will get NO mismatched invoices, but you will not be paying the vendor the amount specified on their invoice. This will surely cause problems.
    If you do want to ensure that ONLY the GR qty and the PO price are used and cannot be changed then why not consider using ERS (Eveluated Receipt Settlement. this is basically self billing.
    Effectively you will be paying the vendor based on what you have received in MIGO multiplied by the price from the PO. (which is what you would be doing if you stop any changes in MIRO)
    Steve B

Maybe you are looking for