Problem related BADI

Hi folks,
         I have to create BADI for displaying pop up in MIGO transaction for those material which are on hold in Purchase Requistion.I have already built up logic for that .I have found definition name for BADI also.I dont know where to put the code for pop up display .Should i create new badi implementation with name starting with 'ZXXXXXX' and give existing definition to that interface.Where i should put my code so that pop up will be displayed?

Hi,
Goto SE19 --> Give the implementation name Z*** --> Give the definition name --> Click on the interface tab -->
It will show you the available methods for the interface --> Double Click on any method --> Write the Code --> Save and activate your implementation.
<b>Reward points if it helps.</b>
Message was edited by: Amit Mishra

Similar Messages

  • Problem in BADI, error message not getting displayed

    Hello Experts,
    I am facing a strange problem in BADI.
    The requirement is that the user should not be allowed to change the plant field
    on the screen of standard MM transctions for PO/PR amendment.
    I have written the code in separate BADIs for PO and PR.
    I am displaying an error message if the user tries to change the field.
    For PO, it is working fine.But for PR, the same code is not working.
    The control is going over to the BADI for PR and rest of the code is working fine.
    But the error message is not getting displayed for PR amendment.
    Can anybody please suggest the possible cause of problem and some solution to it.
    Thanks in advance.

    Hi
    See the sample BADI code for PR which raises an exceptions and do accordingly
    BAdI Name: ZPUR_RFQ (Implementation name) Purchase Requisitions
    Definition Name: ME_REQ_POSTED
    Interface Name : IF_EX_ME_REQ_POSTED
    Implementing Class: ZCL_IM_PUR_REQ
    Method :            POSTED
    METHOD if_ex_me_req_posted~posted .
      DATA : v_mtart TYPE mtart.
      DATA l_s_eban TYPE ueban.
      LOOP AT im_eban INTO l_s_eban.
        IF l_s_eban-estkz NE 'B'.
          CLEAR v_mtart.
          SELECT SINGLE  mtart INTO v_mtart FROM mara WHERE matnr = l_s_eban-matnr.
          IF v_mtart EQ 'ZERS' OR v_mtart EQ 'FHMI' OR v_mtart EQ 'UNBW'.
            MESSAGE e000(zm_msg) WITH 'You are not allowed' 'to create PR for stock items'.
          ENDIF.
        ENDIF.
        IF  l_s_eban-knttp NE 'F' OR l_s_eban-pstyp NE '9'.
          IF l_s_eban-knttp NE 'A'.
            IF ( l_s_eban-pstyp NE '9' AND l_s_eban-pstyp NE 'D' ) 
               AND l_s_eban-matnr EQ space.
              MESSAGE e000(zm_msg) WITH 'You cannot create'
                'a PR without material number'.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDLOOP.
    ENDMETHOD.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Problem related to PS CS6 ext. on Mac.  Nikon DSLR D610 raw file can not be opened

    Problem related to PS CS6 ext. on Mac. Installation is OK but I can't open picture from my Nikon D610 (Raw NEF format). I get a message "can not open this format ...". Checking Help menu to see if I miss an update the message I get is that I'm up-to-date but at the end Nikon D610 (format supported of course) files can not be opened . JPEG are OK but I work with raw files. Thanks

    What OS are you running: 10.x.x?
    What version of the Camera Raw plug-in do you have?  Do (About) Plug-ins / Camera Raw to find out.
    You need at least ACR 8.3 to open D610 files.  If the Help / Updates process does not work, then there is a manual install process you can do.  The page with the download is for when people accidentally updated to ACR 8.4 and need to roll back to ACR 8.3 due to their OS being incompatible, but the installer on that page works even if you haven’t erroneously updated to ACR 8.4:
    http://helpx.adobe.com/x-productkb/multi/camera-raw-84-support-policy.html

  • HT4623 Is this the most up to date article on up dating the iPhone - it there anything about the problems relating to the up date to OS 6 - my G3 no longer works and Apple seems to have gone to ground.  No Genius bar appointments available for a week!

    Is this the most up to date article on up-dating the iPhone OS - is there anything about the problems relating to the up-date to OS 6 - my G3 no longer works and Apple seems to have gone to ground.  No Genius bar appointments available for a week!

    iOS 7 devices need iTunes 11.1 or newer to sync.  Depending upon your computer and the OS it is running, you may not be able to upgrade to iTunes 11.1 based on the requirements for iTunes 11.1.  What computer and OS are you running your iTunes on?  From the iTunes download pages I see the requiorements are:
    Macintosh System Requirements
    Mac computer with an Intel Core processor
    OS X version 10.6.8 or later
    400MB of available disk space
    Broadband Internet connection to use the iTunes Store
    Windows System Requirements
    PC with a 1GHz Intel or AMD processor and 512MB of RAM
    Windows XP Service Pack 2 or later, 32-bit editions of Windows Vista, Windows 7, or Windows 8
    64-bit editions of Windows Vista, Windows 7, or Windows 8 require the iTunes 64-bit installer
    400MB of available disk space
    Broadband Internet connection to use the iTunes Store

  • The problem related to wireless service Wi-Fi connectivity Never work properly

    Hi
    i am bashair from KSA
    I have iPhone 5, you update your iPhone to version 6.1.3
    The problem related to wireless service Wi-Fi connectivity
    Never work properly, you try Method posed but did not succeed..
    i need help me please
    thanks..

    UPDATE
    Hey this is totally weird. I haven't done jailbreak at all and I won't But how is possible that default apps such as Safari and Appstore have the problem I've mentioned before and Skyfire works perfectly without any trouble.
    So to sum up:
    Safari: loading stucks after few seconds on wi-fi, mostly doesn't load pictures
    Appstore: loading stucks after few seconds on wifi and it keeps saying "loading"
    Facebook and Youtube: doesn't load pictures
    SKYFIRE: loads everything without any trouble
    and completely everything works on Edge...
    So tell me W.T.F. :-D

  • Problem related to variable substitution

    Dear all ,
    I have a query related to variable substitution :
    The requirement is that filename should be in the following format : <b>%<store_code>%_%<Date>%</b>_master.xml .
    I have done the configuration for Store_code in the variable substitution from Payload .
    But I am facing <b>problem related to Date as the requirement is that we should not take the date from the payload</b> . We used "ADDtimestamp" in the file mode creation but it is generating file with time stamp also which doesn;t serve the purpose .
    Can somebody suggest <b>how to take the current date without taking it from payload .</b> <b>Does anyone know something about standard current date which I can assign directly to Var2 .</b>
    Thanks in advance
    Regards
    Prabhat

    Hi,
    In your mapping, have a user defined function which has a bit of Java to get the current date and time and pass back out to a variable.
    Here is a code snippet I got in Google to do this :
    import java.text.*;
    import java.util.*;
    public class Dtest {
    public static void main(String args[]) {
       SimpleDateFormat df = (SimpleDateFormat)
         DateFormat.getDateInstance(DateFormat.SHORT);
       System.out.println("The short date format is  " + df.toPattern());
       Locale loc = Locale.ITALY;
       df = (SimpleDateFormat)
         DateFormat.getDateInstance(DateFormat.SHORT, loc);
       System.out.println("The short date format is  " + df.toPattern());
    Cheers
    Colin.

  • I am having a problem relating camera roll album bugs

    i am having a problem relating camera roll album bugs

    Can you trell us more about it?
    If the camera roll is covered partly by your screen, close the photo app, open the multitask bar, tap on the photo app icon unitl it starts to shake, then hit the little minus icon to close the app completely.
    Return to your home screen and start the photo app again, you should be able to select the camera roll again.
    You can also reset the phone to get it working again.

  • Hello I have a problem related to synchronization. When you synchronize ipad Section 3 "Other" takes as much memory up to 8 gigobayt. How to make the section "Other" did not increase? Thank you.

    Hello
    I have a problem related to synchronization.
    When you synchronize ipad Section 3 "Other" takes as much memory up to 8 gigobayt.
    How to make the section "Other" did not increase?
    Thank you.

    DOCUMENTS AND DATA IS ALSO WHERE YOUR MAIL INFORMATION IS STORED SO IF YOU ARE A "HOARDER" IN EMAIL, GO INTO THE GMAIL, HOTMAIL, ICLOUD ETC WHATEVER YOU USE, AND DELETE YOUR TRASH, SENT, DRAFTS, ETC.
    THAT SHOULD HELP A LOT.

  • HI YANN/VADIM...Still having problem in BADIs...please help me out

    Hi Yann/Vadim,
    Facing a problem in BADI can u please help me out...
    I am implementing sourcing dashboard.
    I am facing problem while implementing the badi BBP_ECS_PO_OUT_BADI in SRM. and BBP_PO_INBOUND_BADI in R3.
    i have written following code in BBP_ECS_PO_OUT_BADI in SRM
    method IF_EX_BBP_ECS_PO_OUT_BADI~BBP_B46B_PO_OUTBOUND.
    data : ls_item type BBP_PDS_PO_ITEM_D.
    data : w_customer_fields type BBPS_IF_CUSTOMER_FIELDS_PI.
    move 'POITEM' to w_customer_fields-refobject.
    move 'CATALOGID' to w_customer_fields-fieldname.
    move ls_item-catalogid to w_customer_fields-container.
    append w_customer_fields to ct_bapi_customer_fields.
    endmethod.
    i have created field zsrmcatalogid field in R3 in EKPO table.and i am now implementing the Badi in R3 for BBP_PO_INBOUND_BADI .....in extended classic scenario.
    i have written following code in R3 BADI
    method IF_EX_BBP_PO_INBOUND_BADI~BBP_MAP_BEFORE_BAPI.
    data : wa_customer_fields type bbps_if_customer_fields,
    wa_bapi_te_mepoitem type bapi_te_mepoitem,
    wa_bapi_te_mepoitemx type bapi_te_mepoitemx,
    wa_extensionin type bapiparex.
    data : txt_960(960) type c.
    read table bbp_customer_fields into wa_customer_fields with key
    refobject = 'POITEM' fieldname = 'CATALOGID'.
    if sy-subrc eq 0.
    move wa_customer_fields-container TO
    wa_bapi_te_mepoitem-zsrmcatalogid.
    wa_bapi_te_mepoitemx-zsrmcatalogid = 'X'.
    endif.
    clear txt_960.
    clear wa_extensionin.
    write wa_bapi_te_mepoitem to txt_960 left-justified.
    wa_extensionin-structure = 'BAPI_TE_MEPOITEM'.
    wa_extensionin-valuepart1 = txt_960(240).
    wa_extensionin-valuepart2 = txt_960+240(240).
    wa_extensionin-valuepart3 = txt_960+480(240).
    wa_extensionin-valuepart4 = txt_960+720(240).
    append wa_extensionin to bapi_extensionin.
    clear txt_960.
    clear wa_extensionin.
    write wa_bapi_te_mepoitemx to txt_960 left-justified.
    wa_extensionin-structure = 'BAPI_TE_MEPOITEMX'.
    wa_extensionin-valuepart1 = txt_960(240).
    wa_extensionin-valuepart2 = txt_960+240(240).
    wa_extensionin-valuepart3 = txt_960+480(240).
    wa_extensionin-valuepart4 = txt_960+720(240).
    append wa_extensionin to bapi_extensionin.
    endmethod.
    But its not working...
    The PO details are not passed from SRM to R3.......
    PLEASE CAN U GIVE ME EXACT CODE FOR CHANGES TO BE MADE IN THIS BADI ..AS IT IS NOT WORKING...
    Can anybody help me regarding how to debug the BADI in R3.
    Thanks in Advance...

    Hi Ravi,
    You can transfer the standard SRM catalog ID field to R/3 tracking number field (if not already used for another purpose) in the R/3 PO.
    This will avoid to implement the R/3 inbound bapi.
    Here is an extract of the code.
    The ECS PO badi example was here used to transfer the unlimited delivery flag to R/3 PO for a Z combination of criteria as well as the transfer of <b>catalog ID</b> to <b>tracking number field</b> in R/3 PO :
    method IF_EX_BBP_ECS_PO_OUT_BADI~BBP_B46B_PO_OUTBOUND.
    update unlimited delivery flag in R3 PO for combination of vendor +
    Product Category maintained in the bespoke table ZUD_PC_VNDR ..
      LOOP AT ct_bapi_poitem INTO ls_bapi_poitem.
        lv_tabix = sy-tabix.
        IF ls_bapi_poitem-po_item IS NOT INITIAL.
          READ TABLE it_item INTO ls_item
               WITH KEY number_int = ls_bapi_poitem-po_item
                          del_ind    = ' '.
          IF sy-subrc = 0.
    Set Unlimited delivery Flag
            read table li_zud_pc_vndr into ls_zud_pc_vndr
                            with key partner       = ls_partner-PARTNER_ID
                                       category_id = ls_item-category_id.
            if sy-subrc eq 0.
              ls_bapi_poitem-UNLIMITED_DLV = 'X'.
            endif.
    Set the Dummy catalog.. entry..
            if ls_item-catalogid eq c_dummy.
              ls_bapi_poitem-TRACKINGNO = c_noncat.
            endif.
            ls_bapi_poitem-GR_BASEDIV = ' '.
            modify ct_bapi_poitem from ls_bapi_poitem index lv_tabix
                          transporting UNLIMITED_DLV TRACKINGNO GR_BASEDIV.
          ENDIF. "READ TABLE it_item ..
        ENDIF.   "IF ls_bapi_poitem-po_item ..
      ENDLOOP.   "LOOP AT ct_bapi_poitem ..
    endmethod.
    Kind regards,
    Yann
    PS : please do reward helpful answers ))

  • Problem Related To HOT Spot in ABAP Programming?

    Hi All,
    I developed a program of purchase register now i want that on clicking the PO it will take the user to the conserned PO for that i used HOt Spot but still it is not taking me to the conserned PO. Plz tell me what do i do to fullfill my purpose.

    hi, Abhinav
    i think that the following Code will help you in this way.
    REPORT  zfsl_hot_cust_docn.
    TABLES: zsd_credit_bal, tvm4t, t023t, kna1.
    TYPES : BEGIN OF t_sd_credit_bal,                 " To define Internal Table for holding following Data
              benid LIKE zsd_credit_bal-benid,        " Customer ID
              botcp LIKE zsd_credit_bal-botcp,        " Pack
              audat LIKE zsd_credit_bal-audat,        " Date
              vehno LIKE zsd_credit_bal-vehno,        " Vehicle Number
              vbeln LIKE zsd_credit_bal-vbeln,        " Document Number
              movmt LIKE zsd_credit_bal-movmt,        " Movement type
              quantity LIKE zsd_credit_bal-quantity,  " Quantity
            END OF t_sd_credit_bal.
    SELECT-OPTIONS:  soaudat FOR zsd_credit_bal-audat NO-EXTENSION OBLIGATORY DEFAULT '20071121'.
    DATA :  sd_credit_bal1 TYPE STANDARD TABLE OF t_sd_credit_bal WITH HEADER LINE,
            sd_credit_bal2 TYPE STANDARD TABLE OF t_sd_credit_bal WITH HEADER LINE.
    START-OF-SELECTION.
      DATA: vbenid(10), vbotcp(3), lineno TYPE i   ."LIKE LINE OF sd_credit_bal1.
      PERFORM main.
    *&      Form  MAIN
    *       text
    FORM main.
      SELECT benid botcp audat vehno vbeln movmt quantity INTO CORRESPONDING FIELDS OF TABLE sd_credit_bal1
        FROM  zsd_credit_bal
        WHERE audat IN soaudat.
      WRITE: 'Main Menu'.
      WRITE: / 'Select Entry to see its details.'.
      LOOP AT sd_credit_bal1.
        WRITE: /1 sd_credit_bal1-benid HOTSPOT ON, sd_credit_bal1-botcp HOTSPOT ON.
        vbenid = sd_credit_bal1-benid.  vbotcp = sd_credit_bal1-botcp.
        HIDE: vbenid, vbotcp.
      ENDLOOP.
    ENDFORM.                    "main
    AT LINE-SELECTION.
      WINDOW STARTING AT 25 3 ENDING AT 103 25.
      WRITE: 1(78) sy-uline,
             /1 '|',
             3(10) 'Date' CENTERED,
             14(1)'|',
             16(35) 'Vehicle Number' CENTERED,
             52(1)'|',
             54(10) 'Pack' CENTERED,
             65(1) '|',
             67(10) 'Movm Type',
             78(1) '|',
             /1 '|',
             1(78) sy-uline.
      LOOP AT sd_credit_bal1 WHERE benid = vbenid AND botcp = vbotcp.
        WRITE: /1'|',
               3(10) sd_credit_bal1-audat,
               14(1) '|',
               16(35) sd_credit_bal1-benid,
               52(1) '|',
               54(10) sd_credit_bal1-botcp,
               65(1) '|',
               67(10) sd_credit_bal1-movmt,
               78(1) '|',
               /1'|',
               1(78) sy-uline.
      ENDLOOP.
    Replay if any Problem related to this Code.
    Kind Regards,
    Faisal

  • How can i solve the problem relate with gmail links opening in firefox ? New link start in new tab and disconnects.Also youtube streaming breaks everytime .

    Firefox disconnects by clicking link in my gmail and most of time i refreshes the page few clicks. And also some problem relate with playing youtube videos. I frankly notice that i connect my net using PC Suite and also system protected with Anti virus program. So kindly check my browser and restore it's missing without using factory reset. Notify me for any urgent update of yours 16th version. Thanking for yours brilliant support .
    Jaison James.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • Sir you have replied for my question, and i updated my software and all those things, yet it is showing unable to connect network, but i can use internet by sim, is it the problem related with hardware? can you tell me a solution for it?

    sir you have replied for my question, and i updated my software and all those things, yet it is showing unable to connect network, but i can use internet by sim, is it the problem related with hardware? can you tell me a solution for it?

    you seem to be referring to an ongoing issue
    click here to respsond -> sir help me to enable my network connection, my iphone 4s is not connecting with any wireless connection, what i should do for enabling network connection?
    CCC

  • Hi guys i have a problem related updating icloud desktop.while updating it shows (error code :A12E5).I have macbook air mid 2011..plz sort this out

    hi guys i have a problem related updating icloud desktop.while updating it shows (error code :A12E5).I have macbook air mid 2011..plz sort this out

    olliemilne wrote:
    - I've tried holding a bunch of different keys when starting up (cmd+R etc.) but again, nothing.
    You could try booting the MBP using the OPTION+COMMAND+R keys and see if it will connect to the Apple servers.  This would allow you to install the original OSX .  I have my doubts though.
    - I've tried something crazy suggested in another thread; leaving the Macbook partially opening and shaking it, which supposedly does something to the "sudden motion sensor".
    The Sudden Motion Sensor is applicable for conventional Hard Drives, not the SSD that is in a MBA.  Doing that will serve no useful purpose.
    You have exhausted all reasonable options and will just have to have the MBA evaluated at the genius bar.
    Ciao.

  • I have iphone 3gs and it keeps shut dowm by itself every two minutes idunno if this problem related to the battery life or what? please help me solve this problem

    i have iphone 3gs and it keeps shut dowm by itself every two minutes idunno if this problem related to the battery life or what? please help me solve this problem

    See Here for Device continually restarts...
    http://support.apple.com/kb/HT1808

  • Safari just shuts down suddenly due to some problems related to plug-ins.

    Hi
    I have an mac osx 10.5.8
    I use safari version 4.02.
    Sometimes (very often actually) it just shuts down suddenly due to some problems related to plug-ins and gives error and I relaunch . Do you have any idea why it is happening?
    can some help me?
    best
    didem

    i really do not know what causes it and how i can remove it actually!
    In the help menu there is something about plug-ins but i have really no clue what it it supposed to mean
    so can you elaborate what to do ?
    thanks
    didem

