Field name retrieval from field symbols after assigning to field in a struc

We have an internal table of about 100 columns. First 7 of them have key values and other fields are data fields. Out of remaining 93 fields, any 2 to 3 fields have data stored in it in each record. Using field symbols in a loop (93 fixed iterations), we are identifying which fields has a data in it. Once we identify the field, how do we retrieve the name of the field / column of the table. We are performing further processing based on name of the field.
Any ideas how to get the name of the column assigned to field symbols?
sample raw code piece is as below:
clear n.
Do 93 times.
  n = n + 1.
  assign component n of structure itab to <fs>.
  if not <fs> is initial.
   Get name of the field in cfname.
    perform process_record using cfname.
  endif.
enddo.
Thanks.
Regards.

Hi,
Try this..use the function module GET_COMPONENT_LIST to get the fields of the internal table and store it in an internal table ITAB_COMP..
Then use READ TABLE ITAB_COMP INDEX sy-index..
You can get the field name from the work area..
Thanks,
Naren

Similar Messages

  • Field value retrieve from sql query

    Hi,
    Is there any way to code sql query into form field in rtf template ?.
    I have converted an oracle report to BI publisher (e-business suite R12) but I have a form field that contain a sql query that retrieve a value from database. I don't know how to code sql query in form field in rtf template.
    Thanks for help,

    http://winrichman.blogspot.com/search/label/cross%20tab
    http://winrichman.blogspot.com/search/label/Cross-tab
    http://winrichman.blogspot.com/search/label/Dynamic%20column

  • Limited fields being retrieved from BW

    Hi
    We have designed reports in Crystal 2008 using BEx queries. There is a calculation logic defined in BEx due to which we have a huge number of Key figures out of which 34 are being displayed on the report (actuals & budgets for each month; 4 quarters and Total) Also, the report consists of two groups - Cost centre's and Cost elements; cost elements nested within Cost centre's. The report appears as below
                                                Apr May June July Aug Sept
    Finance                                 x     x     x      x     x      x
         Manpower Cost               x     x     x      x     x      x
         Travel Cost                      x     x     x      x     x      x
    Operations                           x      x     x      x     x      x
         Manpower Cost              x      x     x      x     x      x
         Travel Cost                     x      x     x      x     x      x
    The issue that we are facing is that as we increase the number of columns, some of the rows or the cost centre's being displayed on the report automatically get suppressed. For example if in the parameter 10 cost centre's are selected, the report displays only 6; if we display all 34 key figures. However If we reduce the key figures being displayed, then all 10 cost centre's get displayed. Is this due to a limitation on the data that can be fetched from BW? Is there any patch that can be applied or any registry that can be increased so that all the required details can be displayed..Also, the performance of the report is very slow, it takes about 12 mins to open. Kindly help.
    Thanks.

    Hi Ingo
    We raised this issue to SAP support and after they did a Webex, it was concluded that the issue occured due to the MDX query hitting the 1Million cell restriction at the SAP BW level. As such they could not provide us with an resolution and so we have now proposed a re-designing to the client for these particular reports.
    In case you could provide us with a resolution  for this limitation it would be of great help for the future.
    Thanks
    Payal

  • Character name/description from Character symbol

    Hi,
    This may sound a bit unusual, but probably someone already did this.
    Is there any way to show the description or name of a character that was just typed in the String control?
    So for example, if I type " ", the description is "<space>", and if I type "," then the description is "comma".
    Yes, I can build this through a case structure on my own, but if it's possible to fetch from some existing database (like the Char mapping), then it's better. Because on my own, I may miss some character and after all, it's a lengthy process.
    Thanks and Regards,
    Vaibhav
    Solved!
    Go to Solution.

    Hi GerdW and MC,
    Thanks.
    I found my complete table on the http://www.theasciicode.com.ar/ page.
    It's a pity I cannot use the UNICODE characters in LabVIEW, alongwith other simple characters. I must change the whole text's font to Symbol, for example to use Greek letters in between other text controls (like Enum or String or Tree View), as I asked in another thread. That would have been really good.
    Regards,
    Vaibhav

  • Cannot connect to Domain\administrator from ny RDC after assigning an active directory domain to my server

    hi, I'm using windows server 2012 R2 and I was Just wondering how to make the Remote Desktop enable connection through domain\administrator before actually creating the domain... In other words, I wanted to create an Active Directory Domain User and connect
    to the server from the RDP. The problem is that I can only connect through the RDP considering that I'm using Windows Azure, so the physical server isn't actually sitting on my desk... Anyway when I create an AD DS the system automatically reboots and I'm
    not able to connect to it anymore, so all I need to do right now is enable somehow the Remote Desktop Services to connect through "Domain\Administrator" before I actually create the AD DS and assign it to my server so that when the system reboots
    and I open the RDP I can connect to the server.
    Thanks in advance.

    Hi,
    Thank you for posting in Windows Server Forum.
    As per your comment, it seems that you are managing the server with .RDP file. I can suggest you to run
    "Remote Desktop Connection Manager” for maintaining server. With that you can specify the credential for domain\administrator and when you setup the AD DS, after that you can open the connection through domain\administrator and not as local user.
    Hope it helps!
    Thanks,
    Dharmesh

  • Field sequence Change in Sales order after adding new field( Resolved)

    Hi I have added a new filed into sales order/item overview.(addded thr se51-layout ) . but when i go to va01/02/03, i noticed that the field sequence is changed due to my new field.(but when i see the layout its differnt and correct.)( even i checked changing the groups also)
    Is there something i need to do..?Please advise. Thanks a lot.
    <b>Answer:</b>
    Table view is configurable in VA01/02/03.( No matter where you add the  new fields)
    Users can always move them to desired position.
    Message was edited by: Deadlock1
    Message was edited by: Deadlock1
    Message was edited by: Deadlock1

    Hi
    In the comments for the subroutine, it says:
    *       Parameter new_pricing controls the new pricing in the calling *
    *       form. It can be filled according the the allowed values       *
    *       of domain KNPRS (Pricing type), for example:                  *
    *       ' ' = no new pricing                                          *
    *       B   = Carry out new pricing                                   *
    *       C   = Copy manual pricing elements and redetermine the others
    So, you must write:
    If VBAP_WERKS NE *VBAP_WERKS.
      new_pricing = 'B'.
    Endif.
    Regards
    Eduardo
    Edited by: E_Hinojosa on Aug 25, 2011 8:21 AM

  • Field name issues when spawning from template

    I am currently spawning a template multiple times in my document (with the field names being changed), but I am NOT spawning them at the end.  Rather, they all must get spawned to the same page.  This results in every corresponding field on every spawned page having the same prefix, e.g. P1.template.field.
    How can I avoid this?  Also, is there any way to remove the prefix from just a few field names that I actually WANT to be the same?
    Thanks!

    For your first question, can your provide a bit of background and describe what you're trying to accomplish?
    To simplify this, pretend I have a single template.  My template has a textbox that the user fills.  When the user reaches the end, he must spawn a new page.  This page should appear immediately after the current one so he can continue typing.  However, if the user wants to go back and insert a page between two others, the document lets him do that.  The problem is that now the newly spawned page has the same field names as the page right after it because both were spawned at the same page number in the document.
    For your last question, you can have more than one (hidden) template in a document, so you could set up another for just the fields that you want to be the same, and spawn it.
    I would like these fields to appear on the same page as all the other fields... can you do that with multiple spawns?   For example, I have a text box on every spawned page with a title in it.  I'd like that text box to be identical on all the pages and reflect any changes to the title made on any of the pages.  If all the text boxes have different field names, I could write some script to change all the others, but I'd rather not have to add extra code if I can keep those few field names the same.

  • Mapping of Business One Field names to SAP R/3 Field Names

    Hi experts,
    We are downgrading from SAP R/3 to SAP Business One. I am having difficulties in mapping the SAP R/3 fields to Business One fields. Hope you could help me by providing the field names in R/3 linked to Business One field names.
    Thank you very much

    Hi,
    I have ever used SAP R/3 and I knew that there is a feature to export data from SAP R/3 to excel.
    I suggest export it first if you want to migrate data from R/3 to SAP B1. The data in the excel file could be used to enter into data transfer workbench (DTW) excel template file. DTW is an addon to import data into SAP B1 database system.
    You could open this folder :
    C:\Program Files\SAP\Data Transfer Workbench\Templates\Templates
    after full installation of SAP B1 (begin from server tools, server application, application client, SDK, DI API, DTW).
    To know more about the column template definition and location in SAP B1, you could use SDK help center file. This file is only available if you installed the SDK. This helpfile could be used to know the fields name and meaning in all SAP B1 tables
    Rgds,

  • How to return all field names in a table

    How do you write a report to return all field names in a table? I prefer the field names in a column.
    Thanks
    Wayne

    Hi,
    In Oracle it is,
    Select column_name from user_tab_cols where table_name  = 'Table_Name';
    Note: Table_Name should be in capital letters
    In MS SQL Server it is,
    SELECT Column_Name + ', '
    FROM INFORMATION_SCHEMA.COLUMNS
    WHERE TABLE_NAME = 'Table_Name'
    Hope this helps!
    Thanks
    -Azhar

  • Table for description of field name.

    Hi,
    Want to know is there any single table which stores all the Technical field names used in SAP Vs Description of these fields...?
    Like WERKS = PLANT.
    This doubt has come because there is table "TSTC" for" T. codes". Similarly, there may be table for field description as well, is my opinion.
    Thanks & Regards,
    Siva

    Hi
    From the field you need to indentify the domain in se11, then you can goto se16, table name is DD01T
    DOMNAME = domain name
    DDLANGUAGE = language
    you can Identify the text
    For table short texts you can refer table - DD02T
    Thanks !
    E.Avudaiappan

  • Debugging ECC6: how to see the fields name when download internal table?

    When we debug a reprot in ECC6 and save to a local file an internal table, the fields are not appearing only the data,
    Is there a way to download also the table fields name?

    From the new debugger switch to the classic debugger using menu path Debugger->Switch to Classic Debugger. Form the classic debugger you can download internal table data with column name(s).
    Regards,
    Joy.

  • How to find field name for BDC

    Hi,
    to find out the field name for BDC ,
    1. press F1 for that field
    2. click technical info
    3. use SCRREN FIELD name given in Field desc for batch input.
    NOw what to do if SCREEN field name in "Field desc for batch input." is not given...Even During BDC recording if we input values in those fields,values are saved in appropritae tables but not inn BDC recording fields

    Hi again,
    1. ABSOLUTELY Sure.
    2. Container (Container Control)
       is nothing but an EMPTY control
       to place controls inside it.
        eg. Its a FRAME
        inside which, there are contros!
    3. Container does not have any INPUT VALUE !
    regards,
    amit m.

  • How to identify field names and table names as per the client requirement

    Dear All,
    i am preparing reports for my client of their own requirement, but in sap how can i find the field name, table names like  for eg: doc.no, issue,revision no, revision date, date of issue,date of completion, job card no,identificatin no, part no , accept,inspected,testedby, remarks, issue, process.
    so please tell what is the path to find the field names and table nae

    Hi,
    You can select the field which field name and table you want to know, just press F1 button, one more window will open. There you need to select the technical information icon, then you will get the required field name and its table.
    Regards,
    V. Suresh

  • How to get the class name and field name dynamically

    Hi
    I have a class (ex: Contract) the fields (ex : a,b,c) .i need to get the class name and field name dynamically
    ex
    if( validation file for the field Contract.a){
    return contract.a;
    }else if(validation file for the field Contract.b){
    return contract.b;
    how to pass the field name and object dynamically
    Please help me .............
    Thanks in Advance..
    Edited by: 849614 on Aug 11, 2011 6:49 AM

    YoungWinston wrote:
    maheshguruswamy wrote:
    Agreed, but IMO, i still feel its best if there is no tie in between consumer class level details and the database it talks to. A service layer is needed in between them.Sounds like you've done a bit of this before. Me, I've either been a modeller/DBA, doling out data, or a nuts and bolts programmer (and actually more toolmaker than apps, but did a bit of that too).
    Do you know of a good book about the "middle ground" (ie, these service layers)? I understand it empirically, but haven't had a lot of exposure to it.
    Winston
    Edited by: YoungWinston on Aug 11, 2011 10:34 PM
    PS: Apologies. Edited my previous post, presumably while you were composing your reply, when I finally realized what '.filed' meant.Most of my work is in web development, never been a DBA :) . The biggest 'concern' in my shop is 'separation of concerns'. The UI group reports up to a different IT head, the DB group reports up to a different IT head and so on. The looser the coupling between these systems, the lesser the project costs (Integration, QA etc) are. Martin Fowler's books contain good information about separation of concerns in an enterprise environment. The two books which i recommend are
    [url http://www.amazon.com/Patterns-Enterprise-Application-Architecture-Martin/dp/0321127420]Enterprise Application Architecture and
    [url http://www.amazon.com/Enterprise-Integration-Patterns-Designing-Deploying/dp/0321200683/ref=pd_sim_b_1]Enterprise Integration Patterns

  • How to find Table Name and Field Names given a Data Source

    Hi,
    I tried ROOSOURCE table in R/3 to find the Extract Structure and Extractor names for a specific data source, let us say 2LIS_02_ITM (PO Item Level).
    I know the extract structure for this data source is MCO2M_0ITM
    I am not able to find where this structure is extracting the data for every field.. I wanted to know the corresponding table name and the respective field names.. Both the existing and Appended fields..
    Thanks,
    Naren

    Hi,
    Check in in LBWE and Click on Maintenance and see the table names
    EKKO
    EKPA
    EKPO
    Tables are use for this DS
    Eg:
    MCEKKO  BEDAT  Document Date
    MCEKKO  BSART  Document Type
    MCEKKO  BSTYP  Doc. Category
    MCEKKO  BUDAT  Accounting date
    MCEKKO  EBELN  Purchasing Doc.
    MCEKKO  EKGRP  Purch. Group
    Note: here EKKO is table
    https://wiki.sdn.sap.com/wiki/display/BI/BW%20SD%20MM%20FI%20DATASOURCES
    thanks
    Reddy
    Edited by: Surendra Reddy on Mar 10, 2010 8:18 AM
    Edited by: Surendra Reddy on Mar 10, 2010 8:19 AM

Maybe you are looking for

  • Playing .mov files from iMovie with Quitime for Windows

    Hi, Been searching but cannot seem to find a straight answer on this in these forums. My wife has a mac, we import all movies on to that using iMovie 08. I want to simply play the same movies on my PC. I copy the .mov files over, run them in quicktim

  • "batch" exporting to aiff using automator / applescript?

    I often find myself prepping a lot of audio for DV editing in Final Cut Pro....exporting audio out of QT to 48khz, 16bit, aiff. I'm looking for a way to do this to many files in 1 step....ie: drag and drop a folder/files onto an icon. Automator doesn

  • The page where i include my password is gone

    Can someone help me? For some reason my Mac is not showing the first page where I should login and type my password... I have no idea why its missing. It was working yesterday but I installed Firefox again and now its gone. What should I do? I alread

  • Formsweb.cfg probelm, after addion of the new applicaiton enty........

    Dear All We are getting strange problem. When we add new application entry in formsweb.cfg in Oracle 9i AS 9.0.2.0.1. And when we access it on IE it doesnt work it show the follwoing error in java console.... We appreciate every one who want to resol

  • Configuring a Wvc2300 to work wiith an IR lamp (and other bits)

    Hi I've recently purchased a wvc2300, and i'm having a little trouble configuring it to do what I want it to. I've also purchased a nightime IR lamp to provide visibility in darkness. I want to be able to configure different "events" to run at differ