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

Table control urgent

Former Member
0 Likes
1,052

I am calling modal dialog screen(9002) from my normal screen(9001).

In the modal dialog i have container which iam using class TEXTEDIT_CUSTOM_CONTAINER for displaying long text.

My question's are,

1) In the normal screen i.e 9001 in user command i am using a button called text to call 9002.

I tried to change values as below , i didnot noticed any difference in my out put.

call screen '9002' starting at 1 1

ending at 111 5.

call screen '9002' starting at 7 30

ending at 1 50.

2) my word wrap length is 80, iam able to see only 50 and to see the next 30 character i need to use horizontal scroll bar, which is ok.

But my requirement is i want to see all the 80 characters without using horizontal scroll.

I thought of increasing the container width but the window size is limiting the container view.

so at max i can viewing 50 char per line without using horizontal bar.

if i reduce the container , i see less than 50 char per line then i have to use horizontal scroll to see remains char in the line.

i have to see 80 chars without using the horizontal scroll.

can anyone tell what the solution for this.

i THOUGHT OF THIS

1)Increasing the size of container in layout.

2) Incresing the values in call screen starting code.

3)Is there any thing that i can use just like we use

WORDWRAP_POSITION = '85' to limit the 85 char per line

Let me know.

SWATHI

I am calling modal dialog screen(9002) from my normal screen(9001).

In the modal dialog i have container which iam using class TEXTEDIT_CUSTOM_CONTAINER for displaying long text.

My question's are,

1) In the normal screen i.e 9001 in user command i am using a button called text to call 9002.

I tried to change values as below , i didnot noticed any difference in my out put.

call screen '9002' starting at 1 1

ending at 111 5.

call screen '9002' starting at 7 30

ending at 1 50.

2) my word wrap length is 80, iam able to see only 50 and to see the next 30 character i need to use horizontal scroll bar, which is ok.

But my requirement is i want to see all the 80 characters without using horizontal scroll.

I thought of increasing the container width but the window size is limiting the container view.

so at max i can viewing 50 char per line without using horizontal bar.

if i reduce the container , i see less than 50 char per line then i have to use horizontal scroll to see remains char in the line.

i have to see 80 chars without using the horizontal scroll.

can anyone tell what the solution for this.

i THOUGHT OF THIS

1)Increasing the size of container in layout.

2) Incresing the values in call screen starting code.

3)Is there any thing that i can use just like we use

WORDWRAP_POSITION = '85' to limit the 85 char per line

Let me know.

SWATHI

9 REPLIES 9
Read only

Former Member
0 Likes
1,000

Hi

any suggestions on this

Thanks

Read only

0 Likes
1,000

Hi Swati ,

I think increasing the size of container in layout will solve the prob..

Just try and let us know...

Read only

0 Likes
1,000

First you need to increase the size of the container to handle the 80 characters, which means that you may have to increate the screen size, then finally adjust the STARTING and ENDING values of the CALL SCREEN statement.

Regards,

Rich Heilman

Read only

0 Likes
1,000

Hi Rich and all,

My text editor handles 85 char.

You said

you may have to increate the screen size

How do you this all i have on the screen is container.

How can we increase the size of modal dialog screen.

CREATE OBJECT EDITOR

EXPORTING

PARENT = TEXTEDIT_CUSTOM_CONTAINER

WORDWRAP_POSITION = '85'

WORDWRAP_MODE = CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION

WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>FALSE

EXCEPTIONS

Read only

0 Likes
1,000

Go to the screen and click the attributes tab, you should see the lines/columns, in the Mainten. section, increase the number for columns(the one on the right). Now go to the layout and inscreen the size of your container.

Regards,

Rich HEilman

Read only

0 Likes
1,000

For example, I have gotton this to work in my system, but changing the screen size to 82 columns, then making my control 82 wide. Then here is my code.



report zrich_0001 .

data: text_container type ref to cl_gui_custom_container,
      text_editor    type ref to cl_gui_textedit.


<b>call screen 100 starting at 1 1
                ending at 80 20.</b>
*&---------------------------------------------------------------------*
*&      Module  STATUS_0100  OUTPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module STATUS_0100 output.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.


create object text_container
       exporting
          container_name = 'TEXT_CONTAINER' .

CREATE OBJECT text_EDITOR
       EXPORTING
          PARENT = TEXT_CONTAINER
          <b>WORDWRAP_POSITION = '79'</b>
          WORDWRAP_MODE = CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION
          WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>false.




endmodule.                 " STATUS_0100  OUTPUT
*&---------------------------------------------------------------------*
*&      Module  USER_COMMAND_0100  INPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module USER_COMMAND_0100 input.

leave program.

endmodule.                 " USER_COMMAND_0100  INPUT

Works good, 80 characters and no scroll bar.

Regards,

Rich Heilman

Read only

0 Likes
1,000

Hi rich,

call screen '9911' starting at 1 1

ending at 190 90.

in screen attributes i have

lines/column for maintained as

50 240.

I have changed all number but the modal dialog box doesn't increase. IS THERE A LIMITAION TO THE WIDTH OF DIALOG BOX.

IT DOESN'T EVEN MOVE UP WHEN I CHAGE THE NUMBERS.

ITS STARTING FROM THE MIDDLE OF THE SCREEN.

THANKS

Read only

0 Likes
1,000

240 is the max.

But you have specified.... 1 1 which means that it begins at the first row, first column, so it should be starting in the upper left hand corner or the screen area.

Read only

0 Likes
1,000

HI RICH,

Nope its starting from middle of the screen.

does it have anything to do with lines /column occupied.

In my screen the lines/column for occupied are

12 /50 and its greyed out so i cannot change them.

THANKS