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

Multyline Text Box in Selection screen

0 Likes
6,497

I want to use Multyline Text Box in Selection screen.

Please tell me how to do that.

I want to use Multyline Text Box in Selection screen.

Please tell me how to do that.

7 REPLIES 7
Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,872

If by "Multyline Text Box" you mean a free input area for text as generated thru cl_gui_textedit, the answer is NO, selection-screen are not able to use those type of tools (custom control) but...

Module pool dynpro can merge selection-screen and enjoy objects in  a screen.

Create a dynpro with a custom container area and a subscreen area -

- in the custom container area you will maintain the "text box" thru cl_gui_custom_container, cl_gui_textedit -> Controls Tutorial (BC-CI)

- in the subscreen you will insert a selection-screen -> Level 8: Document: Selection Screens as Subscreens. SelectedSelection Screens as Subscreens in Screen Programming

Regards,

Raymond

Read only

0 Likes
2,872

Correction after some investigation :

You may try one of those two hints to add a subscreen area or a custom container when displaying the selection-screen

hints :

- create a docking containter by calling cl_gui_docking_container=>dock_at_bottom during the selection-screen ouput

- define a tabbed block, without any tabs, SELECTION-SCREEN BEGIN OF TABBED BLOCK

In both case you get a subscreen area or a container in which you could display/edit the text lines.

Regards,

Raymond

Read only

Former Member
0 Likes
2,872

Hi anurodh,

Refer to this link.

http://scn.sap.com/thread/2033929

use FM      CATSXT_SIMPLE_TEXT_EDITOR.

Read only

former_member196490
Active Participant
0 Likes
2,872

I dont think you can implement a TEXT AREA in a selection screen , you can do it only using the screenpainter because there is no such statement as TEXT AREA for selection screen.

Read only

0 Likes
2,872

Hi,

you can do it the other way round and include your selection screen in a normal screenpainter screen which includes also the text area as @Neha Sinha mentioned:

*definition of the selection screen:

SELECTION-SCREEN BEGIN OF SCREEN 9001 AS SUBSCREEN.
...

SELECTION-SCREEN END OF SCREEN 9001.

*screenpainter:

    CALL SUBSCREEN subscreenarea INCLUDING 'programname' '9001'.

Just keep in mind that the PAI for the selection screen is still at

AT SELECTION-SCREEN.

Regards,

Dirk

Read only

0 Likes
2,872

In fact that was my first suggestion

(I too find it easier)

Regards,

Raymond

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
2,872

Check if my post helps

SAP Community Network Wiki - ABAP Development - Saving Text edit control in selection screen as a...

You can adjust the coordinates of the control as required.