100% found this document useful (1 vote)
1K views49 pages

Creating Tab Strip in Module Pool Program

Download as docx, pdf, or txt
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 49

Creating Tab Strip In Module Pool Program

--------------------------------------------------------------------------------------------------------------------------------Description: Each tab of the Tab Strip control is attached with a sub screen. When
Particular tab is clicked by the user then the appropriate sub screen is called and sits
on the sub screen area
Step 1. Create a Module Pool program (Type 'M' ). Right click on the program name and
choose create and click on Screen.

Step 2. Provide the screen number '0001' and click on the continue button.

Step 3. Provide a short description and select Normal screen and then click on the
Layout Button.

Step 4. Create an Input field and a Box by selecting appropriate screen elements from
the left column.

Step 5. Now select the tab strip control element as marked in the left column, drag
and drop it in the screen.
Stretch the tab strip according to the height and width. now double click on the
control and provide the name as shown below ('TAB_STRIP').

Step 6. By default two tabs are automatically provided by the system. If you need
some more tabs then select the push button element and drop it on the tab strip
control on the screen.Double click on each tab and provide the tab name , text to be
displayed and the F-Code value.

Step 7. Now select the Sub Screen Area element from the left column as marked, drag
and drop it inside the tab strip. Now Double click on the Sub Screen Area and provide
the name as 'SSA'.

Step 8. Now Double click on each tab and in the 'REF FIELD' pass the sub screen area
name as shown below.

Step 9. Now the design of the first screen is over. Lets create four sub screen as we
have four tabs in the Tab Strip. Right click on the program name and navigate as per
the below shown path to create a screen.

Step 10. Provide the screen number '0002' and click on the continue button.

Step 11. Provide a short text and select the Sub Screen radio button and at last click
on the Layout tab .

Step 12. Declare some variables in the program . Click on the top Button marked as
red. Provide * in the Table/ Field Name and click on the button 'Get From Program'.
Select some variables as marked and click on the continue button.

Step 13. Create some text Labels for the Fields as shown Below.

Step 14. Now create another screen '0003' for second tab. At last click on the
Continue button.

Step 15. Provide the short text and select sub screen radio button and then click on
the layout button.

Step 16. Click on the button marked as red and provide the table name as 'SCARR' and
click on Get from Dictionary button.Select the fields that you want to display and click
on the Continue Button.

Step 17. Set the attribute of each field as Output only by double clicking on each
field.

Step 18. Lets create another screen for the 3rd Tab . Give screen number as '0004'
and click on continue button.

Step 19. Now provide the short text fro the screen and select the Sub Screen radio
button and at last click on the Layout Button.

Step 20. Click on the button marked as red and provide the table name as 'SPFLI' and
click on Get from Dictionary button.Select the fields that you want to display and click
on the Continue Button.

Step 21. Set the property as Output Only fro each field.

Step 22. Lets create the final screen for the 4th tab. Provide the screen Number
'00005' and click on the continue button.

Step 23. Now provide the short text fro the screen and select the Sub Screen radio
button and at last click on the Layout Button.

Step 24.Click on the button marked as red and provide the table name as 'SFLIGHT'
and click on Get from Dictionary button.Select the fields that you want to display and
click on the Continue Button.

Step 25.Set the property as Output Only fro each field.

Step 26. The main screen with four tabs in the tab strip and four sub screen design is
ready. Flow Logic of screen '0001'. Define the modules in PBO and PAI in the main
program by double clicking on the Module name in the flow logic.

Step 27.Flow Logic of screen '0002'.

Step 28. Flow Logic of screen '0003'.

Step 29. Flow Logic of screen '0004'.

Step 30. Flow Logic of screen '0005'.

Step 31. In the modules of the main screen write below code a shown.

Step 32.Create a T-Code for the Program and run it.

Step 33. Now the Screen appears with Attribute tab as active.

Step 34. Provide the input as click on the 'SCARR' tab.

Step 35. Provide the input as click on the 'SPFLI' tab.

Step 36. Provide the input as click on the 'SFLIGHT' tab.

_____________________________________________________________________
___________
Posted 11th August 2013 by S Prasad

View comments

TECHSAP

[visit www.marathustech.net for


classroom or online training or
contact +91 89708 40880]
Sidebar

Home

Topic Tutorials

FPM Tutorials

