WDA Table: Getting column sequence as it really is for the user

Hi Folks!
I need the current sequence of table columns as it really is for the user. He may have personalized his table: he may have removed some columns and may have changed the sequence of some columns. And this is what I need to know.
But unfortunately so far I could only get the column sequence as it is defined in the View Layout using this coding:
  DATA lo_table TYPE REF TO cl_wd_table.
  DATA lo_table_columns TYPE cl_wd_table_column=>tt_table_column.
  DATA lo_table_column TYPE REF TO cl_wd_table_column.
  DATA lt_abstr_table_columns TYPE STANDARD TABLE OF REF TO cl_wd_abstr_table_column.
  DATA ls_abstr_table_column TYPE REF TO cl_wd_abstr_table_column.
  lo_table ?= wd_this->mv_view->get_element( 'RLTAB' ).
  lt_abstr_table_columns = lo_table->get_grouped_columns( ).
  LOOP AT lt_abstr_table_columns INTO ls_abstr_table_column.
    lo_table_column ?= ls_abstr_table_column.
  ENDLOOP.
Thus: How to get the table column information as they are currently outside in the reald user world (only visible columns in the displayed sequence).
Background: I need this information, because I want to export the table to excel and/or print it in exactly the state the user currently sees it (in personalized state).
Thanx and points for any useful hints - ideally coding snippets!
Regards,
Volker

Hi both!
1) I have searched the framework like a mad man an dI think I will dream of all these IF_WD... and CL_WD... most having the useful information in protected or even private areas. A fact I cannot really understand.
2) Although some kind of "criminal" I trewd to go the way in the second answer by creating child classes for cl_wd_abstr_table_column and cl_wd_table_column both containing the protected attribute PERSINDEX I need.
I added a public class get_pers_index to the child classes. So far so good.
But when I try to type-cast SAP standard instance to my instance vairables I get type-cast errors in both cases.
Any ideas?
Here's the relevant coding snippet:
DATA lo_table TYPE REF TO cl_wd_table.
  DATA lo_table_columns TYPE cl_wd_table_column=>tt_table_column.
  DATA lo_table_column TYPE REF TO cl_wd_table_column.
  DATA lo_table_column2 TYPE REF TO /rand/cl_wd_table_column.
  DATA lt_abstr_table_columns TYPE STANDARD TABLE OF REF TO cl_wd_abstr_table_column.
  DATA ls_abstr_table_column TYPE REF TO cl_wd_abstr_table_column.
  data lo_abstr_table_column type ref to /rand/cl_wd_abstr_table_column.
  data lv_pers_index type i.
  lo_table ?= wd_this->mv_view->get_element( 'RLTAB' ).
  lt_abstr_table_columns = lo_table->get_grouped_columns( ).
  LOOP AT lt_abstr_table_columns INTO ls_abstr_table_column.
    lo_table_column ?= ls_abstr_table_column.                 "this casting is successful
    lo_table_column2 ?= lo_table_column.                      "this casting throws type-cast exception
    lv_pers_index = lo_table_column2->get_pers_index( ).
    lo_abstr_table_column ?= ls_abstr_table_column.           "this casting throws type-cast exception, too
    lv_pers_index = lo_abstr_table_column->get_pers_index( ).
  ENDLOOP.
Any help very welcome.
Thanx and Regards,
Volker