Maybe you are looking for

  • Windows 8.1 install

    Microsoft wants to install windows 8.1 again, and it seems there's nothing I can do to stop it!  I can delay it for a very short time, but don't know how to stop it.  Why do I want to stop it?  Because the last 2 times it installed itself after it fi

  • Dynamic sender  file name Pattern and collecting into one file

    Hi Experts, Could you please let me know how to achieve below scenario. 1)     File Directory: TEMP: files: test1,test2,ign1,ign2..etc. 2)     Get the files of pattern test* 3)     Received files test1, test2. 4)     Club contents of file Hemanth1, H

  • Sequence Number for messages

    Hi, I need to implement a sequence number in the target structure for each time a message mapping is executed. As far as i can see on this forum and on sap.help.com it can be easily done with RFClookup inside the message mapping, and best implement s

  • App Error 204 - Reset' (BB Torch 9810)

    Helloo.. I have been trying to resolve this error but no luck There's an error 'App Error 204 - Reset' appearing with whole white screen all of a sudden. I cannot access my phone as I click on Reset it reboots automatically and then shows the same er

  • Macbook Pro Shut Down By Itself

    Firstly, I use my Macbook Pro with Serato Scratch Live (www.scratchlive.net) to DJ. Last night, while djing, my macbook pro automatically switched off / shut down while playing. The laptop was used with the power adapter and at the same time, it was