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

Porblem during screen programming...

Former Member
0 Likes
1,186

Hello,

I am working on screen programming and I am new to it. I am stuck here. I have two screens.

1) Screen 1000 - PBO1000, PAI1000

2) Screen 2000 - PBO2000, PAI2000

Now, when the user executes the custom transaction, the control goes to PBO1000 and he is presented with a push button. When clicks on push button, some logic is executed in PA1000.

Now, I want to display some message based on the logic excuted in screen 2000.

But the problem is I am not able to display it on screen 2000. I am using following immediately after the logic in PA11000.

SET SCREEN 2000.

LEAVE SCREEN.

Then, in PBO2000, I am passing that message but its not getting displayed.

Am I supposed to do it in different way ?

Regards,

Tushar.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,166

your question is not very clear..

i assume that you want to display screen B, when a pushbutton is hit on screen A.

instead of

SET SCREEN 2000.

LEAVE SCREEN.

try,

call screen 2000.

in the PAI of screen 1000.

and in pbo of screen 2000, write code to display message..

11 REPLIES 11
Read only

Former Member
0 Likes
1,166

Any inputs will be greatly appreciated...

Read only

Former Member
0 Likes
1,167

your question is not very clear..

i assume that you want to display screen B, when a pushbutton is hit on screen A.

instead of

SET SCREEN 2000.

LEAVE SCREEN.

try,

call screen 2000.

in the PAI of screen 1000.

and in pbo of screen 2000, write code to display message..

Read only

0 Likes
1,166

You are right. But there is a internal table which gets filled which I want to display in Screen 2000 once screen 200 appears.

Regards,

Rajesh.

Read only

0 Likes
1,166

what is the issue in displaying the internal table in 2000 ?

keep a table control in 2000, and place the fields of the itab in that table control.

loop on the internal table, in the pbo of 2000..

Read only

0 Likes
1,166

Thanks.

Instead of displaying the whole internal table for testing, I am just trying to write following in PBO of 2000 but the text does not get displayed.

MODULE STATUS_2000 OUTPUT.

SET PF-STATUS 'STATUS1000'.

SET TITLEBAR 'TITLE1000'.

WRITE: /'Its working'.

ENDMODULE. " 2000 OUTPUT

Read only

0 Likes
1,166

You can't just use WRITE statement in screen processing. You will have to define some output field for displaying data on your screen. In this case create a text field and in here display your message.

Read only

0 Likes
1,166

Can you elaborate more ? How can I do this ?

Read only

0 Likes
1,166

WRITE ?

'Write 'is a syntax in list processing , right ?

you are in dialog programming and ...

if you want to continue in dialog programming.. then you should keep some text field of screen say txt1, and pass this value to this text field...

else, use, leave-to list processing...and us ewrite statement...

then u dont have to write..., pbo and all..

i guess, what you are trying is, based on your inputs on screen 1, you need to have a report output on screen 2, right ?

you can use oops alv method ..and call screen 2002...and use set_table_for fist_display in pbo of 2002.

Read only

0 Likes
1,166

You cannot use 'WRITE' for dialogue programming. Use Message S/W for your purpose. You can only use WRITE in report programs/selection screen programs.

Hope that helps

Anu

Read only

0 Likes
1,166

Yes I can....

On your second second screen, where you want to display your message, you must go to the LAYOUT screen (button with arrow at top of screen).

On the next screen you can create (drag and drop) UI elements onto your screen. In this case take the text field. Give it a name. use this name in the PBO (Process Before Output) for displaying your message.

Read only

Former Member
0 Likes
1,166

Hi,

You can't use the WRITE statement in PBO or In Any Screen.

But, you can display message box.

do Like this.

In PAI 1000.

Call Screen 2000.

In PBO 2000.

set pf-status.

set title bar.

In PAI 2000.

LEAVE TO LIST-PROCESSING.

WRITE : "WAT EVR U REQUIRE, THAT MAY BE INTERNAL TABLE DATA".

Note : But in the screen 2000 itself you want display Internal table data, you need to use table control.

Regards

Sandeep Reddy