BDC problem with back button

Hi all,
i have idoc number in alv output.when the user clicks on this ,it should take the control to BD87 transaction with idoc number getting transferred there .also BD87 screen has changed on select option where the default is sy-datum .i need to clear this along with transfer of idoc number.
i tried using submit statement,but its not working.
then i used call transaction in error mode to acheive this functionality and i was sucessful.
beloe is my code:
   REFRESH bdcdata.
        READ TABLE t_out INTO wa_out INDEX rs_selfield-tabindex.
        DATA: lv_mode(1) TYPE c VALUE 'E'.
        PERFORM bdc_dynpro      USING 'RBDMON00' '1100'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'SX_UPDDA-HIGH'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=CRET'.
        PERFORM bdc_field       USING 'SX_DOCNU-LOW'
                                      wa_out-docnum.
        PERFORM bdc_field       USING 'SX_CRETI-LOW'
                                      '00:00:00'.
        PERFORM bdc_field       USING 'SX_CRETI-HIGH'
                                      '00:00:00'.
        PERFORM bdc_field       USING 'SX_UPDDA-LOW'
        PERFORM bdc_field       USING 'SX_UPDDA-HIGH'
        PERFORM bdc_field       USING 'SX_UPDTI-LOW'
                                      '00:00:00'.
        PERFORM bdc_field       USING 'SX_UPDTI-HIGH'
                                      '00:00:00'.
        PERFORM bdc_call_transaction USING 'BD87' lv_mode 'N'.
So,the control directly takes me inside the BD87 screen just after the screen which we get after execting the selection screen of bd87 with idoc details
the problem is whn i click on back button or F3,the control does not take me back to the ALV output screen rather it takes me to the selection screen of BD87.
So,any way out to solve the back button problem???
Thanks

Hi Kunal,
That's a really tough report to handle by submit.
You can try to call the transaction in error mode and place one moment to force the screen to appear. Then complete the BTCI with the last steps to exit the selection screen.
Try it like this:
REFRESH bdcdata.
READ TABLE t_out INTO wa_out INDEX rs_selfield-tabindex.
DATA: lv_mode(1) TYPE c VALUE 'E'.
PERFORM bdc_dynpro USING 'RBDMON00' '1100'.
PERFORM bdc_field USING 'BDC_CURSOR' 'SX_UPDDA-HIGH'.
PERFORM bdc_field USING 'BDC_OKCODE' '=CRET'.
PERFORM bdc_field USING 'SX_DOCNU-LOW' wa_out-docnum.
PERFORM bdc_field USING 'SX_CRETI-LOW' '00:00:00'.
PERFORM bdc_field USING 'SX_CRETI-HIGH' '00:00:00'.
PERFORM bdc_field USING 'SX_UPDDA-LOW' ''.
PERFORM bdc_field USING 'SX_UPDDA-HIGH' ''.
PERFORM bdc_field USING 'SX_UPDTI-LOW' '00:00:00'.
PERFORM bdc_field USING 'SX_UPDTI-HIGH' '00:00:00'.
*btci is interrupted in presentation of the result screen
*last steps to exit selection screen
PERFORM bdc_dynpro   USING 'RBDMON00' '1100'.
PERFORM bdc_field       USING 'BDC_OKCODE' '/ECBAC'.
PERFORM bdc_field       USING 'BDC_CURSOR' 'SX_UPDDA-LOW'.
*use error mode in call transaction
CALL TRANSACTION 'BD87' USING bdcdata MODE 'E'.
*PERFORM bdc_call_transaction USING 'BD87' lv_mode 'N'.
hope it helps,
Edgar

