BADI & O O Programming

Hi All,
       I want to explore BADI & O O programming in ABAP kindly suggest links. Basic concepts of O O are clear.
Also suggest links for BAPI.
Thanks & Regards,
Dilip
Message was edited by: Diliip Gupchup
Message was edited by: Diliip Gupchup

You can see BADI's using transaction SE18 and for implementing it use SE19. BADI's basically using OOP. It is better if you know the basics and the limitation of some of the ABAP commands in OOP.
Please see following sites for more info.
http://www.sapdevelopment.co.uk/enhance/enhance_badi.htm
http://www.sap-img.com/abap/difference-between-badi-and-user-exits.htm
How to develop BADI
http://www.sap-img.com/abap/business-add-in-you-need-to-understand-abap-oo-interface-concept.htm
Kindly assign points if this is helpful.

Similar Messages

  • BADI within print program of a form

    Hi All!
    Technically is it possible to call a BADI within a print program of a form.
    I do have a requirement where I have to retrieve a field which is not available through normal mapping and there exists a BADI through which i can retrieve the value of the field ,now i am not sure whether i can call this BADI from a print program.
    Infact i am new to BADI's.Please advise
    Regrads
    Praneeth

    The core process is pretty much similar to the User exit ie when you implement a BAdI, you are only inserting the code that gets triggered. The actual trigger ie the call to the BAdI must already be available in the print program.
    Regards,
    Suresh Datti

  • Implement BADI PT_GEN_REQ for program RPTARQEMAIL - ESS

    Hi,
    I was trying to implement this method with the idea to send, always, a mail to the HR responsible.
    For that I've written the following code (example):
    method IF_EX_PT_GEN_REQ~GET_ADMINS.
    data:
    admins_receivers TYPE ptreq_email_receivers_tab,
    p_receivers_temp TYPE somlreci1 .
    p_receivers_temp-receiver = 00000001.
    p_receivers_temp-rec_type = 'P'.
    append p_receivers_temp to admins_receivers.
    endmethod.
    The problem is that it is not being sent any e-mail.
    Any idea what is missing?
    Thanks!
    Any idea where can I find an example?
    Edited by: Pedro Taveira on Nov 29, 2010 6:52 PM

    The problem was with the parameters...
    It is solved

  • How to call a badi implementaion from report program

    Hi ABAP Guru,
    I have ZBADI_FALLBACK_DEF new badi created by me and there two implementation ZBADI_FALLBACK_IMP and ZBADI_FALLBACK_IMP1
    Now I am calling this badi from report program
    DATA:
       W_HANDLE TYPE REF TO ZBADI_FALLBACK_DEF.
    * GET BADI - for getting objects..................
    GET BADI W_HANDLE.
    * CALL BADI - for calling interface methods.
    CALL BADI W_HANDLE->ADD.
    This is fine,,,
    But I want to call only one implementaion ZBADI_FALLBACK_IMP.But here two implementaion is called.Please help....

    Hi Palash,
    Then you create filter BADI  and  use filter in implementation.
    While getting BADI reference use filter
    GET BADI W_HANDLE FILTERS
    Thanks & Regards,
    Arun

  • Will BADI BBP_CREATE_REQ_BACK be called by program  CLEAN_REQREQ_UP?

    SRM gurus,
    We are in SRM 4.0 (SRM_SERVER 500).
    I use t code SE38 to run program CLEAN_REQREQ_UP in SRM to convert shopping carts into purchase requisitions in R3 backend. I put our customized codes in BADI BBP_CREATE_REQ_BACK and I thought that this BADI will be called when a shopping carts was converted into a purchase requisition.
    I put a ABAP statement 'break-point.' in the BADI but the program CLEAN_REQREQ_UP did not stop at the BADI BBP_CREATE_REQ_BACK at all.
    Will BADI BBP_CREATE_REQ_BACK be executed when the program  CLEAN_REQREQ_UP runs?
    If the BADI will be called, how can I stop the program when the BADI was executed, so I can debug the codes?
    I did put a hard code statement "break-point." in there but it did not work.
    If the BADI will not be called by the program  CLEAN_REQREQ_UP, when the BADI be called?
    Thanks in advance!
    Fisher Li

    I use t code SE38 to run program CLEAN_REQREQ_UP in SRM to convert shopping carts into purchase requisitions in R3 backend.
    I don't think this report will create PR for your SC.
    Will BADI BBP_CREATE_REQ_BACK be executed when the program CLEAN_REQREQ_UP runs?
    I don't believe so.
    If the BADI will not be called by the program CLEAN_REQREQ_UP, when the BADI be called?
    It's called within a few steps down the stack of FM META_REQUISITION_CREATE.

  • How to debug program or Badi in SRM 7.0 through PORTAL

    Hi friends,
            My question is How to debug a Badi or any program  in SRM 7.0 through PORTAL . I putted External break point in Badi and following settings has been done in Utilities u2013 Settings u2013 Abap Editor
    Front-End Editor (new)  - checked
    In debugging tab
    Users - maintained (entered same user name using in Portal as log on user name)
    IP Matching u2013 checked
    ABAP Debugger u2013 New debugger u2013 checked
    Session breakpoint active immed.  - Chcecked
    I am not able to debug this badi through Portal and some time after I am getting Time out error whereas Time limit is extended up to 600 seconds . In SRM 5.0 it is working fine .I have SAP ALL authorization   if any other procedure is available or for that any specific role needed then please share with me.
    Regards,
    Abhijeet
    Edited by: abhijeet panse on Jun 29, 2010 8:02 AM

    Hi ,
             Thanks Iftekhar and Yramki for replying. I checked everything and we have only one server for Development but still I am not able to debug, I checked AL08, it is showing same server we donu2019t have different application server for development. I donu2019t have any idea about that How to activate debugger for specific user id, please suggest me.
             Parameter set with value rdisp/tpda_for_ext = 1 . In the BADI i putted one infinite loop and then try to debug from the SM50 through Menu program/session u2013 Program u2013 Debugging but from GUI new debugger session is not opening and some time after process has been deleted from the SM50 and I got error message in the Portal.
             Do I need or missing some setting in Portal . Please suggest me.
    Regards,
    Abhijeet

  • "Acrobat.exe- Bad Image" error message, Can't open anything with Acrobat

    I have Acrobat Pro 9.0
    OS Windows 7
    Just started having this error problem show up within the past couple weeks.
    Every time I try to open a document the browser freezes up for a few minutes (and I've tried on two different browsers), wont load the page, then I get this message:
    Acrobat.exe - Bad Image
    C:\Program Files (x86)\Adobe\Acrobat 9.0\ Acrobat\BIB.dll is either not designed to run on Windows or it contains an error.
    I have had this program for several months and never had an issue.
    Haven't changed anything I can think of...
    Any suggestions would be greatly appreciated!!
    I also tried just opening the program directly and got the same message.

    My Acrobat 9 Pro freezes constantly. Seeing a pdf inside mutiple browser is not possible. Most of the time Acrobat 9 Pro and Acrobat Reader X starts within 5 min! As soon as I do anything, the top bar that shows "File", "Edit" etc. dissapears and averything freezes! Security software with possible firewalls I've uninstalled. Un- and re-installing Acrobat doesn't change anything. I'm using MS Windows XP, running Adobe CS4. Making any pdf's is no problem. I just can't see them. I can open a pdf inside Illustrator but that goes page by page. Any help?

  • New BADI concept in ECC 6.0

    I am trying to gain an understanding of how I would implement one of the new BADIs in ECC 6.0 (badis implmented through and enhancement spot , get badi, call badi concept).
    I am  not looking for information on how to implement a classic badi through se18/se19.
    I have also ready through the SAP help on the new badis and it is still not clear to me. So, please do not provide links to the standard SAP help. I have that.
    I am wondering if anybody has a whitepaper, example, etc.  that explains the details of how to implement, use, trigger the  new badis linked to an enhancement spot.

    Hi  J.J,
    enhancement spot
    A repository object for the administration of explicitly created enhancement options. Enhancement spots are components of a tree structure hierarchy, of which the branches represent composite enhancement spots and the leaves are simple enhancement spots. Implicitly available enhancement options do not have any enhancement spots.
    composite enhancement spot
    Semantic combination of simple and other composite enhancement spots with the aim of providing structure.
    simple enhancement spot
    Reference to a set of enhancement spot element definitions. A simple enhancement spot can occur independently or as a component of a composite enhancement spot.
    ENHANCEMENT-POINT
    Defines a position in an ABAP program as an enhancement option,
    at which one or more source code plug-ins can be inserted.
    the syntax will be like
    ENHANCEMENT-POINT enh_id SPOTS spot1 spot2 ...
    STATIC
    INCLUDE BOUND.
    Enhancement Options
    Definition
    Enhancement options are positions in Repository objects where enhancements can be made. These options are either explicitly defined (by the developer) or exist implicitly. Explicit enhancement options are generally defined in a central initial system. Enhancements are made in follow-on systems.
    Use
    Explicit enhancement options can currently be defined by:
    1. Explicitly flagging source code points or sections in ABAP programs. For an enhancement, these can be enhanced or replaced by source code plug-ins.
    2. Including Business Add-Ins (BAdIs) in ABAP programs. These programs are then enhanced by object plug-ins with predefined interfaces.
    Explicit enhancement options are managed by enhancement spots and enhanced by enhancement implementations.
    Currently, implicit enhancement options are:
    1. Specific options in ABAP programs – such as the end of the program – which can be enhanced by source code plug-ins.
    2. Parameter interfaces of function modules, which can be enhanced with parameters.
    3. Attributes and parameter interfaces of global classes, which can be enhanced with attributes or parameters.
    Implicit enhancement options always exist and do not require enhancement spots. They are also enhanced by enhancement implementations.
    BAdIs Embedded in the Enhancement Concept
    Use
    The definition of BAdIs is managed by enhancement spots. A simple enhancement spot for BAdIs can contain several BAdI definitions as enhancement spot element definitions. BAdIs that would otherwise be spread out in the system can be grouped together semantically.
    This structuring is mirrored on the implementation side through the enhancement implementations. A BAdI can be implemented by several BAdI implementations that are managed by enhancement implementations. A simple enhancement implementation for object plug-ins can contain several BAdI implementations of an enhancement spot as enhancement implementation elements and can implement a BAdI multiple times. Therefore, several enhancement implementations can be assigned to one enhancement spot.
    A BAdI is always assigned to the same package, like the enhancement spot, to which it belongs.
    Example
    The structuring features of BAdIs in enhancement spots can be of a technical or a subject nature.
    If, in the definition of several BAdIs, you have the provision that they are to be used in the same context (this is a feature known only by the person who defines the BAdIs), they must be used by the same simple enhancement spot.
    From a subject point of view, all BAdIs must then be grouped together by affiliation to functional units – for example, payroll – in combined enhancement spots.
    Thanks and regards
    suma sailaja pvn

  • Webcam being used by another program/Other Person ...

    Okay, here's the problem. I just bought a new windows 7 PC and it came preinstaled with Skype. I tested the webcam and everything seemed fine. Then we got a video call from someone that uses an ipod and the video wouldn't work. I looked and it said that my webcam could not be used because another program must be using it. Only thing is, NO OTHER PROGRAMS ARE RUNNING. Not even Explorer or Firefox.
    So I decided to do some testing. First I tried downloading it on my Android phone to make sure it wasn't related to an iphone/ipod problem, still doesn't work. Then I double checked to make sure my drivers and software were all updated. Everything is up to date. Then I disabled auto-sign-in on startup in case skype was loading before my webcam driver was, still nothing.Then I tried running in compatability mode for windows xp, Skype freezes and wont even start. Now I'm officially out of ideas
    So to sum it up. When I start skype, and go to video, my webcam will work, but as soon as someone tries calling, they can't see any video. I'll list all my stats below. This is very frustrating because this is the same webcam that I was using on an older computer that recently gave me problems, so I bought an entirely new computer and it works great, but now skype won't work. Why can't this stuff ever be simple?
    Windows 7 64bit.
    AMD DUAL CORE 1.3ghz processor
    4 GB of RAM
    Skype 5.9
    Webcam Logitech c110
    Webcam is designed to work with windows 7
    Webcam software and drivers are all up-to-date
    Webcam worked with Skype on windows XP just a week ago
    Webcam works with other programs NONE OF WHICH are ever running in the background. Double, no Tripled checked. No messenger, Oovoo, Explorer, Firefox, Yahoo, or anything.
    Does anyone have ANY ideas? This is really important to me. We recently moved out of state and this is the only way we can see my family. Thank you in advance for any help.

    I am also having the same subject problem.  When I go to Tools->Options->Video settings the video stream is OK.  So what interfering software is running during a video call that is not running when I check the video settings?  I have included some thoughts and observations below.
    My webcam device name in Windows is:  USB Video Device.  The OS is Windows XP Pro SP3.  SKYPE version is 5.9.0.115.  Webcam is Logitech C210 and I am using the Microsoft USB video device driver, not the Logitech drivers. I have uninstalled the other Logitech software a long time ago. 
    When I open My Computer in Windows and click on “USB Video Device” the  USB Video Device window opens with webcam preview video displayed as long as no other programs are using the webcam.  If SKYPE is running and producing video (Tools->Options->Video settings), instead of good video displayed on the USB Video Device window I get the Windows video error message shown below.
    Windows video error message: 
    window title: Video Preview Failure.
    “Creation of the video preview failed.
    Please check the device connection and make sure that the device is not being used by another application or user.”
    Similarly, If I start SKYPE (Tools->Options->Video settings)with no other programs running that use the webcam I get good video.   However, if I start the Windows USB Video Device preview video before I start the SKYPE video, I get the SKYPE video error  message shown below that indicates that SKYPE can’t start the video. 
    SKYPE video error  message: 
    Black window with white exclamation point in red circle. 
    “Can’t start video.  Try closing other programs that might be using your webcam.”
    While this little experiment is completely expected, I have been getting the SKYPE video error  message when I try to make video calls.  Just before the call, Tools->Options->Video settings results in a good, solid video stream.  During the call I can see and hear my contact but my contact can only hear me.  The SKYPE video error  message appears.  The webcam icon shows a red diagonal line through it.  My contact can very briefly see me when I click on the webcam icon temporarily removing the red diagonal line.  But then SKYPE returns to the error state.
    As far as I could tell no other applications were running that could conflict with SKYPE and result in this error condition!  Does anyone have any additional suggestions for identifying the interfering  software or application?  Or is there some other reason this particular SKYPE video error message occurs?
    Thanks in advance for any suggestions.
    P.S.:  It’s too bad the SKYPE program can’t provide some diagnostic clue to help the user identify the offending application software.

  • No longer connecting to 4G after programming

    I live in mid-MI where 4g coverage is not a problem. As long as I've had this phone (S3), I have had solid 4G connections. Last week, I went to CO and had no issues connecting to 4G. On Saturday, I returned to MI, checked my phone, had a 4G connection, then dialed *228 to program the phone (as I normally do when I travel). As soon as the programming was finished the phone switched to 3G and hasn't been able to get a 4G connection since. I have removed the SIM card, rebooted, put it on airplane mode and even did a factory reset. I have checked other friends with the exact same phone and the same carrier and while sitting next to each other, they have 4g and I have 3g. Does anyone have any ideas on this? I'm thinking the SIM card is bad after the program?

    You don't update the PRL on 4G phones by dialing *228, it's handled by the SIM card.  Usually it's updated as needed whenever you reboot the phone.  The SIM card may have become corrupted when *228 was dialed; you may want to get a new one (they are free at your local Corporate Verizon store).

  • Creation of a BADI

    Hi SAP Guru's,
    Can someone provide me a detailed step by step procedure to create a BADI in CRM.
    You can also mail me at [email protected]
    Regards,
    Amit

    hi amit
    Go through the following Steps
    Goto Tcode SE18 for BADI Definition Creation.
    give definition Name : ZBADI_CUST--> Press F5 button for Creating the Definition.
    Give Description for the BADi Definition : XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    In the Attributes tab you will find "TYPE" Tab
    there you will check the Check Box as "Multiple" because this badi definition is active for multiple BADI Implementations
    save & check the Badi Definition.
    Click on "Interface" tab
    Double Click on the Interface Name that is "ZIF_EX_BADI_CUST"
    here the screen is take you to tcode SE24
    here you will declare the methods
    give method name as "GET_MATERIAL" as INSTANCE Level.
    Click on Parameters Button just above your Method"GET_MATERIAL"
    and Give Parameters as
    P_MATNR IMPORT Type MATNR press enter
    X_MARA CHANGING MARA press enter
    save check and activate your badi Definition.
    Note : you just declare the method in BADI Definition Section you will write the Method Implementation
    in BADI IMPLEMENTATION Section.Because BADI's are pure Abstact class.
    Goto Tcode SE19:
    give Implementation name as : ZBADI_CUST_IMPL and press "F5" for Creation
    it asks BADI Definition name as "ZBADI_CUST" just you create .
    and press enter
    and you give the BADI Implementation Description : XXXXXXXXXXXXXXXXXXXX
    save this Implementation
    click on the Interface tab and double click on the Implementation Class as "ZCL_IM_BADI_CUST_IMPL".
    then you have the GET_MATERIAL Method . double click on the Method it opens the Code window for that method.
    as looks like bellow.
    method ZIF_EX_BADI_CUST~GET_METERIAL .
    Here you will write the coding part.
    if not p_matnr is initial.
    select single * from mara
    into x_mara
    where matnr = p_matnr.
    endif.
    endmethod.
    save,check & activate
    come back and activate again.
    then you need to use this badi in SE38 program.
    go through the following Code
    REPORT ZCUST_BADI1_IMPL_CALL.
    TABLES : MARA.
    *creatingthe BADI interface ref to following class
    DATA : OBJ TYPE REF TO ZIF_EX_CUST_BADI1.
    PARAMETERS : P_MATNR LIKE MARA-MATNR.
    START-OF-SELECTION.
    *passing the BADI interface ref var to following class method to get obj of BADI business add in class
    CALL METHOD CL_EXITHANDLER=>GET_INSTANCE
    EXPORTING
    EXIT_NAME =
    NULL_INSTANCE_ACCEPTED = SEEX_FALSE
    IMPORTING
    ACT_IMP_EXISTING =
    CHANGING
    INSTANCE = OBJ
    EXCEPTIONS
    NO_REFERENCE = 1
    NO_INTERFACE_REFERENCE = 2
    NO_EXIT_INTERFACE = 3
    CLASS_NOT_IMPLEMENT_INTERFACE = 4
    SINGLE_EXIT_MULTIPLY_ACTIVE = 5
    CAST_ERROR = 6
    EXIT_NOT_EXISTING = 7
    DATA_INCONS_IN_EXIT_MANAGEM = 8
    others = 9
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *calling the implementation class method via business add in class object
    CALL METHOD OBJ->GET_MATERIAL
    EXPORTING
    P_MATNR = P_MATNR
    CHANGING
    X_MARA = MARA.
    WRITE :/ MARA-MATNR,MARA-MBRSH,MARA-MTART.
    If you find useful mark the points
    ~~Guduri

  • User Exits or BADI for Tcode ME51N

    Hi All,
    My requirement is i need to check available quantity at the time of Purchase req creation. If PR quantity is available in stock then it should not allow to create new PR.
    Is there any user exit or Badi for this requirement. Kindly send me.
    Regards,
    Paras

    Hi Paras,
    Copy this program and execute. Will get all list of existin g Exits and Badis.
    very useful program
    Below code will give a list of BADIs for particular transaction.
    *& Report ZNEGI16 *
    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.
    endcase.
    Reward points if this helps.
    hema.

  • Internal table in badi

    Hello friends,
    I am working with Badi's and my requirement is i need to fetch the data from database in badi method and have to use that data in my abap program.
    So, is there any way i can declare internal table as export parameter of badi method or else if I declare internal table in my abap program and export that while calling badi method then how to declare internal table as import parameter in badi method.

    Some things are not clear here..
    1 - You have a ABAP Program that trigger's a process that calls a BADI and then return to your ABAP Program
    OR
    2 - You have implemented a BADI in a process that runs separately from the ABAP Program, and you need to grab data from the BADI into your Program?
    I`d suggest:
    1 -  Try to use a static method or a static class with a method that would "hold the data" from the badi into you memory. You could use methods like SET_INT_TABLE in BADI and then GET_INT_TABLE in your ABAP Prog.
    2 - Not sure why you want to do this, but use a Z table.
    Regards
    Edited by: Mauricio Roberto Cruz on Feb 11, 2011 2:26 PM

  • My first java programming - Need some help please!!!

    I have to create a simple java program which i am not good at i am ok in C but my java is quite bad. The program need to define a class called Student and with a string called StudentNAme, a integer StudentID(key), An array of 8 integers called Marks that holds the students marks for 8 modules. It also says Include appropriate accessors, mutators and constructor(s) as well as a method to update the student�s marks. Anybody please help me in this question. I prefer an simple example of this program so I can learn faster, I dont even know how to declare a class.. So sorry but please help me out and thanks in advance

    I would also suggest you try using an IDE like
    eclipse (free)
    www.eclipse.org
    This will help you get a working program much faster.But please do also tell them that if they have troubles using it, they're supposed to read the IDE manual instead of posting here.

  • Updating Acrobat 9.0 causes error "Acrobat.exe - Bad Image"

    Full error is:
    Acrobat.exe - Bad Image
    C:\Program Files (x86)\adobe\acrobat 9.0\acrobat\BIB.dll is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vendor for support.
    Running repair doesn't fix it, only un-installing it and re-installing from scratch. This happens on multiple machines with the same result. As soon as the update is ran it no longer opens and has the error.
    I've tried manually updating it version to version starting at the first 9.1 release but I run into the same error after installing the first update. Uninstalling Acrobat after manually running the first update produced another error durring uninstallation. Error 1905.Module C:|Program Files (x86)\Adobe\Acrobat 9.0\Acrobat\authplay.dll failed to unregister. HRESULT -2147220472. Contact your support personnel.
    System is Windows 7 Enterprise 64bit running on a VDI in a box from Citrix. Version of Acrobat is Pro.
    Any thoughts or ideas on this would be great, thanks.
    Joel

    Are you running updates from the Help menu in Acrobat or by downloading the updates. When you have problems, it is probably best to try running the updates as downloads from http://www.adobe.com/support/downloads/product.jsp?product=1&platform=Windows. You will need to generally install the updates in order. You would reboot after the last update.

Maybe you are looking for