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: 

Query on Module Pool

Former Member
0 Kudos

Hi all,

My name is SAI KUMAR.

I got struck when I was doing some exercises on Module Pool.

When I created the screen...I clicked the Layout Button...and I dragged the TabStrip button to the area....when I dragged it....i was presented with an initial screen with two tabs 'tab1 and tab2' and an area associated with them....I clicked the tab1 and gave some name to it.

I wanted to insert some fields in tab1....like name, year...so on...But the problem is....When I tried to insert them in the area....it was not inserting and it gave a message saying that 'Illegal operation performed'....How should i overcome this problem in order to insert fields in the tabs of the TabStip.

Please help me out by giving the process.

ID: saikumar325@gmail.com

Bye,

SAI KUMAR

1 ACCEPTED SOLUTION

former_member196299
Active Contributor
0 Kudos

HI Sai ,

While Tab strips in Module pools , you can not directly plaace fields as in screens . for your operation you should create subscreens for tab1 and tab 2 with the needed fields to be displayed , and use these subscreens in Tab1 and tab 2 . I am sure it will work.

Reward points if useful !

Thanks

Ranjita

4 REPLIES 4

former_member196299
Active Contributor
0 Kudos

HI Sai ,

While Tab strips in Module pools , you can not directly plaace fields as in screens . for your operation you should create subscreens for tab1 and tab 2 with the needed fields to be displayed , and use these subscreens in Tab1 and tab 2 . I am sure it will work.

Reward points if useful !

Thanks

Ranjita

Former Member
0 Kudos

Hi Sai,

U cant place fields on the tabstrip directly. In the Layout on a Tabstrip u can place only a subscreen.

U have to place a subscreen on each tab of the tabstrip and work.

For More details got to the following URL

http://help.sap.com/saphelp_nw04/helpdata/en/17/5bf1b52ba211d2954f0000e8353423/content.htm

Reward if useful,

Sudheer

Message was edited by:

Sudheer Kumar Vakkalagadda

Vijay
Active Contributor
0 Kudos

hi...

to insert fields into the tab control you need to create subscreens and assign these to each tab.on each subscreen you can create fields.

1. first click layout .

2. put tab control and click graphical element.

3. in control elements under title strip u can declare tab names.

4. under reference subscr u should give the name of the sub screen u want to be displayed for that tab.

5.under type heading select p.

6. under subscreen heading declare the names of the subscreens.

after that u need to call those subscreens in the main screen on which you created the tab control.

***************************************************************************************

sample code.

PROCESS BEFORE OUTPUT.

MODULE status_0101.

CALL SUBSCREEN : headerdetails INCLUDING 'ZPURCR_71945' '1010',

lineitems INCLUDING 'ZPURCR_71945' '1011',

schedulelines INCLUDING 'ZPURCR_71945' '1012'.

PROCESS AFTER INPUT.

MODULE exit_0101 AT EXIT-COMMAND.

CALL SUBSCREEN: headerdetails ,

lineitems,

schedulelines.

MODULE user_command_0101.

*********************************************************************************************

here headerdetails , lineitems, schedulelines are subscreen names

'ZPURCR_71945' is the program name and '1010,1011,1012 are the subscreen no's.

this should help you.

<b>plz reward pts if helpful.</b>

regards

vijay

Former Member
0 Kudos

thanks all