Screen Attaching to the BADI.

Hi Guys,
              How to  attach a screen to BADI .In My application i am Implementing a BADI ADDR_Check for this BADi i have to attach a Dailog programming screen for displaying Error_Table and also provide update and save option .
Thanks,
Gopi.

You would have to implement your screen in a function module and then call this function module inside your BADI.  Calling screens is not supported in global classes or interfaces, so you need to wrap your functionality in a function module.
REgards,
Rich HEilman

Similar Messages

  • My screen attached to the top, how do I undo this?

    I need it to float over my 2 screens

    Not clear what you see.  Do you need the windows to float rather than tabbed view.  Change preference/interface.

  • Where can I find the BADI

    Hi Gurus,
    i am new to concept of BADI. Can any one present application/Use of BADI with an example . Can anyone tell me in which table or under which Tcode can I find the list of abailable BADI's ?
    Regards,
    NewAbaper

    Hi Abaper user,
    This will give the clear idea about the badi.
    Go through this info.
    just run this report u get badi
    REPORT ZNEGI16 .
    TABLES : TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    TSTCT.
    DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA : FIELD1(30).
    DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS : P_TCODE LIKE TSTC-TCODE,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA wa_tadir type tadir.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'PROG'
    AND OBJ_NAME = TSTC-PGMNA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM TRDIR
    WHERE NAME = TSTC-PGMNA.
    IF TRDIR-SUBC EQ 'F'.
    SELECT SINGLE * FROM TFDIR
    WHERE PNAME = TSTC-PGMNA.
    SELECT SINGLE * FROM ENLFDIR
    WHERE FUNCNAME = TFDIR-FUNCNAME.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'FUGR'
    AND OBJ_NAME EQ ENLFDIR-AREA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    ENDIF.
    ENDIF.
    SELECT * FROM TADIR INTO TABLE JTAB
    WHERE PGMID = 'R3TR'
    AND OBJECT in ('SMOD', 'SXSD')
    AND DEVCLASS = V_DEVCLASS.
    SELECT SINGLE * FROM TSTCT
    WHERE SPRSL EQ SY-LANGU
    AND TCODE EQ P_TCODE.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) P_TCODE,
    45(50) TSTCT-TTEXT.
    SKIP.
    IF NOT JTAB[] IS INITIAL.
    WRITE:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    DEFINING THE BADI
    1) execute Tcode SE18.
    2) Specify a definition Name : ZBADI_SPFLI
    3) Press create
    4) Choose the attribute tab. Specify short desc for badi.. and specify the type :
    multiple use.
    5) Choose the interface tab
    6) Specify interface name: ZIF_EX_BADI_SPFLI and save.
    7) Dbl clk on interface name to start class builder . specify a method name (name,
    level, desc).
    Method level desc
    Linese;ection instance methos some desc
    8) place the cursor on the method name desc its parameters to define the interface.
    Parameter type refe field desc
    I_carrid import spfli-carrid some
    I_connid import spefi-connid some
    9) save , check and activate…adapter class proposed by system is
    ZCL_IM_IM_LINESEL is genereated.
    IMPLEMENTATION OF BADI DEFINITION
    1) EXECUTE tcode se18.choose menuitem create from the implementation menubar.
    2) Specify aname for implementation ZIM_LINESEL
    3) Specify short desc.
    4) Choose interface tab. System proposes a name fo the implementation class.
    ZCL_IM_IMLINESEL which is already generarted.
    5) Specify short desc for method
    6) Dbl clk on method to insert code..(check the code in “AAA”).
    7) Save , check and activate the code.
    Some useful URL
    http://www.esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
    http://www.esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
    http://www.esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
    http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
    www.sapgenie.com/publications/saptips/022006%20-%20Zaidi%20BADI.pdf
    http://www.sapdevelopment.co.uk/enhance/enhance_badi.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c2/eab541c5b63031e10000000a155106/frameset.htm
    Now write a sample program to use this badi method..
    Look for “BBB” sample program.
    “AAA”
    data : wa_flights type sflight,
    it_flights type table of sflight.
    format color col_heading.
    write:/ 'Flight info of:', i_carrid, i_connid.
    format color col_normal.
    select * from sflight
    into corresponding fields of table it_flights
    where carrid = i_carrid
    and connid = i_connid.
    loop at it_flights into wa_flights.
    write:/ wa_flights-fldate,
    wa_flights-planetype,
    wa_flights-price currency wa_flights-currency,
    wa_flights-seatsmax,
    wa_flights-seatsocc.
    endloop.
    “BBB”
    *& Report ZBADI_TEST *
    REPORT ZBADI_TEST .
    tables: spfli.
    data: wa_spfli type spfli,
    it_spfli type table of spfli with key carrid connid.
    *Initialise the object of the interface.
    data: exit_ref type ref to ZCL_IM_IM_LINESEL,
    exit_ref1 type ref to ZIF_EX_BADISPFLI1.
    selection-screen begin of block b1.
    select-options: s_carr for spfli-carrid.
    selection-screen end of block b1.
    start-of-selection.
    select * from spfli into corresponding fields of table it_spfli
    where carrid in s_carr.
    end-of-selection.
    loop at it_spfli into wa_spfli.
    write:/ wa_spfli-carrid,
    wa_spfli-connid,
    wa_spfli-cityfrom,
    wa_spfli-deptime,
    wa_spfli-arrtime.
    hide: wa_spfli-carrid, wa_spfli-connid.
    endloop.
    at line-selection.
    check not wa_spfli-carrid is initial.
    create object exit_ref.
    exit_ref1 = exit_ref.
    call method exit_ref1->lineselection
    EXPORTING
    i_carrid = wa_spfli-carrid
    i_connid = wa_spfli-connid.
    clear wa_spfli. 
    Rewards somw points if it is helpful,
    P.Nag
    Rgds,

  • Custom screen not displaying using BADI ME_GUI_PO_CUST

    Hello Experts,
    I was working on BAD ME_GUI_PO_CUST to add custom subscreen on header
    I have created a subscreen ZNRD_SAPMEGUI_PO with number 9999.
    I have created implementation of ME_GUI_PO_CUST as ZME_GUI_PO_CUST.
    I have added screen details to the BADI.as follows
    CALLPROGRAM = SAPLMEGUI.
    Scr No = 1102
    Subscreen area = TABSTRIPCONTROL2SUB
    Program called = ZNRD_SAPMEGUI_PO
    Scr no = 9999.
    Now to the method SUBSCRIBE to the implemented BADI ZME_GUI_PO_CUST
    I have wriiten the following codes.
    method if_ex_me_gui_po_cust~subscribe.
    data: ls_subscriber like line of re_subscribers.
    if sy-tcode eq ' ME21N' or sy-tcode eq 'ME22N' or sy-tcode eq 'ME23N'.
    check im_application = 'PO'.
    check im_element = 'HEADER'.
    * CLEAR re_subscribers[].
    ls_subscriber-name = 'ZNRD_SAPMEGUI_PO'.
    ls_subscriber-dynpro = '9999'.
    ls_subscriber-program = 'SAPLMEGUI'.
    *ls_subscriber-struct_name = 'MEPO_SUBSCRIBERS'.
    ls_subscriber-label = 'Customer Data'.
    ls_subscriber-position = 10.
    ls_subscriber-height = 7.
    append ls_subscriber to re_subscribers.
    endif.
    endmethod.
    BADI is active
    Now when irun ME21N i dont see the additional custom tab on header coming up.
    Please guide will be appreciated.
    Regards,
    Ranjith

    Hi
    I have been through the documentation friends still I am unable to go ahead thats the I am seeking your help.
    Please guide.
    Shailaja could you please explain why do i need to use the user-exit  MM06E005 when I am using the BADI.
    Regards,
    Ranjith N

  • How can we take the cursor to a different sub-screen from the BADI?

    Hi,
    We have to do some validation on Header, Operation and Relationship of any work order (IW31, IW32). We have checked that validations can be done at BADI WORKORDER_UPDATE in the method u2018AT_SAVEu2019.  But user wants us to take the Cursor back to the field and screen due to which the error is coming. How can we take the cursor to a different sub-screen from the BADI?
    Thanks in Advance,
    Pranav

    You 'ran out of room' because you tried to put your entire question into what is the 'Topic line' of the post.
    This is a fairly common error, as a scan of the topic list will show, and likely due to a design flaw in the layout of the composition page.
    Most posters who make this error do so on their first post, and are able to avoid a similar misstep on their second and subsequent questions.
    Regards,
    Barry

  • Does anyone has a problem with the screen of the new ipad? (there's a part of the screen which the color in it is "very" bright) and when I move the aluminium part of the smart cover when it's attached to the ipad the colors change!! Help!!!

    Does anyone has a problem with the screen of the new ipad? (there's a part of the screen which the color in it is "very" bright) and when I move the aluminium part of the smart cover when it's attached to the ipad the colors change!! Help!!!

    I'd take it into my local APple store and have them look at it. There may be something wrong inside your device.

  • Brand new Ipod touch.  we attached to the computer because we don't have wifi.  Now what.  We set up in ID in itunes.  The Ipod won't do anything, just shows itunes on screen but won't budge.

    Brand new Ipod touch.  We attached to the computer because we don't have wifi.  Now what?  We set up in ID in itunes.  The Ipod won't do anything, just shows itunes on screen but won't budge.

    To get iTunes to see your iPod:
    iPhone, iPad, or iPod touch: Device not recognized in iTunes for Windows
    or
    iPhone, iPad, iPod touch: Device not recognized in iTunes for Mac OS X

  • My phone when attached to the charger boots up reaches the password screen, i enter my password and it goes to home screen then shuts itself off and reboots. is my phone possessed or how can i fix it? can i get the data off of it even if the phone is gone

    my phone when attached to the charger boots up reaches the password screen, i enter my password and it goes to home screen then shuts itself off and reboots. is my phone possessed or how can i fix it? can i get the data off of it even if the phone is not salvageable? thank you so much in advance for your help!

    Make sure you have the Current Version of iTunes Installed on your computer
    iTunes free download from www.itunes.com/download
    Then see Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...  Be sure to Follow ALL the Steps...
    Take your time... Pay particular attention to Steps 3 and 4.
    After you have Recovered your Device...
    Re-Sync your Content or Restore from the most recent Backup...
    Restore from Backup  >  http://support.apple.com/kb/ht1766
    Note.  Once the Device is asking to be Restored with iTunes... it is too late to save anything... and you must continue with the Recovery...

  • My mail says i have an attachment at the inbox screen, when opened, no link/box/icon to allow the file to be opened??

    From mail, going into inbox, I have an email with the little paperclip next to it. The email has been forwarded by severel people. However, there is no little bubble to open the attachment when the message is opened. From my iPhone there is no indication to the type of attachment it is (pdf, doc, jpg, etc). Is there anyway to make this attachment appear??

    See:
    *Firefox/Tools > Options > Advanced > General : Accessibility : [ ] "Warn me when web sites try to redirect or reload the page"
    The setting in "Tools > Options > Advanced > General" is meant as an accessibility feature, as you can see by the label of that section, so that people with disabilities or people who use screen readers do not get confused and is not meant as a safety protection to stop redirecting.
    See also:
    *https://support.mozilla.com/kb/Options+window+-+Advanced+panel#General_tab
    *http://kb.mozillazine.org/accessibility.blockautorefresh
    *http://kb.mozillazine.org/Accessibility_features_of_Firefox

  • I find attachments to my sent mail which I didn't attached. I want to send you a 'print screen' example. The name of attachment only junk letters

    There is an unfamiliar attachment to some of my sent mail that I didn't attached. The little icon is something like a printer with a Windows blue-blocks window on top of it. It attach itself only sometimes - I cannot really form a pattern about why this happens and want to know if it is a virus.
    The name of the attachment is like: 'edghafbe' right next to the icon.
    What is this?
    Thank you

    Please see the photo attached

  • Adding the customer screen to enhance the header for Enjoy PO

    Dear Expert's,
    My requirement is to add a new tab on Header for Enjoy PO by enhancing ME21N/ME22N and ME23N.
    I have already implemented the BADI's ME_GUI_PO_CUST and ME_PROCESS_PO_CUST.
    Actions Taken:
    I have created a custom Function group and subscreen '9000'.
    I have created a 'Z' structure as per the screen layout on the Header Tab
    I have appended the custom fields in EKKO custom include CI_EKKO.
    Reactions:
    1. I am able to successfully display the screen on additional tab at header level.
    2. The Display & Change is working perfectly for screen '9000' on ME21N/ME22N and ME23N header.
    Problem:
    I am unable to read the 'Z' fields from EKKO to populate the TAB Screen '9000' and neither able to save the 'Z' fields from '9000' TAb screen for header data.
    I am not using any EXIT for this and have to use only BADI for this solution. Please help me to implement this solution using BADI only.
    Also i have tried implementaing the transport Data object -> Model + Model -> Dynpro + Dynpro -> Model + Model -> Data object methods, but these methods are not getting triggered.
    Please let me know if i can use EVENT_PBO & EVENT_PAI if yes , than how to trigger these events and where..?

    Hi ,
    try to enhance PO header using SAP Note 407975
    Summary
    Symptom
    You are using SAP customer enhancement MM06E005. There is no sample source
    code for this enhancement.
    More Terms
    User exit, customer enhancement, MM06E005, example, sample
    Cause and Prerequisites
    You want to activate user exit MM06E005. Note that this is a consulting
    note and not a correction of the user exit.
    Solution
    You can use the sample source code attached here to recognize the basic
    functions of the exit. This example is, however, only one of many options
    that are offered by the customer enhancement.
    The sample source code includes the following functions:
    o Supply of an additional field on header level
    o Supply of an additional field on item level
    o Derivation of a field on item level from the copied reference
    document
    Now, in order to be able to use the sample source code, you must create
    field ZZFLAG on the header level of the document and field ZZFIELD on the
    item level.
    Double-click on Include table CI_EKKODB
    Enter the following values:
    - Name Component type DType Length DecPlace Short text
    - ZZFLAG CHAR1 CHAR 1 0 1-digit indicator
    Save and activate the include table.
    Double-click on Include table CI_EKPODB
    Enter the following values:
    - Name Component type DType Length DecPlace Short Text
    - ZZFIELD CHAR1 CHAR 1 0 1-digit indicator
    Save and activate the include table.
    In order to activate the sample source code, you additionally have to carry
    out the following changes on screens 0101 and 0111.
    1. Screen 0101: Create the following fields:
    2010.02.05 Page 2 of 3
    SAP Note 407975 - MM06E005: Collective note: Examples for
    implementation
    "Checkbox" Name: EKKO_CI-ZZFLAG
    2. Screen 0111: Create the following fields:
    "Input/output field" Name: EKPO_CI-ZZFIELD
    "Pushbutton" Name: BUTTON
    FctCode: ZZDETERMINE
    The following assignments apply to the sample source code:
    EXIT_SAPMM06E_006 --> LXM06F36
    EXIT_SAPMM06E_007 --> LXM06F38
    EXIT_SAPMM06E_008 --> LXM06F37
    EXIT_SAPMM06E_009 --> LXM06F39
    EXIT_SAPMM06E_016 --> LXM06F41
    EXIT_SAPMM06E_017 --> LXM06F42
    EXIT_SAPMM06E_018 --> LXM06F40
    Copy the source code from the attachment and insert it into the
    corresponding function modules. Save and activate the function modules.
    Create the following variables in the corresponding TOP include in order
    not to get any syntax errors:
    INCLUDE ZXM06TOP
    data: gl_aktyp type c,
    gl_no_screen type c,
    gl_rekko like ekko,
    gl_ekko_ci like ekko_ci,
    gl_ekpo_ci like ekpo_ci,
    gl_ekpo like ekpo,
    gl_ucomm like sy-ucomm.
    types: begin of ekpo_tab,
    ebeln like ekpo-ebeln,
    ebelp like ekpo-ebelp,
    ekpo like ekpo,
    end of ekpo_tab.
    data: gt_ref_ekpo_tab type table of ekpo_tab.
    Save and activate the TOP include.
    On header level, you can now store a character, X or space, via field
    ZZFLAG on the database with the document and read it also again.
    On item level, you can fill field ZZFIELD with a one-digit value and save
    it with the document. If you copy this document, the system displays an
    additional function button on tab page "Customer data". If you press this
    button, the value of the reference document is copied to field ZZFIELD.
    If you want to store the source code as sample source code in your system,
    start Transaction SMOD. Enter MM06E005 as an enhancement. Select
    "Components". Press "Change". Position the cursor on the corresponding
    module and choose "Sample code". Create the corresponding include and copy
    2010.02.05 Page 3 of 3
    SAP Note 407975 - MM06E005: Collective note: Examples for
    implementation
    the source code from the note. Save the include. Note that, of course,
    syntax errors may occur when you check components. This is because the
    includes of the sample code are not integrated into a program but rather
    are completely independent and, therefore, do not have any relationship to
    each other either. For this reason, only save the include and do not
    activate or check it. The sample code has to be copied into the
    corresponding function modules in order to become active.
    If you use the user exit in the new purchase order, it is not guaranteed
    that the customer screen is always processed. To make sure that possible
    required fields are checked, include a corresponding message into the
    EXIT_SAPMM06E_012. This screen is always processed.

  • Mac mini unresponsive without screen attached.

    hi there,
    i am using the mac mini 2011 server headless without a screen.
    over time the system gets unresponsive and the finder doesnt let me open new windows.
    asap i attach a screen again its fine.
    system.log all filled up almost from all active apps:
    Mar 16 10:46:20 nexfw002 Finder[223]: kCGErrorIllegalArgument: CGSGetDisplayBounds: Invalid display 0x04241fd4
    Mar 16 10:46:20 nexfw002 Finder[223]: _NXGetScreenRect: error getting display bounds (1001)
    Mar 16 10:46:20 nexfw002 Finder[223]: kCGErrorIllegalArgument: CGSGetDisplayBounds: Invalid display 0x04241fd4
    Mar 16 10:46:20 nexfw002 Finder[223]: _NXGetScreenRect: error getting display bounds (1001)
    Mar 16 10:46:20 nexfw002 Finder[223]: kCGErrorIllegalArgument: CGSGetDisplayBounds: Invalid display 0x04241fd4
    Mar 16 10:46:20 nexfw002 Finder[223]: _NXGetScreenRect: error getting display bounds (1001)
    Mar 16 10:46:20 nexfw002 Finder[223]: kCGErrorIllegalArgument: CGSGetDisplayBounds: Invalid display 0x04241fd4
    Mar 16 10:46:20 nexfw002 Finder[223]: _NXGetScreenRect: error getting display bounds (1001)
    Mar 16 10:46:20 nexfw002 Finder[223]: kCGErrorIllegalArgument: CGSGetDisplayBounds: Invalid display 0x04241fd4
    Mar 16 10:46:20 nexfw002 Finder[223]: _NXGetScreenRect: error getting display bounds (1001)
    Mar 16 10:46:20 nexfw002 Finder[223]: kCGErrorIllegalArgument: CGSGetDisplayBounds: Invalid display 0x04241fd4
    Mar 16 10:46:20 nexfw002 Finder[223]: _NXGetScreenRect: error getting display bounds (1001)
    Mar 16 10:46:20 nexfw002 Finder[223]: kCGErrorIllegalArgument: CGSGetDisplayDepth: Invalid display 0x04241fd4
    Mar 16 10:46:20 nexfw002 Finder[223]: _NXGetScreenDepth: error getting display depth (1001)
    Mar 16 10:46:20 nexfw002 Finder[223]: kCGErrorIllegalArgument: CGSGetDisplayBounds: Invalid display 0x04241fd4
    Mar 16 10:46:20 nexfw002 Finder[223]: _NXGetScreenRect: error getting display bounds (1001)
    Mar 16 10:46:20 nexfw002 Finder[223]: kCGErrorIllegalArgument: CGSGetCurrentDisplayMode: Invalid display 0x04241fd4
    Mar 16 10:46:20 nexfw002 Finder[223]: Bad colorspace number 127
    Mar 16 10:46:20 nexfw002 Finder[223]: kCGErrorIllegalArgument: CGSGetDisplayBounds: Invalid display 0x04241fd4
    Mar 16 10:46:20 nexfw002 Finder[223]: _NXGetScreenRect: error getting display bounds (1001)
    Mar 16 10:46:20 nexfw002 Finder[223]: kCGErrorIllegalArgument: CGSGetDisplayBounds: Invalid display 0x04241fd4
    Mar 16 10:46:20 nexfw002 Finder[223]: _NXGetScreenRect: error getting display bounds (1001)
    Mar 16 10:46:20 nexfw002 Finder[223]: kCGErrorIllegalArgument: CGSGetDisplayDepth: Invalid display 0x04241fd4
    Mar 16 10:46:20 nexfw002 Finder[223]: _NXGetScreenDepth: error getting display depth (1001)
    Mar 16 10:46:20 nexfw002 Finder[223]: kCGErrorIllegalArgument: CGSGetDisplayBounds: Invalid display 0x04241fd4
    Mar 16 10:46:20 nexfw002 Finder[223]: _NXGetScreenRect: error getting display bounds (1001)
    Mar 16 10:46:20 nexfw002 Finder[223]: kCGErrorIllegalArgument: CGSGetCurrentDisplayMode: Invalid display 0x04241fd4
    Mar 16 10:46:20 nexfw002 Finder[223]: Bad colorspace number 127
    Mar 16 10:46:20 nexfw002 Finder[223]: kCGErrorIllegalArgument: CGSGetDisplayBounds: Invalid display 0x04241fd4
    Mar 16 10:46:20 nexfw002 Finder[223]: _NXGetScreenRect: error getting display bounds (1001)
    Mar 16 10:46:20 nexfw002 Finder[223]: kCGErrorIllegalArgument: CGSGetDisplayBounds: Invalid display 0x04241fd4
    Mar 16 10:46:20 nexfw002 Finder[223]: _NXGetScreenRect: error getting display bounds (1001)
    Mar 16 10:46:20 nexfw002 Finder[223]: kCGErrorIllegalArgument: CGSGetDisplayDepth: Invalid display 0x04241fd4
    Mar 16 10:46:20 nexfw002 Finder[223]: _NXGetScreenDepth: error getting display depth (1001)
    Mar 16 10:46:20 nexfw002 Finder[223]: kCGErrorIllegalArgument: CGSGetDisplayBounds: Invalid display 0x04241fd4
    Mar 16 10:46:20 nexfw002 Finder[223]: _NXGetScreenRect: error getting display bounds (1001)

    Good evening,
    I made some progress!
    First of all I found out that the screen on ARD seems not to be the "real" screen. What does this mean? It seems that the "true" resolution is somewhat higher than the resolution shown in ARD. I recognized this, when I changed the resolution via ARD to the max resolution possible (1280xsomething). Suddenly I could see some open finder-windows in the down-left part of the screen which I was able to move into the centre. However, I was not able to close them, because when I took the finger from the mouse, the window jumped again into the corner. It seemed to me that the mac still thought to have the High-Res Thunderbolt display connected.
    Ok, so far, so good. I set up a new admin user, logged-off from the current one (was not able to untick the box that the windows should re-appear next time, since this box was also in the left corner) and started the new one. Then back to the old one. And suddenly all the open windows reappeared in the right dimension of the ARD screen and I was able to shut them.
    Furthermore, since 24 hours no more errors in the log.
    Best regards,
    Jens

  • Could you Please Send me the Step by Step guide for the BADI

    Hi ABAPers,
      Could you Please Send me the Step by Step guide for the BADI.It is very Urgent
    Thanks & Regards,
    Ashok.

    Each BAdI has a definition and more than one implementation. The definition means the methods(in class concept) that are used for performing various functions. The BAdI definition can be viewed in SE18 transaction(for standard ones) and user-defined BAdIs can be created in the same transaction as well.
    When you create a BAdI definition, an class interface will be automatically created and you can define your methods in the interface. The implementation of the methods can be done in SE19 transaction .
    YOu can go through these links...
    http://esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
    http://esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
    http://esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
    http://esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
    http://esnips.com/doc/365d4c4d-9fcb-4189-85fd-866b7bf25257/customer-exits--badi.zip
    http://esnips.com/doc/3b7bbc09-c095-45a0-9e89-91f2f86ee8e9/BADI-Introduction.ppt
    just refer to the link below. it will of great help to u.
    http://www.sapmaterial.com/?gclid=CN322K28t4sCFQ-WbgodSGbK2g
    (SAP link- ultimate material )
    suppose your working for XK01 then for that the BADI being VENDOR_ADD_DATA then this implemetation procedure.
    Steps:
    1. Execute Business Add-In(BADI) transaction SE18
    2. Enter BADI name i.e. VENDOR_ADD_DATAand press the display
    button
    3. Select menu option Implementation->Create
    4. Give implementation a name such as Z_VENDOR_ADD_DATA
    5. You can now make any changes you require to the BADI within this
    implementation, for example choose the Interface tab
    6. Double click on the method you want to change, you can now enter
    any code you require.
    7. Please note to find out what import and export parameters a
    method has got return the original BADI definition
    (i.e. VENDOR_ADD_DATA) and double click on the method name
    for example within VENDOR_ADD_DATA contract is a method
    8. When changes have been made activate the implementation
    BADI(Business Add-In) is the object oriented method of user exits...
    Each BAdI has a definition and more than one implementation. The definition means the methods(in class concept) that are used for performing various functions. The BAdI definition can be viewed in SE18 transaction(for standard ones) and user-defined BAdIs can be created in the same transaction as well.
    When you create a BAdI definition, an class interface will be automatically created and you can define your methods in the interface. The implementation of the methods can be done in SE19 transaction
    Intro.....
    http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm
    Check these links for info about badi..
    BADI's
    http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
    http://support.sas.com/rnd/papers/sugi30/SAP.ppt
    BADI's
    http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
    http://support.sas.com/rnd/papers/sugi30/SAP.ppt
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
    http://members.aol.com/_ht_a/skarkada/sap/
    http://www.ct-software.com/reportpool_frame.htm
    http://www.saphelp.com/SAP_Technical.htm
    http://www.kabai.com/abaps/q.htm
    http://www.guidancetech.com/people/holland/sap/abap/
    http://www.planetsap.com/download_abap_programs.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
    /people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
    /people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
    http://www.esnips.com/web/BAdI
    http://www.allsaplinks.com/badi.html
    New to Badi
    Follow the below steps to find out what all BADI's are called when you press any button in any transaction.
    1) Goto se24 (Display class cl_exithandler)
    2) Double click on the method GET_INSTANCE.
    3) Put a break point at Line no.25 (CASE sy-subrc).
    Now
    4) Execute SAP standard transaction
    5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
    6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
    7) This way you will find all the BADIs called on click of any button in any transaction.
    Business Add-Ins
    Business Add-Ins are a new SAP enhancement technique based on ABAP Objects. They can be inserted into the SAP System to accommodate user requirements too specific to be included in the standard delivery. Since specific industries often require special functions, SAP allows you to predefine these points in your software.
    As with customer exits (SMOD/CMOD [Page 40]), two different views are available:
    • In the definition view, an application programmer predefines exit points in a source that allow specific industry sectors, partners, and customers to attach additional software to standard SAP source code without having to modify the original object.
    • In the implementation view, the users of Business Add-Ins can customize the logic they need or use a standard logic if one is available.
    In contrast to customer exits, Business Add-Ins no longer assume a two-system infrastructure (SAP and customers), but instead allow for multiple levels of software development (by SAP, partners, and customers, and as country versions, industry solutions, and the like). Definitions and implementations of Business Add-Ins can be created at each level within such a system infrastructure.
    SAP guarantees the upward compatibility of all Business Add-In interfaces. Release upgrades do not affect enhancement calls from within the standard software nor do they affect the validity of call interfaces. You do not have to register Business Add-Ins in SSCR.
    The Business Add-In enhancement technique differentiates between enhancements that can only be implemented once and enhancements that can be used actively by any number of customers at the same time.
    In addition, Business Add-Ins can be defined according to filter values. This allows you to control add-in implementation and make it dependent on specific criteria (on a specific Country value, for example). All ABAP sources, screens, GUIs, and table interfaces created using this enhancement technique are defined in a manner that allows customers to include their own enhancements in the standard.
    A single Business Add-In contains all of the interfaces necessary to implement a specific task. In Release 4.6A, program and menu enhancements can be made with Business Add-Ins. The actual program code is enhanced using ABAP Objects. In order to better understand the programming techniques behind the Business Add-In enhancement concept, SAP recommends reading the section on ABAP Objects
    DEFINING THE BADI
    1) execute Tcode SE18.
    2) Specify a definition Name : ZBADI_SPFLI
    3) Press create
    4) Choose the attribute tab. Specify short desc for badi.. and specify the type :
    multiple use.
    5) Choose the interface tab
    6) Specify interface name: ZIF_EX_BADI_SPFLI and save.
    7) Dbl clk on interface name to start class builder . specify a method name (name,
    level, desc).
    Method level desc
    Linese;ection instance methos some desc
    8) place the cursor on the method name desc its parameters to define the interface.
    Parameter type refe field desc
    I_carrid import spfli-carrid some
    I_connid import spefi-connid some
    9) save , check and activate…adapter class proposed by system is
    ZCL_IM_IM_LINESEL is genereated.
    IMPLEMENTATION OF BADI DEFINITION
    1) EXECUTE tcode se18.choose menuitem create from the implementation menubar.
    2) Specify aname for implementation ZIM_LINESEL
    3) Specify short desc.
    4) Choose interface tab. System proposes a name fo the implementation class.
    ZCL_IM_IMLINESEL which is already generarted.
    5) Specify short desc for method
    6) Dbl clk on method to insert code..(check the code in “AAA”).
    7) Save , check and activate the code.
    Some useful URL
    http://www.esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
    http://www.esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
    http://www.esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
    http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
    www.sapgenie.com/publications/saptips/022006%20-%20Zaidi%20BADI.pdf
    http://www.sapdevelopment.co.uk/enhance/enhance_badi.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c2/eab541c5b63031e10000000a155106/frameset.htm
    Now write a sample program to use this badi method..
    Look for “BBB” sample program.
    “AAA”
    data : wa_flights type sflight,
    it_flights type table of sflight.
    format color col_heading.
    write:/ 'Flight info of:', i_carrid, i_connid.
    format color col_normal.
    select * from sflight
    into corresponding fields of table it_flights
    where carrid = i_carrid
    and connid = i_connid.
    loop at it_flights into wa_flights.
    write:/ wa_flights-fldate,
    wa_flights-planetype,
    wa_flights-price currency wa_flights-currency,
    wa_flights-seatsmax,
    wa_flights-seatsocc.
    endloop.
    “BBB”
    *& Report ZBADI_TEST *
    REPORT ZBADI_TEST .
    tables: spfli.
    data: wa_spfli type spfli,
    it_spfli type table of spfli with key carrid connid.
    *Initialise the object of the interface.
    data: exit_ref type ref to ZCL_IM_IM_LINESEL,
    exit_ref1 type ref to ZIF_EX_BADISPFLI1.
    selection-screen begin of block b1.
    select-options: s_carr for spfli-carrid.
    selection-screen end of block b1.
    start-of-selection.
    select * from spfli into corresponding fields of table it_spfli
    where carrid in s_carr.
    end-of-selection.
    loop at it_spfli into wa_spfli.
    write:/ wa_spfli-carrid,
    wa_spfli-connid,
    wa_spfli-cityfrom,
    wa_spfli-deptime,
    wa_spfli-arrtime.
    hide: wa_spfli-carrid, wa_spfli-connid.
    endloop.
    at line-selection.
    check not wa_spfli-carrid is initial.
    create object exit_ref.
    exit_ref1 = exit_ref.
    call method exit_ref1->lineselection
    EXPORTING
    i_carrid = wa_spfli-carrid
    i_connid = wa_spfli-connid.
    clear wa_spfli.
    u can find BADI's in different ways...
    1>First go to any transaction->iN THE menu bar SYSTEM->STATUS->Get the program name ->double click->u will go to the program attached to the tcode.Now search term will be CALL CL_EXITHANDLER.Now u will get list of BADI'S available..
    2>Goto SE24->Give class name as CL_EXITHANDLER->Display->double click on get_instance mathod->Now u will go inside the method->Now put break point on the cl_exithandler.Now go to any transaction code and pass dat..U will see that it will be stopped on the break point which u set on the cl_exithandler...In the exit name u can find list of badi's attached to the tcode..
    There are multiple ways of searching for BADI.
    • Finding BADI Using CL_EXITHANDLER=>GET_INSTANCE
    • Finding BADI Using SQL Trace (TCODE-ST05).
    • Finding BADI Using Repository Information System (TCODE- SE84).
    1. Go to the Transaction, for which we want to find the BADI, take the example of Transaction VD02. Click on System->Status. Double click on the program name. Once inside the program search for ‘CL_EXITHANDLER=>GET_INSTANCE’.
    Make sure the radio button “In main program” is checked. A list of all the programs with call to the BADI’s will be listed.
    The export parameter ‘EXIT_NAME’ for the method GET_INSTANCE of class CL_EXITHANDLER will have the user exit assigned to it. The changing parameter ‘INSTANCE’ will have the interface assigned to it. Double click on the method to enter the source code.Definition of Instance would give you the Interface name.
    2. Start transaction ST05 (Performance Analysis).
    Set flag field "Buffer trace"
    Remark: We need to trace also the buffer calls, because BADI database tables are buffered. (Especially view V_EXT_IMP and V_EXT_ACT)
    Push the button "Activate Trace". Start transaction VA02 in a new GUI session. Go back to the Performance trace session.
    Push the button "Deactivate Trace".
    Push the button "Display Trace".
    The popup screen "Set Restrictions for Displaying Trace" appears.
    Now, filter the trace on Objects:
    • V_EXT_IMP
    • V_EXT_ACT
    Push button "Multiple selections" button behind field Objects
    Fill: V_EXT_IMP and V_EXT_ACT
    All the interface class names of view V_EXT_IMP start with IF_EX_. This is the standard SAP prefix for BADI class interfaces. The BADI name is after the IF_EX_.
    So the BADI name of IF_EX_CUSTOMER_ADD_DATA is CUSTOMER_ADD_DATA
    3. Go to “Maintain Transaction” (TCODE- SE93).
    Enter the Transaction VD02 for which you want to find BADI.
    Click on the Display push buttons.
    Get the Package Name. (Package VS in this case)
    Go to TCode: SE84->Enhancements->Business Add-inns->Definition
    Enter the Package Name and Execute.
    Here you get a list of all the Enhancement BADI’s for the given package MB.
    The simplese way for finding BADI is
    1. chooes Tcode Program & package for that Tcode.
    2. Go to Tcode se18
    3. Press F4
    4. search by package or by program.
    http://help.sap.com/saphelp_nw04/helpdata/en/eb/3e7cf7940e11d295df0000e82de14a/frameset.htm
    and
    http://help.sap.com/saphelp_nw04/helpdata/en/eb/3e7cf7940e11d295df0000e82de14a/frameset.htm
    Badihttp://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
    http://support.sas.com/rnd/papers/sugi30/SAP.ppt
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
    http://members.aol.com/_ht_a/skarkada/sap/
    http://www.ct-software.com/reportpool_frame.htm
    http://www.saphelp.com/SAP_Technical.htm
    http://www.kabai.com/abaps/q.htm
    http://www.guidancetech.com/people/holland/sap/abap/
    http://www.planetsap.com/download_abap_programs.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
    /people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
    /people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
    http://esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
    http://esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
    http://esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
    http://esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
    http://esnips.com/doc/365d4c4d-9fcb-4189-85fd-866b7bf25257/customer-exits--badi.zip
    http://esnips.com/doc/3b7bbc09-c095-45a0-9e89-91f2f86ee8e9/BADI-Introduction.ppt
    http://help.sap.com//saphelp_470/helpdata/EN/eb/3e7cee940e11d295df0000e82de14a/frameset.htm
    sample code for Purchase requisition
    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.
    Reward points for useful Answers
    Reward if it helps..

  • I have a mac book air 11". When I boot up connected to the huge Thunderbolt  screen it detects the detects the fact and gives me great quality. now I am travelling away from the scree it boots up, nice picture, then switches to rubbish resolution.

    I have a Mac Book air 11". Normally at home I connect this to a large Thuderbolt Screen. When booting up it some times gets confused and offers me a low resolution result, but some plugging and unplugging of the screen fixes this. I assume it sometimes "sees" the big screen and sets the resolition accordingly. Sometimes does not. But now... I am away from big screen and cannot get the Macbook air on its one to deliver anything other than really poor resolution. I ahve done displays and chosen all three - but no better. And I have said Choose the Best ONe... again not luck. Any ideas. I read in back posts this was a problem a few years ago.

    Welcome to Apple Discussions
    I believe you have a failing GPU (aka Video Card). Run AHT and see what it tells you. Do not be afraid to run it up to three times in succession if at first it does not detect an error (sometimes errors that are caused by overheating will not show up until the computer is stressed enough - repeating AHT will do that).
    As an aside - the MBA was not designed to take the place of a desktop. If you are powering your MBA by leaving it permanently attached to the thunderbolt port on the monitor you are shortening your battery life.

  • When I type in my password into the login screen I get the rainbow pinwheel and then the screen turns gray and goes back to account selection... How do I access my account?

    Today I was doing my chemistry homework when all of a sudden my mid 2011 MacBook pro running Lion 10.7.4 started going very very VERY slowly to a point where it was unusable. I restarted my computer and went to type in my password. When I did this, the computer recognized the password and began to boot yet the pinwheel came on and the screen turned gray and went back to the account selection screen. It continues to do this everytime I enter my password and I can no longer access my account. How do I fix this.

    You can take some of the steps here, #4, #5 or even trying a #18
    Step by Step to fix your Mac
    but I suspect your going to first have to create a data recovery drive
    Create a data recovery, undelete boot drive
    to get your data off the machine,
    then do a #20 to eliminate the bad sectors as that's why your getting the "pinwheel" it's getting a delay reading from the drive, right when your trying to log in too, what a bad spot for it to happen.
    Step by Step to fix your Mac

Maybe you are looking for