BAdI error : type of EXIT_REF1 cannot be converted to the type of EXIT_REF

Hi all,
The below was the posted earlier for BAdI. Ihave followed all the steps. And i have written the below code. Syntactically it is not showing any errors, but when i am activating i am getting error
like " The type of EXIT_REF1 cannot be converted to the type of EXIT_REF". where i am doing the mistake..??
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.
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.   "" The type of EXIT_REF1 cannot be converted to the type of EXIT_REF"
call method exit_ref1->lineselection
EXPORTING
i_carrid = wa_spfli-carrid
i_connid = wa_spfli-connid.
clear wa_spfli.
Thanks in advance
krupali.

Hi,
Both are of different types
data: exit_ref type ref to ZCL_IM_IM_LINESEL,
exit_ref1 type ref to ZIF_EX_BADISPFLI1.
Assiging one type another type is not allowed.
Rhea.

Similar Messages

  • Error Message: JBO-25009: Cannot create an object of type:oracle.jbo.domain

    Hi, When im giving a default value to a date column in the attribute settings i get this error when im running my jsp page (bc4j web application):
    Error Message: JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date with value: 31-dic-2099
    How can i fix that? I�ve already trying all possible date formats.
    Thanku

    The default format for Date (oracle.sql.DATE which is the superclass of oracle.jbo.domain.Date) is yyyy-mm-dd.

  • Just downloaded iTunes to new dell laptop, tried syncing my iPhone get an error message:  "this iPhone cannot be used because the Apple Mobile Device service is not started".  What does this mean? I have had this phone for over a year..

    Just downloaded iTunes to new dell laptop, tried syncing my iPhone get an error message:  "this iPhone cannot be used because the Apple Mobile Device service is not started".  What is the issue, had this phone over a year??

    I had this problem before. I like to disable extra services to speed up my computer and I disabled the Apple Mobile Device service and had to re-enable this.
    You can do that by going Control Panel>Administrative Tools>Services. Once you have gone to the services window, look for Apple Mobile Device and right-click. Select "Properties". There should be some information about the service as well as the label "Startup Type" with a drop-down menu beside it. If it says "disabled", that is your problem; Change the selection to anything except disabled (Automatic is easier and ensures that you can sync as soon as itunes opens).
    If this doesn't work, I would look into your anti-virus' settings. Good Luck!

  • Erased all content on 3G but now won't sync with iTunes. Error states, "This iPhone cannot be used because the Apple Mobile Device service is not started." I don't want phone service on this old 3G. Just want to use it as an iTouch. Any suggestions?

    Erased all content on 3G but now won't sync with iTunes. Error states, "This iPhone cannot be used because the Apple Mobile Device service is not started." I don't want phone service on this old 3G. Just want to use it as an iTouch. Any suggestions?

    Type "Apple Mobile Device service " into the search bar at the top of this page by "Support"

  • When I update my nano ipod I get an error message "User ipod cannot be updated.  The disk couldnot be read from or written to."   How can I overcome this error message.

    In the iTunes window, when I update my nano ipod, I get an error message "User ipod cannot be updated.  The disk could not be read from or written to."   How can I overcome this error message.

    Hello there dilip77707,
    It sounds like you are getting this error message that your iPod cannot be read from or written to when you are trying to update your iPod Nano. I recommend the troubleshooting from the following article to help you get that resolved. Its pretty straight forward, just start at the top and work your way down as needed:
     'Disk cannot be read from or written to' when syncing iPod or 'Firmware update failure' error when updating or restoring iPod
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • Get error message "this "**" file cannot be attached until the files already attached are finished uploading" even when attaching 1 file

    I attached multiples .pdf files to an email. Tried to attach the next file before the previous 1 finished attaching. Got error message "this "**" file cannot be attached until the files already attached are finished uploading". Was never able to attach that 1 file to the email that I received the error message for; was able to attach subsequent files to that same email & send it. Now, I often get the same error message, even if I only attach 1 file & esp. when attaching .ai or .jpeg files. What can I do to fix this problem?

    It looks like nobody has an answer for this despite of the 80 something views!
    And here i thought Adobe admin would be monitoring the forum, but surprisingly, they don't even have the answer for this!!!

  • Error message:This IPHONE cannot be used because the Apple Mobile Device service is not started, after trying to upgrade to IOS5

    Error message:This IPHONE cannot be used because the Apple Mobile Device service is not started.  It is a 3GS version 4.3.5 (8L1).  I had upgraded my ITUNES and after two attempts to update to IOS 5 (it timed out each time), I am now getting the message above.  everything seems to be working.  I have rebooted both computer and IPHONE. I am have had for couple of years.  Anyone have other tips or ideas?

    There are instructions on this page for how to start it and how to set it to start automatically : http://support.apple.com/kb/TS1567

  • When i start itune than error shows this ipod cannot be use because the required software  not  install

    when i start itune than error shows this ipod cannot be use because the required software  not  install

    Have you tried removing and then einstalling the Apple software:
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP

  • Ipod touch for Christmas, but cannot get started: after installing itunes, when connecting to my laptop I get no instruactions, just the error message "This iPod cannot be used because the Aplle Mobile Device service is not started". Any suggestions???

    ipod touch for Christmas, but cannot get started: after installing itunes, when connecting to my laptop I get no instruactions, just the error message "This iPod cannot be used because the Aplle Mobile Device service is not started". Any suggestions???

    Jennifer...
    Follow the instructions here >  iPod touch: How to restart the Apple Mobile Device Service (AMDS) on Windows

  • Could not complete your request because an adjustment or fill layer cannot be converted to the desti

    Getteing the following message when dragging layers between files - Could not complete your request because an adjustment or fill layer cannot be converted to the destination document mode. Original file was client created and supplied. I have issolated the issue- two hue/saturation adjustment layers. I can and will just recreate them in the new file, but am looking for a root casue or long termsolution as it is a new client I believe will be sending me a good amount of production work.

    Actually, 16-bit mode (some filters work in 8-bit only, though) is recommended to reduce the introduction of posterization which can easily arise with the relatively low precision of 8-bit mode. It doesn't benefit all work, but, especially if you use adjustments or low-opacity brushes, it's something to consider.

  • Error message this itouch cannot be used because the apple mobile device service is not started

    Went to sync my itouch and got the error message: This itouch cannot be used because the apple mobile device sevice is not started.  This has never happened before.  I have deleted my itouch, but could not restore since it is no longer being recongnized in itunes.  What can I do to fix this?

    iPhone, iPad, iPod touch: How to restart the Apple Mobile Device Service (AMDS) on Windows

  • I cannot not add iTunes to my iPad, I receive the following error message: This iPad cannot be used because the Apple Mobile Device service is not started.

    I cannot not add iTunes to my iPad, I receive the following error message: "This iPad cannot be used because the Apple Mobile Device service is not started".

    http://lmgtfy.com/?q=%22Apple+Mobile+Device+service+is+not+started%22

  • Error message, I pod cannot be used because the apple mobile device services is not started. What mobile device. I dod not have an i phone.

    error message, i pod cannot be used because the apple mobile device services is not started. I do not have an apple mobile device. Please help.

    Try here:
    iPhone, iPad, iPod touch: How to restart the Apple Mobile Device Service (AMDS) on Windows
    Your iPod is an Apple Mobile device.

  • Value cannot be converted to requested type

    hi.
    can anyone tell me why i get the following error:
    [sunm][Oracle JDBC Driver]Value can not be converted to requested type
    I get this error when i try to execute a SQL query like the one below:
    SELECT * FROM orders WHERE orders.date BETWEEN '20-SEP-05' AND '22-SEP-05'
    this is not the exact query i am trying to excute, but serves the purpose of this forum post.
    ideally, i'd like to use the "?" parameter instead of the dates written above. the application's user selects a StartDate and EndDate for his search. this should display a list of orders within that date range.
    i have tried using several date formats, as well as the TO_DATE() function. i always get this error when using the "?" parameter but it displays the correct records when i use an actual date.
    i also only get this error when working with dates. i can use the "?" parameter with no problems for any other table column.
    someone please help!!

    How is the user selecting a start and end date? By using the calendar? You might need to convert the calendar's date into an SQL friendly date. For instance, try this:
    somethingRowSet.setObject(1, (new java.sql.Timestamp(((java.util.Date)StartDate.getValue()).getTime()).toString()))You might also want to try turning on printStatements in the row set's properties. This will cause the row set to print out the parameters to the log file so you can then analyze what exactly the row set is doing.
    Hope this helps.
    -Jeff

  • Error of ZCQC TAN cannot be invoiced with billing type ZCQB

    Hi Experts,
    While creating billing document thru Sales Order (Compounding Re-Order type), an error "Item category ZCQC TAN cannot be invoiced with billing type ZCQB" is coming.
    Please provide guidance to resolve error.

    Hi PARIKH NIKHIL
    Maintain the copy controls in VTFA -(Order Related Billing)
    --Select your  Billing document & Sales order Document
    --In header
    Copying requirement- *001*
    Reference number-- E
    Check mark copy item number
    Save It
    --Check in VOV7 select your item category & check billing reference should be  B (Order Related Billing)
    --Raise Billing in VF01 with reference to order number
    Let me know if your problem is solved
    Regards
    Pradeep

Maybe you are looking for