Application Development 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: 

Regarding Screen Painter

Former Member
0 Kudos

Hi,

I want to know about Screen Painter. Please give me some examples regarding this so that i'll familiar with screen painter.

Thanks.

6 REPLIES 6

Former Member
0 Kudos

t code for screen painter is SE51.

for module pool programs u need to create the screens inthis tcode.

here u can create normal screens and subscreens in the layout.

Former Member
0 Kudos

Hi Prakash

First learn some basics abt screen painter after that do some practice and post u r problems in SDN

hERE I AM PROVIDING SOME LINKS JUST GO THROUGH IT

http://www.thespot4sap.com/articles/SAP_Design_Screen_Elements.asp

http://help.sap.com/saphelp_nw2004s/helpdata/en/e9/635fa6e01e11d195490000e82de14a/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/d1/801b50454211d189710000e8322d00/content.htm

REWARD POINTS FOR ALL HELPFUL ANSWERS,

KIRAN.M

Former Member

Former Member
0 Kudos

Hi

For screen painter transaction is se51.

for more details goto link

http://sap.mis.cmich.edu/sap-abap/abap09/sld010.htm

and

You can display logo(s) on your screen using the custom control function. A custom control is an area on the screen, created using the screen painter. Custom controls are used to embed controls. Container controls are instances of special global classes from the SAP Control Framework. The global class for custom controls is called CL_GUI_CUSTOM_CONTAINER. To link a custom control to a container control, pass the custom control name to the CONTAINER_NAME parameter of the container control constructor when you instantiate it. The following is a sample program to demonstrate the logo display using the custom control. This program was written in SAP4.6C. Design a screen with the custom control, by name PICTURE_CONTAINER. It has the following flow logic:

PROCESS BEFORE OUTPUT.

MODULE STATUS_0100.

*

PROCESS AFTER INPUT.

MODULE CANCEL AT EXIT-COMMAND.

The GUI status SCREEN100 has the functions BACK, EXIT, and CANCEL (all with type E).

example:

REPORT ZSURESH_TEST .

  • Type declarations.....................

TYPES pict_line(256) TYPE c.

  • data declarations......................

DATA :init,

container TYPE REF TO cl_gui_custom_container,

editor TYPE REF TO cl_gui_textedit,

picture TYPE REF TO cl_gui_picture,

pict_tab TYPE TABLE OF pict_line,

url(255) TYPE c.

CALL SCREEN 100.

  • Dialog modules......................................

MODULE status_0100 OUTPUT.

SET PF-STATUS 'SCREEN100'.

IF init is initial.

init = 'X'.

CREATE OBJECT:

container EXPORTING container_name = 'PICTURE_CONTAINER',

picture EXPORTING parent = container.

ENDIF.

IMPORT pict_tab = pict_tab FROM DATABASE abtree(pi) ID 'ENJOY'.

CALL FUNCTION 'DP_CREATE_URL'

EXPORTING

type = 'IMAGE'

subtype = 'GIF'

TABLES

data = pict_tab

CHANGING

url = url.

CALL METHOD picture->load_picture_from_url EXPORTING url = url.

CALL METHOD picture->set_display_mode

EXPORTING display_mode = picture->display_mode_fit_center.

ENDMODULE.

MODULE cancel INPUT.

LEAVE TO SCREEN 0.

ENDMODULE.

please reward points if helpful

Former Member
0 Kudos

Hello ,

The best examples are given to you by SAP in ABAP docu

<b>Run Tcode : abapdocu</b>

in that <b>ABAP USER DIALOGS --->SCREENS</b>

in that both <b>Processing screens</b> and <b>Complex screen</b> elements will give you excellent knowledge and examples through demo programs...please try to create examples after you have analysed each example..this way you can understand in depth

Reward if helpful

Regards

Byju