Conversion of PR itno PO using BADI me59_exclude

I have a requirement where I have to implement additional logic in t.code me59n ( program RM06BB30 used for converting PR into PO) using badi ME59_EXCLUDE .
The logic which I have to implement is
1)Only select the open PR lines i.e. not marked for deletion or not converted to PO.
2)Check for Item Category for Services (PSTYP) = u20189u2019
3) Check for every PR line (BNFPO) if, Line value >25000
  and vendor is not a RAG5 vendor.
only if the PR fulfills the following criteria, it will be converted into PO otherwise error message will be displayed...
But I while implementing ME59_EXCLUDE, I found out is a internal sap badi and it cannot have a customer implementation...Is there any other badi which can be used or any other way in which I could implement this logic?

Hi,
Step by step process for automatic  PO creation from PR
1.  Tick check box in purchasing view of Material Master(MM01/MM02)
2.  Tick check box for auto PO in purchaisng data of Vendor Master record (MK02)
3.   Maintain Source list for Material,plant and Vendor combination in ME01
4.   In ME51N create PR and assign source of supply in "Source of supply" tab
5.   In ME59N key in Purchaisng Org., Vendor and Plant - execute
You will get POs created with reference to PR automatically.
Hope its clear
Regards,
Uzair Hussain

Similar Messages

  • [Enhancement in BW]: How to use BaDI : RSU5_SAPI_BADI

    Hi Everybody,
    Right now, could you kindly please tell me how to i use customer exit but using BADI, particularly for BADI : RSU5_SAPI_BADI.
    <b>I just wanna use the customer exit on variable (variable user-exit).</b>
    So far i've tried these steps (might you correct me/advise):
    1. tcode : SE18
    2. Enter the Badi Name : RSU5_SAPI_BADI
    3. (Toolbar) enhancement implementation -> Create
    4.  ... (After that i don't know what i've to do ..)
    Could you tell me step-by-step to make it ?
    Such as what i should fill-in for Implementation Name and any parameter should i fill in there and how to debug it ???
    Many-many thanks all for the attention.
    Hopefully i can make it :).
    Kind regards,
    Niel.

    Check out this link:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3001894b-b1fb-2910-77ba-e80b6f2053b7">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3001894b-b1fb-2910-77ba-e80b6f2053b7</a>

  • Custom Screen using BADI seen in ME23N, ME22N Display, but not in ME21N

    Hi,
    I have developed a custom screen for purchase order using badi ME_PROCESS_PO_CUST and ME_GUI_PO_CUST.
    But, its not visible in ME21N, whereas its dipalyed in ME23N, ME22N .
    Please advise.
    Thanks,
    Shivaa....

    In TC CMOD you can create a new proyect and use the component MEREQ001 with this component you can see adicional tab in those TC.

  • Can I have a Face Time conversation between two Apple devices using the same Apple ID?

    Can I have a Face Time conversation between two Apple devices using the same Apple ID?

    Yes, you can, but the two devices can't have the same e mail address associated with both.  Each, device needs its own unique e mail ADR.  In your case, the iPod can call your iPhone if you use the phone number, but the iPhone can not call your iPod because it must use the e mail address, and if the email address is the same on both, the iPhone will think it's calling itself, so the call will not go through.

  • Display error message in WEBUI using BADI - ORDER_SAVE-CHECK_BEFORE_SAVE

    Hi,
    I am trying to display error message using BADI - ORDER_SAVE (Method-CHECK_BEFORE_SAVE) based on certain conditions when the document is saved from WEB UI.
    I have written it like below:
    If (some conditions).
    Message E000 with 'Error in SAVE' RAISING DO_NOT_SAVE.
    endif.
    I mentioned my message class everything in class, and it is fine.
    However, it is not displaying my error message. It is displaying standard information message saying "Document Could not be saved'.
    Could you please help me out, how can I display my custom message.
    Thanks,
    Sandeep

    Hi Sandeep,
    U can use FM to raise a message from order save badi.
    Inside the if condition, u can raise do_not_save.
    If (some conditions)
          CALL FUNCTION 'CRM_MESSAGE_COLLECT'
            EXPORTING
              iv_caller_name = 'ORDERADM_H'
              iv_ref_object  = iv_guid
              iv_ref_kind    = 'A'
              iv_msgno       = '000'
              iv_msgid       = 'zcrm'
              iv_msgty       = 'A'
              iv_msgv1       = c_text1
              iv_msgv2       = c_text2
              iv_msgv3       = c_text3
            EXCEPTIONS
              not_found      = 1
              appl_log_error = 2
              OTHERS         = 3.
          IF sy-subrc NE 0.
          ENDIF.
          RAISE do_not_save.
    ENDIF.

  • Restrict creation of appraisals for inactive employees using BADI

    Please could someone guide or assist me.
    When we use Tx APPCREATE to create an appraisal for an employee, it allows us to create an appraisal for an inactive employee. When we drop down the appraisee field (search for the appraisee), we can view & select employees that are inactive.
    I would like to exclude the inactive employees from the appraisee list.
    I have tried to use BADI HRHAP00_TMPL_RESTR, and created an implementation, but it doesn't seem to be called when i created the appraisal, i have tried debugging it to see if i get out to this badi, but no luck.
    Any help in this regards will be greatly appreciated.
    Regards,
    Chantal

    Hi Chantal
    As far as I know, you are using the right BADI for your requirement. Can you plz. try creating appraisal documents through PHAP_CREATE_PA or PHAP_PREPARE instead of APPCREATE Tcode.
    BTW, have you incorporated the BADI (filter) to your appriasal template?
    Hope this helps
    Best Regards
    Reddy

  • What are most commonly used BADIs for Opportunities and BPs?

    Dear all,
    What are mostly used BADI's for Oppotunity Management and Business Partner Maintenance, and what is the use of those BADIs.
    what is the use of BAPI's in CRM, suggest me BAPI names and their usage
    Your suggestions will be highly appreciated
    Best wishes
    Raghu ram

    Hi Hari,
    the variable which has to be created depends on the business requirement and differs based on the report requirement.
    for more informatrion on variables you can refer to following docs,
    characteristics variables
    http://help.sap.com/erp2005_ehp_02/helpdata/en/5c/8db08a555411d189660000e829fbbd/frameset.htm
    text variables
    http://help.sap.com/erp2005_ehp_02/helpdata/en/5c/8db0a4555411d189660000e829fbbd/frameset.htm
    formula variables
    http://help.sap.com/erp2005_ehp_02/helpdata/en/5c/8db0b1555411d189660000e829fbbd/frameset.htm
    http://help.sap.com/erp2005_ehp_02/helpdata/en/5c/8db0a4555411d189660000e829fbbd/frameset.htm
    :->
    NM

  • Added custom screen in PO using BADI ME_GUI_PO_CUST and ME_PROCESS_PO_CUST

    Hi All,
    I have added custom screen with two z fields at item level using BADI ME_GUI_PO_CUST and ME_PROCESS_PO_CUST i can see my screen in tcodes ME21N , ME22N , ME23N but I am not able to save data.
    and also screen is coming in change mode even in ME23N .
    thanks.

    Hi,
    I have added two xfields at item level.
    This is the code i have added in zimplementation ZME_GUI_PO_CUST .
    IN Zimplementation ME_PROCESS_PO_CUST I have added code only in method FIELDSELECTION_ITEM . after doing this I can see only screens in ME21N, ME22N, ME23N but when enter data in zfields and trying to save it is giving me message no data has changed.
    method IF_EX_ME_GUI_PO_CUST~SUBSCRIBE.
    DATA: ls_subscriber LIKE LINE OF re_subscribers.
    we want to add a customer subscreen on the item detail tab
      CHECK im_application = 'PO'.
      CHECK im_element     = 'ITEM'.
    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 = 'SAPLYMEPOBADIEX'.
    each subscreen needs his own DDIC-Structure
      ls_subscriber-struct_name = 'MEPO_BADI_STRUCT'.
    a label can be defined
      ls_subscriber-label = text-001.
    the position within the tabstrib can be defined
      ls_subscriber-position = 4.
    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.
      ENDIF.
    method IF_EX_ME_GUI_PO_CUST~TRANSPORT_FROM_MODEL.
      DATA: l_item       TYPE REF TO if_purchase_order_item_mm,
            ls_mepoitem  TYPE mepoitem,
            ls_customer  TYPE mepo_badi_exampl.
    system asks to transport data from the business logic into the view
      CASE im_name.
        WHEN subscreen1.
    is it an item? im_model can be header or item.
          mmpur_dynamic_cast l_item im_model.
          CHECK NOT l_item IS INITIAL.
    transport standard fields
          ls_mepoitem = l_item->get_data( ).
    transport customer fields
          CALL FUNCTION 'YMEPOBADIEX_GET_DATA'
            EXPORTING
              im_ebeln = ls_mepoitem-ebeln
              im_ebelp = ls_mepoitem-ebelp
            IMPORTING
              ex_data  = ls_customer.
    store info for later use
          MOVE-CORRESPONDING ls_mepoitem TO dynp_data_pbo.
          MOVE ls_customer-badi_bsgru TO dynp_data_pbo-badi_bsgru.
          MOVE ls_customer-badi_afnam TO dynp_data_pbo-badi_afnam.
        WHEN OTHERS.
      ENDCASE.
    endif.
    method IF_EX_ME_GUI_PO_CUST~TRANSPORT_TO_DYNP.
      CASE im_name.
        WHEN subscreen1.
          CALL FUNCTION 'YMEPOBADIEX_PUSH'
            EXPORTING
              im_dynp_data = dynp_data_pbo.
        WHEN OTHERS.
      ENDCASE.
    ENDIF.
    endmethod.
    method IF_EX_ME_GUI_PO_CUST~TRANSPORT_FROM_DYNP.
      CASE im_name.
        WHEN subscreen1.
          CALL FUNCTION 'YMEPOBADIEX_POP'
            IMPORTING
              ex_dynp_data = dynp_data_pai.
          IF dynp_data_pai NE dynp_data_pbo.
    something has changed therefor we have to notify the framework
    to transport data to the model
            re_changed = mmpur_yes.
          ENDIF.
        WHEN OTHERS.
      ENDCASE.
    ENDIF.
    endmethod.
    method IF_EX_ME_GUI_PO_CUST~TRANSPORT_TO_MODEL.
    DATA: l_item       TYPE REF TO if_purchase_order_item_mm,
            ls_mepoitem  TYPE mepoitem,
            ls_customer  TYPE mepo_badi_exampl.
    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_item im_model.
          CHECK NOT l_item IS INITIAL.
          ls_mepoitem = l_item->get_data( ).
    standard fields changed?
         IF dynp_data_pbo-matkl NE dynp_data_pai-matkl OR
            dynp_data_pbo-plifz NE dynp_data_pai-plifz OR
            dynp_data_pbo-webaz NE dynp_data_pai-webaz.
    update standard fields
           ls_mepoitem-matkl = dynp_data_pai-matkl.
           ls_mepoitem-plifz = dynp_data_pai-plifz.
           ls_mepoitem-webaz = dynp_data_pai-webaz.
            CALL METHOD l_item->set_data( ls_mepoitem ).
         ENDIF.
            CALL FUNCTION 'YMEPOBADIEX_GET_DATA'
              EXPORTING
                im_ebeln = ls_mepoitem-ebeln
                im_ebelp = ls_mepoitem-ebelp
              IMPORTING
                ex_data  = ls_customer.
            ls_customer-badi_bsgru = dynp_data_pai-badi_bsgru.
            ls_customer-badi_afnam = dynp_data_pai-badi_afnam.
            CALL FUNCTION 'YMEPOBADIEX_SET_DATA'
              EXPORTING
                im_data = ls_customer.
         ENDIF.
        WHEN OTHERS.
      ENDCASE.
    ENDIF.
    method IF_EX_ME_PROCESS_PO_CUST~FIELDSELECTION_ITEM.
    DATA: l_persistent TYPE mmpur_bool.
    CONSTANTS:
    FIELD-SYMBOLS: <fs> LIKE LINE OF ch_fieldselection.
    l_persistent = im_item->is_persistent( ).
    *IF l_persistent EQ mmpur_yes.
    READ TABLE ch_fieldselection ASSIGNING <fs> WITH TABLE KEY
                         metafield = MMMFD_YYMAN_NUM."fd_cust_01.
    IF sy-subrc IS INITIAL.
    <fs>-fieldstatus = '*'. " Display <-- this one was as per the sample code given.
    <fs>-fieldstatus = '+'. " Input <-- this i added to make the field mandatory.
    ENDIF.
    READ TABLE ch_fieldselection ASSIGNING <fs> WITH TABLE KEY
                         metafield = MMMFD_YYMAN_DES."fd_cust_01.
    IF sy-subrc IS INITIAL.
    <fs>-fieldstatus = '*'. " Display <-- this one was as per the sample code given.
    <fs>-fieldstatus = '+'. " Input <-- this i added to make the field mandatory.
    ENDIF.
    *ENDIF.
    ENDIF.
    endmethod.

  • Customer screen using BADI :  ME_GUI_PO_CUST

    Hi
    I am implementing BADI : ME_GUI_PO_CUST to create custom screen at item level.
    Pls tell me the steps to be followed to get custom screen using BADI
    Thanks
    Vinay.

    Hi Vinay,
    go to transaction SE18, then enter your BADI.The in menu go to Goto -> Sample Code -> Display. You will see example of implementation of this BADI. All these examples are very well commented. Basically you will have to create your own function group with your new screen and call this screen from methods of BADI.
    Cheers

  • How to determine the purchasing group using BADI BBP_PGRP_FIND

    Hello Friends
    We use SRM Server 5.5 (Classic scenario).
    As you know that, purchasing group has the responsible product categories in PPOMA_BBP, when user creates the shopping cart to determine the purchasing group. 
    In our case, we should determine the purchasing group using other criteria.
    MM side is OK to determine the purchasing group using specific criteria.
    Because Material Master has the purch. Group information. 
    In case of SRM, we should develop the logic using BBP_PGRP_FIND BADI.
    But I’m not sure how to use this badi.
    We want to determine the purchasing group based on the following logic.
    If described shopping cart without product ID
    Do Standard purchasing group determination logic.
    Else
    Assign the purch group from MARC- EKGRP (Purchasing Group)
    Is it possible to determine above the logic?
    If yes, Could you give me some information?
    Thank you,
    Best regards,
    SH
    Message was edited by:
            So Hee Lee

    Thank you for your answer.
    I found the way to develop the our logic using BADI: bbp_pgrp_find.
    But I’m not sure the following logic is correct.
    To differentiate described req. or product id req, We check the E_ITEM – PRODUCT using BBP_PD_SC_GETDETAIL.
    IF E_ITEM – PRODUCT is blank, Read the category ID to find the purchasing group.
    To find the purch. Group, we can use FM:  BBP_OM_DETERMINE_RESP_PGRP.
    Import parameter: IS_RESP_ITEM_DATA – Category _ID
    Export parameter: ES_PURCH_DATA
    ELSE
    CALL the customer function to read the R/3 purchasing group from MARC- EKGRP
    Search the HRT5500-TABNR using purchasing group from R/3.
    Search the HRP5500 – OBJID using HRT5500-TABNR
    Call the FM:  BBP_OM_DETERMINE_RESP_PGRP
    Import parameter: IS_RESP_ITEM_DATA – PROC_GROUP – OBJID
    Export parameter: ES_PURCH_DATA
    Thank you
    Best Regards
    SH

  • USING BADI TO ADD A TAB IN PURCHASE ORDER

    FRIENDS,
    CAN ANYONE SEND ME THE DOCUMENT OR WHOLE PROCEDURE FOR ADD EXTRA TAB AND FIELD IN PURCHASE ORDER  USING BADI.I AM DOING THIS FIRST TIME, SO IF SOME ONE HAVE WHOLE DOCUMENT FOR THIS , PLEASE SEND ME OR ELSE SUGGEST ME THE SOLUTION.

    Hi ,
    Please find these two BADi's which will be useful to you.
    ME_GUI_PO_CUST and MEGUI_LAYOUT
    <b>Reward points</b>
    Regards

  • How to insert new row in MIGO using badi.

    hi,
    Transaction code: MIGO. i'm using badi "MB_MIGO_BADI" and method "LINE_MODIFY", i want to insert N number of item lines when user entered any production order no. and press enter.
    Notes: production order has only one item line with qty N.
    regards,
    Shahid Rais

    Such a feature is not available, but you could add a key event handler which works its magic when it detects a press on the down arrow key, while the last row is selected. Then you can perform the code to insert a new row.

  • Screen exit for VL01 in ECC 6.0 using badi's

    Hi All,
    I got a requirement to create a new tab in VL01 transaction where i need to create one field in ECC 6.0.
    Can anyone tell me the complete procedure to create a new sub screen and adding it to the existing standard sap screen as a new tab in ECC 6.0 version.
    kindly suggest me how to do this using badi's.

    Dear Nicole,
    a)SE18:
    Definition name               ME_PROCESS_PO_CUST
    b)SMOD:
    Enhancement     MM06E005
    EXIT_SAPMM06E_013
    -> If you want to use it, use transaction CMOD to create a
    project with Enhancement     MM06E005
    Best Regards,
    Ian Wong

  • How to change Vendor text  in shopping cart using BADI/Function module

    Hi
    If any could help me out that i want to change vendor text using BADI/FMs.
    Using  BADI" bbp_catalog_transfer"   i dint find any parameter for vendor text. please let me know if there any idea to resolve the problem

    Hi,
    you should find the vendor text within the BAdi
    BBP_DOC_CHANGE
    Method for shopping carts
    BBP_SC_CHANGE
    Here you could use the Changing Parameter
    CT_LONGTEXT
    The table contains 2 important fields:
    TDID, where you can identify the type of text, in your case this should be ITXT for standard shopping carts (vendor text within positions)
    TDLINE: which contains the text
    You are now able to change the vendor text directly within this BAdi with standard ABAP methods.
    Best regards
    Andreas

  • Hi help needed in Smart form using BAdi ( please any one help me )

    Hi,
        I am working in SRM.I am new to SRM and smartforms .My problem is I need to change the stndard smarform for BBP_BIDINV_BID into zprogram for The text for Published Bid Invitation email should read as:xxxxwith emp name and date,The text for email when Bid is rejected :XXXx,Accepted,Returned.I need to attch the text using BAdi's .So can any one help me how to find out the suitable BADi to this and please send me process to do the oject..
    thanks in advance.
       Regards
         Uday

    Hi,
    check this BADI :
    BBP_OUTPUT_CHANGE_SF
    Regards
    Appana

