Active tab in Tabstrip on Report screen
Hi.
I developed a Report which has a tabstrip on its selection screen. After user press F8 and execute the report and it writes the result. When it come back to selection screen, it always come back to first tab. I want to back to last selected tab.
I want to define the active tab. How to do that ?
thanks.
Glauco
Solved by myself.
AT SELECTION-SCREEN
IF sy-ucomm(5) = 'UCOMM'.
g_active_tab = sy-ucomm. "tabs-activetab.
g_active_dynnr = 9000.
g_active_dynnr+3(1) = sy-ucomm+5(1)."tabs-dynnr.
EXPORT ztab = g_active_tab TO MEMORY ID 'ztab'.
EXPORT zdyn = g_active_dynnr TO MEMORY ID 'zdyn'.
ENDIF.
AT SELECTION-SCREEN OUTPUT.
IMPORT ztab = g_active_tab FROM MEMORY ID 'ztab'.
IMPORT zdyn = g_active_dynnr FROM MEMORY ID 'zdyn'.
IF g_active_tab IS NOT INITIAL.
tabs-activetab = g_active_tab.
tabs-dynnr = g_active_dynnr.
ENDIF.
Similar Messages
-
Determine the active tab in a selection screen
Hello,
is it possible to determine which tab is currently activated in a selection screen with several tabs?
I will include different code in different tabs. When pressing the "execute" button the program should return the active tab (as a value).
Thanks
Florian SchwaigerHi florain,
Before you can use a tabstrip control in your ABAP program, you must create a control for each control in the declaration part of your program using the following statement:
CONTROLS <ctrl> TYPE TABSTRIP.
where <ctrl> is the name of the tabstrip area on a screen in the ABAP program. The control allows the ABAP program to work with the tabstrip control. The statement declares a structure with the name <ctrl> . The only component of this structure that you need in your program is called ACTIVETAB.
Use in the PBO event
Before the screen is displayed, you use the control to set the tab page that is currently active. To do this, assign the function code of the corresponding tab title to the component ACTIVETAB:
<ctrl>-ACTIVETAB = <fcode>.
When you page at the SAPgui, you only need to do this once before the screen is displayed. This initializes the tabstrip control. The default active tab page is the first page. After this, the page activated when the user chooses a tab title is set within SAPgui.
When you page on the application server, you must assign the active page both before the screen is displayed for the first time, and each time the user pages. At the same time, you must set the required subscreen screen.
You can suppress a tab page dynamically by setting the ACTIVE field of table SCREEN to 0 for the corresponding tab title.
Use in the PAI event
In the PAI event, ACTIVETAB contains the function code of the last active tab title on the screen.
When you page in the SAPgui, this allows you to find out the page that the user can currently see. When you page at the application server, the active tab page is controlled by the ABAP program anyway.
The OK_CODE field behaves differently according to the paging method:
Paging in the SAPgui
When you page in the SAPgui, the PAI event is not triggered when the user chooses a tab title, and the OK_CODE field is not filled. The OK_CODE field is only filled by user actions in the GUI status or when the user chooses a pushbutton either outside the tabstrip control or on one of the subscreens.
Paging on the application server
If you are paging at the application server, the PAI event is triggered when the user chooses a tab title, and the OK_CODE field is filled with the corresponding function code.
To page through the tabstrip control, you must assign the function code to the ACTIVETAB component of the control:
<ctrl>-ACTIVETAB = <ok_code>.
This statement overwrites the function code of the last active tab page with that of the new tab title. At the same time, you must ensure that the correct subscreen is inserted in the subscreen area.
Otherwise, tabstrip controls are handled like normal subscrens in ABAP programs, that is, the ABAP program of a subscreen screen must contain the dialog modules called from the flow logic of the subscreen.
Examples
Tabstrip control, paging at SAPgui
REPORT DEMO_DYNPRO_TABSTRIP_LOCAL.
CONTROLS MYTABSTRIP TYPE TABSTRIP.
DATA: OK_CODE TYPE SY-UCOMM,
SAVE_OK TYPE SY-UCOMM.
MYTABSTRIP-ACTIVETAB = 'PUSH2'.
CALL SCREEN 100.
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'SCREEN_100'.
ENDMODULE.
MODULE CANCEL INPUT.
LEAVE PROGRAM.
ENDMODULE.
MODULE USER_COMMAND INPUT.
SAVE_OK = OK_CODE.
CLEAR OK_CODE.
IF SAVE_OK = 'OK'.
MESSAGE I888(SABAPDOCU) WITH 'MYTABSTRIP-ACTIVETAB ='
MYTABSTRIP-ACTIVETAB.
ENDIF.
ENDMODULE.
thanks
nagendra -
Is it possible to manually set the active tab in a tabstrip?
Thank you,
BogdanHi,
I will give u some sample code to do that
PROCESS BEFORE OUTPUT.
MODULE status_9000.
MODULE main_tab_active_tab_set.
CALL SUBSCREEN main_tab_sca
INCLUDING i_main_tab-prog i_main_tab-subscreen.
PROCESS AFTER INPUT.
MODULE user_command_9000.
MODULE main_tab_active_tab_get.
MODULE main_tab_active_tab_set.
DATA FOR TABSTRIP 'MAIN_TAB'
CONTROLS: main_tab TYPE TABSTRIP.
DATA: BEGIN OF i_main_tab,
subscreen LIKE sy-dynnr,
prog LIKE sy-repid VALUE
'ZCSVO_COGNOS_EXTRACT',
pressed_tab LIKE sy-ucomm VALUE c_main_tab-tab1,
END OF i_main_tab.
<b>MODULE main_tab_active_tab_set OUTPUT.</b>
main_tab-activetab = i_main_tab-pressed_tab.
CASE i_main_tab-pressed_tab.
WHEN c_main_tab-tab1.
To display open orders report
i_main_tab-subscreen = '9100'.
CALL METHOD o_alvgrid1->set_table_for_first_display
EXPORTING
is_variant = w_variant
i_save = c_lay
is_layout = w_layout
CHANGING
it_outtab = i_output1[]
it_fieldcatalog = i_fieldcat[]
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE i000 WITH text-e06."Error in ALV report display
LEAVE LIST-PROCESSING.
ENDIF.
WHEN c_main_tab-tab2.
To display due for biling report
i_main_tab-subscreen = '9200'.
CALL METHOD o_alvgrid2->set_table_for_first_display
EXPORTING
is_variant = w_variant2
i_save = c_lay
is_layout = w_layout
CHANGING
it_outtab = i_output2[]
it_fieldcatalog = i_fieldcat3[]
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE i000 WITH text-e06."Error in ALV report display
LEAVE LIST-PROCESSING.
ENDIF.
WHEN OTHERS.
DO NOTHING
ENDCASE.
ENDMODULE. " MAIN_TAB_ACTIVE_TAB_SET OUTPUT
*& Module MAIN_TAB_ACTIVE_TAB_GET INPUT
text
<b>MODULE main_tab_active_tab_get INPUT.</b>
CASE sy-ucomm.
WHEN c_main_tab-tab1.
i_main_tab-pressed_tab = c_main_tab-tab1.
WHEN c_main_tab-tab2.
i_main_tab-pressed_tab = c_main_tab-tab2.
WHEN OTHERS.
DO NOTHING
ENDCASE.
ENDMODULE. " MAIN_TAB_ACTIVE_TAB_GET INPUT
*& Module USER_COMMAND_9000 INPUT
text
<b>MODULE user_command_9000 INPUT.</b>
CASE sy-ucomm.
WHEN 'BACK'.
PERFORM exit_program.
SET SCREEN '0'.
WHEN 'EXIT' OR 'CANC'.
PERFORM exit_program.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_9000 INPUT
*& Module MAIN_TAB_ACTIVE_TAB_SET INPUT
text
<b>MODULE main_tab_active_tab_set INPUT.</b>
main_tab-activetab = i_main_tab-pressed_tab.
CASE i_main_tab-pressed_tab.
WHEN c_main_tab-tab1.
i_main_tab-subscreen = '9100'.
WHEN c_main_tab-tab2.
i_main_tab-subscreen = '9200'.
WHEN OTHERS.
DO NOTHING
ENDCASE.
ENDMODULE. " MAIN_TAB_ACTIVE_TAB_SET INPUT
Try this out.
Thanks & Regards,
Judith. -
Different Report Output based on different tabstrips on selection screen
Hi all,
I have a selection screen which has 3 tabstrips.
The screen nos are 101,102 and 103.
Now in each tab there are different input parameters and based on each tab there will be 3 different outputs.
i.e when I click on tab1 and give the required inputs i will get 1 report output.
similarly I will get different ouput in the other 2 tabs.
Can any one suggest some solution how to achieve this.
Thanks and Regards
Nazmul AzadLook for documentation at [SELECTION-SCREEN - TABBED BLOCK |http://help.sap.com/abapdocu/en/ABAPSELECTION-SCREEN_TABBED.htm]
Adapgt the sample provided, and in the START-OF-SELECTON event add a CASE/WHEN to execute whichever report you want based on mytab-dynnr value.
Regards,
Raymond -
Reporting on the Activity Tab - Live Feeds, Notes, Tasks etc
I would really like to be able to report on the customer information within the 'Activity' Tab in the CRM. In particular I make notes on who I speak to and what they said and I want to be able to report on this information so I can access it quickly by customer type/lead type.
Does anyone have any idea how this can be done. I understand it is not something available at the moment but can anyone suggest how I can make this happen.
I would also love to be able to see more information in the 'Notes' section under the Activity tab - is there any way the information I enter can be seen across the page (it only allows a few words and then it cuts off - you can only see the full note if you click on it, but this takes too much time as I want to be able to see it at a glance.)
Can anyone help?
thanks!I would really like to be able to report on the customer information within the 'Activity' Tab in the CRM. In particular I make notes on who I speak to and what they said and I want to be able to report on this information so I can access it quickly by customer type/lead type.
Does anyone have any idea how this can be done. I understand it is not something available at the moment but can anyone suggest how I can make this happen.
I would also love to be able to see more information in the 'Notes' section under the Activity tab - is there any way the information I enter can be seen across the page (it only allows a few words and then it cuts off - you can only see the full note if you click on it, but this takes too much time as I want to be able to see it at a glance.)
Can anyone help?
thanks! -
Get the selected or active tab on a tabstrip to show different content
Hi All,
I have two tabs (TAB1 and TAB2) on a tabstrip. And on each of these tabs I have a table. Both tables are binded to the same context node.
The property selectedTab of the Tabstrip is binded to an attribute "TAB" of a context node "TABSTRIP".
I defined a supply function on this context node "TABSTRIP" in order to show the TAB1 by the first building up the view.
METHOD supply_tabstrip .
* local structure for the activ TAB
DATA: stru_tabstrip TYPE if_componentcontroller=>element_tabstrip.
CLEAR stru_tabstrip.
* set the default-value
* --> This is valid untill the user choose another Tab
MOVE 'TAB1' TO stru_tabstrip-tab.
* bind the filled structure to the context
node->bind_structure(
new_item = stru_tabstrip
set_initial_elements = abap_true ).
ENDMETHOD.
I also definded a supply function on the context node of the table (which is mentioned above) to fill it with content.
Now i need to define a query to fill the table with two different content and for this I need to know which tab is selected by the user. How can i find which tab is selected or which tab is active?
Thank you for any help
Best regards
HalehHi,
I have a context attrinbute SELECTED to which the SelectedTab property of tabstrip is bound.
Implement action onSelect for Tabstrip - Use this code snippet -
***Variables
DATA:
lv_select_tab type string. "Selected tab value
***Structure and internal table for the Events and messages
DATA:
lt_events type WDR_EVENT_PARAMETER_LIST,
ls_events type WDR_EVENT_PARAMETER.
***Field symbols
field-symbols: <fs_value> type any. "Attribute value in events table
***Move the event table to lt_events
lt_events = wdevent->parameters.
*"Set to 'TAB' in lt_events
read table lt_events into ls_events with key name = wd_assist->GC_TAB. "TAB
if sy-subrc eq 0.
assign ls_events-value->* to <fs_value>.
if sy-subrc eq 0.
lv_select_tab = <fs_value>.
endif. "IF sy-subrc eq 0.
endif. "IF sy-subrc eq 0.
***Set the selected tab value
CALL METHOD WD_CONTEXT->SET_ATTRIBUTE
EXPORTING
VALUE = lv_select_tab
NAME = wd_assist->GC_SELECT_TAB. "Set the selected tab Id "SELECTED
**Call additional data if tab selected
if lv_select_tab eq 'TAB1'.
*/Have your code here......
else
endif.
Regards,
Lekha. -
I am using a Microsoft Natural 4000 Keyboard
IF I update to Mozila 5.0 when i use the close button it shuts down the whole browser nut just the active tab
Is there a workaround for this because I like the close button featureCould you try disabling graphics hardware acceleration? (I'm having trouble determining from your "More system information" whether it's enabled or disabled.) Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
You usually need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
orange Firefox button ''or'' classic Tools menu > Options > Advanced
On the "General" mini-tab, uncheck the box for "Use hardware acceleration when available"
If you restart Firefox, is the issue resolved? -
TabStrip: Know wich tab is the active tab
Hi all,
How can i know wich tab is the active tab in runtime?
Could you put a sample code?
Thanks in advance.Hi,
Create one context node with 1 attriute of type string. let's say it's name is "Active_Tab". Bind this attribute with property "selectedTab" . You must have assigned some names to all the tabls in tab strip.
At run time, when you will read this attribute, it will give you the name of currently selected tab.
Thanks
Vishal -
Hi All,
I have used tabstrip in selection screen of alv report. In tabstrip I have 2 tabs, one is "Initial Run" & second is "Incremental Run".
I want to check active tab after start of selection and based on active tab my report gives output. Every thing runs perfect in foreground.
But when I run same thing in background, at that time system uses my default tab (Initial Run) even though I have selected Incremental Run Tab.
Please help me if I miss any thing in code.
Regards,
Meet GohelHi Meet,
SELECTION-SCREEN: BEGIN OF TABBED BLOCK tabs FOR 10 LINES,
TAB (20) button1 USER-COMMAND push1
DEFAULT SCREEN 200,
TAB (20) button2 USER-COMMAND push2
DEFAULT SCREEN 300,
END OF BLOCK tabs.
In the above code tabs is the name of the tabstrip. In your program a global structure with the same name will be created with a structure having three components: prog of type c with length 40, dynnr of type c and length 4, and activetab of type c with length 132. So from trhe value of the component dynnr and activetab of tabs you can know which tab is activated.
For more details press F1 on the keyword TABBED.
Regards
Dillip Sahoo -
Hi All,
I have created selection screen with 3 tab strips.
i have 2 radios button in each tab strip. My problem is, when i have selected first radio button from 2nd tab strip and execute, then it is executing first tab strip radio button first and when i click on back button then my second tab strip radio button getting executed.
So could you please do let me know, how to execute directly 2nd tab strip radio button directly wiht out executing first tab strip.
Regards,
JoHello,
Assign a user command to each tab strip as follows.
SELECTION-SCREEN BEGIN OF BLOCK sel .
SELECTION-SCREEN SKIP.
*---------------------------* TABSTRIP *-------------------------------*
SELECTION-SCREEN BEGIN OF TABBED BLOCK tabb1 FOR 15 LINES.
SELECTION-SCREEN TAB (40) title1 USER-COMMAND ucomm1 DEFAULT SCREEN 1001.
SELECTION-SCREEN TAB (40) title2 USER-COMMAND ucomm2 DEFAULT SCREEN 1002.
SELECTION-SCREEN TAB (40) title3 USER-COMMAND ucomm3 DEFAULT SCREEN 1003.
SELECTION-SCREEN END OF BLOCK tabb1.
SELECTION-SCREEN END OF BLOCK sel.
*-------------------------* SCREEN 1001 *------------------------------*
SELECTION-SCREEN: BEGIN OF SCREEN 1001 AS SUBSCREEN .
SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE title.
PARAMETERS: radio_button1 RADIOBUTTON GROUP rad DEFAULT 'X'.
"Insert all your other radio button in the first tabstrip here
SELECTION-SCREEN: END OF BLOCK b1 .
SELECTION-SCREEN: END OF SCREEN 1001 .
*-------------------------* SCREEN 1002 *------------------------------*
SELECTION-SCREEN: BEGIN OF SCREEN 1002 AS SUBSCREEN .
SELECTION-SCREEN: BEGIN OF BLOCK b2 WITH FRAME TITLE titlex.
PARAMETERS: radio_button2 RADIOBUTTON GROUP rad1.
"Insert all your other radio button in the second tabstrip here
SELECTION-SCREEN: END OF BLOCK b2 .
SELECTION-SCREEN: END OF SCREEN 1002 .
*-------------------------* SCREEN 1003 *------------------------------*
SELECTION-SCREEN: BEGIN OF SCREEN 1003 AS SUBSCREEN .
SELECTION-SCREEN: BEGIN OF BLOCK b3 WITH FRAME TITLE titlexx.
PARAMETERS: radio_button3 RADIOBUTTON GROUP rad2.
"Insert all your other radio button in the third tabstrip here
SELECTION-SCREEN: END OF BLOCK b3 .
SELECTION-SCREEN: END OF SCREEN 1003 .
In this case the first tabstrip has the user command UCOMM1, the second tabstrip has the user command UCOMM2 and likewise for the third and last tabstrip.
Now in the START-OF-SELECTION event.
Start by doing a case for active tabs before doing a check which radio button is selected as follows.
CASE tabb1-activetab.
WHEN 'UCOMM1'. "First tabstrip
CASE 'X'. "To check which radio button is checked
"Here you do the processing upon the radio button selected.
WHEN radio_button1.
CALL TRANSACTION 'SE38'.
ENDCASE.
WHEN 'UCOMM2'. "Second tabstrip
CASE 'X'. "To check which radio button is checked
"Here you do the processing upon the radio button selected.
WHEN radio_button2.
CALL TRANSACTION 'SE11'.
ENDCASE.
WHEN 'UCOMM3'. "Third tabstrip
CASE 'X'. "To check which radio button is checked
"Here you do the processing upon the radio button selected.
WHEN radio_button3.
CALL TRANSACTION 'SE09'.
ENDCASE.
ENDCASE.
Hope it helps.
Thanks and Kind Regards,
Yovish.
Message was edited by: Yovish Bissessur -
Include a dialog screen in tabstrip of selection-screen
Hi All,
Could anyone please tell me how to include a dialog screen into selection-screen? We have a normal selection screen for a report but now we need to add some more function and this requires to key in material number in first column and quantity in second column in a tabstrip subscreen(eg. screen 2000) and put current select-options(screen 1000) in another tabstrip to make user easily switch between new filters and previous filters. I've no idea if it's possible to have a dialog screen included in a tabstrip in the selection-screen. So please give me some suggestion. Thanks.
Best Regards,
JeffHi Jeff,
In the selection screen you need to call a custom tab strip that would have two sub-screens 1000 and 2000. It is completely designing of tab strip and its code manipulation.
Did you search for TAB STRIP IN SELECTION-SCREEN ?
This will help you in from start-up designing of tab-strip. It's not possible here in forum to explain all the steps in details.
For your help you can refer the link
[Sub-screen in Tab strip|Tabstrip and Subscreen;
This link gives you a complete idea on Tab strip
[Creating a Tab Strip Control|http://help.sap.com/saphelp_nw04/helpdata/en/04/10f2469e0811d1b4700000e8a52bed/frameset.htm]
Still you can search and find more as per your requirement. -
Dynamic addition of tabs to tabstrip
hi gurus ,
can ne1 plz tell me how can we hav dynamic tabs on the tabstrip control .
one of the way is to have max no of tabs n making them visible n invisible .
but wat the problem is dat the text on the tabs is also dynamic i don knw its value in advance .
if any1 knws how to do dis then plzzz reply asap . its urgent
pts wil b rewarded for sure ....1. Create program in SE38 type module pool and Activated
2. Go to SE51 give the program name and screen number then Layout Editor in drags tabstrip with wizard.
3. Automacaly code is generated.
4. Subscreen(101) add the two Check Boxs (CH1,CH2).
5. Changed the Tab1 properties on Program in Click check box <b>OUTPUT Field only</b>
then tab text also you give Dynamic
PROGRAM ZTAB1 .
FUNCTION CODES FOR TABSTRIP 'TAB2'
CONSTANTS: BEGIN OF C_TAB2,
TAB1 LIKE SY-UCOMM VALUE 'TAB2_FC1',
TAB2 LIKE SY-UCOMM VALUE 'TAB2_FC2',
TAB3 LIKE SY-UCOMM VALUE 'TAB2_FC3',
END OF C_TAB2.
DATA FOR TABSTRIP 'TAB2'
CONTROLS: TAB2 TYPE TABSTRIP.
DATA: BEGIN OF G_TAB2,
SUBSCREEN LIKE SY-DYNNR,
PROG LIKE SY-REPID VALUE 'ZTAB1',
PRESSED_TAB LIKE SY-UCOMM VALUE C_TAB2-TAB1,
END OF G_TAB2.
DATA: OK_CODE LIKE SY-UCOMM.
DATA:A(1),B(1).
OUTPUT MODULE FOR TABSTRIP 'TAB2': SETS ACTIVE TAB
MODULE TAB2_ACTIVE_TAB_SET OUTPUT.
TAB2-ACTIVETAB = G_TAB2-PRESSED_TAB.
CASE G_TAB2-PRESSED_TAB.
WHEN C_TAB2-TAB1.
G_TAB2-SUBSCREEN = '0101'.
WHEN C_TAB2-TAB2.
G_TAB2-SUBSCREEN = '0102'.
WHEN C_TAB2-TAB3.
G_TAB2-SUBSCREEN = '0103'.
WHEN OTHERS.
DO NOTHING
ENDCASE.
ENDMODULE.
INPUT MODULE FOR TABSTRIP 'TAB2': GETS ACTIVE TAB
MODULE TAB2_ACTIVE_TAB_GET INPUT.
CASE OK_CODE.
WHEN C_TAB2-TAB1.
G_TAB2-PRESSED_TAB = C_TAB2-TAB1.
WHEN C_TAB2-TAB2.
G_TAB2-PRESSED_TAB = C_TAB2-TAB2.
WHEN C_TAB2-TAB3.
G_TAB2-PRESSED_TAB = C_TAB2-TAB3.
WHEN OTHERS.
DO NOTHING
ENDCASE.
ENDMODULE.
<b>MAIN SCREEN 100</b>
MODULE STATUS_0100 OUTPUT.
LOOP AT SCREEN.
IF SCREEN-NAME = 'TAB2_TAB2'.
IF A = 1.
SCREEN-ACTIVE = 1.
ELSEIF A = 0.
SCREEN-ACTIVE = 0.
ENDIF.
ENDIF.
IF SCREEN-NAME = 'TAB2_TAB3'.
IF B = 1.
SCREEN-ACTIVE = 1.
ELSEIF B = 0.
SCREEN-ACTIVE = 0.
ENDIF.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDMODULE. " STATUS_0100 OUTPUT
<b>* SUBSCREEN 103</b>
MODULE USER_COMMAND_0110 INPUT.
CASE OK_CODE.
WHEN 'CH1'.
IF A = 0.
A = 1.
ELSEIF A = 1.
A = 0.
ENDIF.
WHEN 'CH2'.
IF B = 0.
B = 1.
ELSEIF B = 1.
B = 0.
ENDIF.
WHEN 'EXIT'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_0110 INPUT
Message was edited by:
Durga Vinta -
Tab in Tabstrip Control in display mode (Module Pool)
Hi friends,
I am trying to give authorization based on sy-uname, in runtime based on uname the particular tab should be opend in a display mode and some in change mode. please help me out in this
Edited by: shravan sonayila on Aug 12, 2008 8:06 AMHi,
when u creating tabstrip,while defining each tab in tabstrip , u have to
create one subscreen for each tab.i think u want one tab for display
mode and one tab for edit mode. if u want this way , in one tab try to
give fields all in invisible mode this for display mode and goto second tab if u want all visible only keep like that only other wise u have create geoups.when u press enter ,groups will be change.it means visible , invisible modes.
u have to give logic for screen in pbo.
*& Module STATUS_0300 OUTPUT
text
module status_0300 output.
set pf-status 'GUI_300'.
set titlebar 'TITLE_300' with v_title.
if i_aktyp = 'H'.
if temp_flag = 1.
loop at screen .
if screen-group1 = 'GP2'.
screen-input = 1.
modify screen .
else.
screen-input = 0.
modify screen.
endif.
temp_flag = 0.
endloop.
else.
loop at screen.
if screen-group1 = 'GP1'.
screen-input = 1.
modify screen.
else.
screen-input = 0.
modify screen.
endif.
temp_flag = 1.
endloop.
endif.
elseif i_aktyp = 'V'.
loop at screen.
if screen-group1 = 'GP1'.
screen-input = 1.
modify screen.
else.
screen-input = 0.
modify screen.
endif.
endloop.
endif.
endmodule. " STATUS_0300 OUTPUT
Try to give this logic.
Regards,
Ramya -
Dynamic tabs in a DeskI report
Does anyone have experience dynamically creating tabs in a Deski report? For example, we would like to show sales by store where each store has its own tab. We would like a tab to be created and visible only when the store has data that is returned from the query. We are trying to accomplish this via VBA. We have successfully done this in Excel using VBA but can't seem to find the matching tab.visible property in BO Deski VBA. We would rather not hard-code filters for each tab as the list of stores changes as the criteria for the query (ie. year/quarter) changes.
Thanks for any help you can provide.Hi Guillermo,
Welcome to SDN.
You can have dynamic tabs by placing the <htmlb:tabStripItem> in a loop in the layout:
<% loop at tabstrip_tab. %>
<htmlb:tabStripItem index="<%=tabstrip_tab-index%>" etc. />
<% endloop. %>
Where tabstrip_tab contains the details of the tabstrip items.
Regards,
Patrick. -
Problem hiding Tabs in Tabstrip of My Trips and Expenses WD ABAP iView
Hi,
My requirement is to hide the thet tabs ALL MY Trips,All my Travel REquest,All my travel Plans,Pending expense report from the tabstrip ALl my Expense report in Travel and Expense Application.
I have gone through the thread and the sap note mentioned in
Re: Problem hiding Tabs in Tabstrip of My Trips and Expenses WD ABAP iView
My problem is tabs that has to be deleted /hidden does not present in the Development system, but exist in the QA or the prd system.
So how to implement the note when data is not present in the dev system and only exist in the QA/PRD system.
Pleas eprovide me your valuable inputs.
Thanks in advance.
PoojaImplemneted the note and problem is solved.
Maybe you are looking for
-
Mail, preview, photo booth, will not open
After installing Leopard (on my 3rd attempt, clean install) mail, preview, and photo booth will not open at all. i'm opening them from the applications folder, not from the dock. i get an error message that says the programs unexpectedly quit. hopefu
-
I have implemented what I thought was a simple custom tag to handle if conditions. In the page that I am using to test this new tag, I have two instances of this tag - one right after another - the second of which is giv
-
Slideshow display order using Tiger Finder - Control-contextual menu?
The Tiger Finder Slideshow function (select image files, press Control, Choose Slideshow from the drop-down menu) behaves oddly. 1. The slide display order is reproducible, but is not controlled by the View display order. It is NOT Name, Date modifie
-
ThinkVantage Toolbox won't run on X61s, Win7 x64
I booted my X61s today after not running it for 2-3 months. It gave me an error right after the Toolbox splash screen: "ThinkVantage Toolbox has stopped working." It keeps popping up every 5 minutes or so. I've updated my ThinkVantage technology
-
Background in Framebuffer terminal.
Hello im running my kernel with framebuffer, in 1024x768, No I am wondering how I can have a background in my terminal, Splashy is only for bootup right?