Working With Screen Painter

download Working With Screen Painter

of 13

Transcript of Working With Screen Painter

  • 8/10/2019 Working With Screen Painter

    1/13

    Working with Screen Painter

    SCREEN PAINTER:

    Screen painter is a tool in ABAP dev workbench used to create the screens using the

    T-code SE51. In the screen painter !ou can de"ine the "ollowing inter"ace ele#ents with their

    associated attributes.

    1. Input$%utput &ields

    '. &ield (a#es

    ). *heckbo+es

    ,. adio Buttons

    5. roup Bo+es

    /. Sub screens.

    0. Pushbuttons with (o &i+ed Position

    and others

    STEP-BY-STEP DEMO FOR SCREEN PAINTER.

    *reate a progra# in SE38.

    *lick on Save. 2e will write the code later in this.

    o to transaction SE51.

    1

  • 8/10/2019 Working With Screen Painter

    2/13

    Enter the created program nameand !reen n"m#er.

    Enter the $or% &e!r'p%'onand click on a(e.

    '

  • 8/10/2019 Working With Screen Painter

    3/13

    *lick on )*o+*og'! tab.

    3nco##ent the state#ent MODULE STATUS_0100 .

    4ouble click the status_0100.

    The below screen will be displa!ed

    *lick on !es.

    )

  • 8/10/2019 Working With Screen Painter

    4/13

    &ollowing pop-up screen appears. Select the 6de#o7screen7painter8 #ain progra#8 and click

    on continue.

    *lick on !es.

    ,

  • 8/10/2019 Working With Screen Painter

    5/13

    Screen would be displa!ed as "ollows9

    (ow co#e back to the transaction SE51. Select "low logic. *lick in la!out.

    5

  • 8/10/2019 Working With Screen Painter

    6/13

    Screen painter window will be displa!ed like this. :ere we will design the re;uired screen

    "ields.

    Click on the middle icon dictionary / program fields window. Or F6.

    Following screen appears:

    /

  • 8/10/2019 Working With Screen Painter

    7/13

    Enter the table name in the table field name.

    Click on get from dictionary.

    Select the reqired fields from !"#" table from dictionary. Click on O$ or contine.

    0

  • 8/10/2019 Working With Screen Painter

    8/13

    "fter placing the reqired fields% yo can &iew the below screen.

  • 8/10/2019 Working With Screen Painter

    9/13

    Create the psh btton from the toolbo'.

    Select the pshbtton% drag and drop the btton onto the screen.

    =

  • 8/10/2019 Working With Screen Painter

    10/13

    Create the other reqired bttons in the same procedre mentioned abo&e and assign thename% te't% and fnction code for each one.

    "fter creating the screen click on sa&e check and acti&ate.

    press flow logic button. .

    1>

  • 8/10/2019 Working With Screen Painter

    11/13

    Click on tab Element (ist enter O$)CO*E.

    +aste the below Code in created , program created earlier:

    *&-------------------------------------------------------------------**& Report ZDEMO_SCREEN_PAINTER*&*&-------------------------------------------------------------------**& Demo for Screen Painter.

    *& B !i"ramc#e$$appa.*&-------------------------------------------------------------------

    11

  • 8/10/2019 Working With Screen Painter

    12/13

    *REPORT ZDEMO_SCREEN_PAINTER.

    ******************************************************************* TAB%E DEC%ARATIONS.

    ****************************************************************** TAB%ES MARA.******************************************************************* DATA DEC%ARATIONS.*****************************************************************DATA MATNR T'PE MARA-MATNR( ERSDA T'PE MARA-ERSDA( ERNAM T'PE MARA-ERNAM( MTART T'PE MARA-MTART( MAT)% T'PE MARA-MAT)%( DISP%A' T'PE C( SA!E T'PE C( DE%ETE T'PE C( C%EAR T'PE C( EIT T'PE C( O)_CODE %I)E S'-+COMM.****************************************************************** CA%%IN, SCREEN.*****************************************************************CA%% SCREEN .

    *&--------------------------------------------------------------**& Mo/0$e STAT+S_ O+TP+T

    *&--------------------------------------------------------------** te1t

    *--------------------------------------------------------------*MOD+%E STAT+S_ O+TP+T.

    * SET P2-STAT+S 3ZMEN+3.* SET TIT%EBAR 3ZMEN+_PAINTER3.

    CASE S'-+COMM. 45EN 3EIT3.

    %EA!E PRO,RAM. 45EN 3BAC)3.

    %EA!E PRO,RAM. 45EN 3DISP%A'3. SE%ECT SIN,%E ERSDA ERNAM MTART MAT)% 2ROM MARA

    INTO 6MARA-ERSDA( MARA-ERNAM( MARA-MTART( MARA-MAT)%7

    45ERE MATNR 8 MARA-MATNR. 45EN 3C%EAR3. C%EAR MARA. ENDCASE.

    ENDMOD+%E. 9 STAT+S_ O+TP+T

    Output:-

    Enter !aterial nmber On !aterial Field. Click on *isplay.

    1'

  • 8/10/2019 Working With Screen Painter

    13/13

    !aterial -nformation is displayed as shown below:

    1)