Problem facing in ALV to List processing and back to ALV

HI all,
In ALV USER_COMMAND i have inserted statement 'LEAVE TO LIST-PROCESSING'. I want to display records on List processor (Classical report) which are selected from ALV.
Due to LEAVE TO LIST-PROCESSING i can see Classical report but from here i am not able to come back on ALV screen...even not on any screen because BACK button on GUI-Status is not working.
From List Status i can see same GUI status which i gave to ALV.
also i have tried giving LEAVE LIST PROCESSING but due to this though i get ALV back but i cant get List display.
Please direct how to move.
thanks,

hello~ try this
FORM alv_user_command  USING r_ucomm LIKE sy-ucomm
                             rs_selfield TYPE slis_selfield.
  CASE r_ucomm.
    WHEN 'ELOG'.
      call screen 100.
  ENDCASE.
  rs_selfield-refresh = 'X'.
ENDFORM.
screen 100 just need PBO Module
module LOG_DISPLAY output.
  SET PF-STATUS space.
  WRITE: / 'HELLO'.
  LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
  LEAVE SCREEN.
endmodule.

Similar Messages

  • Problem with leave to list-processing and return to screen

    Hi all,
    I am designing a screen in which I have provided a pushbutton which will allow the user to upload (via BDC) the price list to VK11 transaction. And consequently, after upload the BDC message will be captured and displayed as an ALV list. for this, I am using leave to list-processing and return to screen 100 statement.
    My problem is, when I return from the alv list screen by pressing back/any button the called screen 100 is displayed as a dialog window. but actually the screen 100 is a normal screen.
    How can I rectify this problem?
    Thanks,
    Rajan

    rajan,
    i think the below link will clear your problem.
    [http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9d2f35c111d1829f0000e829fbfe/frameset.htm]
    Regards,
    Venkat

  • ALV grid refresh problem when I return from list-processing

    hi,
    I have made alv grid with f4 help features and i'm using row select feature.
    When i click on a button in Application toolbar, the program leaves to list processing and then return to alv gridscreen.
    Now the problem arises.
    (1)Even if i select rows and press F8, the program does not identify the rows selected and does not give me desired output.
    (2)Also, when i press F4, the selected value does not appear in the text field.
    Both the cases are working fine, if i dont press button and go to list processing.
    Please help!!

    You can use the function module as stated below -
    FORM user_command USING r_ucomm TYPE sy-ucomm
                            rs_selfield TYPE slis_selfield.
      CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
      IMPORTING
    ET_EXCLUDING =
    E_FLG_NO_HTML =
    E_CALLBACK_PROGRAM =
    E_REPID =
      e_grid = ref1
    ES_LAYOUT_KKBLO =
    ES_SEL_HIDE =
      CALL METHOD ref1->check_changed_data.
    This helps to get the data in the internal table refreshed as well as that on the screen so that both are in sync.
    this is generally used on some event, you can also use it otherwise.
    <b>
    Reward if useful.</b>
    Regards,
    Pritha

  • Leave to list processing and retun to scren 100

    Once output is generated in the list i want back to main screen .
    How i will prceed
    regards
    jithen

    This will end up current calling sequence (will proceed after CALL SCREEN XXX statement). So if no other CALLs were found the program will be finished, or will go back in selection screen.
    LEAVE to LIST-PROCESSING and RETURN TO SCREEN 0. 
    This will go back to screen XXX, if main screen is 200.
    LEAVE to LIST-PROCESSING and RETURN TO SCREEN 200.  "when you choose BACK, screen 200 will be called (main screen)
    Regards
    Marcin

  • Buy Back Process and back order processing.

    Hi,
    Can any 1 explain me what is buy back process and back order processing how to configure in SAP SD.
    Thanks.

    Hi
    Buy back process is nothing but you are keeping certain qty of stock at your customers place, he is unable to sell due to various reasons so u need to take back. So this is buy back process. This can be configured by way of using the consginment process.
    The backorder processing is where the customer has requested for the delivery of goods on a particular date but as the stock is not available, this order will be processed only once the stock is made available.
    Hope this clarifys.
    Kind Regards
    Chakradhar

  • ALV grid to list processing and GUI status

    Hi,
    In a customized program the report output is in ALV grid which is interactive. On selecting a record and pressing SAVE button a BAPI runs in background. In order to display BAPI error message the leave to list-processing has been used. But GUI status is not working in list display and can not exit or go back from here to main selection screen.
    when try to see program name & screen no it displays
    Program - SAPLKKBL
    Menu - STANDARD_FULLSCREEN
    pls advise how to go back from list to main screen or ALV output.
    thanks
    anya

    Hi Anya,
    As per my understanding, this is your prog flow:
    *Main ALV Display.
    *Select record.
    *Click on Button SAVE.
    *Handle Event.
    *Call BAPI for processing based on selection.
    Now at this point why dont you colect the error messages from the BAPI, and display it in a POP-UP ALV display?
    You need not e very much worried about the PF status and all. Also this POP-UP will be placed on the MAIN ALV. So when you close the POP-UP it will come back to the main ALV.
    By this when you press the BACK button of the main ALV, it will take you back to the selection scree.
    Please let me know if i am missing something.
    ags

  • List processing and PF status.

    Hi Team ABAP,
    i got a problem in List processing.
    I´m in a dypro with a table control on it. Users can mark one or more ALV lines and then e.G. press "process".
    Something gets done then (some forms get printed), and after that i want to display a protocol.
    First i tried to process a simple write list by using WRITE statement.
    Coding got processed, but it had no effect, no write list was generated, or at least not shown on my screen.
    So i tried to code a "LEAVE TO LIST PROCESSING" right before my first WRITE statement.
    Well, now it works my write list is on Screen. But here start the Problem. Like i got told in the ducomentation of the LEAVE TO LIST PROCESSING statement the WRITE list gets processed with the actual active PF status from the dynpro where i came from.
    1. This is quite uncool, since i do not need those Buttons in my List.
    2. Even if it was ok, those buttons are not working. Typing /h in OK_CODE field and pressing ENTER doesnt help it. When after that i click a button, nothing happens, such as if i didnt click them.
    I searched the forum, but i got drowned in thousands of "interactive list" threads and wasnt able to find my required info in an acceptable time of 30 minutes.
    Did i do a essential error? Someone got an Idea where i´m stuck or a proposal on how to improve?
    Any Help or tip will be welcome and rewared accordingly.
    regards

    Hi Florian,
    Try if you can display the list in ALV where you can maintain the pf-status.
    You can check the demo program  DEMO_LEAVE_TO_LIST_PROCESSING. In this, it is setting set pf-status to space.
    Hope it helps.
    Sujay

  • Problem faced when automating the P.O and P.O Release transactions

    Hi,
    I was trying to automate the Purchase Order and Purchase Order Release screen using ECATT tool.
    I recorded the Purchase Order screen by importing the Purchase Requisition Number.
    When i record the Purchase Order screen, the screen settings was different and when i was replaying the script, the settings was different.
    The Problem which i faced was when i was recording the Purchase Order transaction, the header tab was in the expand status.But when i execute the recorded script, the header tab gets collapsed. Because of this change, the Purchasing Org tab value is not passed and it throws an error.
    Please help me to find a solution for this problem.
    The same happens in Purchase Order release transaction.
    When i am recording the Purchase Order Release transaction, the Release Strategy tab is active and when i am replaying the script which i have recorded, it is not the same of what i have recorded.
    Therefore, it throws an error.
    Kindly help me to get a solution for the problem

    Can u help me in doing this.
    I have not done any script using this Conditional loop. Help me to do this..
    If u also have any documents related to this Conditional loop, kindly let me know the links..
    Hope u will help me to find a solution.
    Regards,
    Shriram.S

  • Pass values fromSharePoint list multi-selection list box to Infopath Multi-selection list box and back

    Design overview:
    List A
    InfoPath Library - Form A
    SharePoint Designer workflow
    List A has a multi-selection column with multi-values.
    Form A has fields populated from the data in List A by using a data connection in the form.  I have a workflow that updates the values or creates a new item in List A. All fields work except the mufti-selection. The multi-selection has ;# separating
    the values and I am having trouble setting the list box properly(checking of the selecting values) instead it concats all values on one line. I basically need to get the multi-selection column from list 1  to show exactly in the Form A and be able to
    update the selection with the workflow. I can do this with single values with no problem. the multi-selection list is difficult. I read somewhere I can use a repeating table but I am not sure the workflow will work with that. That is only a read and not 
    a write.

    Wow over my head a little. I understand what an array is with script but not how to write the script to handle it. I made this:
    event.value = getField("LISTBOX").value;
    But still no change in the behavior with multi selections. Example below if you want to check it out.
    https://dl.dropboxusercontent.com/u/2944617/formtext2.pdf

  • Dialog Module and List Processing.

    Hi All,
    I am having a program in which after processing I get a basic list. Using PF-STATUS of the basic list a dialog module is called using 'CALL SCREEN'  which accepts date and has exectue and cancel buttons on it.
    What do I do to so that user when clicks on cancel button the dialog module disapperas and the original list processing is still seen.
    Thanks,
    DJ

    Hi,
    To pass control from the dialog processor to the list processor, you must include the following statement in one of the dialog modules:
    LEAVE TO LIST-PROCESSING [AND RETURN TO SCREEN <nnnn>].
    You can include this statement in either the PBO or the PAI event. Its effect is to start the list processor and display the basic list after the PAI processing of the current screen. The basic list contains any list output from all PBO and PAI modules that have been executed up to that point.
    regads,
    keerthi

  • Leave to list-processing doesn't work

    Hi 2 all!
    I have a problem with LEAVE TO LIST-PROCESSING. I have developed a module pool (type M) and screen with the screen painter of type Normal. Now I want to go to the report from my screen with LEAVE TO LIST-PROCESSING, but it doesn't work. I am trying to do this when the button is pressed ( at my application status). The operation is performed but then the Init_screen_xxxx module is called again. Highly appreciate your help.

    Hi Nata
    Yes U can do it.
    We go from module pool program to report program and vice-versa.
    1.  From report to screen (transaction)
           Call transaction
          Leave to list-processing and return to screen
    2.  From screen to list (report)
             we can write a report program for fuction key available in the screen.
              for example.
        case sy-ucomm.
          when 'fctcode'.
           select .......... from tabl   into ..
        write:/.........,
    endcase.
    reward if useful.

  • Command leave to list processing

    Dear All,
    I have an executable program (execute via SE38) that need to call an additional screen for input before the actual output on sapscript.
    It is like this, user key in the input into selection screen, then program will extract data and display them into a pop up window. User will further select data from the pop up, and then sapcript will be printed out eventually.
    I'm now stuck at the pop up window. I created a new screen 9000 with screen type "Modal dialog box" and coding as follow:
    Executable program:
    CALL SCREEN 9000 STARTING AT 40 20
                       ENDING   AT 150 50.
    Flow Logic:
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_9000.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_9000.
    Coding:
    MODULE STATUS_9000 OUTPUT.
      SUPPRESS DIALOG.
      LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 9000.
      SET PF-STATUS 'STATUS_9000'.
      LOOP AT TAB INTO WA_TAB.
        WRITE:/1 WA_TAB-TYPE.
      ENDLOOP.
    ENDMODULE.                 " STATUS_9000  OUTPUT
    MODULE USER_COMMAND_9000 INPUT.
      OK_CODE = SY-UCOMM.
      CASE OK_CODE.
        WHEN 'OK'.
    ********  trigger output to sapscript
        WHEN 'CANCEL'.
          SET SCREEN 0.
          LEAVE SCREEN.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_9000  INPUT
    With the above code, output is successfully displayed on screen 9000 with command "Leave to list-processing". But after the list displayed, those buttons that defined in Status_9000 are not working at all in screen 9000. There is no response from any buttons i clicked, even i tried in debugging mode it didn't go in debugger as well.
    Please comment which part i miss. Thanks.

    Hi,
    I think the problem is with your statement in the PBO module.
    Why not try and delete this part 'AND RETURN TO SCREEN 9000'.  Over here, if you want to use this addition RETURN TO SCREEN, then screen number should be other than your modal list screen. Currently you have changed the modal screen to behave as list, but at the same time, you want it to behave as the normal screen, after you come back from the list.
    If you really need that, then please create another screen, say 9100, and change it to AND RETURN TO SCREEN 9100, instead of AND RETURN TO SCREEN 9000.
    Regards,
    Lim...

  • Call an other dynpro after list-process. with a button in the functionmenu

    Hi expert-forum-members
    in my report I start a DynPro after the starting-point "start-of-selection":
    START-OF-SELECTION.
    CALL SCREEN 100.
    In the screen 100, I want to show a simple list like that:
    module pbo_0100 output.
      SET PF-STATUS 'SCREEN_100'.
      LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
      PERFORM lief_lfa1.
      PERFORM kunden_kna1.
      LEAVE SCREEN.
    endmodule.   
    In the "PF-STATUS" I defined a button which should call another dynpro with a ALV-List. But when I am debugging the "list-processing" screen I could not catch any sy-ucomm event?!?
    If I comment the two commands ("LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.","LEAVE SCREEN.  LEAVE SCREEN.") out, then the buttonfunction is correct.
    So how can I use a button by using the "LEAVE TO LIST-PROCESSING " command?
    Regards,
    Steffen

    Hi Steffen,
      The logic:
      LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
      PERFORM lief_lfa1.
      PERFORM kunden_kna1.
      LEAVE SCREEN.
    shold be inside a PAI module an not PBO module.
    pai.
    module user_command_0100.
    in program:
    module user_comman_0100.
    case sy-ucomm.
    when '<Fcode for the button>'.
      LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
      PERFORM lief_lfa1.
      PERFORM kunden_kna1.
      LEAVE SCREEN.
    endcase.
    endmodule.
    Regards,
    Ravi

  • Leave to List processing is not working

    Hi all,
    I am displaying data in separate window using Window stratin at '' ''                                                                               
    ending at '' ''.
    in screen  PBO.
      SUPPRESS DIALOG.
      LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
      PERFORM output.
    everything is working fine.but its not showing the whole output .
    even if i scroll .
    what am i did wrong...?

    Hi,
    Its my bad, i am using
      CALL SCREEN 1000  STARTING AT 01 01
                       ENDING   AT 150 50.
    MODULE status_1000 OUTPUT.
      PERFORM include_exclude_function USING sy-dynnr.
      SET PF-STATUS 'AAA' EXCLUDING fcodes.
      SET TITLEBAR '1000'.
      SUPPRESS DIALOG.
      LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
      PERFORM output.
    ENDMODULE.                 " STATUS_8000  OUTPUT

  • Leave list processing

    hi to all sdn people
    i know the functionality of the leave list processing
    and leave to list processing . but tell how to use them in the screen programs ?pls give
    one sample screen program .

    LEAVE TO LIST-PROCESSING
    Basic form 5
    LEAVE TO LIST-PROCESSING.
    Addition:
    ... AND RETURN TO SCREEN scr.
    Effect
    Switches from "dialog processing" (module pool, screens) of the current transaction to "list processing". You can then use all the usual list layout commands (WRITE, SKIP, ...).
    After leaving the current screen, the list formatted in this way is displayed implicitly or explicitly by LEAVE SCREEN. Here, all list programming options are possible, e.g. line selection, F keys, windows.
    LEAVE LIST-PROCESSING continues with "Processing Before Output" (PBO) of the screen which controls the list processing.
    Note
    After switching to list processing mode with SET PF-STATUS ..., you are recommended to define a GUI (Graphical User Interface) of type List or List in dialog box.
    Please consult Data Area and Modularization Unit Organization documentation as well.
    Addition
    ... AND RETURN TO SCREEN scr.
    Effect
    LEAVE LIST-PROCESSING continues with "Processing Before Output" (PBO) of the screen scr.
    Note
    Using LEAVE LIST-PROCESSING to leave list processing explicitly is only necessary in exceptional cases; normally, the standard F keys ( F3=Back and F15=Exit) are sufficient.
    Refer the following code:
    REPORT demo_leave_to_list_processing .
    TABLES demo_conn.
    DATA: wa_spfli TYPE spfli,
          flightdate TYPE sflight-fldate.
    CALL SCREEN 100.
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'SCREEN_100'.
    ENDMODULE.
    MODULE cancel INPUT.
      LEAVE PROGRAM.
    ENDMODULE.
    MODULE user_command_0100.
      CALL SCREEN 500.
      SET SCREEN 100.
    ENDMODULE.
    MODULE call_list_500 OUTPUT.
      LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
      SET PF-STATUS space.
      SUPPRESS DIALOG.
      SELECT  carrid connid cityfrom cityto
        FROM  spfli
        INTO  CORRESPONDING FIELDS OF wa_spfli
        WHERE carrid = demo_conn-carrid.
        WRITE: / wa_spfli-carrid, wa_spfli-connid,
                 wa_spfli-cityfrom, wa_spfli-cityto.
        HIDE: wa_spfli-carrid, wa_spfli-connid.
      ENDSELECT.
      CLEAR: wa_spfli-carrid.
    ENDMODULE.
    TOP-OF-PAGE.
      WRITE text-001 COLOR COL_HEADING.
      ULINE.
    TOP-OF-PAGE DURING LINE-SELECTION.
      WRITE sy-lisel COLOR COL_HEADING.
      ULINE.
    AT LINE-SELECTION.
      CHECK NOT wa_spfli-carrid IS INITIAL.
      SELECT  fldate
        FROM  sflight
        INTO  flightdate
        WHERE carrid = wa_spfli-carrid AND
              connid = wa_spfli-connid.
        WRITE / flightdate.
      ENDSELECT.
      CLEAR: wa_spfli-carrid.

Maybe you are looking for

  • How do I log a bug in Crystal Reports 2008 ?

    I cant find any links at all. Can anyone help please? Thanks Richard

  • Help please. My mac book pro did a java update and now will not boot  oot.

    As it says above. Since doing a java update automatically and then shutting down on me.. my mac book will not boot properly. I can get it to boot in safe mode eventually, usually after 5 to 10 mins of waiting, but will not boot into mormal mode. How

  • Reconstruction of FM Documents

    Hi All We had a GO LIVE on ECC 6.0 about 2 years back. At that time we did not implement FM. WE have decided to implement FM now after about 2 years. In this case I will have to reconstruct FM documents. The process of reconstruction of FM documents

  • Random number generation that sticks

    Hello, I would appreciate any help with the appropriate JavaScript to generate a random 8 digit number XXXX-XXXX on a form when the user starts to enter data. This number would need to be permanent so that it can be used as a tracking identifier late

  • Activity Type in SAP PM

    Dear Masters, We have a field in order screen "PMActivType" can anybody explain me what is it used for and what is it necessary to define PMactivity types in configuration? Thanks in advance.