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...

Similar Messages

  • 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 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.

  • Leave to list processing

    Hi all,
    i've designed a selection screen in module pool and based on some selction criteria i've to display success and error records.These records should be displayed in the form of list output.
    As i'm using module pool i've used LEAVE TO LIST-PROCESSING for displaying these records.As i've designed selection screen the application tool bars are appearing here on the list and no tool bar icon is functioning even though i've declared them in PF STATUS.
    Now when i double click on list it has to take me to some t-code say SM35.Where should i write this AT LINE-SELECTION event?
    ...Regards

    Hai,,
               You keep the AT-LINE SELECTION in the last only...
    For Leave To List Processing ,you will try the following ..
       IF SY-UCOMM = 'Your Fn_Code'.
           LEAVE SCREEN.
           LEAVE TO LIST-PROCESSING.
        SELECT * FROM ZTable INTO TABLE ITAB.
              LOOP AT ITAB.
          WRITE:/ ITAB-ITEMNO.
         ENDLOOP.   
      ENDIF.
    Try this ..it will be useful to you..I hope..
    reward points if it's useful..
    Regards,
    Manoj.

  • 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

  • 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

  • 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 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.

  • 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 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.

  • 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

  • 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

  • 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

  • Ps (list process) command in Solaris 10

    Dear all
    I'm upgrade from Solaris 9 to Solaris 10 and recently I meet one problem:
    In solaris 9, If I want to check the complete command for the running process, I could use
    /usr/ucb/ps -auxww
    then, the system could gives me everything.
    But in Solaris 10, I use the same command, but it seems that system has "cut" the args and I can't get the expected result anymore.
    Anybody ever meet such a problem before? could you give me some hints?
    Cheers
    Shen

    Under normal circumstances, the /usr/ucb/ps command is attempting to read the ARGV[0] from the process itself. This string can be long, but is under the control of the process (it can change it while it runs). Also, because of security issues, reading this data requires process privileges (usually have to be the owner or root).
    If privileges do not exist, ps will fall back to using the kernel buffer holding the first 80 characters of the exec string. This string is potentially shorter, but not under the control of the process, and no security restrictions exist for reading it.
    Besides /usr/ucb/ps, you can use 'pargs <PID>' to view this string. Of course if privileges aren't held, it won't tell you anything new. But it may be more explicit in telling you that fact, rather than silently substituting the kernel string instead.
    $ pargs 597
    pargs: cannto examine 597: permission denied
    Darren

  • Return to List Processing From Business Object Method CTREQUEST.Display

    I have a simple program which displays selected TRKORR (Transport/Correction) numbers in a list on the screen. I want to be able to double click on the number and inspect the contents of these items. 
    The program is not pretty - its for my use only.
    Anyway, the code below is tucked at the end of my program, and it works fine - double clicking will display the request. .
    FORM SHOWCTS  USING  P_REQ.
      DATA : ThisReq      TYPE SWC_OBJECT.
      DATA : ReqObjectKey Like SWOTOBJID-OBJKEY .
      SWC_CONTAINER        REQCONTAINER.
      SWC_CREATE_CONTAINER REQCONTAINER.
      move p_req to ReqObjectKey .
      SWC_CREATE_OBJECT ThisReq 'CTREQUEST' ReqObjectKey .
      SWC_CALL_METHOD   ThisReq 'Display'   ReqContainer .
    ENDFORM.
    AT LINE-SELECTION .
      data l_req type TRKORR .
      move sy-lisel+29(20) to l_req . CONDENSE l_req NO-GAPS .
      perform showcts using l_req .
    The problem is, when I exit from the CT Request, the program EXITs  . The desired behavior would be to return to my list processing.
    How can I return to my list upon exiting the Request display?
    Thanks...
    ...Mike

    Hi,
    Try command LEAVE TO SCREEN 0 instead of EXIT.
    Thanks.
    Ravi

Maybe you are looking for

  • Error 472 in job queue process + ORA-472: PMON  process terminated with err

    Hi, I've an Oracle Database 11g Release 11.1.0.6.0 - 64bit Production With the Real Application Clusters option. Yesterday instance on node1 crashed. This is the extract of alert log: Errors in file /u01/app/oracle/diag/rdbms/evodb/EVODB1/trace/EVODB

  • Full Duplex Lost with Wave Files on SB Live! Value (W

    <SPAN>Following a clean install upgrade from WinME to WinXP SP2 on a Dell Dimension 400 with an OEM-installed SB Li've! Value (WDM) PCI card onboard, full duplex wave audio (recording one wave file while playing back one or more other wave files) ups

  • Cd/dvd drive ejecting discs

    all of a sudden my powerbook ejects cds and dvds without reading the media. the motor goes through its few second start up process but spits the disc out. not media related as these are discs that have played before. any ideas?

  • Ipod classic wont Restore

    Can anyone help!!! My friend gave me his ipod because he got a new one. Being an old git & not knowing much about things like this, I thought i would restore to factory settings to get rid of all is Rap music. So i connect it up to the pc, follow all

  • Sxmb_moni - selction lists for service, interface etc. are empty

    If I use the transaction sxmb_moni at XI/PI systems it is possible to get such lists of services, interfaces and namespaces if I use the selection help at the selection screen. If I click at the selection help of the sender interface column I get all