Topic Wise Questions for Interview?

SAP ABAP Short Questions for written interview

Need SAP Training?

Want to Call any URL from ABAP Program?

Calling Calculator in ABAP Program!

Reading program text pool!

How to create a Single Quote ?

Conversion: Raw to String

Conversions (2) : XSTRING to STRING

Conversions : XSTRING to STRING

Conversions : STRING to XSTRING


SAP Script Important Standard Programs!

How to use User Parameter ID ?

How to call Maintenance View Programatically?

How get to know SAP_JAVA engine is active or not?

How to Check Different Languages Installed in SAP System?

Maximum allowed sessions in SAP?

How to Create Number Range Object [Tx- SNRO]

Editable ALV with save functionality uisng OOABAP

Creating a dynamic variant for a report

Running background job by triggering an event

13.Smartfrom : How to debug a smartform?

12.Smartform : Passing data from driver program to Smartform interface

11.Smartform: Use of Copy Window in Smartform

Writing to or Reading from Application Server By ABAP Classes

Downloading File from SAP Appliciation Server Directory

Uploading File to SAP Appliciation Server Directory

Reading Data from SAP Application Server [ Tx- AL11 ]

Writing Data to SAP Application Server [ Tx- AL11 ]

10. Smartform :Designing a template in Smartform

9. Smartform : Designing a table in smartform

8. Smartform : Displaying address on a Smartform Window

7. Smartform : Displaying a logo on a Smartform Window

6.Smartfrom: How to call a Smartform progrmatically that works in development, quality & production?

5.Smartfrom : How to call a Smartform Progrmatically?

4.Smartform- Using Dynamic Text in window

3.Smartform- Using Standard Text in window

2.Smartform- Using Text module in window

1.Smartform - Using a text element in window

Benefits of use of text elements and its translation

Use of SAP OTR [OnlineText Repository] Text

Part4 : FPM OVP Application -Integrating Search UIBB and List UIBB: Displaying POPUP Screen

Part3 : FPM OVP Application -Integrating Search UIBB and List UIBB: Message Display

Part2 : FPM Integrating Search UIBB and List UIBB into FPM OVP Application : Link to action

Part1 : FPM Integrating Search UIBB and List UIBB into FPM OVP Application

Creating Range Table Type in Data Dictionary

Converting Script OTF data to PDF

Need to Convert Spool Request(Generated Background Job ) Into PDF!

Need to Convert Spool Request(OTF Script) Into PDF!

Tabbed Block at Selection-screen

qRFC with Outbound Queue & Inbound Queue between two different SAP systems - One LUW per mixed part of the
Queues

qRFC with Outbound Queue & Inbound Queue between two different SAP systems - One LUW per Queue Call

qRFC with Outbound Queue & Inbound Queue between two different SAP systems - One LUW for Multiple QUEUE Calls

Want to Call any URL from ABAP Program?


-----------------------------------------------------------------------------------------------------------------------------Code:
-------------------------------------------------------------------------------------------------------------CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
* document
=
" Path+Name to Document
application
= 'www.google.com' " Path and Name of Application
* parameter
=
" Parameter for Application
* default_directory
=
" Default Directory
* maximized
=
" Show Window Maximized
* minimized
=
" Show Window Minimized
* synchronous
=
" When 'X': Runs the Application in Synchronous Mode
* operation
= 'OPEN' " Reserved: Verb fr ShellExecute
EXCEPTIONS

cntl_error
=1
error_no_gui
=2
bad_parameter
=3
file_not_found
=4
path_not_found
=5
file_extension_unknown = 6
error_execute_failed = 7
synchronous_failed
=8
not_supported_by_gui = 9
OTHERS
= 10.
IF sy-subrc <> 0.
* MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
*
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
-------------------------------------------------------------------------------------------------------------Step1. cl_gui_frontend_services=>execute method can be used to call any URL. It can
be used to call any webdynpro/fpm application from the program as every
webdynpro/fpm application have an uniuqe URL.

Step2. Here it calls the URL.

Step3. Still we can open any document by specifying the appropriate executable file,
location of the directory of the file and providing the file name.

Step4. Here is one example how we can open a PDF file by the method
cl_gui_frontend_services=>execute.

-----------------------------------------------------------------------------------------------------------------------------Posted 2 days ago by S Prasad

View comments

Loading

You might also like