‎2007 Jan 24 2:45 PM
Hi,
I have a executable program, when the program display's the out put of this program I need to display output in custom screen (like screen 100) instead of displaying in default List screen.
Can any one tell me how to create and display output in that screen.
Thanks.
Chris.
‎2007 Jan 24 2:53 PM
You need to code a subscreen. Then use the command CALL SCREEN '9001' for example. Then in the PBO pass your data to the screen.
Why do you want to do this though.
‎2007 Jan 24 2:54 PM
hi chris,
i guess this wont work if you want to do a list processing.
But you can create yourself a Dynpro in your executable programm, and put an ALV-grid on it to display your data.
if thats ok for you just tell me and we can have a conversation about HOW to implement this ALV then.
‎2007 Jan 24 2:55 PM
‎2007 Jan 24 2:55 PM
HI Chris,
instead writing a write statement in program call screen 100 ( eg).
and design the screen with corresponding fields of ur output.
and in PBO module.
pass the itab values to the screen values.
assign pf-status for function keys.
hope this helps,
Regards
CNU
‎2007 Jan 24 2:57 PM
Hi Chris,
Create a new screen under the same program.
and use CALL SCREEN <screen_no> after a event is triggered from the default screen
‎2007 Jan 24 4:52 PM
Hi,
Check the pseudo code....
<b>Start-of-selection.</b>
Retrieve data
<b>End-of-seleciton</b>
call screen 0100.
<b>*PBO</b>
form PBO_200 output.
endform.
<b>*PAI</b>
FORM PAI_200 input.
endform.
To call Screens use any of the following commands
<u><b>1. CALL SCREEN scr.</b></u>
Addition:
... STARTING AT x1 y1 ... ENDING AT x2 y2
<b>Effect</b>
Calls the screen scr; scr is thenumber of a screen of the main program. You use SET SCREEN 0. orLEAVE SCREEN. to define thereturn from the CALL screen.
<b>Addition</b>
... STARTING AT x1 y1 ENDING AT x2 y2
<b>Effect</b>
The coordinates x1, y1 (start column andstart line in the window) and x2, y2 (end column and endline in the window) define the size and position of the CALLscreen ("top left - bottom right"). Besides these coordinates,you can also see the contents of the primary window, but cannot performany action there.
<b>Note</b>
If "ENDING AT ..." is not specified, suitablevalues are substituted for x2 and y2, taking into accountthe size of the called screen.
<b>Note</b>
<b>Runtime errors:</b>
DYNP_TOO_MANY_CALL_SCREENS: No further screen level (callscreen); the maximum number of nested screen levels is restricted to 50at present.
2. <u><b>SET SCREEN scr.</b></u>
<b>Effect</b>
In ABAP dialogs: Sets the number of the nextscreen.
Screen number scr is then processed when the current screen has finished.
<b>Example</b>
SET SCREEN 200.
<b>Notes</b>
To leave a CALL SCREEN chain or return to the application menu, use one of the followingstatements:
SET SCREEN 0. or LEAVE TO SCREEN 0.
I hope this solves your problem.
Regards,
Vara
‎2007 Jan 24 8:29 PM
Hi Chris,
<b>Call Screen 100</b> from your report program.
simply and create a structure and pass this value on to desired field which is created on the screen. and In the PBO of the screen you can assign the values to the field.
This will work.