Get Components

hi everyone,
I know how i can get components information from transparent tables or any structure in the data dictionary.
But, if i have just a internal table, how can i get components table?
E.g:
data:
types: BEGIN OF st_table,
        matnr type matnr,
        name1 type name1,
       END OF st_table.
data: i_table TYPE TABLE OF st_table. 
  DATA: l_struc TYPE REF TO cl_abap_structdescr.
  DATA: lt_comp TYPE cl_abap_structdescr=>component_table.
  DATA: ls_comp LIKE LINE OF lt_comp.
  l_struc ?= cl_abap_typedescr=>describe_by_name( itab-tabname ).
  lt_comp = l_struc->get_components( ).
Does not work out
  i've already try the following ones:
DESCRIBE_BY_DATA
DESCRIBE_BY_NAME
DESCRIBE_BY_OBJECT_REF
DESCRIBE_BY_DATA_REF
Any idea?
Alexandre

Try this:
REPORT  Z_MP_TEST_STRUCT.
data: idfies type table of dfies with header line,
      s_file TYPE string.
parameters: p_table type ddobjname.
parameters: filename(80) type c default 'D:\Documents and Settings\Desktop\download.xls'.
call function 'DDIF_FIELDINFO_GET'
exporting
tabname = p_table
tables
dfies_tab = idfies
exceptions
not_found = 1
internal_error = 2
others = 3.
s_file = filename.
CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
      FILENAME                = s_file
      FILETYPE                = 'DAT'
    TABLES
      DATA_TAB                = idfies
    EXCEPTIONS
      FILE_WRITE_ERROR        = 1
      NO_BATCH                = 2
      GUI_REFUSE_FILETRANSFER = 3
      INVALID_TYPE            = 4
      NO_AUTHORITY            = 5
      UNKNOWN_ERROR           = 6
      HEADER_NOT_ALLOWED      = 7
      SEPARATOR_NOT_ALLOWED   = 8
      FILESIZE_NOT_ALLOWED    = 9
      HEADER_TOO_LONG         = 10
      DP_ERROR_CREATE         = 11
      DP_ERROR_SEND           = 12
      DP_ERROR_WRITE          = 13
      UNKNOWN_DP_ERROR        = 14
      ACCESS_DENIED           = 15
      DP_OUT_OF_MEMORY        = 16
      DISK_FULL               = 17
      DP_TIMEOUT              = 18
      FILE_NOT_FOUND          = 19
      DATAPROVIDER_EXCEPTION  = 20
      CONTROL_FLUSH_ERROR     = 21
      OTHERS                  = 22.

