ALV tab strip tree and container
Hi Gurus,
i have a requirement , in which a list of records are displayed as tree ALV at output and when user clicks on any of the records then in the bottom of the screen , it should display its item detials as tab strip in the same screen ( i mean the reords which are initially diplayed and the tabstrip in the same screen) , initailly i should not get the tabstrip after double clicking only it should disply at bottom. this is achieved using OOPS ABAP....Pleas e help me on this......or any demo program.
Thanks and regards,
Rajesh.
Hello Rajesh,
Generally speaking, if you want to display records and record detail in the same screen, you can use docking container or splitter container.
How to find sample code & report for the two?
1. SE38, menu Enviroments->Examples->Controls Examples
2. workbench Demos->Controls->Container Controls->Splitter container and docking containers. From there you can see the source code of the two.
In order to fulfill your requirement, you can use following code:
CALL METHOD splitter->get_container
EXPORTING row = 1
column = 1
RECEIVING container = container_1.
CALL METHOD splitter->get_container
EXPORTING row = 2
column = 1
RECEIVING container = container_2.
and put your record ALV into container_1 and put detail ALV into container2. Once you click hotspot in ALV in container1, you have to implement event handler so that the detailed information of the selected record is displayed in ALV2. You can refer to this PDF about how to achieve it, in SDN there is also lots of article to guide you.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
Best Regards,
Jerry
Similar Messages
-
About the data of table control in tab strip control
hi experts:
I use screen 0001 include one tab strip control,and its include two subscreens,one of it is table control(subscreen is 0003).
I input data in the table control,when I click the button of tab strip control to change to another subscreen 0002.I found that the data I input into table control have not append to internal table.how can I solve this problem?
appreciate your reply.thanks a lot.Hi,
in the Main Screen
In PAI
call subscreen sub. ---> here it calls the subscreen where the tablecontrol is placed
then call module user_command
In the subscreen where you have your table control
in PAI
Loop at itab.
module modify_tab.
endloop.
module modify_tab,
descirbe table itab lines tc-lilnes.
if tc-lines <= tc-current_line.
modify itab index tc-current_lilne.
else.
append itab.
endmodule.
next you call the module user_command on the main screen
module user_command
case sy-ucomm
WHEN 'TAB1'
TS-ACTIVE_TAB = 'TAB1'
when tab2.
ts-active_tab = 'TAB2'.
endmodule
further you can take the help of CONTROL EXAMPLES in DWDM tcode
Regards
Ramchander Rao.K -
HI,
CAN ANY ONE GIVE ME THE ADVICE PLEASE URGENT.
CAN I CREAT TAB STRIP CONTROL AND SUB SCREEN USEING SELECTION-SCREEN?
first i have to create selection-screen and after entering the values in this and execute i have to generate the tabstrip in sub screen .so help me please.
do u have example code please send me
WITH WARM REGARDS.
KHADAR.yes u can create it.
This is a sample program to create a tabstrip.
SELECTION-SCREEN BEGIN OF SCREEN 500 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-010.
PARAMETERS: USER(10) TYPE c,
PWD(10) TYPE c.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN END OF SCREEN 500.
SELECTION-SCREEN BEGIN OF SCREEN 600 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-010.
PARAMETERS: BUSNO(10) TYPE c,
BUSNAME(10) TYPE c.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN END OF SCREEN 600.
SELECTION-SCREEN BEGIN OF SCREEN 700 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-010.
PARAMETERS: TNO(10) TYPE c,
TNAME(10) TYPE c.
SELECTION-SCREEN END OF BLOCK b3.
SELECTION-SCREEN END OF SCREEN 700.
SELECTION-SCREEN: BEGIN OF TABBED BLOCK sub FOR 10 LINES,
TAB (10) LOGIN USER-COMMAND LOGIN,
TAB (10) BUS USER-COMMAND BUS,
TAB (10) TRAIN USER-COMMAND TR,
END OF BLOCK sub.
INITIALIZATION.
LOGIN = 'LOGIN'.
BUS = 'BUS'.
TRAIN = 'TRAIN'.
SUB-DYNNR = 500.
SUB-PROG = SY-REPID.
AT SELECTION-SCREEN.
CASE SY-UCOMM .
WHEN 'LOGIN'.
SUB-DYNNR = 500.
WHEN 'BUS'.
SUB-DYNNR = 600.
WHEN 'TR'.
SUB-DYNNR = 700.
ENDCASE. -
Tab Strip Selection Screen in ALV Report
Hi All,
I want to create a ALV report with TABStrip selection screen. How to proceede.
Is there any necessary to create dailog program for the screens.
Please advise.
Thank You,
ANu.Hi
You can create it using module pool program in an easy way. Have the tab strip in main screen and use the sub-screens for display. By this way you can do it. If you wish, you could refer the following link, where they have given step by step procedure.
<<Link-farm removed>>
Hope this helps you.
Regards
Vinodh
Edited by: kishan P on Nov 1, 2010 3:00 PM -
Help or tutorials about ABAP UI programming such as Tree and dock container
Hi,
I'm looking for help, tutorials or any ressources I can explore to undertsand how to work in ABAP with controls, containers, tree and so on.
Each time I do a search on help.sap.com, I found help on a detailed object such as tree or docking container but I never found a global view. I would like to understand the big picture, have an averview of all involved concept. For example, if I want the user screen to be splitted in 2 parts, one that will display a tree, the other one that will display "simple" screen painter trees that will change depending on what user choose using the tree on the left. How do I need to proceed ?
I'm sorry if I have not a more precise question because I don't found where to begin.
Thanks for help
Regards
MorganHi Morgan,
You can start going thorugh the concepts from help.sap.com. Have a look at the following link:
http://help.sap.com/erp2005_ehp_04/helpdata/EN/1b/337930a63011d2bd6b080009b4534c/frameset.htm
You will get the entire set of Example codes in the Transaction Code : ABAPDOCU.
You can also look for examples for Dialog Programing in SE38 using the DEMODYNPRO*.
Have a look at the Package : SLIS. This is a one point of all examples and demo of SAP Control Framework and ALV Functionality.
Hope this helps.
Thanks,
Samantak. -
Hi All,
I creating z transction for my customer requirment . actualy i am new in dialog program. i want three subscreen in a main screen thru tab strip. but i dont know how to create element container and view and tab strip and how to assign sub creen to tab strip. plz help me out.
Thanks in Advance
Jitendrahi jeetu
Yes u can make three sub screen in a main screen thru tab strip. You have to use tab strip (with wizard) option on his main screen.
Step 1: When u choose tab strip and gives a area in screen then u got a screen of tab strip control wizard: start
Choose continue and put the tab strip name TAB (optional) and select scrolling in the application server option
Step 2: In the next screen u got the tab text here u can define header text for his screen at least two in your case it's three.
Step 3: Youre got the three-sub screen and function code u can change them as u required .
Step 4: Here u defines the program name where u want code in each box and select complete.
Now u have three-sub screen, which is, define in step 3 with the program name and u can define each screen as u need.
xxxxxxxxxxxxxxxxx (see forum rules)
Kuldeep Singh Rawat
Edited by: kuldeep singh rawat on Jan 19, 2008 5:56 AM
Edited by: Armin Reichert on Jan 19, 2008 12:20 PM -
WAD template issue:Change Font Size of Tab page in a tab strip container
Hi Gurus,
Is it possible to change the font size and face of a "tab" in a tabstip container.
For example: I have a Tab strip container with 3 tabs:
Tab1 : North Region
Tab2: South Region
Tab3: Central Region.
When we name the tabs as above, it displays in a default font size and font face in the output while executing the WAD template. I want to increase the font size of say " North Region" Tab so that it appears bigger.
Can some one guide me as to how this can be achieved.
Regards,
SandeepHi Benni,
Could you please explain where i am supposed to enter the code mentioned by you "<style type="text/css" >.urBtnStd </style>"
The XHTML code looks as below-->
html
head
<title >BEx Web Application</title>
meta http-equiv="Content-Type" content="text/html; charset=utf-8"
head
body
<bi:QUERY_VIEW_DATA_PROVIDER name="DP_1" >
<bi:INITIAL_STATE type="CHOICE" value="QUERY" >
<bi:QUERY value="RBEI_BICM_HR_RRF_PERIOD" />
</bi:INITIAL_STATE>
</bi:QUERY_VIEW_DATA_PROVIDER>
<bi:TEMPLATE_PARAMETERS name="TEMPLATE_PARAMETERS" >
<bi:SYSTEM_MESSAGES_VISIBLE type="CHOICE" value="X" text="" />
<bi:VARIABLE_SCREEN value="" />
<bi:MELT_VARIABLES value="" />
<bi:HAS_MAIN_TEMPLATE_OBJECT type="CHOICE" value="" />
<bi:WEB_TEMPLATE_ACTIONS type="COMPOSITE" >
<bi:ACTION_BEFORE_FIRST_RENDERING type="COMPOSITE" />
</bi:WEB_TEMPLATE_ACTIONS>
</bi:TEMPLATE_PARAMETERS>
<p >
<br />
</p>
<bi:TABSTRIP_CONTAINER_ITEM name="TABSTRIP_CONTAINER_ITEM_1" designwidth="600" designheight="600" >
<bi:TABPANEL_LIST type="ORDEREDLIST" >
<bi:TABPANEL type="COMPOSITE" index="1" >
<bi:CAPTION value="North Region" />
</bi:TABPANEL>
</bi:TABPANEL_LIST>
</bi:TABSTRIP_CONTAINER_ITEM>
<br />
<br />
</body>
html
Thanks,
Sandeep
Edited by: Sandeep Rupert Saldanha on Feb 17, 2010 10:53 AM -
Report with ALV tree and ALV list?
I need to create a report with layout as same as this one
[http://trangiegie.com/MyFile/output.JPG]
It looks like a report with combination of ALV tree and list. The tree works like a navigation bar. Wonder if there are any demo programs like this. Will appreciate any help.For Tree alone - You can check program : BCALV_TREE_02
Program Name Report title
BCALV_GRID_DND_TREE ALV Grid: Drag and Drop with ALV Tree
BCALV_GRID_DND_TREE_SIMPLE ALV GRID: Drag and drop with ALV tree (simple)
BCALV_TEST_COLUMN_TREE Program BCALV_TEST_COLUMN_TREE
BCALV_TEST_SIMPLE_TREE Program BCALV_TEST_SIMPLE_TREE
BCALV_TREE_01 ALV Tree Control: Build Up the Hierarchy Tree
BCALV_TREE_02 ALV Tree Control: Event Handling
BCALV_TREE_03 ALV Tree Control: Use an Own Context Menu
BCALV_TREE_04 ALV Tree Control: Add a Button to the Toolbar
BCALV_TREE_05 ALV Tree Control: Add a Menu to the Toolbar
BCALV_TREE_06 ALV tree control: Icon column and icon for nodes/items
BCALV_TREE_DEMO Demo for ALV tree control
BCALV_TREE_DND ALV tree control: Drag & Drop within a hierarchy tree
BCALV_TREE_DND_MULTIPLE ALV tree control: Drag & Drop within a hierarchy tree
BCALV_TREE_EVENT_RECEIVER Include BCALV_TREE_EVENT_RECEIVER
BCALV_TREE_EVENT_RECEIVER01
BCALV_TREE_ITEMLAYOUT ALV Tree: Change Item Layouts at Runtime
BCALV_TREE_MOVE_NODE_TEST Demo for ALV tree control
BCALV_TREE_SIMPLE_DEMO Program BCALV_TREE_SIMPLE_DEMO
BCALV_TREE_VERIFY Verifier for ALV Tree and Simple ALV Tree -
In Windows Vista, FF 7.0.1, I selected the Tab Group button to try it out. However, when I selected the Tab Group button again to close that view, the New Tab button in the Tab Strip no longer appears. I'm requesting help to restore the New Tab button (has the "+" sign on it) on the Tab Strip just to the right of the currently open tabs.
You can find the New Tab button showing as a '+' on the Tab bar.
You can open the Customize window and drag the New Tab button that shows as a plus sign (+) from the Tab bar on another toolbar and it will become a regular toolbar button like the New Tab button that you have in Firefox 3 versions.<br />
Open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout"
If you can't find the New Tab button then click the "Restore Default Set" button in the Customize window.
If you want the New Tab button at the far right end of the Tab bar then place a flexible space to the left of it. -
Been using Firefox for years, running Windows XP. This morning when I opened pages in another tab, did not see them on tab strip. Only way to find them is to click on List All Tabs Button and it shows list. Cannot get them to display on tab strip. If I open in another window, it works, like it should. If I click on plus sign on tab strip it opens another tab, but can't see the previous ones except with List All Tabs Button. Any suggestions on how to turn tab strip back on? Thanks, jayem33
If it works in a new window then you can drags tabs from the not working window to that new window.
You can also try to close the tabs via Ctrl+W and restore the closed tabs via Shift+Ctrl+T -
How Do Everyone!
I have 3 tab strips in one selection screen.
Each tab strip has 3 radio buttons on them. How can one
find out out which button is pressed?
e.g. Click on the second tab, the first radio button
will be highlighted. However, the first radiobutton
on the first and third tabstrips will also
be highlighted.
Can the radio buttons be set to null?
Cheers
AndyEach group of 3 radiobuttons needs to be associated with its own group.
For example.
report zrich_0001
no standard page heading.
selection-screen begin of screen 101 as subscreen.
selection-screen begin of block b1 with frame title text-001.
parameters: P_rad1 radiobutton group grp1 default 'X'
user-command check,
p_rad2 radiobutton group grp1,
p_rad3 radiobutton group grp1.
selection-screen end of block b1.
selection-screen end of screen 101.
selection-screen begin of screen 102 as subscreen.
selection-screen begin of block b2 with frame title text-002.
parameters: P_rad4 radiobutton group grp2 default 'X'
user-command check,
p_rad5 radiobutton group grp2,
p_rad6 radiobutton group grp2.
selection-screen end of block b2.
selection-screen end of screen 102.
selection-screen begin of screen 103 as subscreen.
selection-screen begin of block b3 with frame title text-003.
parameters: P_rad7 radiobutton group grp3 default 'X'
user-command check,
p_rad8 radiobutton group grp3,
p_rad9 radiobutton group grp3.
selection-screen end of block b3.
selection-screen end of screen 103.
selection-screen begin of tabbed block one for 20 lines.
selection-screen tab (15) name1 user-command ucomm1
default screen 101.
selection-screen tab (17) name2 user-command ucomm2
default screen 102.
selection-screen tab (17) name3 user-command ucomm3
default screen 103.
selection-screen end of block one.
initialization.
name1 = 'Tab 1'.
name2 = 'Tab 2'.
name3 = 'Tab 3'.
start-of-selection.
Regards,
Rich Heilman -
Safari launches a window and contains several tabs
Oh boy, My Safari was perfect for the most part in the last 3 years, that is to say, if I launch Safari to browse the web, the browser would launch with a new window, fresh with default page starting at top sites. And by top sites, I mean the various web sites or pages that i have previously gone to recently most frequently. These pages are presented in miniaturized thumbnails of the whole page, or the top part of the page, and are neatly presented in 4, 8, or 12 slots tabulation for my choosing, or that my keyboard focus would already be on the address bar so I could type any other url as I wish. But until the last 1-2 updates ago I start to notice something strange, when I launch Safari, the browser doesn't go to the usual way as I described above, instead it launches a window and contains several tabs. Of which are places i have been recently, but I wouldn't call those as "top sites" by a long shot. At first I didn't realize what's happening exactly. In fact it seemed to me a bit like when my Safari reopen the tabs from my previous session. It first started with a few tabs, and then a few more each week (actually my main browser is now Chrome sorry to say, but there are several personal reasons that I still use Safari to browse certain web sites, therefore, I may not open and use Safari every day. I think last week was still just 10 tabs or so, now it's 156 tabs... my mac constipates from the sharp drain of memory and it now happens even before the browser window has started rendering. Usually, when my mac is done with beach balling, i immediately right click on the first tab I see, and select "close all other tabs", then command-w to close the last tab. Then I reopen new tab/window (cmd-n) and start my browsing all fresh. A new window launches, but only to dump the 156 tabs all over on me again. clearing web data, cookies, clearing cache, disabling all extensions, nothing seems to work so far. And the Apple Care Support would probably tell me to format the hard disk and reinstall new. I've been down that road too many times already, almost as much as I had to do the same thing when i was using windows. Ugh, even Chrome is far from perfect, that's why i come back to Safari from time to time. And I find my Firefox experience is still clunky, ugh. Have we fallen in to the Dark Ages for web browsers or something?
<Re-Titled By Host>Of which are places i have been recently
Delete the cache ..
Open a Finder window. From the Finder menu bar click Go > Go to Folder
Type or copy paste the following
~/Library/Caches/com.apple.Safari/Cache.db
Click Go then move the Cache.db file to the Trash.
Quit and relaunch Safari to test. -
Help on creation of New Tab in Trip And Expense- My Trip And Expenses
Hi,
My requirement is to create a new tab in the existing Tab strip in "Trip And Expense->My Trip And Expenses".
At present I have a seperate WD Java Application for "My Aproval Status" now the requirement is to add a 4th tab and that tab has this WD java application to it.Can this be possible if yes how ? and if no then Why?.
Thanks
Poojahi,
yes this is possible ........
you just have to add a tab to the already made tab you have created ......now to the newly added tab just have an view ui container .......now in the windows of the code you can embed that already made program to the viw ui container.......
hence whenever you will execute the code of tabstipr and select this new tab your code "My Aproval Status" will be called automatically......do remebre to declare the usage of the WD Java Application for "My Aproval Status" in the property just in the same manner we do when we declare the usage of alv in our code......
in case of any problem further...inform
thanks,
sahai.s -
Tab Strip with multiple views refresh issue
I have created a tab strip with two tabs. Each tab has a view container element. Each view has an iFrame which points to an ABAP report exposed as a web service (url). I put a refresh button on the first view which fires an outbound plug which is directed to the same view. This refreshes the first view just fine. However, it also refreshes the second view. I don't want to refresh the second view. Is there a way around this?
Hello Kenneth,
i would try another way and use [Suspend&Resume|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/45/19bf8c16f25d7ae10000000a11466f/content.htm]. But that works only on component-level. So i would create 3 components A,B,C.
Comp A has a tabstrip and inside each tab a ViewContainer Element (VCUI). Inside the VCUI's you call (the used) components B and C using Suspend & Resume Plugs. Components B and C only have one view each with an iframe calling the specific report.
So you can refresh both components differently.
Kind regards, Andreas -
Messages issue in message area of Tab Strip
Hi ,
Iu2019m having 2 tabs in my Tab strip.
Tab1 u2013 First tab.
Tab2 u2013 Second tab.
In both the tabs I have message areas.
On click of a button in Tab1, iu2019m displaying an error message in the message area,
but the same message is appearing in the message area of the tab2.
I want to display messages to its corresponding tab only.
Thanks,
ShravanHello Shravan,
the message area is a common container so the messages that are raised in that serverrountrip will be displayed in all the message area ui element.
solution would be to create an action handler method for the tabStrips' onSelect event (inorder to trigger the server roundtrip). this roundtrip will flush the stateless messages and you can raise new messages for second tab elements.
hope this solves your problem.
BR, Saravanan
Maybe you are looking for
-
Loading font at runtime for TLF in Flex 3.3
Hey flexers, I have an app that's using the Flex 3.3 SDK. We pulled the text layout swc from Flex 4 and are using a text flow in our app. Previous to this we had been using the old TextField. How do I go about loading in a font swf at runtime and g
-
"Runtime update not available" when installing AIR on XP
[2011-04-09:10:54:04] Runtime Installer begin with version 2.6.0.19120 on Windows XP x86 [2011-04-09:10:54:04] Commandline is: [2011-04-09:10:54:04] No installed runtime detected [2011-04-09:10:54:06] Starting runtime install. Installing runtime vers
-
HTML form posting with input type="file"
Hi, I am trying to create a servlet to accept POST requests sent from a form which has an input field of type="file". When I first tried I found that I was only recieving the filename of the file and not getting any contents.. I then found out that I
-
Printer issue - could not print multiple copies
Hello Gurus, Good day! We not able to print multiple copies (2 or more) in SAP level but we were able to print multiples copies using non SAP applications (i.e word, excel). I already checked in UNIX level and I dont see any stuck spools. Can you ple
-
Every time I start my Macbook it goes straight back to the login screen
Every time I start my Macbook it goes straight back to the login screen does anyon eknow what to do? I have already gone into safe mode and checked the start up folder was emty. I have pressed the shift key as well to do something suggested to me, bu