Maybe you are looking for

  • Master data attribute not updaing from PSA

    Hi all,     I am on 3.5, and the have a custom attribute extension to the 0CUSTOMER object.  This attribute is populated in R/3, and populated in the PSA, but not the object itself, or the master data table of the object (/bi0/pcustomer).  Has anyone

  • Unreadable word 2007 files after emailing via Gmail or saving to USB drive

    I am having trouble with word 2007 files that I am emailing via gmail and also my uni portal email site. They lose the docx extension and become unreadable. It also seems that word 2007 files saved onto my USB drive are not readable on other computer

  • Changes in CC 5.2 over 5.1

    Hi all, i've been searching for documentation in terms of new/changed functionality in the Compliance Calibrator ver 5.2 over 5.1. I've already seen some new functions in 5.2. May I know where i could find the 'change log'? It does not seem available

  • Where can I download a trial version?

    Hi, I've lost my CS4 Design Suite while moving and now I can't find it for download on Adobe. Has this option been removed for CS5.5? I bought a new desktop to do my work on and of course I lose the discs. Also, if a serial number has been assigned t

  • WRV200 Wireless LED Problem

    Hi guys, I just pruchase the WRV200, but aftre power on the router the Wireless LED is keeping flashing, already turn off any related wireless transit service like Boradcasting. But the LED keeping flashing in no any wireless connection. Could you he