Similar Messages

  • HT1473 If I already own a song (from a different album) and the same song is in an album which I want to get, do I still have to pay for the song?

    Other details:
    First album/s- Dookie (Green Day), american idiot (green day)
    and 21st century breakdown (green day)
    Album with same songs in it- international super hits (green day)

    If I already own a song (from a different album) and the same song is in an album which I want to get, do I still have to pay for the song?
    Yes.
    The album which the song has been listed under (on the song's page) is listed in your library under that album. The song is then removed automatically from the first album
    No it's not.
    Purchasing a new song or album will not affect any other song or album in your library.
    In the case of the two albums you mention, if you purchase them both, you will have the same song (different copies) in both albums.

  • How to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx?

    Dear SharePoint Developers,
    Please help.
    I need to know How to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx?
    I think this is a "sealed column", whatever that is, which is  shown in SPD 2013 as a column of content type "document, folder, MyCustomContentType".
    I know when I set the column order in my custom Content Type settings page, it is correct.
    But, when I load the NewDocSet.aspx page, the column order that I set in the settings page is NOT used for this "sealed column" which is bad.
    Can you help?
    Please advise.
    Thanks.
    Mark Kamoski
    -- Mark Kamoski

    Hi,
    According to your post, my understanding is that you want to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx.
    Per my knowledge, if you have Content Type management enabled for the list or library (if you see a list of content type with the option to add more), the display order of columns is set for each content type.
    Drill down into one of them and you'll see the option under the list of columns for that content type.
    To apply the column order in the NewDocSet.aspx page, you need to:
    Select Site Settings, under Site Collection Administration, click Content type publishing. In the Refresh All Published
    Content Types section, choose Refresh all published content types on next
    update.
    Run two timer jobs(Content Type Hub, Content Type Subscriber) in central admin(Central Administration--> Monitoring--> Review timer jobs).
    More information:
    http://sharepoint.stackexchange.com/questions/95028/content-types-not-refreshing-on-sp-online
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • I have been getting my email in duplicate in MacMail for the past week. I haven't changed any settings on MacMail. My server is Verizon/Yahoo. How can I get it to stop?

    I have been getting my email in duplicate in MacMail for the past week. I haven't changed any settings on MacMail. My server is Verizon/Yahoo. How can I get it to stop?

    I have been getting my email in duplicate in MacMail for the past week. I haven't changed any settings on MacMail. My server is Verizon/Yahoo. How can I get it to stop?

  • Trying to install Leopard on my iMac (G5).  Got to the screen that asks for the user name and password and it won't take it.  How do I get out of this and resume the software install?

    Trying to install Leopard on my iMac (G5).  Got to the screen that asks for the user name and password and it won't take it.  How do I get out of this and resume the software install?

    Help here >  Mac OS X: Changing or resetting an account password

  • Table name in Oracle for the User Mapping field?

    Does anyone know the table name for the user Mapping field in EP6.0?
    Thanks

    Hi Alan,
    why do you want to access the DB directly?! You can access the information via the Java API, which is in general the most secure way for the DB scheme is always "subject to change without notice"...
    Best regards
    Detlev

  • An internal error occurred on the report server. See the error log for more details. (rsInternalError) Get Online Help The profile for the user is a temporary profile. (Exception from HRESULT: 0x80090024)

    An internal error occurred on the report server. See the error log for more details. (rsInternalError) Get Online Help The profile for the user is a temporary profile. (Exception from HRESULT: 0x80090024) 
     while proview the report i will get this error am using sql server 2008R2,
    can u plesae hlep me out for this
     

    <Header>
      <Product>Microsoft SQL Server Reporting Services Version 2009.0100.1600.01 ((KJ_RTM).100402-1539 )</Product>
      <Locale>English (United States)</Locale>
      <TimeZone>W. Europe Standard Time</TimeZone>
      <Path>C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVEREPORT\Reporting Services\Logfiles\ReportServerService__01_30_2015_03_09_32.log</Path>
      <SystemName>WEGDACM1</SystemName>
      <OSName>Microsoft Windows NT 6.1.7601 Service Pack 1</OSName>
      <OSVersion>6.1.7601</OSVersion>
      <ProcessID>4880</ProcessID>
      <Virtualization>Hypervisor</Virtualization>
    </Header>
    rshost!rshost!5e4!01/30/2015-03:09:32:: i INFO: Currently registered url http://+:80/ReportServer_MSSQLSERVEREPORT/ on endpoint 2
    rshost!rshost!5e4!01/30/2015-03:09:32:: e ERROR: Failed to register url=http://+:80/Reports/ for endpoint 3, error=b7.
    rshost!rshost!5e4!01/30/2015-03:09:32:: w WARN: Endpoint 3 is enabled but no url is registered for vdir=/Reports, pdir=C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVEREPORT\Reporting Services\ReportManager.
    servicecontroller!DefaultDomain!1e30!01/30/2015-03:09:32:: e ERROR: Error creating HTTP endpoint. System.Runtime.InteropServices.COMException (0x800700B7): Cannot create a file when that file already exists. (Exception from HRESULT: 0x800700B7)
       at Microsoft.ReportingServices.HostingInterfaces.IRsUnmanagedCallback.CreateHttpEndpoint(RsAppDomainType application, String[] urlPrefixes, Int32 cPrefixes, String[] hosts, Int32 cHosts, Boolean wildCardPresent, String virtualDirectory, String
    filePath, Int32 authType, Int32 logonMethod, String authDomain, String authRealm, Boolean authPersist, Int32 extendedProtectionLevel, Int32 extendedProtectionScenario, Boolean enabled)
       at Microsoft.ReportingServices.Library.ServiceAppDomainController.SetWebConfiguration(RunningApplication rsApplication, Boolean enabled, String folder)
    rshost!rshost!65c!01/30/2015-03:09:32:: i INFO: Endpoint 4 is disabled and no url is registered vdir=/ReportServer_MSSQLSERVEREPORT/ReportBuilder, pdir=C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVEREPORT\Reporting Services\ReportServer\ReportBuilder.
    rshost!rshost!1e30!01/30/2015-03:09:32:: i INFO: Derived memory configuration based on physical memory as 16776696 KB
    servicecontroller!DefaultDomain!1e30!01/30/2015-03:09:32:: i INFO: Recycling the service from the default domain
    rshost!rshost!1e30!01/30/2015-03:09:46:: i INFO: Application domain type WindowsService statistics: created: 7, unloaded: 7, failed: 0, timed out: 0.
    appdomainmanager!DefaultDomain!1e30!01/30/2015-03:09:46:: i INFO: Appdomain:11 WindowsService_7 started.
    library!WindowsService_7!1e30!01/30/2015-03:09:46:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: No DSN present in configuration file, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException:
    The report server has encountered a configuration error. ;
    servicecontroller!WindowsService_7!1e30!01/30/2015-03:09:46:: e ERROR: Error initializing configuration from the database: Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration
    error. 
    resourceutilities!WindowsService_7!1e30!01/30/2015-03:09:47:: i INFO: Reporting Services starting SKU: Enterprise
    servicecontroller!WindowsService_6!1e30!01/30/2015-03:09:47:: i INFO: Service controller exiting.
    appdomainmanager!DefaultDomain!1e30!01/30/2015-03:09:47:: i INFO: Appdomain:10 unregistered.
    appdomainmanager!DefaultDomain!1e30!01/30/2015-03:09:47:: i INFO: Appdomain:10 WindowsService_6 unloading.
    appdomainmanager!DefaultDomain!1f40!01/30/2015-03:09:47:: i INFO: AppDomain:10 0 pending unload(s)
    library!WindowsService_7!2410!01/30/2015-03:09:47:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: No DSN present in configuration file, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException:
    The report server has encountered a configuration error. ;
    library!WindowsService_7!2410!01/30/2015-03:09:47:: e ERROR: ServiceStartThread: Exception caught while starting service. Error: Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration
    error. 
    library!WindowsService_7!2410!01/30/2015-03:09:47:: e ERROR: ServiceStartThread: Attempting to start service again...
    library!DefaultDomain!202c!01/30/2015-08:04:43:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: No DSN present in configuration file, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException:
    The report server has encountered a configuration error. ;
    library!DefaultDomain!202c!01/30/2015-08:25:26:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: No DSN present in configuration file, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException:
    The report server has encountered a configuration error. ;
    library!DefaultDomain!202c!01/30/2015-08:26:16:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: No DSN present in configuration file, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException:
    The report server has encountered a configuration error. ;
    The above is my log file pls find it resolve my problem,am trying to add the encryption key to my configuration seetings it will through the error like The profile you were used is temporary profile.

  • I installed acrobat pro on my computer, and now I am unable to download items because I get a message that I need to open acrobat for the user agreement. opening acrobat pro does not help.

    I installed acrobat pro on my computer, and now I am unable to download items because I get a message that I need to open acrobat for the user agreement. opening acrobat pro does not help. What do i do?

    I have not contacted Adobe. I am using acrobat pro CC, and haven't noticed any problem with the software itself. The only problem I have had so far is when I try to download.

  • HT4906 I want to download the new updates I think to the 10.9 but our mac was given to us and when it comes to the last page it asks for the user name and password but this mac was wiped clean. How do I find out this info so I can get iPhoto?

    I want to download the new updates I think to the 10.9 but our mac was given to us and when it comes to the last page it asks for the user name and password but this mac was wiped clean. How do I find out this info so I can get iPhoto? To be honest I'm not even sure what type of Mac I have and don't know how to find out what kind it is
    I'd also like to make address labels and don't know where to find that either

    You would make address lables with the Contacts app.
    If you don't have the user name and password used to set up the machine then you need to purchase the apps for yourself.

  • Does anyone know how to get a preflight file signed by apple for the 21 mac

    does anyone know how to get a preflight file signed by apple for the 21 mac

    im trying to get a hold of them to see if they can deauthorize a computer. I am unable to do it because i can't get the internet to hook up. And i got a new laptop that i get the internet on but i can't authorize it unless i deauthorize the other one. i've called apple 3 times and theyve not been very helpful saying i need to get  hold of itunes.

  • I have recently had my MacBook Pro and iPad stolen so I have bought a new iPad, since syncing to my existing Apple ID account I keep getting another Apple ID popping up asking for the password. Does this mean that the owner of this appe ID have my stuff?

    I have recently had my MacBook Pro and iPad stolen so I have bought a new iPad, since syncing to my existing Apple ID account I keep getting another Apple ID popping up asking for the password. Does this mean that the owner of this appe ID have my stuff?

    You should change your AppleID password NOW. And if it says it was registered under another AppleID, the thief has probably done it.

  • Get column names into a VB program, for an SQL query that joins tables

    use [mydatabase]
    select * from InvNum inum
    left join _btblInvoiceLines ilin
    on inum.autoindex = ilin.iinvoiceid
    left join stkitem s
    on ilin.istockcodeid = s.stocklink where InvNumber = 'IVQ0834' or InvNumber = 'IVQ0835'
    I need to get out the column names in a VB program in the same order they would appear in the SQL query above...
    I want to use something like:
    select column_name from information_schema.columns where TABLE_NAME = ....
    except there are several tables involved above so I dont know the format!

    If you execute the query in your program using the SqlDataReader.ExecuteReader method, the column names will be available via the GetName method of the returned reader.  But note that your query may return multiple columns with the same name.
    Dim reader As SqlDataReader = command.ExecuteReader()
    For x = 0 To reader.FieldCount - 1
    Console.WriteLine(reader.GetName(x))
    Next x
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • How to get columns of type to line up across the bottom of the page

    I want to improve a newsletter I design. Right now all the leading is the same throughout. Body copy, caption & Heads. I want to add space after the paragraphs. I want the captions to have less leading than the body copy. That's doable right? Withe Baseline Grid. But how can I get the columns to line up at the bottom of the page if each one is an unpredictably different height? Maybe this is a design grid problem not a typographic one? Any suggestions?

    If you use a baseline grid and space before/after your spaces must by necessity equal the leading (using the align to grid option will force them to the grid, regardless of the chosen size). The grid should match the leading of your body copy.
    If you have headings that you want space before and after, don't align them to the grid, but make sure that the total of the space before, after, and leading for the style add up to a multiple of the body text leading. That will work smoothly everywhere except at the top of a column, where the space before is ignored, and will be added to the space below by virtue of the align to grid on the body copy.
    If instead of having all the copy lign to the grid you just want the top and bottom lines flush, and you want the leading within the paragraphs constant, but a variable space between paragraphs, set the text frame to vertically justified, then set the maximum spacing between paragraphs to a ridiculously large number and all of the extra space required to fill the column will be split between the paragraphs.
    Peter.

  • How configure the auditory columns  for the user in Session?

    I want to have my page of login to enter the application.
    After validating to the login/password according to user table
    create table usuario(
    id number not null,
    login varchar2(15) not null,
    pasword varchar2(15) not null,
    );..., set to user in HttpSession
    I wish to configure in mys entities(bc4j) the audit columns (userCreation/userModification) similar to dateCreation and dateModification...For example for the following table
    crate table Cliente(
    id not null,
    name varchar2(20),
    userCreation varchar(15) not null,
    userModification varchar(15),
    dateCreation date not null,
    dateModification date
    ...For the date columns I configure as history columns in the edition of the entity objects and works correctly...
    thanks

    Rigoberto
    Take a look at this topic and see if it helps:
    Re: User Authentication: prepareSession() vs. jbo.sessioncookie.JHS_USER
    Kind regards,
    Peter Ebell
    JHeadstart Team

  • How to get all kind of GP work items for all users

    Dear all:
       Basing GP implementation,we can only get the single user's work item. Is that possible to get all of the users' work items,and can filter the work item via time field?
      thanks a lot.

    ISearchResult result=UMFactory.getUserFactory().getUniqueIDs();
                   IUser iuser;
                   while(result.hasNext())
                        iuser=UMFactory.getUserFactory().getUser(result.next().toString());
    The above code retrives all the users from the UME
    IGPUserContext context = GPContextFactory.getContextManager().createUserContext(iuser);
    IGPWorkItem[] workitems = GPProcessFactory.getRuntimeManager().getWorkItems(GPWorkItemStatus.getTypeForCode("1"), context);
    You will get the WorkListItems in the workitems array. The type for code which is 1 currently, must be changed according to the requirement. It is different for Completed, Inprogress Tasks, etc.
    Hope this will help you!

Maybe you are looking for

  • Synchronous read file and status update

    Hi, CSV file to be loaded into the database table. ASP used as front end and ESB should be used for backend processing! A csv file is placed in a fileshare by an asp page. After that a button is clicked on the asp page which inserts a record into a d

  • Native Monitor DPI?

    I just got the Apple 30" display and can't seem to find the native dpi of the monitor. I'm not talking about the resolution. I"m fairly new to Mac and my old monitors running in Windows was at 96 dpi. I'm trying to find out so I can set Photoshop up

  • Invalid String literal in a String

    Hi, I have some trouble dealing with the following line(s) of code: rtfFile.addElement("{\rtf1\ansi\ansicpg1252 \deff0\deflang1033\deflangfe1031{\fonttbl{\f0\froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f1\fswiss\fcharset0

  • HT1338 Installation problems

    Hi every one,i am trying to install microsoft office on my mac but i keep getting a message saying that "office 2011 14.2.0 update can't be installed on this disk. A version of the software required  to install this update was not found on this volum

  • Bookings module and modifying the log in module color.

    Is it possible to allow members to post bookings or announcements when they have an event? I want to give the clients the option to post an event. My other question is related to changing the color of the log in page/box? There's a gray color that I