Controller request to another one which is in another bsp appl. + attrib.

Hi everybody,
how can I call a controller from another controller which is in a separate BSP-application and how can I get some of its controller attributes? I've split the whole application in two seperate one in order not to lose the overview.
Shouldn't be that complicated, or?
Thanks for any help.
Jens
Edited by: Jens Griesinger on Apr 25, 2008 8:58 PM

Hi,
For Example u take first application znavigation in that controller do_request u write
method DO_REQUEST.
*CALL METHOD SUPER->DO_REQUEST
data: r_view type ref to if_bsp_page.
dispatch_input( ).
  r_view = create_view( view_name = 'app1.htm' ).
  r_view->set_attribute( name = 'first' value = input1 ).
  r_view->set_attribute( name = 'second' value = input2 ).
  call_view( r_view ).
endmethod.
and do_handler_event()
method DO_HANDLE_EVENT.
*CALL METHOD SUPER->DO_HANDLE_EVENT
EXPORTING
   EVENT           =
   HTMLB_EVENT     =
   HTMLB_EVENT_EX  =
   GLOBAL_MESSAGES =
RECEIVING
   GLOBAL_EVENT    =
DATA: button_event TYPE REF TO cl_htmlb_event_button.
DATA: V_TARGET_URL TYPE STRING,
        W_APP_NAME TYPE STRING.
IF htmlb_event IS BOUND AND htmlb_event->name = 'button'.
    button_event ?= htmlb_event.
  ENDIF.
  DATA: data_input  TYPE REF TO cl_htmlb_inputfield.
  IF button_event->server_event = 'submit'.
    data_input ?= cl_htmlb_manager=>get_data(
                                      request = runtime->server->request
                                      name    = 'inputfield'
                                      id      = 'InputName1' ).
  IF data_input IS NOT INITIAL.
    input1 = data_input->value.
  ENDIF.
   data_input ?= cl_htmlb_manager=>get_data(
                                      request = runtime->server->request
                                      name    = 'inputfield'
                                      id      = 'InputName2' ).
      IF data_input IS NOT INITIAL.
    input2 = data_input->value.
  ENDIF.
Construct the Target URL
        CALL METHOD RUNTIME->CONSTRUCT_BSP_URL
          EXPORTING
            IN_PROTOCOL       = 'http'
            IN_APPLICATION_NS = RUNTIME->APPLICATION_NAMESPACE
            IN_APPLICATION    = RUNTIME->APPLICATION_NAME
            IN_PAGE           = '**/znavigation1/zsecondappl.do'
          IMPORTING
            OUT_ABS_URL       = V_TARGET_URL.
        CONCATENATE RUNTIME->APPLICATION_NAME '/**/' INTO W_APP_NAME.
        REPLACE W_APP_NAME IN V_TARGET_URL WITH SPACE.
Pass the input1 and input2  via URL
        CONCATENATE V_TARGET_URL '?input1=' input1 INTO V_TARGET_URL.
        CONCATENATE V_TARGET_URL '&input2=' input2 INTO V_TARGET_URL.
        NAVIGATION->GOTO_PAGE( V_TARGET_URL ).
  ENDIF.
endmethod.
Activate the first application.
second bsp application:
do_request();
METHOD DO_REQUEST.
   data: r_view type ref to if_bsp_page.
   dispatch_input(  ).
Get the values from source BSP Application which was set via URL
    input1 = REQUEST->GET_FORM_FIELD( 'input1' ).
    input2 = REQUEST->GET_FORM_FIELD( 'input2' ).
*IF  r_view IS BOUND.
r_view = create_view( view_name = 'secondappl.htm' ).
r_view->set_attribute( name = 'input1'  value = input1 ).
r_view->set_attribute( name = 'input2'  value = input2 ).
call_view( r_view ).
ENDIF.
ENDMETHOD.
do_handler_event:
METHOD DO_HANDLE_EVENT.
DATA: button_event TYPE REF TO cl_htmlb_event_button.
DATA: V_TARGET_URL TYPE STRING,
        W_APP_NAME TYPE STRING.
IF htmlb_event IS BOUND AND htmlb_event->name = 'button'.
    button_event ?= htmlb_event.
  ENDIF.
