Problem in ME22n - BADI.

HI Experts,
I have a requirement to make in transaction ME22n.I have used BADI - ME_PROCESS_PO_CUST.
After selecting the Purchase Order Type(MEPO_TOPLINE-BSART) for only a list of specific types and clicking on the
Check box -- Delivery Complete (MEPOITEM-ELIKZ) in the Item ->Delivery tab, It should trigger a popup.
I am able to trigger this well, But the problem is If I save the changes made and then change the PO type to some other specified in my list of choices. The popup is still triggered.
I have coded with conditional If for checkbox ='X' and taking the field  MEPOHEADER-BSART and then proceeded.
Please help me to solve this.
Regards,
Gopinath

the code is:
DATA : w_mepoheader TYPE mepoheader.
  CLEAR: g_po_type_flag,
         g_po_ebeln.
  w_mepoheader = im_header->get_data( ).
  CASE w_mepoheader-bsart.
    WHEN 'ZNB'.
      g_po_type_flag = 'X'.
      g_po_ebeln = w_mepoheader-ebeln.
    WHEN 'NB'.
      g_po_type_flag = 'X'.
      g_po_ebeln = w_mepoheader-ebeln.
    WHEN 'ZPO3'.
      g_po_type_flag = 'X'.
      g_po_ebeln = w_mepoheader-ebeln.
    WHEN 'ZPO4'.
      g_po_type_flag = 'X'.
      g_po_ebeln = w_mepoheader-ebeln.
    WHEN 'ZPO5'.
      g_po_type_flag = 'X'.
      g_po_ebeln = w_mepoheader-ebeln.
    WHEN 'ZUB1'.
      g_po_type_flag = 'X'.
      g_po_ebeln = w_mepoheader-ebeln.
  ENDCASE.
  DATA: w_returncode(1)  TYPE c,
        w_mepoitem       TYPE mepoitem,
        l_flag           TYPE c,
        notify_type      TYPE c LENGTH 5 VALUE 'L2',
        w_bdcdata        TYPE bdcdata,
        w_bdcdata_tab    TYPE TABLE OF bdcdata,
        w_options        TYPE ctu_params.
  w_mepoitem = im_item->get_data( ).
  IF g_po_type_flag = 'X'.
    IF w_mepoitem-elikz = 'X'.
      l_flag = 'X'.
    ENDIF.
  ENDIF.
  IF l_flag = 'X'.
    CALL FUNCTION 'POPUP_TO_CONFIRM'
      EXPORTING
        titlebar              = 'Clorox '
        text_question         = 'Do you want to create a Vendor Quality Notification?'(001)
        text_button_1         = 'Yes'(002)
        icon_button_1         = 'ICON_OKAY'
        text_button_2         = 'No'(003)
        icon_button_2         = 'ICON_CANCEL'
        default_button        = '1'
        display_cancel_button = ''
        popup_type            = 'NO_ICON'
      IMPORTING
        answer                = w_returncode.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
  ENDIF.