Similar Messages

  • Help! i need to get components id with error validation!

    Hi guys, im really new in jsf, i have a tabset, in with several tabs generated dinamically, each tab have several components generated dinamically as well, im trying to get all components id which have validation errors, and show in the page an alert summary with the name of tabs which have the components with error validation, to do that, i will have to get the components id with error validations, so i will get the tab name which contains it.
    I tried to use this, but didnt work for other components in others tabs than tabSelected.
    public void prerender() {
    Object tmp="";
    FacesContext context = FacesContext.getCurrentInstance();
    Iterator iter = context.getClientIdsWithMessages();
    while(iter.hasNext()){
    Object obj = iter.next();
    This detect components in the current tab, because they are who have messages.
    Please guys, hopefully you could help me at this, ive been trying to achieve this since 3 days ago, im really desperated, i dont know, if i could do this using some of jsf, otherwise i will have to do validation components manually.
    By the way guys:
    How do i do to call the validation phase, when im using a button with inmediate = true. Thats, because i could do a method to validate components (manually) and then call the validation phase, to show the input errors to user.
    Thanks in advanced,
    Yellr
    Message was edited by:
    yellr

    I suggest you do this stuff in the event handlers, such as in the action handler , such as in the tab action handler.

  • How to get components inforation of production order in report?

    Hi,
       I am writing a report which needs get ordered components information of production orders. But, the difficult is when any one delete one component after release, the deletion indicator in reservation will be marked. And if user make the order TECO, all components will be marked as deleted. So, how can I tell which was deleted by user indeed (not caused by TECO). Thanks.

    Can you please advise exactly where or what you found
    Thanks
    Kristen

  • Getting components of equnr in nested IBAUs

    Dear experts,
    I have to get the BOM components of a equipment number (equz-equnr).
    The problem is how do I get the data if there are nested IBAUs?
    I dont even know what IBAUs are?
    can some body please give me some info on IBAUs and how to get the components if they are nested.
    Thank you all in advance.
    goldie.

    Hello Goldie,
    IBAUs are "Instandhaltungsbaugruppen". IBAU (Maintenance assemblies) is a material type delivered by SAP. This material type will often be used for header materials of material BOM in plant maintenance). You have to use the following tables, to get the informations:
    EQST - equipment bom header
    MAST - material bom header
    STKO - bom header
    STPO - bom items
    For each bom item you have to check, if this material has a bom too.
    Best regards
    Stephan

  • Trying to get components inside a panel in content pane

    Hello,
    I am trying to update the combo boxes inside a panel with a list of values(list is stored as an array).
    My heirarchy of components is as follows:
    frame-->contentpane-->gamepanel-->combopanel-->combobox
    i am able pass my frame into my code. now i have to get the combobox to update it.
    frame.getcontentpane()this returns to me my contentpane - RIGHT/WRONG???
    if right, after this how do i reach the combopanel and get the combobox such that I am able to write
    combobox.addItem(array)HELP PLEASEEEEEEEEEEEEE
    Thanks,
    Manju

    Be patient. 30 minutes is not a long time to wait for answers, especially on the weekend. Instead of waiting impatiently why don't you try reading sections from the Swing Tutorial. For example, How to Use Combo Boxes:
    http://java.sun.com/docs/books/tutorial/uiswing/components/combobox.html
    so how do i keep the reference?Define a class variable for the combo box:
         This works on non editable combo boxes
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.text.*;
    public class ComboBoxAction extends JFrame implements ActionListener
         JComboBox comboBox;
         public ComboBoxAction()
              comboBox = new JComboBox();
              comboBox.addActionListener( this );
              comboBox.addItem( "Item 1" );
              comboBox.addItem( "Item 2" );
              comboBox.addItem( "Item 3" );
              comboBox.addItem( "Item 4" );
              //  This prevents action events from being fired when the
              //  up/down arrow keys are used on the dropdown menu
              comboBox.putClientProperty("JComboBox.isTableCellEditor", Boolean.TRUE);
              getContentPane().add( comboBox );
         public void actionPerformed(ActionEvent e)
              System.out.println( comboBox.getSelectedItem() );
              //  make sure popup is closed when 'isTableCellEditor' is used
              comboBox.hidePopup();
         public static void main(String[] args)
              final ComboBoxAction frame = new ComboBoxAction();
              frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
              frame.pack();
              frame.setVisible( true );
    }Even though the combo box is created in the constructor, the actionPerformed() method can still access the combo box because it was defined as a class variable.

  • Function module to get components

    Hi,
    Anyone knows of a function module that gets the components attached to an activity?

    Hi Jackie,
    Please consider BAPI_NETWORK_COMP_GETDETAIL and BAPI_NETWORK_GETDETAIL
    Thanks
    Martina

  • PS Module: get components per activity

    Hi,
    Anyone knows of a function module that gets the components attached to an activity?

    But i coudnt see any subtotal column and total column in the grid.
    please help
    you did every thing correct.
    but if you want the subtotals you have to do one more thing.
    that is you need to mention the do_sum = 'X'. for the columns which you want to see the subtotals(quantities, currency etcc) in the fieldcatalog.

  • Getting Components inserted into JTextPane?

    Hello,
    OK, I can insert Components into a JTextPane. But how do I get them back out when I need to manipulate them? In other words: how are inserted Components stored by the JTextPane? And how do I get access to them?
    Thanks for any help,
    -Michael

    try this out
    Component[] containers=textPane.getComponents();
    cheers.

  • How do I get components to work III?

    I have been trying to create a custom component to make the coding more consistent and easy to work with. What I want to do is have:
    a style with right align
    a label width to allow that right alignment
    an overall width for the item
    Here is what I tried:
    Code:
    package ASFiles
         import flash.text.StyleSheet;
         import mx.containers.FormItem;
         <StyleSheet>
              _labelRight {text-align: right;}
         </StyleSheet>
         public class fiRightAlignText extends FormItem
              public function fiRightAlignText()
                   super();
                   this.indicatorGap="5";
                   this.labelStyleName="_labelRight";
                   this.width="50%";
                   this.labelWidth="185";
    In the mxml file this (indicatorGap, width, etc) work just fine and I get the right justified label for the control. As a custom component, code assist doesn't work for any of the "this." things.
    Not a biggie, but I'm wondering why it isn't working as I expected it to.
    Can I include a style in a custom component?
    Can I get to the various properties despite code assist failing to see them?
    Should I put the style in the property directly if I can find it?
    Thank In Advance

    Thanks for the reply.  Unfortunately, our firewall prevents the first two links.  I had read the third, but didn't see how it applied to this case.  The fourth one did seem to apply to modifying (sub-classing) an object, but I'm not sure of the limits of "setStyle" for the things I wanted (labelWidth, indicatorGap and object width in particular).  The style things like text alignment made sense to "setStyle".
    When I changed it to this:
        import mx.containers.FormItem;
        public class fiRightAlignText extends FormItem
            public function fiRightAlignText()
                super();
                setDefaults();
            private function setDefaults():void
                setStyle("indicatorGap", "5");
                setStyle("textAlign","right");
                setStyle("width","50%");
                setStyle("labelWidth","185");
    The object broke the form pushing everything to the left off the form (see attached).  Here is the original code:
                    <mx:FormItem id="gGuardianLast"
                        label="Guardian Last Name:"
                        indicatorGap="5"
                        labelStyleName="labelRight"
                        labelWidth="185" width="50%">
                        <mx:TextInput id="GUARDIANLNAME"
                            text=""
                            maxChars="50"
                            tabIndex="12"/>
                    </mx:FormItem>
    As you can see you would have to go into many form items to change the label width in this case.  As a sub-class I would only have to change it in one place.

  • CRM - Getting components of installed base from quotation

    I am new to SAP CRM so this might sound like a silly question but i am stuck on it.
    I want to find out all the components of all the installed base in a quotation.
    I have the header GUIID.
    Can someone please let me know how I can read the components of the installed base attached to all the items in a quotation from the Header GUIID.

    I was able to figure it out myself

  • Hot to get components to adjust size & fill Jpanel when splitPane is moved

    HI, i am developing a small app that makes heavy use of swing. in the main JFrame, i need to have a a horizontal split bar dividing it into a top and a bottom
    area and in the bottom area another vertical one diving it into 2, left and right. in the right area i need to put a lot of visual controls such as labels, textboxes....
    the thing is that i need them to stretch and shrink in size everytime the splitpane is moved. i use a JPanel to hold these controls.
    how can it be done?
    thank you

    DarrylBurke wrote:
    _steve wrote:
    i know how to use layout managers i just don't know which yields the desired behavior, the one i want.Hence the nudge towards the relevant tutorial, where you can find what you need to know.
    i am not an expert swing developer and i don't intend to become one today.Ah, ok. Good luck finding another job, then.
    thank youYou're welcome, I'm sure.
    dbthank yourself, typical. if you don't have any positive input to contribute with, please do not enter the discussion and save yourself the frustration.
    not having time, not needing swing is something and not willing to work is something else.you are no better developer, that i am sure of, too.

  • Components in the lowest level of costing structure in SO

    Hi,
    Could you please let me know is any function module to get  Components in the lowest level of costing structure in Sales order.
    Thanks,
    Harinath

    Yes, you can manipulate your components any way you like. Becareful about the layout manager though as it likes to handle the positioning and sizing, so there is an intimate relationship there.
    Also call validate() on the container after you make your changes.

  • Where can I get CD4047 or its match in Multisim 12?

    where can I get CD4047 or its match in Multisim 12?
    I am designing an INVERTER circuit in MULTISIM COMPONENT EVALUATOR 12.0 software.
    but on doing so I can't find the IC (Integrated circuit) CD4047. I have tried to search CD4047 match component (can replace it) on the internet but not found?
    1. What can I do or how can I replace its Match component?
    2. In future when I design in Multisim, when I coudn't get components in the data base of MULTISIM, what solutions can you give me?
    Hoping to get from your Answers
    Thank you!  

    Experts,
    There is the CD4538 which I believe is a similar chip (its dual - so you get 2).  
    1. If you locate the CD4047 model online, or you can use 1/2 of the CD4538, you can use the Component Wizard to import a custom component into Multisim.
    2. There are various techniques to get models/parts into Multisim.   If you can find an equivalent model you can use you can create a part using the Component Wizard.   There are various SPICE modeling marco modeling techniques for creating models, but the complexity depends on the type of part and how much detail you need from the model.   The best method is to locate the SPICE model from the manufacturer and follow our Component Wizard steps to import the new model into a Multisim part (usually with the most challenging step being the symbol - spice model mapping).
    - Pat N

  • Are there any Components to view movies on G5 Macs? Or another way to view?

    I can't seem to view anything I download. I get a message saying I need additional components. I've tried installing XviD & DivX, but I get messages saying these require Intel Macs; my iMac is a G5 running 10.4.11 and QuickTime 7.6.4. Does anyone know where I can get components to view movies in Quicktime? If not, is there any other way for me to view movies I've downloaded? Thanks in advanc

    Welcome to the forums!
    These are the downloads and the settings you need in order to view/hear/play pretty much everything that the net can throw at you: The setup described below has proved repeatedly successful on both PPC and Intel macs, but nothing in life carries a guarantee!
    Download and install (or re-install even if you already had them) the latest versions, suitable for your flavor of Mac, of:
    RealPlayer 11.1 for Mac from:
    http://www.versiontracker.com/dyn/moreinfo/macosx/15540
    Flip4Mac WMV Player from http://www.telestream.net/flip4mac-wmv/overview.htm (Windows Media Player for the Mac is no longer supported, even by Microsoft)
    Perian from http://perian.org/
    You should read this support page http://perian.org/#support in case you need to delete older codecs.
    The latest version of Adobe FlashPlayer can be obtained from here:
    http://www.adobe.com/shockwave/download/download.cgi?P1ProdVersion=ShockwaveFlash
    (You can check here: http://www.adobe.com/products/flash/about/ to see which version you should install for your Mac and OS.
    You should first uninstall any previous version of Flash Player, using the uninstaller from here (make sure you use the correct one!):
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14157
    and also that you follow the instructions closely, such as closing ALL applications first before installing. You must also carry out a permission repair after installing anything from Adobe.
    NOTE: On December 8, 2009 Adobe announced plans to drop Flash Player security support next year for Mac owners whose machines run PowerPC processors.
    "Adobe will be discontinuing support of PowerPC-based G3 computers and will no longer provide security updates after the Flash Player 10.1 release," said Adobe in the same advisory that spelled out the seven patches. "This unavailability is due to performance enhancements that cannot be supported on the older PowerPC architecture."
    http://www.macworld.co.uk/news/index.cfm?email&NewsID=28011
    You should also consider the Shockwave Player, which displays Web content that has been created by Adobe Director, much used for multimedia: http://www.apple.com/downloads/macosx/internet_utilities/adobeshockwaveplayer.ht ml
    You should also ensure that you have downloaded and installed the correct version for your Mac of Security Update 2009-005 (and for Tiger only, 2009-002 and 003). (N.B. Security Updates require both a restart and a permission repair.)
    In Macintosh HD/Library/Quicktime/ delete any files relating to DivX (Perian already has them). However it should be noted that Perian is not an internet plugin and will not play DivX files imbedded on a website. For that you will need the DivX Player browser plugin available from http://www.divx.com/divx/mac/
    Now go to Safari Preferences/Security, and tick the boxes under Web Content (all 4 of them) to enable Java.
    Lastly open Audio Midi Setup (which you will find in the Utilities Folder of your Applications Folder) and click on Audio Devices. Make sure that both Audio Input and Audio Output, under Format, are set to 44100 Hz, and that you have selected 'Built in Audio'.
    Important: Now repair permissions and restart.
    You should also consider having the free VLC Player from http://www.videolan.org/ in your armory, as this plays almost anything that DVD Player might not.
    There is an additional 'fix' you could try if you are having problems with Flash and Quicktime, depending on which type of Mac you have:
    On Intel Macs, make sure that you are not running Safari in Rosetta. You can check this, and change it, in the Get Info window.
    On PPC Macs, go to the Hard Disk/Library/Internet Plug-Ins folder, and drag the file 'QuickTime Plugin.webplugin' to the desktop. Quit and restart Safari. If things have improved you can trash that file. If they haven't put it back, as the lack of this plug-in can cause QT content in some widgets to cease functioning.
    And there is an additional kid on the block: SilverLight. Microsoft has created their own version of what a replacement for Flash could be. You can read more about it here:
    http://silverlight.net/
    So, if you go to any sites that have been designed for this new Silverlight stuff, you can download the plug-in from here (but make certain that you are downloading SilverLight v.1.0 for OS X (10.4.8 upwards) if you are using a PPC Mac, but even this will not work with Safari 4. Version 2 only works with Intel Macs and does work with Safari 4:
    http://silverlight.net/GetStarted/
    Recommendation: Close all applications before installing any of the above, repair permissions, reboot, and repair permissions again.

  • Restful service returning components

    Is there any way, or indeed am I doing something wrong when creating my components, to get components to generate json consistently. The json I'm returning will have the first letter capitalized and the rest lower case when returning the component from the restful service however all capitalized when calling the compoent remotely.
    Some demo components as below:
    User.cfc
    component {
         property type="numeric" name="userid";
         property type="string" name="username";
    Users.cfc
    component output="false" restPath="/users"
         remote User function getByPK(required numeric id restArgSource="Path") output="false" httpMethod="GET" restPath="{id}"
              user = new user();
              user.userid = 1;
              user.username = "Chicken";
              return user;
    Output:
    /rest/users/1.json
    {"Username":"Chicken","Userid":1.0}
    /rest/users/1.xml
    <COMPONENT ID="1" NAME="User">
    <PROPERTY NAME="USERNAME" TYPE="STRING">Chicken</PROPERTY>
    <PROPERTY NAME="USERID" TYPE="STRING">1</PROPERTY>
    </COMPONENT>
    /Users.cfc?method=getByPK&id=1&returnFormat=json
    {"USERNAME":"Chicken","USERID":1}
    Is this simply a quirk I have to put up with?

    Hello Jereme,
    I've a similar requirement and trying to perform HTTP GET thorugh PI 7.31 HTTP Java adapter, My target URL looks like
    https://abc.com/api?filterFields=<FilterFields><FilterField><Id>26</Id><Value>1/1/2013,12/31/2013</Value></FilterField></FilterFields>
    I've configured my HTTP receiver adapter (Java) as below
    Addressing mode - URL address
    Target Host - https:abc.com
    Target port: 8080
    Path - /api
    Where should I mention the query path - ?filterFields=<FilterFields><FilterField><Id>26</Id><Value>1/1/2013,12/31/2013</Value></FilterField></FilterFields>
    Actually values inside the tag Value is dynamic and will be populated in message mapping,
    What should be the value of Main Payload Parameter Name in the adapter?
    Thanks in advance for your help.

Maybe you are looking for

  • How To Get Rid Of White Space Around Footer

    Hi, I am really new at this (still trying to get a handle on HTML, CSS, etc.) and I need help fixing the footer in a template that I've created in Dreamweaver (CS5). Right now, my main background image extends the full width of the page with no probl

  • Bapi Fm BAPI_INCOMINGINVOICE_CREATE Giving error *Balance is not equal to .

    Dear All, Note: Cin as implemetned.                Get error from Fm BAPI_INCOMINGINVOICE_CREATE  is Balance is not equal to zero. Have passed the correct inputs to the Fm its Invoice is creting ,while the only case Cenvat comes based in the PO/Vendo

  • New Enterprise Manager Book on Advanced EM Techniques for the Real World

    Dear Friends, I am pleased to say my first EM book can be ordered now. Oracle Enterprise Manager Grid Control: Advanced Techniques for the Real World [http://www.rampant-books.com/book_1001_advanced_techniques_oem_grid_control.htm] Please let your co

  • Connecting 24" LED external display - does it half my Vram ?

    Hello, I just got my 17" 2,9 and 24" LED today and I connected both. I use both displays so I have my labtop open all the time, but someone told me that if I have my macbook lid open it will share the VRAM of my graphics card between the two displays

  • Special Characters in CONTAINS section of ORACLE TEXT

    Can we have special characters in the CONTAINS Section of the ORACLE TEXT. Ex: Select count(*) from Table_Name where CONTAINS(Column_Name, '%SearchString#%')>1.. If I am introductions characters like @,#,$,^,&,*(, ) --> then I am getting error as giv