DATA: data_input  TYPE REF TO cl_htmlb_inputfield.
  IF button_event->server_event = 'back'.
     CALL METHOD RUNTIME->CONSTRUCT_BSP_URL
          EXPORTING
            IN_PROTOCOL       = 'http'
            IN_APPLICATION_NS = RUNTIME->APPLICATION_NAMESPACE
            IN_APPLICATION    = RUNTIME->APPLICATION_NAME
            IN_PAGE           = '**/znavigation/zapplication1.do'
          IMPORTING
            OUT_ABS_URL       = V_TARGET_URL.
        CONCATENATE RUNTIME->APPLICATION_NAME '/**/' INTO W_APP_NAME.
        REPLACE W_APP_NAME IN V_TARGET_URL WITH SPACE.
        NAVIGATION->GOTO_PAGE( V_TARGET_URL ).
  ENDIF.
ENDMETHOD.
activate the second application.
display the input1 and input2 in the second application view.
try this if u have any error please let me know.
Award me.

Similar Messages

  • Re: Transferring records from one request to another.

    Hi Guys,
    Currently the pseudo delta is loaded with posting date selection as two months(say, may and june- 2 lakh records).
    Every two months once we do full update (3 million records).
    every day we delete the delta request and load data, the full load request will be available.
    for some reason, i want to move few data available in the delta request to full update request. bcoz i have done changes in the routine level, which adds up new record to dso. I want to move these added records to full update request. Bcoz the delta request is deleted daily and loaded. I dont wnat my changes to be executed daily. Bcoz the changes i done in routine level takes more time to complete the dtp.
    Is it possible to move selected records from one request to another? If yes, i will move the record to full update and revert the routine change. so that my data load will be faster.
    Regards,
    Anand

    Close

  • How to copy one request to another request

    Hi all,
    How to copy one request to another new request?
    I have a released workbench request in which it has around 1200 Objects (including data elements, domains, programs and many more), now i need to copy all these objects into a new request.
    I can do this by SE03 (Include Objects in a Transport Request ) transaction, but it is a lengthy process.
    Is there any way to copy directly in one go.
    Plz help...
    Regards,
    Satish Reddy D.

    Hi,
    The thing is like this....
    i have a released request in which we have more than 1200 objects, in that i dont need 10 objects.
    so when i create it as copy of transport request, i just deleted those 10 objects and saved.
    Now, if i transport the new request how many objects will go? 1200 or 1190?
    in the new request i am getting the old request under Comment: Object List Included.
    is it necessary to transport the old request?
    i need to transport only 1190 objects.
    Regards,
    Satish Reddy.
    Edited by: Sathish Reddy on Jan 28, 2010 2:18 PM

  • I transferred my iTunes library from one external hard drive to another and added more music on the same day. How do I get rid of my duplicate files without going through them one by one which would take forever?

    Please help. I have transferred my iTunes library from one external hard drive to another plus added additional music now I have duplicates of the same music in many albums. How do I delete the duplicates without going through them one by one which would take forever? I understand how to get the "show exact duplicate" feature up on iTunes but, because they were added to the library on the exact day I can't seperate them I'm that manner. So each duplicate is right next to eachother in the exact duplicate screen.

    My DeDuper script is designed to help clean up. See this thread for background.
    tt2

  • Hi I have 2 apple id's one which has pulled through everything except my calendars and one which has pulled through just my calendars. How do I move my calendars from one apple id to another?

    Hi I have 2 apple id's one which has pulled through everything into icloud except my calendars and one which has pulled through just my calendars. How do I move my calendars from one apple id to another so that I can see everything in icloud with one apple id?

    Having read some other posts I think I have answered my question. If I was somehow able to terminate my old (unwanted) account and Apple ID I would no longer be able to access the material I bought with that ID-  so I'm stuck. I have to learn how to manage that situation.
    This is unfortunate for Apple consumers. Life is complicated for families these days and this "rule" although it is in place to prevent cheating and fraud makes things unnnecessarily difficult for me and my family as in my niaevity (sic) with the online world I bumbled into this situation. Not everyone is out to rip off Apple - one of the worlds richest corporations- or the entertainers who market their work through iTunes.I would just like to be able to enjoy the entertainment I pay for where and when I like to on whichever computer is available to me. And I'm not terribly computer literate.   
    It would have been nice to have had the opportunity to speak just once to a real person in the employ of Apple to explain my situation to them.

  • I've a few issues, my old computer was out of memory and i changed to a new one which was already on another itunes account.  When i upgraded to os5 my library has gone it has synced with the new computer - how do i restore the old ipad information?  ple

    I've a few issues, my old computer was out of memory.  I changed to a new one which already had another itunes account (for my business)  when i upgraded to os5 my library has dissappeared as it has syncd with the new computer.  Is there any way i can restore the information previously from my ipad?  really appreciate any advice thanx in advance

    Lynda-
    If you still have the old computer, you should be able to connect the iPad, run iTunes and restore from a backup from a previous sync.  Now that you have it updated, you will not need to do that again.
    Fred

  • To transfer contents of one MBP to another do they both have to have the same version of the OS? I have one which is SL (source) and the other is ML (target) .. thanks

    To transfer contents of one MBP to another do they both have to have the same version of the OS? I have one which is SL (source) and the other is ML (target) .. thanks

    No, they can be running different versions of OS X, but beware that any old PowerPC apps will not run with Mountain Lion.

  • Need to transfer all my photos from iPhoto app in my computer to another one, which files do I need to copy?

    Need to transfer all my photos from iPhoto app in my computer to another one, which files do I need to copy?

    You need to find your iPhoto Library and copy this package to your other computer.
    By default the library will be called iPhoto Libary.photolibrary and located in your Pictures folder. YOu will recognize it by the typical "fan of pictures" icon. The color of the icon wil depend on the iPhoto version. What is your version of iPhoto?

  • Change object from one transport request to another

    Hi,
    I have a requirement wherein i need to change the object from one transport request to another. The thing is that i have saved
    one in one transport request and when i am trying to transport it , it is not allowing me to transport as this transport request
    contains some inactive object. I have also tried to delete that object from this transport request and put in another one
    but when i tried to do that i was only allowing me to create sub task within the same request .
    Kindly suggest me
    Thanks
    Parag

    Hi,
    you can either just delete the object from the object item list of the first transport request (just click away all warnings and hints). Then put it into a new request, lock it and transport it. You might ned to overtake the responsibility for the first request but with the appropriate authorization this should be no issue.
    Other solution is using a transport of copies. This will tell you the object is locked in another request when you release it but still allow to transport it.
    In all solutions you have to be sure that transporting the object without all other stuff in the request is possible as the objects are independent from each other. Otherwise you will not be able to import the request in the destination system.
    Rgds.
    Roman

  • How do I use the same Icloud address on my Ipad and Iphone ? I went to put my icloud address on my Iphone, but ttells me it is already being used and to create another one, which I dont want to do

    I have just bought an Iphone 4s to compliment my Ipad Air, I want to use my Icloud address on both machines but cant get my iphone to accept my icloud address, it tells me it is already in use and to create a new one, which is not what I want.. How do I get the same email on both devices?

    it tells me it is already in use
    You will need to contact the previous owner of the iPhone in order to change the Apple ID.

  • Unable to delete a request from a Cube which is loaded by Open hub to flat

    Hi,
    We have one Cube from which we are transferring data to a flat file by open hub.
    the DTP for the OPEN HUB is delta DTP.
    Now when i am trying to delete a request from Cube its not allowing me.
    Its giving error as request is already updated to the target so delete the request from target first.
    I tried deleting the open hub request entry from RSBKREQUEST table.
    but still its not deleting the request from the Cube.
    Can you please help me in solving this problem.
    Thanks in Advance,

    I think request is having datamart, which is not allowing it to delete.
    You can try to reset (delete)  the datamart by clicking on it in cube request and then try to delete.
    Or if it does not work, you can delete it from RSICCONT table, which will delete the request from cube also.

  • We received a request to add one field in report

    we received a request to add one field in report
    Requirement given: ZINVB4P_UOP - Acct Payable Rpt - Blocked for Paymt note:  add the scheduled due date near the invoice date. This report is a little different then in legacy and has way too much data so if you could create an new radio button to make it match legacy for standadizaiton that would be great. 
    In the above requirement i under should that one field need to added and the other one " This report is a little different then in legacy and has way too much data so if you could create an new radio button to make it match legacy for standadizaiton that would be great." which i cannot understand the requirement. can you explain me what need to be done. based on that i will work.

    Hi Priya,
    I can not modify the query in code as it asks for the access key.
    Thanks,
    VIMAL

  • "Error sending Message - check your ...." doesn't identify the message generating the error which is probably one which is autoforwarded.

    I have an email filter which auto-forwards an email depending on the To: field. When I open Thunderbird the inbox sometimes displays emails which should have been forwarded which are not flagged as forwarded. If I then manually forward this email I get a response " email successfully sent" followed shortly after by another message " error sending message ... check your email addresses (or similar)" - Is this the same email as the one which I have just been told has been successfully sent - how can I tell which email the message relates to - has it been sent? etc etc???
    Thanks for reading this far - any help would be very much appreciated
    MC

    Sorry Matt - 'fraid i'm guilty of not supplying all the facts ... the message arises from Thunderbird vers 9.01 running on a laptop with OS Win 7 Home Premiun SP 1. I think your reference is to problems running other email software.
    Mike

  • Changing primary Email to the one which were used before but free now

    I wanted to change my Apple ID primary email to the one which was once already used for another Apple ID. It's just been changed and therefore has to be free. However, I can't change to that "must be free" email now. System is saying that the address has already been verified for another Apple ID.
    Those emails are all mine, if it matters.
    P.S: That email is just my primary email but the current Apple ID has a lot of purchases so I wanted to have one primary email and one primary Apple ID.

    Shaz,
    Did you recently upgrade to the 2.xx firmware?
    The 2.xx firmware doesn't work with MediaSource. It's designed to work with Windows Media Player or the MTP version of Media Explorer. You can either go back to the .xx firmware or give up MediaSource.
    Hope this was the case and I could assist!

  • Okay..I've been trying to fix this for DAYS now!  When I sign in (under settings) w my new apple ID, then go to update or purchase something I cannot get the new apple ID to come up.  It's still using the old one (which is disabled) ..please help!

    Can someone pls help me??  Okay..I've been trying to fix this for DAYS now!  When I sign in (under settings) w my new apple ID, then go to update or purchase something I cannot get the new apple ID to come up.  It's still using the old one (which is disabled) ..please help!

    Delete what? The ID's? They cannot be deleted - you just quit using it.
    If you still have one old ID - that you have purchased content with - you are saying that the password no longer works with that ID? Did you try to reset the password for that ID?
    Read this - instructions if the ID was disabled for entering the wrong password.
    http://support.apple.com/kb/TS2446?viewlocale=en_US&locale=en_US
    If it gets too involved - you can always contact support.
    http://www.apple.com/support/appleid/
    Just do not create another ID!

