‎2005 Jun 24 7:05 AM
Hi,
I have a screen 0105, which has a command "leave to list processing" to call list.
Now the list assumes the same size as 0105 because that is the parent.
Now, I want the list to be bigger in size. Screen 0105 is 4017. I want the list to be 13217. So my question is, is there any way I can actually change the size of the list without changing the dimensions of the screen 0105.
Regards,
Prashanth.
‎2005 Jun 24 7:12 AM
U can change
REPORT ZTEST NO STANDARD PAGE HEADING
<b> LINE-SIZE 0
LINE-COUNT 65(increase line-count)
MESSAGE-ID ZM</b>.
Also check in F1 docu
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.
Notes
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.
‎2005 Jun 24 7:42 AM
Thanks Judith.
But this statement is called from a Module Pool program.
So which report is it calling. Actually I have no report.
I think if it were to be called from a report (whihc also has screens), it makes sense. But from a Module Pool ???
Can u throw some light ?
‎2005 Jun 24 8:00 AM
Here is a sample program what u want check this out
http://www.sapgenie.com/abap/code/abap24.htm
Also check this one
http://help.sap.com/saphelp_46c/helpdata/en/9f/db9d2f35c111d1829f0000e829fbfe/content.htm
http://www.sap4.com/codigo-146.html
Please reward points for helpful answers.
‎2005 Jun 24 8:17 AM
Thanks for the links Judith. I ahve already gone thro the sap docu.
See this..
In Func Group CV117, Check include LCV117F08.
Last few lines...
U will understand the scenario better.
The starting point is not a report program at all, unlinke the example programs...
Infact there is no report program at all involved !!!
Prash.
‎2005 Jun 24 7:23 AM
Hi,
I am not sure,but try it in attributes of the screen.In the screen,check the other attributes tab.In that , Lines/columns Mainten , change it.
‎2005 Jun 24 7:52 AM
Jayanthi,
If I were to change the dimension of the screen, it will work fine. But the idea is, I dont want to do this.
In Func Group CV117, Check include LCV117F08.
Last few lines...
IF gf_d105_list_flag = 'X' AND NOT gt_d105_protocol[] IS INITIAL.
SET PF-STATUS space.
LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN '0105'.
LOOP AT gt_d105_protocol INTO ls_prot.
WRITE: / ls_prot-line.
ENDLOOP.
ENDIF.
ENDFORM.