Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

In Executable program displaying results in custom screen.

Former Member
0 Likes
1,556

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.

7 REPLIES 7
Read only

Former Member
0 Likes
1,087

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.

Read only

Former Member
0 Likes
1,087

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.

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,087

Get the data into some fields or structure, then simply use the statement CALL SCREEN 100. Of course you need to create this screen and put the UI elements on the screen layout.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
1,087

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

Read only

Former Member
0 Likes
1,087

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

Read only

Former Member
0 Likes
1,087

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

Read only

Former Member
0 Likes
1,087

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.