Similar Messages

  • Problem with Back button in Top Level Navigation

    Hi all,
    We are facing a minor problem with the Back button in the Top Level Navigation in Portal. This button is present under the Roles and Worksets menu along with the History, Forward, and Add to Portal Favorites links.
    The problem is faced when we have some worksets under a single role. While browsing accross these worksets by randomly clicking on them, we wish to use the Back button as well to go back to the previous workset. But when we use the Back button, the Detailed Navigation panel in the last workset is not retrieved.
    I will explain with the System Administration Role. I open the worksets under this role in the following manner:
    First I open Transport;
    Next I open Portal Display;
    Next I open System Configuration;
    Now I wish to go back to Portal Display workset by clicking on the Back button. But when I do this, although the Portal Display workset opens up, but I cannot see the Detailed Navigation Panel. See the screenshot below:
    http://img399.imageshack.us/my.php?image=backbuttonkg6.jpg
    Please help me in solving this issue.
    Regards,
    Ankur

    I think I have found a resolution, although not very pleasant:
    [Note 950426 - Portal Back button not working correctly|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_ep_pi/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d393530343236%7d]
    Regards,
    Ankur

  • Multiple Video Tracks Problem with Back Button

    Hi,
    I am making a DVD that has to contain 16 films. Unfortunately the videos don't have the same aspect ratios, so I have to create one video track for each film.
    When the DVD is started they are supposed to play all in a row (no menus). So the end action for each track is to jump to the first chapter of the next track.
    My problem is that once I am playing, say, track 5, there is no way to get back to track 4 with the "back button" on the remote control.
    Do I have to script this? And if yes, how?

    That is exactly my problem. Chapter markers only work on the same track, for some reason you can't jump to a chapter in a different track. What I need is a solution to jump from a track to the previous one when pressing the back button on the remote.
    As I wrote before I can't use just one track for all films, because they have different aspect ratios.
    Message was edited by: schmiddl

  • Servlet Problem with Back Button on IE

    Hello All:
    This is a weird problem I am facing on IE.
    I have a servlet which is invoked by the doGet() method. This servlet
    has a FORM which has few fields. One of the field has a hyperlink which
    makes a window.open() call for Onclick. This pop-up allows a user to
    search for some value. The result of the search is displayed in a
    SELECT box. Based on the value selected in this SELECT box, the field
    in the servlet that called this pop-up gets populated. After this is
    done, I close this pop-up & click on the proceed button of the FORM
    (using POST) which takes us to another servlet. Then when I click on
    the back button, the fields on the form which were populated are gone.
    I have made the following analysis:
    (i) On clicking the back button, a request is sent to the server.
    (ii) It works on FireFox & not on IE
    (iii) If I do not use the hyperlink to bring the pop-up, and then I
    click on proceed and then back, the fields do not vanish.
    (iv) I tried using http://www.google.com to the call on window.open().
    Does not help
    (v) The very action of using pop-up by clicking on it causes this
    problem
    (vi) I tried replacing the hyperlink with a button. It did not work.
    Any help or tips in this regard would be helpful.
    Thanks in advance.
    Mahesh

    I dont know how you can post on the back button, and am a bit confused as to why you need to go back, you would normally want to go forwards :).
    What I would do is have the same servlet handle both cases.
    I would make 1 servlet SUBMIT TO ITSELF.
    You may have to pass an additional parameter to indicate whether this is the initial / first request, or a subsequent request where the servlet has re-submitted back to itself.
    If you want to disable the back button you can use javaScript
    <script language="JavaScript" type="text/JavaScript">
    <!--
    javascript:window.history.forward(-1);
    -->
    </script>
    I used this when I found that users could use the back button and re-submit when I didnt want them to, kind of the opposite of your problem!

  • Problem with back button  with myfaces/jsf

    Hi guys
    i have very strange kind of problem , i have a page where i am shwing tabular data with data scroller , thats work fine , in this tabbular data we are shing user infomration , and a link on user name ti see his details , this link works fine , and take user to user details page ,
    but from that page if user press back button , and reaches back to tabbular data page , in this page if user select any link , page reloads , and stay there , and after reloading page if user select any link then it works
    Any one geting this kind of preoblem , hope i am not alone
    please help me out
    X-preet

    Hi Luisa,
    1 .Create 2 views  View1 and View2
    2. Place buttons on both the views and create actions for both in view1 and view2
    3.Create outboundplug from View1 to View2.(Navigation link also)
    4.Create outboundplug from View2 to View1.(Navigation link also)
    5. In View1 button action fire the outboundplugto View2
    6. In View2 button action fire the outboundplugto View1.
    Regards, Anilkumar

  • Having problem with back button on

    The bottom left hand button on the Zen Micro won't seem to work correctly unless it is charged into the power adapter. I've tried the clean up mode but that didn't do anything, is there anything else that I can do other than rebooting it because I would hate to have to go through the whole method of inporting my music back on there cause it takes hours. Please give me any advice you have!
    ~Michelle

    having the same problem at www.dealnews.com
    not a problem with previous 3.32 version, but now i can't get back to the previous page without pressing the back button twice quickly.
    if you press it once, it just reloads the same page.
    i've reset safari, but nothing fixes it.
    anyone else have an idea?
    thanks!

  • Problem with back button in alv o/p

    Hi guys,
    I am using Grid display to display a data. but when i am clicking on back button on o/p the o/p is displaying duplicate records for the first o/p. i,e it is displaying multiple records, again clicking on back it displaying extended o/p with more duplicate data...

    Hi
    Check did u refreshed the internal that u displayed.
    And also check grid control is initial or not
    Data: g_cust_container TYPE REF TO cl_gui_custom_container,
             g_cust_grid TYPE REF TO cl_gui_alv_grid.
    **Create Container ALV Grid
      IF g_cust_grid IS INITIAL.
    Create Control Container for Grid
        CREATE OBJECT g_cust_container
           EXPORTING
              container_name = g_container.
        IF sy-subrc <> 0.
    add your handling, for example
          CALL FUNCTION 'POPUP_TO_INFORM'
            EXPORTING
              titel = sy-repid
              txt2  = sy-subrc
              txt1  = text-m02. "The control could not be created.
        ENDIF.
        CREATE OBJECT g_cust_grid
           EXPORTING
              i_parent = g_cust_container.
      ENDIF.
      CALL METHOD g_cust_grid->refresh_table_display.
    Regards,
    Raghu.

  • Problem with back button in jsp

    hi all,
    i am submitting some text field values and select option to a do_registration.jsp page.
    till now everything is ok.
    code in do_registration
    if (rowCount > 0) //means user already exists
    out.print("user already exists");
    out.print("<A HREF='#' ONCLICK='javascript:history.back(-1);return false;'>back</a>");
    else
    insert syntax
    if userexists i its diplays the message and
    when i click on back link what ever the contents the registerform is cleared.i mean whatever the user input the values in the text fields etc everything has gone.user has to retype whole text again.
    so where i am wrong.
    any help

    You can definetly do this globaly on all browsers not looking at the settings by creating a small user bean. Just have a class User with getter and setter methods for main fields, or fields that you need to show in the back button. Then put that class in your WEB-INF classes dir.
    Create a JSP as the page before where you are trying to validate a user. Use jsp tags. <jsp:Bean var="user" class="myPackage.User" scope="session"> In form input fields do the following.
    <input name="first" value="<%=user.getFirst()%>">
    Now everytime this page will be called that field will be populated
    Hope this helps

  • Problem with back button when using task flow to navigate through pages

    I am using unbounded task flow to navigate through my pages
    in page2 I added back button so I can back to page1 using the action A2
    task flow 1
    page 1 -----A1-------> page 2
    page2 ----A2--------> page1
    the problem when I used page2 in another task flow
    task flow 2
    page 3 -----A3------> page2
    page 2 -----A4 -----> page3
    here when I click on back button he take me to page1
    how can I back to page3 ???????

    For this you have to know where the user came from when he navigated to page2. You can e.g. store the back target in a variable in the session or pageflow scope (when the user navigates from page1 or page3 to page2), then you bind the back button of page 2 to the stored variable.
    Timo

  • Navigation problem with back button in module pool

    Hi everyone,
    I have a scenario in module pool programming in which i need help.
    I have an i/p filepath screen where the user inputs his/her file and clicks on validate button provided in the toolbar.
    After that it goes to the next screen which displays all the messages(error/success).
    After I click on Execution button it goes to next screen displaying all the created data.
    Now when I click on back button I want it to go to the i/o filepath screen.
    Please give me your comments on this.
    Leave to screen XXXX is giving me dump so any other options plz let me know.
    Thanks in advance.

    Hi Amit,
       Lets say you have 3 screens 100, 200 and 300. screen 100 has you input file path and 200 shows the message and 300 shows the created data.
    Now in PAI of 300 write as below.
    IN the screen as below
    MODULE USER_COMMAND_300_EXIT AT EXIT COMMAND.
    In the include as below
    MODULE USER_COMMAND_300_EXIT.
    CASE sy-ucomm.
    WHEN 'BACK'.   " OK code for BACK button.
    CALL SCREEN 100.
    WHEN 'CANCEl'.
    LEAVE TO SCREEN 0
    ENDCASE.
    ENDMODULE.
    Please revert if you still face problems.
    Regards,
    Praveenkumar T

  • Urgent ...problem with back button in my browser

    hello,
    i created one login.jsp file and wellcome.jsp file and one logout.jsp file and one login controleservlet.If i login once i got wellcome page.In that i have logout button, and if i will click that button
    it will display logout successfully message on browser.my requirement is that after i will get logoutsuccessfully message i want to avoid back button in my browser.if i click back button then it will display an error message like "your session expire".
    please send the reply as soon as possible.

    I'm not certain of whether you want to disable the back button in the user's browser or you want to avoid this error message...
    Assuming you want to avoid the error message entirely, I would set a variable in the session scope when the user logs in and any time you don't see that when you process a request in your servlet, redirect the user to the login page.
    If you're looking to simply disable the back button in the browser, beyond asking the user nicely not to click the back button, good luck to ya. :)
    Hope this helps!
    - Kyle

  • Problem with "Back" Button in pages loaded from Google search results

    I am using Windows XP Home 32bit and Mozilla Firefox Ver 5.0
    I do a search using Google and I go to page 3 of the returned queries (links) and then go to one of the sites from the search results. When I hit the return button while in the site chosen from the search results, instead of returning to page 3, it always returns to page 1 of the search results.
    This happens on any page ie I go to page 22 and use a link then hit return button it still returns to page 1.
    Only started happening in past couple of days and it's very annoying. I have not updated Firefox or added any new extensions/add-ons. i have cleared cookies, uninstalled and reinstalled Firefox and issue still appears.
    I have Google Chrome and IE and tried the same query in both and it works as it should work, ie returns to the correct page, so my conclusion is that it may be a Firefox Ver 5 issue.

    If I turn off the "Use a secure HTTPS connection when available." setting in the google search settings, then the problem goes away...

  • Problem with Back button

    Hi All,
    Iam in the BP_HEAD overview screen there i have a navigation link which takes me to BP_HEAD of the particular BP selected.
    Now when i try to come back to BP_HEAD overview screen the data in some of the assignement blocks(Z)  is not refreshed.
    These carrry the data of the BP that was being called.
    Any hints /pointers

    I facing same issue , may i know how you fixed it.

  • A really annoying problem with a button/movie clip

    I am having a problem with a button! its driving me insane
    because i managed to do it last week, but that was by chance and
    now i can't remember how i did it!
    I can get the button (i'm using gelright from the common
    libraries panel) and convert it to a movie clip(by pressing F8) and
    even attach a behaviour but when i play the movie it doen't work!
    when i move the curser over the button it changes into a hand, but
    will not act like a button, even though i have set the behaviour to
    'on release, go to and play keyframe 2'.
    Please help me, for the sake of my laptop goin through the
    wall!

    virgosam20 wrote:
    > first, i found the button i wanted in the common
    libraries (gelright) and
    > added it to the stage. I resized it and converted it
    into a symbol as a movie
    > clip. Then it got added to my library.
    > Then i deleted it from the stage and replaced it with
    the movie cip version i
    > had just converted it to. so now i have the same object
    on the stage, but now
    > its a movie clip and not a button.
    ok - you are running yourself around in circles - why did you
    delete it to the stage only to add it
    again? once you converted it to a movie clip, you had what
    you wanted on the stage - but then you
    deleted it and dragged another instance of the same symbol
    back onto the stage - there's no reason
    to do that.
    > Then i double clicked on it to bring up the movie clip
    timeline, but instead
    > of saying 'top, down, over, hit' (or whatever it says),
    it jsut said 'layer 1'
    > (but this was not my original stage as i have a number
    of layers on that one).
    Right - this is expected because yoyu are now inside the
    movie clip timeline - not the button timeline.
    > When i double clicked on it again, it brought up the
    right headings (top, down,
    > over, etc),
    Right - because by double clicking the button symbol you were
    then brought to "edit mode" for the
    button symbol.
    but there were about 5 layers that showed the different
    layers for
    > the original button.
    Huh? What "5 layers"? What do you mean "original" button -
    per your description there has only ever
    been 1 button you have been working with.
    > I think i have to add the button to each of the
    headings, bt there is no room,
    Lost you completely now - what do you mean add the button to
    each heading? I have no clue what you mean.
    > as when i did it before, there was only one layer for it
    and i had to insert
    > the key frames myself.
    Still losing you here.
    > I then added a behaviour to it using the Behaviours
    pannel, (selected
    > movieclip, then 'go to and play....') and it appears in
    the behaviours pannel.
    > But when i got to Play Movie, although the curser
    changes into a hand, the
    > button does not work.
    That's because you are applying a behavior for a button to a
    movie clip instead.
    I think you went wrong when you converted the button to a
    movie clip - i have no idea why you did
    that or why to think your button needs to be in a movie clip.
    >
    > Hope that can help you with what i've done and you can
    tell me where i've gone
    > wrong.
    >
    I just think you don't understand how timelines, symbols or
    buttons work yet in flash.
    1. drag a button to the stage.
    2. select it and open the Behaviors panel (dont double click
    it to edit it).
    3. add your actions.
    4. test movie.
    (no need for a movie clip here.
    -chris

  • Problem with the buttons

    Recently I have problems with some buttons on my 8800.
    When I hit the trackball the BB writes "Uo". When I hit the 'back' button it writes "Hl". Also the menu button does not what he has to do. Anyone the same problem or even better a solutions for this problem?
    Bye, Ben

    You are not alone.  the same thing happened to me today with my 8820. 
    it worked fine for one call then i hung up and tried looking up a number.  Track ball dosn't work at all, their isnt even a backlight on the trackball.  the back button types in hl.  i also think my e button is enter but i dunno.  that one seems on and off.
    Edit.  I found this:
    http://www.blackberryforums.com/general-8800-series-discussion/114752-blackberry-button-problem.html
    Message Edited by jasgud on 07-27-2008 08:25 PM

Maybe you are looking for

  • In RFc Response no data is coming

    HI All, I m doing File to RFC scenario where sender is a file adapter & receiver is the RFC Adapter while request data is coming into the RFC but for response from RFC empty payload is coming.. pls resolve this problem as early as possible... Thanks

  • Newbie question: sqlca.sqlcode positive or negative?

    Good afternoon, we have a database based application, launching SQL queries on an Oracle 8.1.7 database. These queries return sqlca.sqlcode values, like 0 in case of succesful and 1403/-1403 in case of unsuccesful. Exactly the latter is a problem: th

  • Preview Shift Color on Save?

    Hi Can anyone save me from this headache of a problem! After saving a postscript file from QuarkXpress 5.0 I open it in preview. All is good. But then when I save it out of preview as a pdf the color changes as soon as the save is complete. Why is th

  • Raising exceptions on hanging or failing updates

    I have inherited a storeprocedure of around 400 lines of code wgich contains multiple SQL blocks of a update selection wrapped round a select statement. This store procedure works on dbA but not on dbB on dbA. it just hangs. dbA has more data, so it

  • Palm Desktop software - Fails to open with msg "Error: Failed to open Address Book database"

    In July 2009 I dropped my trusty Visor on a tile floor and it stopped working.  So, in the meantime I have been using only the Palm Desktop software.  Just yesterday, when I attempted to launch the Palm Desktop software, it failed with the message “E