Calling BSP from report and return control back ?

Hi All,
      My requirement is as follows :-
1. I am calling a BSP from report using CL_GUI_HTML_VIEWER->show_url. The BSP page is displayed successfully.
2. Then, I perform some operations and want to return some data back to the main program (from where it was called - Report) and continue execution from there
How do I accomplish the second requirement (Control doesnt come back once I close the BSP) ?
Regards,
Ashish

how to generate events from html code in the html control back to your ABAP check out this demo program
SAPHTML_EVENTS_DEMO
say for example, in your case you are showing the BSP in GUI HTML control and on clicking a link you want to pass some data from your link to ABAP program and the ABAP should receive the value and process it and may be comeback to same BSP or go some to some other screen/transaction.
steps to follow:
after creating the html control
register event for call back and call the BSP url.
create object hviewer
             exporting
               parent = mycont.
    myevent-eventid = hviewer->m_id_sapevent.
    myevent-appl_event = 'x'.
    append myevent to myevent_tab.
    call method hviewer->set_registered_events
      exporting
        events = myevent_tab.
    create object evt_receiver.
    set handler evt_receiver->on_sapevent
                for hviewer.
    hviewer->enable_sapsso(
      exporting
        enabled    = 'X'
      exceptions
        cntl_error = 1
        others     = 2
    if sy-subrc <> 0.
    endif.
    call method hviewer->show_url
      exporting
        url = wf_url.
in your BSP the link should look like below
A HREF=SAPEVENT:TAGS?value to be passed to your ABAP> link text </a
when you click this link in bsp then you can then capture the value "TAGS" to know which link was clicked and the value passed after the ?
link is just one option, you can also send whole form data.
this type of link and form will only work when your BSP is invoked within HTML contro. if its invoked from standalone browser these wont work. so you amy want to dynamically show/hide "sapevent" links based on where it runs.
Hope this is clear. if not do getback.
Regards
Raja
Edited by: Durairaj Athavan Raja on Sep 9, 2008 1:04 PM

Similar Messages

  • CALL BSP from ABAP report

    I want to execute a BSP from ABAP report. The BSP is the standar CRM CASE MANAGEMENT BSP.
    I have a CRM CASE list in ABAP report and when I make double-click on one case i want to call BSP to show this case. I don't want to execute the GUI transaction CRMD_CASE. I need to execute the BSP.

    Hello Ivan,
    To call the BSP from the ABAP report following thread will be helpful for you.
    Call BSP from SE38 Program ?
    Regards
    Aashish Garg
    Message was edited by:
            aashish garg

  • My iphone hangs any time.I see a call coming but i cannot attend. My call drops anytime and i cant even end the call.The settings page doesnt respond many times.I have given the phone to Apple care , they update the software and return it back to me

    My iphone hangs any time.I see a call coming but i cannot attend. My call drops anytime and i cant even end the call.The settings page doesnt respond many times.I have given the phone to Apple care , they update the software and return it back to me.IT WORKS FINE FOR 3-4 DAYS AGAIN THE SAME. Its under warranty and i am disappointed with the Apple product and service

    If you used your backup to restore the data after it got returned, set it up as new device and don't use the backup data afterwards. It seems that some data inside the backup are corrupt. Follow this article and set up the account info and other setting manually after that:
    Use iTunes to restore your iOS device to factory settings - Apple Support

  • I purchased an unlocked iPhone 4S from US and returned to india,but now I can't activate the phone.

    I purchased an unlocked iPhone 4S from US and returned to india,but now I can't activate the phone. Called up the apple support team in India they said it is already unlocked from AT&T. What am I suppose to do ?
    Previously my iTunes was showing the phone and summary etc etc. The India Support center asked me to upgrade it to 5.1.1 then the new sim will be recognised, but now nothing is happening, even iTunes is not showing the Summary page.
    Please suggest?
    I never expected apple stuff to be like this.

    mithaani wrote:
    Got an (unlocked) iphone 4s from US
    As kb1951 states, unless this phone was purchased directly from Apple, it is not officially unlocked. In the US, only Apple sells officially unlocked iPhones. The message you got generally means your phone was hacked to unlock it...jailbroken...Apple's servers have detected such & are preventing your phone from activating...there's nothing wrong with the activation servers.
    You'll need a sim card from the carrier your phone is locked to in order to activate it. If you don't know what carrier, you'll have to call AppleCare in the US to determine this info. Be aware, US carriers will not authorize official unlocking unless you are a customer that used the phone on their network. Thus, there is most likely no way for you to get this phone officially unlocked.
    Good luck.

  • Calling Forms from Reports

    Hi...
    We can call Reports from Forms using RUN_REPORT_OBJECT or RUN_PRODUCT. Can we call Forms or any other product from Reports? If so, how can we do it? If anyone can help me in this...

    Hi Gayathri
    As such there is no product integration for calling Forms from Report. You can call 6i graphics from Reports 9i if you are running a 6i rdf file with OGD object in it and if you have a 6i home set in the same machine where Report s9i is running. For Form, if you wish to run it as an independent request, in Reports 9i, you can always import a java class in Reports and then call that class method in any of the triggers which in turn send out a Forms request to Forms servlet.
    Thanks
    Rohit

  • HT3939 I buy iphone 5 from us and when i back to saudi arabia I found the model A1428 how to replace it to model suuport in saudi arabia like A1429

    i buy iphone 5 from us and when i back to saudi arabia I found the model A1428 how to replace it to model suuport in saudi arabia like A1429
    or A1429 will be support in saudi arabia

    Return the existing iPhone to the US if still in the return window then buy the model you want somewhere outside the US.
    Only the A1428GSM and A1429CDMA are sold in the US.
    Apple does not sell or offer the A1429GSM in the US.
    Apple will not exchange an iPhone for a different model in a different country.

  • Statutory reports and returns in India .....

    Hi Every one,
    I want to know that whether the statutory reports and returns to be submitted in india is available in India or we have to customize and develop one.
    I am not that aware of Forms...I have just gone to PE51 and tried to create a remuneration statement , thats all.
    Also if the returns and reports formats are available in SAP . what is the Transaction Code to see and customize the forms available........
    Please help to solve the query

    Hai..
    Apart from Form 16, Form 24 Form 217(A).. there are many statutory reports to be maintained...
    isbtcprd2\SAPHelp_470SR1\helpdata\EN\dd\38a63a04227748e10000000a11402f\frameset.htm
    Kindly go through the link.. might be helpful to u...
    Manohar

  • I bought my Iphone4S from australia and then moved back to my country which is India. Two days back "GAMES" catogeries was missing from the app store. I have no idea why it went gone missing.I have treied to sign in various times but it doesn't work out.

    I bought my Iphone4S from australia and then moved back to my country which is India. Two days back "GAMES" catogeries was missing from the app store. I have no idea why it went gone missing.I have tried to signing in the app store several times but stil it doesn't show the GAMES catogery. Help me out.

    Try what Terence Devlin posted in this topic:
    Terence Devlin
    Apr 14, 2015 11:21 AM
    Re: Is Iphoto gone ? i want it back!
    in response to Johannes666
    Recommended
    Go to the App Store and check out the Purchases List. If iPhoto is there then it will be v9.6.1
    If it is there, then drag your existing iPhoto app (not the library, just the app) to the trash
    Install the App from the App Store.
    Sometimes iPhoto is not visible on the Purchases List. it may be hidden. See this article for details on how to unhide it.
    http://support.apple.com/kb/HT4928
    One question often asked: Will I lose my Photos if I reinstall?
    iPhoto the application and the iPhoto Library are two different parts of the iPhoto programme. So, reinstalling the app should not affect the Library. BUT you should always have a back up before doing this kind of work. Always.

  • Statutory Reports and Returns

    Hi Every one,
    I want to know that whether the statutory reports and returns to be submitted in india is available in India or we have to customize and develop one.
    I am not that aware of Forms...I have just gone to PE51 and tried to create a remuneration statement , thats all.
    Also if the returns and reports formats are available in SAP . what is the Transaction Code to see and customize the forms available........
    Please help to solve the query
    Thanks And regards
    Srijit

    Hai..
    Form 24  Form 16   Form 217(A) Other statutory deductions like section 80,88,  89(1), professional Tax... etc..
    EASY ACCESS,HR,PY,ASIA,INDIA,SUBSEQUENT REPORTS, PERPAYROLL PERIOD, LEGAL REPORTS..
    Manohar

  • Calling BSP from EBP

    Hi ,
    Has anybody called BSP page from EBP/ITS application ?
    How can I call BSP from ITS ?
    Thanks & Regards,
    Sachin S M

    Hi Sachin,
    the easiest way is to call the BSP as a "catalog"
    Just publish your BSP, then you may find under tab properties the copmplete URL for your BSP Application.
    Then just define a catalog in spro
    "Enterprise Buyer->Master Data->Define Catalogs"
    where you define a "catalog" with the URL under catalog application call structure.
    Result:
    You should find an entry under your tab caltalogs with  the description from your entry made in the customizing.
    Regards
    Andreas

  • Calling BSP from Workplace Inbox

    Is there a way to call BSP from Workplace inbox workitem?

    Hi Ram,
    If you can call URL like http://sdn.sap.com , you can.
    Dany

  • Unique problem, can get calls only from Airtel and...

    Hi Friends, I have a unique problem here and some input on the same.
    I can receive incomming calls only from Airtel and no other service providers. I do not know why. I cannot even recieve calls from landline and also cannot get other providers SMSes.
    Please help me out in this regard.
    I am using Nokia E72 handset

    You may want to check your firewall settings. Go to options-security-firewall. Check to see if it is enabled and the scroll down to exceptions and see if any of those are selected.

  • CALL A TRANSACTION  IN SIMPLE REPORT AND RETURN BACK TO REPORT

    I 'VE A REQUIREMENT IN WHICH I HAVE TO MAKE A REPORT PROGRAM. IN THIS REPORT PROGRAM I HAVE TO CALL A TRANSACTION cs11 IN BACKGROUND AND THEN PICK ITS OUTPUT VALUE (DISPLAYED IN alv GRID OF cs11) AND THEN RETURN BACK TO MAIN PROGRAM. DO SOME CALCULATION WITH THE BROUGHT DATA AND THEN DISPLAY THEM ON THE REPORT alv OUTPUT.
    iS THIS POSSIBLe? IF YES? HOW.
    PLEASE HELP.

    try creating two reports.....ztest_a and ztest_b
    do your call transaction in ztest_b
    in ztest_a you can write submit ztest_a and return....
    see if this works...
    Message was edited by:
            Priyank Jain

  • Calling VA01 from Report,how to get the Sales Order  No when Back.

    Hi all,
    I have a requirement of calling va01 from the report and have done that using
    did recording ...&
    call transaction va01 using bdcdata.
    but my problem is when back from that trasaction i have to get the sales order that is created . Is it possible to retrieve that value from va01 .i am unable to get . anyone pls share

    Use the addition MESSAGES INTO itab with call transaction va01 using bdcdata.
    Effect of MESSAGES INTO itab:
    Using this addition, all the messages sent during batch input processing are stored in an internal table itab of the type BDCMSGCOLL from the ABAP Dictionary.
    If the call transaction is successful then retrieve the last message from itab and then in any field among MSGV1,MSGV2,MSGV3,MSGV4 of itab u will get the document no.
    And when doing the call transaction pl. choose update mode as 'S' or 'L'.
    Regards,
    Joy.

  • Calling JSP from Forms and going back from JSP to Forms

    Hi,
    We are calling JSP from Forms 6i using show_document
    I'd like to go back to tha calling Form from the JSP.
    How can I construct the URL that would lead me back to the same Form and Forms session where the JSP was called from?
    Thanks,
    Arpad

    Thanks Shay,
    works for me too...
    Now:
    when I use the "Back" button of my IE to go back from JSP to the Forms session, it works for Jinitiator 1.1.8.19, but if I use Jinitiator 1.3 I got hung...
    Any ideas how could I make it work from Jinit 1.3?
    Thanks again/
    Regards,
    Arpad

Maybe you are looking for