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

Similar Messages

  • Modification in me23n :for specific purch. group ,user can enter specific

    Hi ,
    I have to make modification in me23n that for specific purchase group ,user can enter specific matrial no .But I have never did anything before  in standerd sap.So how I have to proceed in order to achieve this.
    Regards,
    Seema.

    Hi,
      This can be achieved using enhancements in SAP, which could be customer-Exits or BAdi implementations. I think this can be achieved using enhancement(Customer-Exit) MM06E005(Tcode-SMOD) function module EXIT_SAPMM06E_012.Here you have import parameter I_EKKO which will have purchase org and tables TEKPO which will ahve all lines so youc an add a custom check to validate materail based on purchase org.
    Regards,
    Himanshu

  • User Exit for MIGO for  batch

    Hi expert
    I am looking for user exits .at the time of migo when batch is generated into want the batch field to get grey, so the end user wont able to change the Batch no. and i want the grey field to be done for certain material. like ROH
    Can anyone of you suggest me a more appropriate User exit to work on. Please dont give me a list of user exits out there for migo as I have seen all those in Different threads.
    Thank You.
    Nabil

    Check with your ABAP person for BAdI MB_DOCUMENT_BADI ...here use the logic that system will check the MATNR...then for those MATNR their individual MTAT & if found MTAT = ROH then the CHARG field will be disabled.
    Also through the same logic check whether exit MBCFC003 can be used.
    Regards,
    Indranil
    Edited by: INDRANIL BHATTACHARYYA on Oct 1, 2010 9:49 AM

  • BasicService failure for Windows XP restricted user

    Hello,
    When I try to call BasicService.showDocument(url) to display an url and I'm logged in as a restricted user, i.e. not a power user or admin, in Windows XP the VM terminates immediately without any exceptions being thrown, nor anything being logged whatsoever. This does not happen for the user types with greater permissions.
    Any Ideas?
    Thanks,
    Jason

    This has been answered in http://forum.java.sun.com/thread.jsp?forum=38&thread=221502&start=0&range=15#1012828
    There is a defect that has been fixed in Webstart 1.2 referenced by http://developer.java.sun.com/developer/bugParade/bugs/4639931.html

  • JAVA CODE Restricting users from entering Fractional numbers in Data forms

    Hi,
    is there anyone who can help me with the Java Script code of ValidateData.js file?? I am very novice in scripting and find it very difficult to write a proper javascript code to restrict the users from entering fractional numbers to HEADCOUNT cell. I would very much appreciate if i get some help from anyone out there.
    Users should be able to only enter whole numbers to the cells for Headcount entry.
    Kindly give me the layout of the script to be used. Has anyone out there ever done anything like this??
    Looking forward for a help.
    Thanks.

    Hi,
    I think customCellEnterPre and customCellValidatePre is the function you'd be using
    http://download.oracle.com/docs/cd/E17236_01/epm.1112/hp_admin/apas02s01.html
    http://download.oracle.com/docs/cd/E17236_01/epm.1112/hp_admin/apas02s03.html
    http://download.oracle.com/docs/cd/E17236_01/epm.1112/hp_admin/apa.html
    You can refer to SampleValidateData.js that's within Planning deployment custom js folder for further reference and sample usage.
    Cheers,
    Alp

  • Please Help....On How to restrict user to enter into KM???

    Hi Experts,
    when ever user is clicking on a linkI am opening a document from the K.M. Here my problem is if user change the path, he is able to enter into KM... like..
    http://myEP:50000/irj/go/km/docs/documents/Links/World%20Time.htm
    This is the path to see an HTML page stored in KM. User is able to see the page... But when he changes the path to...
    http://myEP:50000/irj/go/km/docs/documents/Links/ 
    he is able to enter into KM into the corrosponding folder. How can I restrict him to enter into KM???
    Regards,
    Srinivas.

    Hi Gopal and S.J,
    Thank you both for your replies....
    This user is not assigned to Content Admin role....
    I have given permissions to the corrosponding folder for only one user (end user)...
    As you said(Gopal), I have seen the same case in some other portal site like...
    Assign permission for a particular folders to the end user.
    Then you will get the below message.
    The folder you are looking for has no displayable content.
    You can try one of the following:
    Access the folder using the Navigation user interface.
    Access the folder as a Web folder. Your operating system and browser dictate whether or not this will work.
    Even now I am getting the above message but still user can enter into KM....
    Regards,
    Srinivas.

  • How to Restrict user to enter the data in CAPS ONLY

    Hi,
    I have textinput in my page,i have to restrict the user to enter the data caps only.
    can any one help me on this.
    Karthik

    Hi,
    h1.
    I have textinput in my page,i have to restrict the user to enter the data caps only.
    -------u need to set the CSS class for this item
    Regards
    Meher Irk
    Edited by: Meher Irk on Oct 24, 2010 11:16 AM

  • How to restrict user to enter duplicate items in Purchase Order Lines?

    I have to do form personalization so that user cannot enter duplicate items in the PO.
    At when-new-item-instance in PO-Approve field, I have created a database function that is taking the count of items and returning the count value.
    In the condition I have given condition:
    1<(select func_name(parameter) from dual)
    10       message                 duplicate items in the po
    But its not working fine.
    Thanks & Regards
    Sunny

    Hi,
    The issue is resolved on my own exploration. We need to maintain the different authorization keys for the status which we did not want  a user  to access. If we leave it blank it will allow user to access.
    Regards,
    Sharath

  • BDC for MIGO for GR OutBound Delivery( A01 & R05 ) from Movement Type 107 to 109

    Hi,
    I am stuck with a very typical situation need all your expertise and advices for a solution.
    We are basically trying to create change the movement type from 107 to 109 through MIGO.
    I have made a BDC recording for MIGO ( because we would like to track each delivery specifically under shipment , I know that there is a BAPI which is there to do this but it works fine if we do the shipment with Purchase Order as input which dont want in that manner )
    Process:
    1. Creating Production Order
    2. Creating Purchase Order
    3. Creating STO
    4. Deliveries
    5. PGI for Deliveries
    6. Shipment for group of outbound Deliveries
    I have created a z program where i am passing shipment number in the selection screen.
    Then it would take all the deliveries for that shipment and pass each delivery to MIGO and process it and change the status from 107 to 109.
    Interesting part here is, the code works absolutely perfect only from my ID. But when I test from other ID it is not executing, so to check where is the problem I have added mess_tab to the CALL TRANSACTION to capture what message is been populated for my ID comparing with others
    Message Captured on Others ID's:
    MSGID: 00
    MSGNR: 344
    MSGV1: SAPLMIGO
    MSGV2: 1300
    Message Captured on MY ID:
    MSGID: MIGO
    MSGNR: 012
    MSGV1: 5000005802
    MSGV2: (empty)
    This is the problem this program is executing only on MY ID, rest all ID's it is not processing.
    We have cross verified with security and basis regarding any authorization issues but nothing came up.
    Please help me what could be the issue ( WHY it is processing successfully for my and WHY NOT for other ID's)
    Below is the main code :
    CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'                     " Converting Date format to DD/MM/YYYY
         EXPORTING
           DATE_INTERNAL            = sy-datum
         IMPORTING
           DATE_EXTERNAL            = lv_date_external
         EXCEPTIONS
           DATE_INTERNAL_IS_INVALID = 1
           OTHERS                   = 2.
           IF SY-SUBRC <> 0.                                     "#EC NEEDED
    * Implement suitable error handling here
           ENDIF.
    *   Validating input shipment number with database table VTTP
           SELECT VTTP~TKNUM
                  VTTP~TPNUM
                  VTTP~VBELN
             FROM VTTP INNER JOIN VTTK
             ON VTTP~TKNUM = VTTK~TKNUM
             INTO TABLE IT_VTTP
             WHERE VTTK~TKNUM = P_TKNUM
               AND VTTK~STDIS = 'X'.
           IF sy-subrc = 0.
    *   Validating all deliveries having same Delivery type or not
             SELECT * FROM likp INTO TABLE it_likp FOR ALL ENTRIES IN it_vttp WHERE vbeln = it_vttp-vbeln
                                                                                AND vbtyp = 'J'.
             IF sy-subrc = 0.
               CLEAR lv_lines.
               LOOP AT it_likp INTO wa_likp.
                 REFRESH:it_vbfa,BDCDATA.
    *   Validating if Delivery Type = 109 (GR already done), or Delivery Type = 107 (must process for GR )
                 SELECT * FROM vbfa INTO TABLE it_vbfa WHERE vbelv = wa_likp-vbeln
    *                                                AND vbtyp_v = 'J'
                                                         AND bwart = '109'.
                 IF sy-subrc = 0.
                   lv_flag1 = 'X'.
                 ELSE.
                   SELECT * FROM vbfa INTO TABLE it_vbfa WHERE vbelv = wa_likp-vbeln
    *                                                  AND vbtyp_v = 'J'
                                                           AND bwart = '107'.
                   IF sy-subrc NE 0.
                     MESSAGE 'No Deliveries with Movement Type "107" ' TYPE 'I'.
                   ELSE.
                     lv_flag2 = 'X'.
                     lv_lines = lv_lines + 1.
    **  BDC for MIGO
                     perform bdc_dynpro      using 'SAPLMIGO' '0001'.
                     perform bdc_field       using 'BDC_OKCODE'
                                                   '=OK_GO'.
                     perform bdc_field       using 'GODYNPRO-ACTION'
                                                   'A01'.
                     perform bdc_field       using 'GODYNPRO-REFDOC'
                                                   'R05'.
                     perform bdc_field       using 'GODEFAULT_TV-BWART'
                                                   '109'.
                     perform bdc_field       using 'BDC_CURSOR'
                                                   'GODYNPRO-OUTBOUND_DELIVERY'.
                     perform bdc_field       using 'GODYNPRO-OUTBOUND_DELIVERY'
                                                   wa_likp-vbeln. "'80019574'.
                     perform bdc_field       using 'GOHEAD-BLDAT'
                                                   lv_date_external. "'04/29/2015'.
                     perform bdc_field       using 'GOHEAD-BUDAT'
                                                   lv_date_external. "'04/29/2015'.
                     perform bdc_field       using 'GOHEAD-WEVER'
                                                   '1'.
                     perform bdc_dynpro      using 'SAPLMIGO' '0001'.
                     perform bdc_field       using 'BDC_OKCODE'
                                                   '=OK_POST1'.
                     perform bdc_field       using 'GODEFAULT_TV-BWART'
                                                   '109'.
                     perform bdc_field       using 'GOHEAD-BLDAT'
                                                   lv_date_external. "'04/29/2015'.
                     perform bdc_field       using 'GOHEAD-LFSNR'
                                                   wa_likp-vbeln. "'0080019574'.
                     perform bdc_field       using 'GOHEAD-BUDAT'
                                                   lv_date_external. "'04/29/2015'.
                     perform bdc_field       using 'GOHEAD-WEVER'
                                                   '1'.
                     perform bdc_field       using 'GODYNPRO-DETAIL_ZEILE'
                                                   '   1'.
                     perform bdc_field       using 'GOITEM-ERFME'
                                                   'EA'.
                     perform bdc_field       using 'GOITEM-ERFMG'
                                                   '1'.
                     perform bdc_field       using 'GOITEM-LSMNG'
                                                   '1'.
                     perform bdc_field       using 'GOITEM-LSMEH'
                                                   'EA'.
                     perform bdc_field       using 'GOITEM-MIGO_ELIKZ'
                                                   '1'.
                     perform bdc_field       using 'GOITEM-BWART'
                                                   '109'.
                     perform bdc_field       using 'GOITEM-LGOBE'
                                                   'RX Cross-docking'.
                     perform bdc_field       using 'BDC_CURSOR'
                                                   'GODYNPRO-DETAIL_TAKE'.
                     perform bdc_field       using 'GODYNPRO-DETAIL_TAKE'
                                                   'X'.
                     PERFORM bdc_dynpro      USING 'SAPLMIGO' '1300'.
                     PERFORM bdc_field       USING 'BDC_CURSOR'
                                                   'G_TIP_DONT_SHOW_AGAIN'.
                     PERFORM bdc_field       USING 'BDC_OKCODE'
                                                   '=OK_TIP_GO'.
                     PERFORM bdc_field       USING 'G_TIP_DONT_SHOW_AGAIN'
                                                   'X'.
    *& Avoid unncessary screens to populate while processing background.
                     LV_OPTIONS-DISMODE = 'N'.
                     LV_OPTIONS-UPDMODE = 'S'.
                     LV_OPTIONS-NOBINPT = 'X'.
                     CALL TRANSACTION 'MIGO' USING BDCDATA  OPTIONS FROM LV_OPTIONS MESSAGES INTO IT_MESSTAB1 .
                     WAIT UP TO 1 SECONDS.
                     DELETE IT_MESSTAB1 WHERE MSGTYP NE 'E'.
                     IF IT_MESSTAB1[] IS NOT INITIAL.
                       APPEND LINES OF IT_MESSTAB1 TO IT_MESSTAB.
                     ENDIF.
                   ENDIF.
                 ENDIF.
               ENDLOOP.
             ENDIF.
           ELSE.
             MESSAGE 'Shipment Number does not exists Or not Planned' TYPE 'E'.
           ENDIF.
         ELSE.
           MESSAGE 'Please insert Shipment Number' TYPE 'E'.
         ENDIF.
         IF lv_flag1 = 'X' AND lv_flag2 = 'X'.
           MESSAGE 'This shipment is processed with an inconsistent goods receipt' TYPE 'I'.
         ELSEIF lv_flag1 = 'X'.
           MESSAGE 'Shipment already been processed for these deliveries' TYPE 'I'.
         ELSEIF lv_flag2 = 'X'.
           lv_lines1 = lv_lines.
           CONDENSE lv_lines1 NO-GAPS .
           CONCATENATE lv_lines1 'Goods Receipt are posted for the shipment '
                  INTO lv_message SEPARATED BY space.
           MESSAGE  lv_message TYPE 'I'.
         ENDIF.
    * Display Messages from Message TAB.
         DELETE ADJACENT DUPLICATES FROM IT_MESSTAB.
         DATA:lv_msg TYPE string.
         LOOP AT IT_MESSTAB INTO WA_MESSTAB.
           CALL FUNCTION 'FORMAT_MESSAGE'
             EXPORTING
               ID        = WA_MESSTAB-MSGID
               NO        = WA_MESSTAB-MSGNR
               V1        = WA_MESSTAB-MSGV1
               V2        = WA_MESSTAB-MSGV2
               V3        = WA_MESSTAB-MSGV3
               V4        = WA_MESSTAB-MSGV4
             IMPORTING
               MSG       = lv_msg
             EXCEPTIONS
               NOT_FOUND = 1
               OTHERS    = 2.
           IF sy-subrc <> 0.
    * Implement suitable error handling here
           ENDIF.
           WRITE:/ lv_msg.
         ENDLOOP.
    *        Start new screen                                              *
       FORM BDC_DYNPRO USING PROGRAM DYNPRO.                 "#EC PF_NO_TYPE
         CLEAR BDCDATA.
         BDCDATA-PROGRAM  = PROGRAM.
         BDCDATA-DYNPRO   = DYNPRO.
         BDCDATA-DYNBEGIN = 'X'.
         APPEND BDCDATA.
       ENDFORM.
    *        Insert field                                                  *
       FORM BDC_FIELD USING FNAM FVAL.                       "#EC PF_NO_TYPE
         CLEAR BDCDATA.
         BDCDATA-FNAM = FNAM.
         BDCDATA-FVAL = FVAL.
         APPEND BDCDATA.
       ENDFORM.
    Thanks,
    Srini

    Hi Rob,
    Thanks for quick reply.
    I have checked the NOTE : 304122
    But there in the NOTE it says ( " BAPI, BAPI_GOODSMVT_CANCEL, BAPI_GOODSMVT_CREATE, CNTL_ERROR" )
    These BAPI's work perfectly for (purchase order as input type), but here out type is ( A01 & R05 ) we are giving DELIVERY NUMBER as input to MIGO.
    So for this scenario we cannot use those BAPI's mentioned in the NOTE.
    Also as stated earlier in the message interesting part is
    "The code works absolutely perfect only from my ID. But when I test from other ID it is not executing. Code is working exactly as expected ONLY to my ID. When i try to execute the same code from another's ID it is not working"
    So what do you think might be the issue?

  • Restricting User to Enter Only Date Value

    Dear Expertsl,
    Can we restrict users to insert only date value (in RRMMDD format ) in a column whose data type is number,
    Note that i cannot modify the column because there are already values entered in the column and cannot delete it.
    Regards

    Try to convert it to a date in the WHEN-VALIDATE-ITEM-trigger, if it works, its a date, like
    DECLARE
      dt DATE;
    BEGIN
      dt:=TO_DATE(:THEITEM, 'MMYYYY');
    EXCEPTION
      WHEN OTHERS THEN
        -- Show error message
        -- then raise error
        RAISE FORM_TRIGGER_FAILURE;
    END;

  • Restrict user to enter % sign in Text Item

    Dear All:
    I want to restrict the user to enter Percentage '%' and Under Score sign '_' in the Text Item.
    How is it possible?
    I am using Oracle Forms 10g.
    Thanks
    Hassan

    Here is a javabean solution..
    http://fdegrelle.over-blog.com/55-categorie-265996.html

  • Out put for MIGO  for multi items.

    Dear All,
    i am unable to take print out for Multi items in migo tranction. eventhough spool is not generating. If i select send immdiately option then document is update terminating, Document is not save. if i select 3rd optin " send by "send with application own tranction" then document will be saved and there is no spool as well as print option in Yellow colour.
    plz suggest me for multi items printout. And also suggest me for can i maintain in Tr code MN21 for single as well as collective slip print option for single output type.
    waiting for reply
    regards
    Ashok

    hi ashok,
    what is the output type you have assigned for the printing.
    in mn21 you create a output  type we03 with tr.event as we and print version as 3(collective slip ) at the time of Migo.
    print indicator as 1.
    you can also take the print in MB90.IN THIS you give the document no and processing mode as2 for reprinting and then execute.
    Regards,
    velu

  • Transaction MB01 we are trying to restrict user to only run Document Type U

    Dear All,
    In Transaction MB01 we are trying to restrict user in Document Type in Purchase Order and restriction is only user can create Document Type UB (Stock Transport Ord. )
    But I am create a dummy user and dummy role and assign MB01 to that role but it is not working I canu2019t understand why? What I can do wrong if nothing is wrong then what is the solution

    Document types also use the "authorization group" concept. You do not grant access to them individually, but rather protect groups of them and then grant the access back again.
    This means they are optional objects... --> which also implies that they are not the only objects...
    If a document type is not protected by an authorization group, then there is no check... --> except for the mandatory objects such as the movement type to actually use the document...
    This is normally explained, together with the customizing prerequisites, in transaction SU21.
    Cheers,
    Julius
    ps: Please do not duplicate-post the same question. To keep the forums tidy, we reject such posts.

  • Restricting users by creating other user Account in outlook

    Dear Team,
    I need to restrict users creating other mailbox account in outlook 2010/2007.
    We are using 2003 Exchange Server.
    Regards,
    RAJ

    Hi,
    Agree with Ed’s suggestion, creating mailbox is an Exchange level action and we cannot achieve that by Outlook.
    If you want to restrict users configuring accounts in Outlook client, I also recommend you ask for more professional help on our Office forum:
    https://social.technet.microsoft.com/Forums/office/en-US/home
    If you have any question, please feel free to let me know.
    Thanks,
    Angela Shi
    TechNet Community Support

  • How to stop user from using 961 mvt type in MB1C transaction code?

    Hi Friends,
    We have two companies. Already we have restricted end user for using 961 & 962 mvt type in MB1C transaction code in one company code 1000. Now, we want to restrict end user for using 961 & 962 mvt type in MB1C transaction code in other company code 1200.
    I have checked configuration using OMJJ transaction. But, it is there so there may be some different way of control.
    Can any body help me?
    Regards
    Siva

    Hi,
    To restrict/block the movement type,  the steps are:
    1. use transaction code OMJJ.
    2. Enter the movement type you want to block.[From 961 To 961](do for both961& 962)
    3. Select the Second option in the List which appears in the left. (Allowed Transaction).
    4. Remove the transaction codes (MB1C)from where you do not want to use that particular movement type& save.
    For user specific to block the movement type, pl consult Basis Consultant.
    Regards,
    Biju K

Maybe you are looking for