Maybe you are looking for

  • OS X 10.8.2 and Macbook Pro 13 inch with retina display...

    I bought a 13 inch macbook pro with retina display 6 days ago and am having issues with updating the OS to OS X 10.8.2. I have downloaded the update and when I attempt to install it flashes up this message " OS X update can't be installed on this dis

  • Adobe Reader 10: How to print a PDF ignoring the red characters?

    Adobe Reader 10: I want to print a PDF ignoring the red characters. I am a school teacher.  I would like to print PDF answer key files (answers in red) without the answers for the students to work on.  How can I suppress the red characters during pri

  • Lync 2013 do not show own photo

    We have Lync 2013 and Exchange 2010. I imported photos to our AD. In Outlook 2010 we can see our own photo, but Lync 2013 client do not display user own photo, but when user1 write a message to user2, user2 receive message with user1 photo. This is 

  • Can not install adobe reader

    NEW TO I MAC WORLD NEED ADOBE READER INSTLL HELP TOM

  • ALV TREE - Double click on an item

    Hi all, I need to handle the double click action on an Item of ad ALV_TREE defined cl_gui_alv_tree_simple What I did at now is: u2026 DATA tree1  TYPE REF TO cl_gui_alv_tree_simple. u2026        CREATE OBJECT event_receiver.   SET HANDLER event_recei