Similar Messages

  • ME22N badi problem

    Hi gurus
    ME_GUI_PO_CUST am using this badi to add some fields in me22n.
    but when the value in the fields is changed and saved it shows message " no data changed"
    am setting in the method if_ex_me_gui_po_cust~transport_from_dynp
    re_changed = mmpur_yes.
    even it is showing the data not changed
    any body has any idea about this.
    Thanks

    Thanks all
    REsolved on own.
    For reference
    in method
    IF_EX_ME_PROCESS_PO_CUST~FIELDSELECTION_HEADER
       call method im_header->set_changed  .

  • Error message problem in ORDER_SAVE badi.

    I have used a error message using MESSAGE statement in ORDER_SAVE badi. The problem is when I press the save button and if the condision fails it shows error message. After if you press enter it shows the order is saved.
    It is strange. Please help.

    Can you give some more information?
    1. Which method of the badi are you using?
    2. Do you raise the exception error_occured in this method?
    In general, if you use change_before_update method and raise the exception if you do not want to save the order, the order would not be saved. This exception should be raised every time the method is executed if you do not want to save the current order.
    See the standard implementation class CL_IM_CRM_BUS20001_UPLOAD.
    Hope this helps. If not, post the code, so that I can check.
    Prakash

  • Problem in me22n transaction

    Hi friends ,
    i am facing to find the bug in an user exit.ur  experiences can help me to  fix that easily .
    Scenario  : when we click on  save in me21n or me22n  , it prompts a dilogue box for reason codes , for each PO created in case of me21n and for each new line item that is being updated in case of me22n while we click next item on dilogue box . at the end it gives a message saying that last line item is reached  . finally we click update on dilogue box , they are  saved in database .
    Problem : it s going well in case of me21n , but in case of me22n , when click on update it is again prompting for reason code for last item for (last item no  -1) times before saving in database.  for ex : 5 new items are there to update . aftere entering reason codes for all line items while clickingon  next item ,message is prompted that last item is reached . then we choose update , it again prompting dialogue box for reason code for last item 4 times .we need to enter 5+ (5-1) times .
    My Analysis : dilogue box is prompted by a function module called in that  exit.there he is looping an itab constructed with new items and reason codes captured  while we entered .

    Hi,
    Only an User exit is enough for you to achieve this at item level.
    In the Main program of PO SAPMV50A  search for the include MV50AFZZ * or MV50AF* (i am not sure, take the right one for User exits and write the code for Item level
    such that : if the Indicator = N, then modify the field Vendor.
    regards.
    Anji

  • Problem on Implementing badi ME_GUI_PO_CUST

    Hi Expert,
    I have implement BADI ME_GUI_PO_CUST, to add the new tab.
    I have managed to View the tab in Both ME21N, and ME22N with implement SUBSCRIBE and MAP_DYNPRO_FIELDS.
    method IF_EX_ME_GUI_PO_CUST~SUBSCRIBE
      DATA: ls_subscriber LIKE LINE OF re_subscribers.
      CHECK im_application = 'PO'.
      CHECK im_element = 'ITEM'.
      CLEAR re_subscribers[].
      ls_subscriber-name = subscreen1.
      ls_subscriber-dynpro = '0002'.
      ls_subscriber-program = 'ZRPP_ME_GUI_PO_CUST_SCREEN'.
      ls_subscriber-struct_name = 'CI_EKPODB'.
      ls_subscriber-label = text-001.
      ls_subscriber-position = 7.
      ls_subscriber-height = 7.
      APPEND ls_subscriber TO re_subscribers.
    METHOD : IF_EX_ME_GUI_PO_CUST~MAP_DYNPRO_FIELDS
      FIELD-SYMBOLS: <mapping> LIKE LINE OF ch_mapping.
      LOOP AT ch_mapping ASSIGNING <mapping>.
        CASE <mapping>-fieldname.
          WHEN 'ZCNUM'.      <mapping>-metafield = mmmfd_cust_01.
        ENDCASE.
      ENDLOOP.
    Method IF_EX_ME_GUI_PO_CUST~MAP_DYNPRO_FIELDS
      DATA: lw_fieldselection LIKE LINE OF ch_fieldselection.
      LOOP AT ch_fieldselection INTO lw_fieldselection.
        lw_fieldselection-fieldstatus = '+'.
        MODIFY ch_fieldselection FROM lw_fieldselection.
      ENDLOOP.
    I need to store the value, and some of thread said it required methods:
    TRANSPORT_FROM_MODEL
    TRANSPORT_TO_DYNP
    TRANSPORT_FROM_DYNP
    TRANSPORT_TO_MODEL
    I have click on the subcreen, or enter at the field, but it will not able to trigger the Above Methods.
    How do I do for the to trigger above Methods? Or Should I added some additional code at screen program? I want SAVE the data actually into EKPO.
    Thanks in advance.

    Hi Sim,
    Recently we have the same reqirement.
    You can have a look at the below code..
    First method: SUBSCRIBE  
    DATA: ls_subscriber LIKE LINE OF re_subscribers.* we want to add a customer subscreen on the Header tab
        CHECK im_application = 'PO'.
        CHECK im_element     = 'HEADER'.* each line in re_subscribers generates a subscreen. We add one subscreen in this example
        CLEAR re_subscribers[].
    * the name is a unique identifier for the subscreen and defined in this class definition
        ls_subscriber-name = subscreen1.
    * the dynpro number to use
        ls_subscriber-dynpro = '0001'.
    * the program where the dynpro can be found
        ls_subscriber-program = 'SAPLZKMMM_KAU86037'.
    * each subscreen needs his own DDIC-Structure
        ls_subscriber-struct_name = 'CI_EKKODB'.
    * a label can be defined
        ls_subscriber-label = text-001.
    * the position within the tabstrib can be defined
        ls_subscriber-position = 13.
    * the height of the screen can be defined here. Currently we suport two screen sizes:
    * value <= 7 a sevel line subscreen
    * value > 7  a 16 line subscreen
        ls_subscriber-height = 7.    APPEND ls_subscriber TO re_subscribers.Here, parameter u2018im_elementu2019 is defined as u2018HEADERu2019 as we are adding new tab in header section of PO.  
    Define a function group and take the main program and define it in ls_subscriber-program.
    Also define a sub screen with the required fields and assign it to the parameter ls_subscriber-dynpro.  
    Then method MAP_DYNPRO_FIELDS  
    FIELD-SYMBOLS: <mapping> LIKE LINE OF ch_mapping.
        LOOP AT ch_mapping ASSIGNING <mapping>.    CASE <mapping>-fieldname.      WHEN 'ZZPAYMENT_AGRE'.      <mapping>-metafield = mmmfd_cust_03.
          WHEN 'ZZPROJECT'.                     <mapping>-metafield = mmmfd_cust_04.
        ENDCASE.  ENDLOOP.  TRANSPORT_FROM_MODEL:
    DATA:     l_header       TYPE REF TO if_purchase_order_mm,
                  ls_mepoheader  TYPE mepoheader,
                  ls_customer    TYPE CI_EKKODB.*--------------------------------------------------------------------*
    * system asks to transport data from the business logic into the view
    *--------------------------------------------------------------------*    CASE im_name.      WHEN subscreen1.* is it an Header? im_model can be header or item.
            mmpur_dynamic_cast l_header im_model.
            CHECK NOT l_header IS INITIAL.* transport standard fields
            ls_mepoheader = l_header->get_data( ).* store info for later use
            MOVE-CORRESPONDING ls_mepoheader TO dynp_data_pbo.
          WHEN OTHERS.
        ENDCASE.    TRANSPORT_TO_DYNP:
    Define a FM 'ZK_KAU86037_PUSH' to push the values.CASE im_name.      WHEN subscreen1.        CALL FUNCTION 'ZK_KAU86037_PUSH'
              EXPORTING
                im_dynp_data = dynp_data_pbo.      WHEN OTHERS.
        ENDCASE.    TRANSPORT_FROM_DYNP:
      Define another FM 'ZK_KAU86037_POP'.CASE im_name.      WHEN subscreen1.        CALL FUNCTION 'ZK_KAU86037_POP'
              IMPORTING
                ex_dynp_data = dynp_data_pai.        IF dynp_data_pai NE dynp_data_pbo.
    * something has changed therefore we have to notify the framework
    * to transport data to the model
              re_changed = mmpur_yes.
            ENDIF.      WHEN OTHERS.
        ENDCASE.  TRANSPORT_TO_MODEL:     
            DATA: l_header             TYPE REF TO if_purchase_order_mm,
              ls_mepoheader        TYPE mepoheader,
              ls_customer          TYPE CI_EKKODB,
              l_po_header_handle   TYPE REF TO cl_po_header_handle_mm.*--------------------------------------------------------------------*
    * data have to be transported to business logic
    *--------------------------------------------------------------------*    CASE im_name.      WHEN subscreen1.* is it an item? im_model can be header or item.
            mmpur_dynamic_cast l_header im_model.
            CHECK NOT l_header IS INITIAL.        ls_mepoheader = l_header->get_data( ).* standard fields changed?
            IF dynp_data_pbo-zzpayment_agre   NE dynp_data_pai-zzpayment_agre
            OR dynp_data_pbo-zzproject        NE dynp_data_pai-zzproject.* update standard fields
              ls_mepoheader-zzpayment_agre   = dynp_data_pai-zzpayment_agre.
              ls_mepoheader-zzproject  = dynp_data_pai-zzproject.
              CALL METHOD l_header->set_data
                EXPORTING
                  im_data = ls_mepoheader.
            ENDIF.
          WHEN OTHERS.    ENDCASE. 
    Then we have to implement one more BADI to display the tab and update the values.
    Implement the BADI ME_PROCESS_PO_CUST. This cannot be used multiple times.  
    In this, we have methods (PROCESS_HEADER,PROCESS_ITEM).if we need to any validations for the fields we can write the logic here in this methods. In my case I need to check for the document type which I implemented in the method (PROCESS_HEADER).  
    Hope it helps you.
    Thanks
    Arbind

  • New video problems after replacing bad cap

    We are attempting to repair our first gen IMac G5 after it started having a problem with randomly shutting down. After much online research, and everything pointing towards bad capacitors, we opened up the machine and sure enough there was a bulging cap. We did the LED tests as well (fine), and ran hardware test (which also pointed to a problem on the logic board). After ringing the local Apple tech and confirming that they would only replace the whole board, not individual capacitors, we found a repair shop locally that was willing to solder on a new cap for us.
    So we've put the whole machine back together today, and again the LEDs light fine. However, now, the video is totally messed up! It starts up as far as the login screen but it'd be impossible to log in as the screen is so badly scrambled.
    Now we're trying to decide what the culprit is--incorrect reassembly? Accidental damage to the video cable during disassembly/assembly? Static electricity zapped the board at some point? Replacement cap not good enough (it's got a much higher uF and voltage rating but that seems to not be critical)?
    Any pointers on how to proceed? We're loathe to throw in the towel just yet!

    Don't throw in the towel, take it back to your local tech and have her replace the cap with one of the proper rating.

  • MAC PRO USB Problem - Traced to bad Apple Keyboard Extension Cable

    I found a fix to a problem synching to my itunes Library on my early 2008 MAC PRO.   The Apple supplied USB extension cable for the keyboard was defective.
    The symptoms were hangs in itunes and finder synching to iPods and transferring data to USB hard drives. The iPods and hard drives never lost power and no errors/log entries were made. The transfers simply stalled and would not continue. itunes and finder would hang until the drive or ipod was removed. These devices were installed directly to USB ports on the MAC PRO. No other USB devices were connected except for the aluminum keyboard and mighty mouse; the mouse was connected to the keyboard. The keyboard was connected using the USB extension cable that shipped with the MAC PRO.
    Hardware diagnostics were all clear. The keyboard and mouse never had any connection problems. Only itunes syncs and hard drive copies would fail; these would occur at random times. I had an open ticket with Apple to have the logic board replaced as it was diagnosed to be a hardware/USB problem.
    Removal or replacement of the extension cable on the keyboard (which was connected to a different USB port and NOT in the USB chain with the ipod and hard drives) permanently fixed the problem. I cancelled the Apple HW replacement.
    I have noted several posts with others having problems with USB ports and devices. I wonder if Apple has an unknown problem with bad keyboard extension cables.

    I think you may be onto something there. I'm just a few weeks into my second Mac Pro and again it's having the same USB problems which led Apple to give me a replacement machine previously. I went through several weeks of considerable testing with Apple Engineers prior to that - an Apple Care application to collect data from my machine, Apple Developer USB prober and two clean installs. The latest machine initially showed no sign of the problem then it started again - 2 iPods "can not be read or written to" part way through sync, Aperture quitting importing from USB SD card reader, USB drives dismounting etc. So I pulled out the Aluminium keyboard and, lo and behold, the iPods managed to get all the way through synching without errors. I really like the alu keyboard so it's a huge shame that it might be the cause of all my problems so far - and the Mac Pro is otherwise a beautiful computer.
    But is this really a hardware problem of the internal USB cards and power management or supply?

  • Long Text problem in a BADI

    Hi Everyone,
    I am implementing BADI "WORKORDER_UPDATE". The requirement is there should be no changes made on the IW32 transaction. I have successfully implemented the BADI and it is now giving an error when we try to change anything on the order in IW32.
    The problem is with the longtext. There is a field TXCHG which I used to see if there are any changes being made to the long text. When someone changes the lontext and tries to save it, it gives an error but still retains the changed longtext. The code works fine with all other changes(I mean it gives an error when they try to change anything in IW32 and will not retain the changes). But this does not happen in the case of long text. It gives an error but still has the changed long text as part of the order.
    Any suggestions on how to proceeed? I am using instance  Before_Update in this BADI.
    Thanks
    Kumar.

    Do u mean after giving the Error message, even if u come out without saving it is keeping the changes?
    If the answer to the above question is no then try the following procedure:
    Read the long text using READ_TEXT (function module) by passing the TDID, TDOBJECT, TDSPRAS, TDNAME (u can get these details by going through the menu edit-> go to header). 
    Store that in an internal table and then append all the lines of this internal table into a string Variable and assign this variable's text to the field in which long text is being displayed.
    This should work bcoz , in the database only the original Long text is stored and we are retrieving it and displaying back in the relevant field.
    Please reply if it works.....

  • Problem in ME22N

    Hi All,
    This is regarding INF00081_MM (PURCHASE ORDER CONFIRMATION CHANGE-AUTOMATION PART II). The latest requirement was when PO quantity is reduced or when line item is deleted, it should set the ‘Closed ‘ flag ( EBAN-EBAKZ ) to ‘X’.
       We had set the flag in BADI ME_PROCESS_PO_CUST and also in User Exit EXIT_SAPMM06E_013. Once we execute the transaction ME22N, the flag (EBAN-EBAKZ) is set with the help of our code, but then the SAP Standard program again resets it. The flow of the transaction is in such a way that SAP Standard program is called at last and it will always reset the flag.
          Then we tried to find out the user exit which will get triggered after this standard SAP code so that we can again set the flag to ‘X’, for this purpose we have tried many of the user exits available in me22n but none of it is getting triggered at required position.
      So if anybody can tell, is there is any User Exit or BADI available, which we missed out or some other way of setting the flag , then that will be extremly helpful.

    Hi All,
    This is regarding INF00081_MM (PURCHASE ORDER CONFIRMATION CHANGE-AUTOMATION PART II). The latest requirement was when PO quantity is reduced or when line item is deleted, it should set the ‘Closed ‘ flag ( EBAN-EBAKZ ) to ‘X’.
       We had set the flag in BADI ME_PROCESS_PO_CUST and also in User Exit EXIT_SAPMM06E_013. Once we execute the transaction ME22N, the flag (EBAN-EBAKZ) is set with the help of our code, but then the SAP Standard program again resets it. The flow of the transaction is in such a way that SAP Standard program is called at last and it will always reset the flag.
          Then we tried to find out the user exit which will get triggered after this standard SAP code so that we can again set the flag to ‘X’, for this purpose we have tried many of the user exits available in me22n but none of it is getting triggered at required position.
      So if anybody can tell, is there is any User Exit or BADI available, which we missed out or some other way of setting the flag , then that will be extremly helpful.

  • Problems with a BADI

    Hello everyone, I have a problem, there is a BADI which is used by a BSP application and also by an application in R3, this BADI has an error message sentence that works in R3 but dont work in BSP (DUMP), is there some variable (like sy-batch) that distinguishes whether the BADI is used by R3 or BSP?
    Thanks for your help
    PD: Sry for my bad english

    Hello,
    This can easily be done by implementing the interface IF_BSP_APPLICATION.
    This will give you back information about the runtime of the BSP, in case you use this in R3 it will return nothing because there is no active BSP runtime.
    More info on :
    [http://help.sap.com/saphelp_nw04/helpdata/en/2a/31b97e35a111d5992100508b6b8b11/content.htm|http://help.sap.com/saphelp_nw04/helpdata/en/2a/31b97e35a111d5992100508b6b8b11/content.htm]
    Success.
    Wim

  • Problem with custom_logic badi and it_param - ujk_large_string 1024

    Hi experts,
    I have a Problem triggering a script with custom logic badi.
    I try to implement a data and comment copy package for alle dimensions with source and target.
    Target is pushed in one string to IT_PARAM table of type UJK_T_SCRIPT_LOGIC_HASHTABLE.
    My Problem is now that the UJK_LARGE_STRING with 1024 characters is too small and many of the Dimension are cutted off.
    Do you know a solution or a Workaround for this Problem ? Requirement ist only one prompt/selection Screen.
    Thanks in advance and best regards
    heinrich

    Hi Heinrich,
    Split one parameter into many parameters.
    If you need more help then please share a screen shot of your script logic.
    Andy

  • Problem in implimenting BADI CRM_ORDER_AUTH_CHECK

    Hi All
    The requirement for BADI is to maintain authorization for own transactions.the users who is involved in transactions should only be authorized to see the transactions.Other users who are not involved in partner function like "Assigned to" & "Account responsible " should not be able to see the transactions like Activity .Lead , Opportunity ,Sales orders.& Service orders.
    I Have implemented Badi CRM_ORDER_AUTH_CHECK 
    but its giving problem while creating a lead.
    this the code
    METHOD if_ex_crm_order_auth_check~crm_order_add_auth_check.
    ******************For the Import Parameter****************************
    DATA: wa_header_guid TYPE crmt_object_guid.
    DATA: wa_mode TYPE crmt_mode.
    DATA: wa_process_type TYPE crmt_process_type.
    DATA: wa_orgman_wrk TYPE crmt_orgman_wrk.
    ************Local Variable********************************************
      DATA: username TYPE xubname.
      DATA: person_number TYPE ad_persnum.
      DATA: partner TYPE bu_partner ,
            partner2 TYPE bu_partner ,
            partner1 TYPE bu_partner ,
            flag(1) ,
            flag1(1).
      DATA: curent_user TYPE sy-uname .
      DATA: wa_username TYPE bapibname ,
            partner_order TYPE crmt_partner_external_wrkt ,
            wa_partner_order LIKE LINE OF partner_order ,
            order_guid TYPE crmt_object_guid_tab ,
            wa_order_guid LIKE LINE OF order_guid ,
            auth_check_flag TYPE crmt_boolean VALUE 'X' .
      DATA: org TYPE  crmt_orgman_wrkt .
      DATA: wa_org LIKE LINE OF org .
      DATA: ls_message   TYPE bapiret2,
            ls_applog    TYPE crmt_bsp_applog_tab,
            lt_messages  TYPE bapiret2_t,
            wa_messages  TYPE bapiret2,
            wa_applog    TYPE crmt_bsp_applog,
            count TYPE i ,
            object_key   TYPE crmt_bsp_objectkey.
      DATA:  del_message  TYPE STANDARD TABLE OF   bapiret2,
             wa_del       TYPE bapiret2,
             ref_object TYPE crmt_object_guid .
      DATA: y_lv_log_handle TYPE balloghndl,
            y_i_header_guid TYPE crmt_object_guid_tab.
      curent_user = sy-uname .
      MOVE iv_header_guid TO wa_order_guid .
      APPEND wa_order_guid TO order_guid .
      wa_username-bapibname = curent_user.
      MOVE iv_header_guid TO ref_object.
      CALL FUNCTION 'COM_BPUS_BUPA_FOR_USER_GET'
        EXPORTING
          is_username           = wa_username
        IMPORTING
          ev_businesspartner    = partner1
        EXCEPTIONS
          no_central_person     = 1
          no_business_partner   = 2
          no_id                 = 3
          no_user               = 4
          no_alias              = 5
          alias_and_user_differ = 6
          internal_error        = 7
          OTHERS                = 8.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
        EXPORTING
          input  = partner1
        IMPORTING
          output = partner1.
      CASE iv_process_type .
        WHEN 'YLD'.
          IF iv_mode EQ 'C' .
            CALL FUNCTION 'CRM_ORDER_READ'
              EXPORTING
                it_header_guid       = order_guid
                iv_no_auth_check     = auth_check_flag
              IMPORTING
                et_orgman            = org
                et_partner           = partner_order
              CHANGING
                cv_log_handle        = y_lv_log_handle
              EXCEPTIONS
                document_not_found   = 1
                error_occurred       = 2
                document_locked      = 3
                no_change_authority  = 4
                no_display_authority = 5
                no_change_allowed    = 6
                OTHERS               = 7.
            IF sy-subrc EQ 0 AND partner_order IS NOT INITIAL.
              LOOP AT partner_order INTO wa_partner_order WHERE partner_fct = '00000014' OR partner_fct = '00000012'.
                MOVE wa_partner_order-partner_no TO partner2 .
                IF partner2 EQ partner1 .
                  flag = 'X' .
                ENDIF .
                flag1 = 'X' .
              ENDLOOP.
              IF flag NE 'X' and flag1 eq 'X' .
                AUTHORITY-CHECK OBJECT 'CRM_ORD_OE'  ID 'SALES_ORG'  FIELD is_orgman_wrk-sales_org .
                IF sy-subrc NE 0 .
                  RAISE no_authority .
                ENDIF.
              ELSE.
                RAISE no_authority .
    Please help ASAP

    Hi Amiya,
    I am working on a same Scenario.
    *The users who is involved in transactions should only be authorized to see the transactions
    and other users who are not involved in PARTNER FUNCTION should not see the transactions*
    So, can u help me out in this.
    Thanks & Regards,
    Esaki

  • ME21n/ ME22n BADI user exit or badi

    Hi,
    Can anybody tell me  user exit or badi  , for transaction code Me21N or Me22N ,
    Regards,
    PS

    Transaction Code - ME21N/ME22N   Create/Display Purchase Order
    Exit Name           Description
    LMEDR001            Enhancements to print program
    LMELA002            Adopt batch no. from shipping notification when posting a GR
    LMELA010            Inbound shipping notification: Transfer item data from IDOC
    LMEQR001            User exit for source determination
    LMEXF001            Conditions in Purchasing Documents Without Invoice Receipt
    LWSUS001            Customer-Specific Source Determination in Retail
    M06B0001            Role determination for purchase requisition release
    M06B0002            Changes to comm. structure for purchase requisition release
    M06B0003            Number range and document number
    M06B0004            Number range and document number
    M06B0005            Changes to comm. structure for overall release of requisn.
    M06E0004            Changes to communication structure for release purch. doc.
    M06E0005            Role determination for release of purchasing documents
    ME590001            Grouping of requsitions for PO split in ME59
    MEETA001            Define schedule line type (backlog, immed. req., preview)
    MEFLD004            Determine earliest delivery date f. check w. GR (only PO)
    MELAB001            Gen. forecast delivery schedules: Transfer schedule implem.
    MEQUERY1            Enhancement to Document Overview ME21N/ME51N
    MEVME001            WE default quantity calc. and over/ underdelivery tolerance
    MM06E001            User exits for EDI inbound and outbound purchasing documents
    MM06E003            Number range and document number
    MM06E004            Control import data screens in purchase order
    MM06E005            Customer fields in purchasing document
    MM06E007            Change document for requisitions upon conversion into PO
    MM06E008            Monitoring of contr. target value in case of release orders
    MM06E009            Relevant texts for "Texts exist" indicator
    MM06E010            Field selection for vendor address
    MMAL0001            ALE source list distribution: Outbound processing
    MMAL0002            ALE source list distribution: Inbound processing
    MMAL0003            ALE purcasing info record distribution: Outbound processing
    MMAL0004            ALE purchasing info record distribution: Inbound processing
    MMDA0001            Default delivery addresses
    MMFAB001            User exit for generation of release order
    MRFLB001            Control Items for Contract Release Order
    AMPL0001            User subscreen for additional data on AMPL
    No of Exits:         35
    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
    Rewards if useful.........
    Minal Nampalliwar

  • Problem after Implementing BADI

    Hi all,
    I implemented BADI MB_MIGO_BADI  it was working fine, but it was deleted
    and again trying to implement second time it is showing the message
    Implementation ZTEST_MIGO migrated (see long
    for instructions) and choose enhancement spot and i implemented the BADI but
    this time it is not triggering.
    what might  be the problem any help?
    Thanks
    Satish.

    Dear Satish,
    Once u implement  a BADI in ECC it will automatically generates the Enchament Spot. Here u deleted ur BADI implementation. Ur BADI got deleted and the enhancement for tht not get deleted. Thts y its showing error when  u r creating the second time. So implement ur badi inside the Enhancement Spot using SE19.
    With Regards,
    Sumodh.P

  • Week 25 17" w/ Problems Sleeping and Bad Speaker

    I bought a 17" MacBook Pro two weeks ago to replace my 17" 1st generation powerbook. The good: fast booting, quick Safari & iphoto, great glossy display (I like it, some won't), larger hard drive. The bad: my left speaker is distorted, it won't stay asleep when traveling in my Brenthaven case.
    There are lots of posts about bad speakers and I definitely received one. There are some posts about the sleeping problem, so something is definitely wrong. I checked all the obvious culprits for waking and zapped PRAM and PMU so it is off to AppleCare. I am disappointed that a $2,500 + laptop is going into service so soon. Overall my experience with Apple is they will definitly take care of it, but I will have to put up with being without a laptop for awhile.
    If you are thinking of buying one I don't know if I would suggest waiting or not. Overall I love the machine, but the constant waking is unacceptable since it depletes the battery. Unfortunately it still seems to be a bit of a crap shoot whether you get a flawless 17" or a troubled one.

    remember
    alternating MacWrite and the System disk in a single
    floppy anyone)
    ... me
    Believe me there is no alternative to Mac OS X (for me). I was lost to the Windows world for more than 12 years in between ...
    The migration from PowerPC to Intel is a big step. My MBP works just fine besides the "hot" and the "whine" issue. And apparently the solutions are around the corner.
    The "EARLY ADAPTORS" have to pay more to get less. Whatever it is - cameras, cars, computers - it's better to wait at least 6 months to get the bugs out. Maybe I will be wiser the next time
    Martin
    MBP 15 inch   Mac OS X (10.4.7)  

Maybe you are looking for

  • TCP Callback function passing data to teststand

    Hi, I'm trying to pass data via a TCP Callback function to teststand using the TCP steptype that I downloaded from Ni. When I open a connection, container data is passed to the dll on which it creates a connection, the dll in part creates a TCP Callb

  • Problem in viewing equations with acrobat 8.1.2

    When there is an equation in the pdf I see a box in front of it. Other paople (who use adobe reader) don't experience the same problem for the same file. Does anybody have an idea about how i can fix that? It's really irritating. Snapshot of what i s

  • Transport Problem

    When transporting one of the BI Statistics related objects i.e update rules it giving error message as below. Please suggest us Execution of programs after import (XPRA) Transport request   : B7DK904535 System              : B7Q tp path             :

  • High CPU and Delay when applying metadata

    Hi All: I have an issue where my CPU hits 60% when applying keywords. This can be when I apply it to one image or to 100s. Obviously, when I have more pictures selected or more keywords, there is a much larger delay. Ideas from anyone? Thanks

  • Project Siena app and analytics system

    Hi,   how I could implement analytics system in my Projects Siena app? Thanks, Mantvydas