Dynamic Structure creation and assigning data.

Hi,
I have a structure and a work area,
DATA: begin of sample_struct,
      elem1 type xxx,
      elem2 type yyy,
      elem3 type zzz,
      end of sample_struct.
DATA: wa_sample_struct type sample_struct.
DATA: lr_rtti_struc TYPE REF TO cl_abap_structdescr.
DATA: lt_comp       TYPE cl_abap_structdescr=>component_table.
DATA: ls_comp       LIKE LINE OF lt_comp.
DATA: l_index       TYPE string.
DATA: lr_data       TYPE REF TO data.
DATA: lr_table      TYPE REF TO
I create a new structure at run time extending the sample_struct to add few more components at run time like this.
lr_rtti_struc ?= cl_abap_structdescr=>describe_by_data(wa_sample_struct).
    lt_comp = lr_rtti_struc->get_components( ).
do 10 times.
      l_index = sy-index
      concatename 'element' l_index into ls_comp-name
      ls_comp-type = cl_abap_elemdescr=>get_string( ).
      APPEND ls_comp TO lt_comp.
enddo.
Then i create a work area of this new structure like this.
lr_rtti_struc = cl_abap_structdescr=>create( p_components = lt_comp ).
    CREATE DATA lr_data TYPE HANDLE lr_rtti_struc.
    ASSIGN lr_data->* TO <fs_data>.
Now <fs_data> is a work area for the structure.
I can move the data in wa_sample_struct into <fs_data> like this.
move-corresponding wa_sample_struct to <fs_data>.
My problem is how do i access the dynamic components of this work area so that i can assign data to those components.
If anybody knows how to access the dynamically added components of <fs_data> so that I can assgin data to those.
Thanks in advance
Sesh
Message was edited by: Seshatalpasai Madala

Hi,
      Looks like the problem is not well stated as I am getting answers which are not relevent.
My existing structure.
DATA: begin of sample_struct,
elem1 type xxx,
elem2 type yyy,
elem3 type zzz,
end of sample_struct.
I create a new structure using this structure at runtime by adding new fields which are in a internal table. I add the new fields as follows.
loop at it_tab into wa_tab.
ls_comp-name = wa_tab.
ls_comp-type = cl_abap_elemdescr=>get_string( ).
APPEND ls_comp TO lt_comp.
endloop.
This internal table is built using the user input. So I dont know how many and what are the values in the internal table.
LT_COMP has the existing structure field's as well as the newly added fields for my new structure.
I create a new structure using this component list LT_COMP.
DATA: lr_rtti_struc TYPE REF TO cl_abap_structdescr.
lr_rtti_struc = cl_abap_structdescr=>create( p_components = lt_comp ).
Now I have an object of cl_abap_structdescr. Which I can use as a data type for defining Workarea and internal table of this structure like this.
CREATE DATA lr_data TYPE HANDLE lr_rtti_struc.
ASSIGN lr_data->* TO <fs_data>.
I can access all the existing fields of the strucutre like this.
<fs_data>-elem1
<fs_data>-elem2
My problem is how do i access the newly added fields of the strucutre as I dont know the names of the fileds(I know them only at runtime).
I hope I have explained it well enough, hope to see a relevent answer for the above problem.
Thanks in advance.
Sesh

Similar Messages

  • Creation and Change Date for Tcode and Function Groups

    Hello All,
    I need to display the Creation and Change Dates for Custom Tcodes and Function Groups in a Report. Can anyone please let me know the logic of retrieving it.
    regards,
    Mahesh

    Hi,
    TADIR and TRDIR is the tables where you can find all these data
    Regards
    Sudheer

  • Finding Plant Creation and Updation Date

    Hi all,
    I just want to find out if it is possible to find out Plant Creation and Updation Date using ABAP statements. Does it get stored in CHDHR or CDPOS and if yes, then what is the object Key.
    Thanks

    Check Report RSVTPROT with table name T001W for Plant changes. I do not think it updated CDHDR.
    You can SUBMIT this report and get back the list in your custom program.
    How to get list back in your custom program refer
    http://scn.sap.com/thread/3147016

  • Export Contact with creation and modify date

    Hi All,
    I need to export the contact created in AD ( windows 2008 )with creation and modified date.

    Hi Vin,
    In addition,
    the following thread can be referred to as reference.
    Exporting AD Objects by creation date
    http://social.technet.microsoft.com/Forums/en-US/d8fd00ba-e97a-4e28-a67a-1d56bfddd554/exporting-ad-objects-by-creation-date?forum=winserverDS
    Best regards,
    Frank Shen

  • Creation and Modification dates for android file system

    Hello all, I am working on a project and i noticed a particular scenario where i'm getting an error everytime i try to run the code below on my android device;
                    var file:File=File.applicationDirectory.resolvePath("amf.js");
                    var modDate:Date;
                    var createDate:Date;
                     if(file.exists)
                            try
                                       modDate=file.modificationDate;
                                       credDate=file.creationDate;
                                       trace("Modification date: "+ modDate.toString()+"\nCreation date: "+credDate.toString());
                             catch(e:Error)
                                      trace(e.message+": Somehow android OS CANNOT READ mODIFICATRION AND CREATING DATES FOR FILES");
    Every time i run this on Adobe AIR's Mobile emulator, the correct dates are show up properly(Possibly because the emulator is running on Windows) but when i switch the debug to the device, the statement in the catch block executes. The real error says "Error #3003: File or directory does not exist."
    Am i missing something or is this a normal behaviour which i have to find a work around for? The modificationDate and the creationDate are all properties of the FileReference class which i didnt use to instanciate the file object because i wasnt uploading or downloading anything.
    Any form of tip will be much appreciated.
    Thanks.

    I run into the same problem while working on some sort of file synching task.
    Trying to read the file.modificationDate or creationDate results in an error: "Error #3003: File or directory does not exist."
    I have obeserved that this only happens for files that were packaged with the app (and placed in the File.applicationDirectory).
    Files that my app has downloaded and saved to the device (File.applicationStorageDirectory) do have a valid creation date and modification date.
    Maybe the File.applicationDirectory has different rights?
    Does anybody have a solution or workaround for this?

  • Mac Does Not Retain Video Creation and Modification Dates

    I seem to have encountered a major problem for managing videos on the Mac. There does not seem to be a method - other than manually dragging files "Windows Style" - for moving videos from my camera (any camera) to the Mac (any Mac) that retains the video's modification date (the date the video was taken) so that videos can be organized by date (which, I imagine, is the primary way that I and everyone else would normally keep track of their videos). iMovie resets the "Date Modified" and "Date Created" data to the day that iMovie imported the file. That data is almost meaningless. Yes, iMovie allows for modifying the "Clip Date and Time" after the fact and one at a time but that is obviously inadequate for the serious management of archived files. Neither iPhoto or Image Capture seem to be capable of touching video files at all. Is Mac really this deficient for managing video files? Somebody please tell me I'm wrong. Thanks.

    I run into the same problem while working on some sort of file synching task.
    Trying to read the file.modificationDate or creationDate results in an error: "Error #3003: File or directory does not exist."
    I have obeserved that this only happens for files that were packaged with the app (and placed in the File.applicationDirectory).
    Files that my app has downloaded and saved to the device (File.applicationStorageDirectory) do have a valid creation date and modification date.
    Maybe the File.applicationDirectory has different rights?
    Does anybody have a solution or workaround for this?

  • Get original file creation and modified date during upload - ONLY in explorerview ??

    Hi,
    SharePoint and me are having a difficult time again ;-)
    I have the customer requirement to retain the original file's creation date and modified date.
    Please do not start replying by just pasting links that you might find while searching for the keywords "retain creation date".
    In a nutshell I found out that the original dates are only available in SharePoint if the
    explorerview has been used. I always thought that the explorerview is a bad thing, but only here - the original creation date is stored in a property called "vti_ct". In the itemupdated eventreceiver you can get the
    value and work with it.
    Complete list of available properties
    http://sbrickey.com/Tech/Blog/Post/Secrets_Revealed_SP_Event_Receivers_firing_multiple_times
    Here I found the hint with the explorerview
    http://answers.flyppdevportal.com/categories/sharepoint2010/sharepoint2010programming.aspx?ID=57bfd5f5-941f-4a89-919d-cdf7b0b801be
    It is only available in the 2nd loop of the itemupdated event. 
    How the f*** can this happen??? The 2nd post states that when using the explorerview the file is being copied, while it is being re-created by using the SharePoint UI.
    Has anyone a different approach for using the SharePoint UI?
    I thought about different approaches for this issue. From my perspective it seems to be not solvable from the server-side. It seems only to be able to be set using a client application.
    Example 1: spbulkdocumentimport 
    http://spbulkdocumentimport.codeplex.com/wikipage?title=Features&referringTitle=Documentation
    Example 2: implement a custom webservice
    http://blog.orbitone.com/post/Preserve-created-and-modified-information-when-importing-a-document-in-SharePoint
    How do you deal with this customer requirement?
    Open for discussions
    Sven 

    Hi,
    Newbie to SharePoint, learn quite a lot from the links you provided.
    “I found out that the original dates are only available in SharePoint if the explorerview has been used”, this would make sense because the original creation time is generated
    by the file system in the local machine.
    However, when a file is uploaded to SharePoint library, it will be stored as binary data in the database, as well as the newly created time. It means that it will be a “new” file
    in the SharePoint site regardless of where it comes from.
    Per my knowledge, the only way I can suggest is that you will need to create a client desktop application for the file uploading, which will be a more general way not only for
    uploading a file, but also when we need to migrate files between different systems.
    Thanks

  • Relationship between Dynamic Memory Heap and Heap Data Structure

    This question is not strictly related to Java, but rather to programming in general, and I tend to get better answers from this community than any where else.
    Somehow, my school and industry experience have somehow not given me the opportunity to explore and understand heaps (the data structure), so I'm investigating them now, and in particular, I've been looking at applications. I know they can be used for priority queues, heap sorts, and shortest path searches. However, I would have thought that, obviously, there must be some sort of relationship between the heap data structure, and the dynamic memory heap. Otherwise, I can think of no good reason why the dynamic memory heap would be named "heap". Surprisingly, after searching the web for 90 minutes or so, I've seen vague references, but nothing conclusive (trouble seems to be that it's hard to get Google to understand that I'm using the word "heap" in two different contexts, and similarly, it would not likely understand that web authors would use the word in two different contexts).
    The Java Virtual Machine Spec is silent on the subject, as "The Java virtual machine assumes no particular type of automatic storage management system, and the storage management technique may be chosen according to the implementor's system requirements."
    I've seen things like:
    [of dynamic memory] "All the blocks of a particular size are kept in a sorted linked list or tree (I extrapolate that sorted tree could imply heap)"
    [of dynamic memory] "The free and reserved areas of memory are maintained in a data structure similar to binary trees called a heap"
    [of dynamic memory] "This is not related to the heap data structure"
    [of dynamic memory] "Not to be confused with the data structure known as a "heap"
    [of data structure] "Not to be confused with the dynamic memory pool, often known as TheHeap"
    At this point, I've come to surmise that some (but not all) memory management algorithms use heaps to track which (pages? blocks? bytes?) of memory are used, and which are not. However, the point of a heap is to store data so that the max (or min) key is at the root of the heap. But we might want to allocate memory of different sizes at different times, so it wouldn't make sense to key on the amount of available memory in a particular region of the free store.
    I must assume then that there would be a different heap maintained for each size of memory block that can be allocated, and the key must have something to do with the attractiveness of the particular memory block in the heap (perhaps the lowest address, resulting, hopefully, in growing the free store space less often, leaving more space for the stack to grow, or perhaps keyed based on the fragmentation, to hopefully result in less fragmentation, and therefore more efficient use of the memory space, or perhaps based on page boundaries, keeping as much data in the same page as possible, etc).
    So at this point, I have a few questions I've been unable to resolve completely:
    1. Am I correct that the heap was so named because (perhaps at one point in time), a heap is/was commonly used to track the available memory in the free store?
    2. If so, would it be correct that there would be a heap per standard block size?
    3. Also, at what level of granularity would a heap typically be used (memory page, memory blocks, individual words (4-bytes))?
    4. What would be the most likely property one would use as a key. That is, what makes the root item on the heap ideal?
    5. Would a industrial strength system like the jvm use a (perhaps modified or tuned) heap for this sort of task, or would this typically be too naive for an real world solution today?
    Any insight would be awesome!
    Thanks,
    A.

    jschell wrote:
    I think you are not only mixing terms but domains.
    For starters the OS allocs memory. Applications, regardless of language, request memory from the OS and use it in various ways.
    There are many variations of the term "heap" like the following.
    [http://en.wikipedia.org/wiki/Heap_(data_structure)]
    [http://en.wikipedia.org/wiki/Dynamic_memory_allocation]
    A java VM will request memory from the OS (from a 'heap') and use it in its application 'heap' (C/C++) and then create the Java 'heap'. There can be variations of that along the way that can and likely will include variations of how each heap is used, potentially code that creates its own heap, and potentially other allocators which use something which is not a heap.This last part, I find a bit confusing. By "use something which is not a heap", do you mean the heap data structure, or the dynamic memory pool meaning of heap? If the former, then you would be implying that it would be common for a heap data structure to be used to manage the heap dynamic memory pool. If the latter, what would this "something which is not a heap" be? The best definition of "heap" I've found simply states that it is a pool of memory that can be dynamically allocated. If there is some other way of allocating dynamic memory, then it would suggest that the previous definition of "heap" is incomplete.
    >
    So to terms.
    1. Am I correct that the heap was so named because (perhaps at one point in time), a heap is/was commonly used to track the available memory in the free store?Which 'heap'? The VM one? It is probably named that because the implementors of the Sun VM were familar with how C++ and Smalltalk allocated memory.Okay, but that begs the question, was the heap in C++ and/or Smalltalk so named for the above queried reason?
    >
    2. If so, would it be correct that there would be a heap per standard block size?Not sure what you are referring to but probably a detail of the implementation. And since there are different levels the question doesn't mean much.
    However OS allocations are always by block if that helps. After that it requires making the question much, much more specific.
    3. Also, at what level of granularity would a heap typically be used (memory page, memory blocks, individual words (4-bytes))?Again not specific enough. A typical standard implementation of heap could not be at the word level. And it is unlikely, but not impossible, that variations would support word size allocations.
    The VM heap might use word boundaries (but not size), where the application heap certainly does (word boundary.)My understanding of it is that the application would request blocks from the OS, and then something like malloc would manage the memory within the allocated blocks. malloc (or whatever equivalent Java uses) would have to keep track of the memory it has allocated somehow, and I would think it would have to do this at the word level, since it's most commonly going to allocate memory at the word level to be references to other objects, etc.
    So I guess my question here would really be, if the dynamic memory heap is so named because there has been a memory management strategy that relied upon a heap data structure (which I've found no proof, but have found some suggestive literature), then would that probably have applied at the OS Page Fault level, tracking allocated blocks, or would that have applied at the malloc level, allocating individual words as necessary?
    >
    4. What would be the most likely property one would use as a key. That is, what makes the root item on the heap ideal?"Key" is not a term that will apply in this discussion.
    You appear to be referring to strategies for effective allocation of memory such as allocations from different regions by size comparison.
    It is possible that all levels might use such an allocator. General purpose applications do not sort allocations though (as per your one reference that mentions 'key'.) Sorry, I got the term "key" from an article I read regarding heaps, that indicates that a "key" is used to sort the elements, which I guess would be a more generalized way to make a heap than assuming a natural ordering on the elements in the heap. I'm not sure if the terminology is standard.
    >
    5. Would a industrial strength system like the jvm use a (perhaps modified or tuned) heap for this sort of task, or would this typically be too naive for an real world solution today?Again too indefinite. The Sun VM uses a rather complicated allocator, the model for which originated after years of proceeding research certainly in Smalltalk and in Lisp as well, both commercially and academically.
    I am sure the default is rules driven either explicitly or implicitly as well. So it is self tuning.
    There are command line options that allow you to change how it works as well.I guess perhaps I could attempt to clarify my initial question a bit.
    There is a 1:1 correspondence between the runtime stack, and a stack data structure. That is, when you call a function, it pushes a stack frame onto the runtime stack. When you return from a function, it pops a stack frame from the runtime stack. This is almost certainly the reasons the runtime stack is named as it is.
    The question is, is there or has there ever been a 1:1 correspondence between some aspect of the dynamic memory heap or how it is managed, and a heap data structure? If so, it would explain the name, but I'm a bit puzzled as to how a heap data structure would be of assistance in creating or managing the dynamic memory heap. If not, on the other hand, then does anybody know where the name "heap" came from, as it applies to the dynamic memory pool?
    A.

  • Dynamic structure creation failure for only some structures.

    I have some code to dynamically create a structure and table based on some sap how to... documentation. It works perfectly for a number of structures but fails on the structure I wish to create.
    'l_c_cube_write' in the code is the variable that defines which structure. This code is in BW, if I have an InfoCube YINFOCUBE then the code should create a structure and table based on structure /BIC/VYINFOCUBE2.
    This code works fine when based on structure /BIC/VYINFOCUBEI but fails when based on structure /BIC/VYINFOCUBE2. These structures are generated for each InfoCube created in BW.
    Looking at the two structure definitions in SE11 there are a few differences but it is not clear to me if these differences are causing the error.
    Does anyone know why the error occurs and whether there is a way to avoid it.
    The code is as follows.
    data:
      l_c_cubestruct   type string,
      l_r_cubestrudesc type ref to cl_abap_structdescr,
      l_r_cubedatadesc type ref to cl_abap_tabledescr,
      l_v_cubedatastru type ref to data,
      l_v_cubedatatabl type ref to data,
      l_v_cubecomp     type cl_abap_structdescr=>component_table,
      l_c_comp         type string.
    field-symbols:
      <l_fs_anytabl>  type standard table,
      <l_fs_anystru>  type any.
    no need to dynamically create data object as the program is created dynamically
    concatenate '/BIC/V' l_c_cube_write 'I' into l_c_cubestruct. "this works
      concatenate '/BIC/V' l_c_cube_write '2' into l_c_cubestruct. "this does not
      l_r_cubestrudesc  ?= cl_abap_structdescr=>describe_by_name( l_c_cubestruct ).
      l_v_cubecomp       = l_r_cubestrudesc->get_components( ).
      l_r_cubestrudesc   = cl_abap_structdescr=>create( l_v_cubecomp ).
      l_r_cubedatadesc   = cl_abap_tabledescr=>create( l_r_cubestrudesc ).
      create data l_v_cubedatastru type handle l_r_cubestrudesc.
      create data l_v_cubedatatabl type handle l_r_cubedatadesc.
    create a data object for the datapackage and the dataackage structure
      assign l_v_cubedatastru->* to <l_fs_anystru>.
      assign l_v_cubedatatabl->* to <l_fs_anytabl>.
    Differences between structures:
    The structure that fails also includes components 0INFOPROV and 1ROWCOUNT.
    The structure that fails has components in the format 0MATERIAL, 0CALMONTH, etc. The structure that does not fail has components in the format MATERIAL, CALMONTH, etc.

    I encountered the above problem recently. It is a pain because it means you can't use MOVE-CORRESPONDING.
    It's also not possible to define a structure statically with components beginning with numbers - though it is ok in the data dictionary.
    e.g.
    TYPES: BEGIN OF my_struc,
             0COMPONENT TYPE...
           END OF MY_struc.
    Seems to me to be rather inconsistent!
    matt

  • PO Creation and GRN date report

    Pls Suggest any std report for the below values
    PO Number      PO Creation date      PO Line Item      Material      Material Document No     Material Document Date

    HI,
    Using T-code MB51 - Material Document List, your requirement full-filled  and the details to be given as follows.
    Plant     : __________
    Posting Date : __________ to _______  (for the period 01.10.2010 to 31.10.2010 if required)
    under Data Source heading 'Database' option to be ticked and then executed the report (run clock).
    After execute the report shown material document list and then top of the report  blue color button( Detail list) press, the report shown PO number, PO date,PO line item with material description, material doc.no. and material doc.date as you needed.
    Hope, it is full-filled your requirement.
    Regards,
    K.Rajendran

  • Dynamic Event Creation and Handling the events

    Hi All
    I am using WAS 6.4.
    I have two components say Component A and Component B in which Component A is a reusable component and is used by other components say for e.g the Component B.
    The following is the requirement.
    Component A should create buttons for other components dynamically.
    As an example, Component B specifies to Component A the buttons required say button B1 and button B2.
    Component B also contains methods M1 and M2 for the buttons created by the component A.
    Now I would like to associate these buttons created by component A with the methods created in Component B
    The number of buttons that are to be created may vary from component to component.
    If any one as any suggestion or solution, help me out.
    Thanks
    Regards
    NagaKishore

    Hi NagaKishore,
         I'm not exactly sure why you want to do this, but it is pretty easy if I switch it up a bit.  (Maybe you are trying to create a navigation page or something?) 
         Instead of your component B using component A, if you define a Web Dynpro interface in component A, then implement this interface in component B (or all component Bs), achieving your goal would not be too difficult.  It could define a generic method (or event) with a "button key" as an argument that would tell component B which button was pressed and allow it to behave as desired.  The Web Dynpro interface defined in A could also have an interface context that would allow the the button text to be passed along with (for the sake of simplicity) a "button key" that component that should be triggered when the button is pressed.  (Note this could be a varying size list as required.)
         The component B(s) need not be known until run-time.  They can be created using something like:
    wdThis.wdGet<Used Compontne Name>ComponentUsage().createComponent(<Component Name>,<Object Name (if in a different component)>)
         Once the component is created, the context can be accessed giving the list of buttons to create and the values.  The buttons can be created in the wdModifyView during the first pass of the creation of the view displaying the buttons (after the dynamic creation of the used components which can occur in the wdDoInit of the component controller).
         If the user presses a chosen button on component A, then the generic method (most likely an event) of component Bs interface is called and passed the "button key", component B then takes over.  Note this would also work if component B had a visualization component that must be displayed through an interface view that is defined on the web dynpro component interface that is implemented by B.
         Hope this helps or at least triggers discussion that will answer your question,
           --Greg

  • Dynamic Structure Creation

    Hello Expert,
    My requirement is like i have a selection screen where user can put any database table name and once he execute then all the records whatever stored in the table can download in a .TXT file.
    I am trying this by using field symbol but i stuck in between , i can fetch the data and put into a WA but how can i pass those data to a internal table . For your reference here is my code.
    types:ty_record type string.
    data: my_table type REF TO data.
    data: rt_date type REF TO data.
    data: rt_date1 type REF TO data.
    data: w_record type string.
    data: t_file type TABLE OF ty_record.
    FIELD-SYMBOLS: <WA> type ANY,
                   <WA2> type ANY TABLE,
                   <WA1> type any,
                   <WA3> type any
    selection-screen begin of block b1.
    PARAMETERS:
      s_table(10).
    SELECTION-SCREEN END OF BLOCK b1.
    START-OF-SELECTION.
      CREATE DATA my_table type (s_table) .
      ASSIGN my_table->* to <WA>.
      CREATE DATA rt_date type (s_table).
      ASSIGN rt_date->* to <WA1>.
      SELECT * from (s_table) into <WA>.
        move <WA> to <WA1>.
      ENDSELECT.
    Thanks,
    Satya

    Hello,
    I think this is the way you should proceed:
    DATA: s_table TYPE tabname VALUE 'T001'.
    DATA: lt_tmp TYPE REF TO data.
    FIELD-SYMBOLS: <lt_tmp> TYPE STANDARD TABLE.
    CREATE DATA lt_tmp TYPE STANDARD TABLE OF (s_table).
    ASSIGN lt_tmp->* TO <lt_tmp> .
    SELECT * FROM (s_table) INTO TABLE <lt_tmp>.
    IF sy-subrc = 0.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = 'C:\Documents and Settings\ssaha\Desktop\dyntab.txt'
        TABLES
          data_tab                = <lt_tmp>
        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.
      IF sy-subrc NE 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDIF.
    Now you have data in the dyn table <lt_tmp>.
    BR,
    Suhas

  • Creation and Change date in T Tables

    Hi
    When entries are made in SAP tables like T001  , T001L ,T001W etc. Creation of company code, plant is there a creation date , change date maintained ?
    Where can i retrieve this information from? Preferbly an SAP table
    -Dexter

    The dates are recorded in tables only if the "Log data changes" checkbox in SE11->Table display -> Technical settings is checked.
    The logs are maintained as documents in CDPOS and CDHDR maintains the date and time.
    If you are creating a Z-Table and want to have such a log, you can create timestamp fields (date and time) and modify at runtime during database update.
    Hope this helps!
    Cheers,
    Shailesh.

  • New tax code creation and assign..?

    Hi gurus
    Can anybody explain me how to create new tax structure and were to assign or configure the same tax tax structure For purchasing ..
    For example,
    service tax structure 12%ecess2%hsecess1% + vat4%..
    Pls guide me ..
    Thanks
    sap-mm

    hi
    1. Define new Condition Types by copying from the existing Condition Types OBYZ
    2. Define new Account Keys by copying from the existing Account Keys
    (Go to spro-> MM -> purchasng ->condition->define price determination process->define transaction and Event key)
    3.go to ur tax procedure and add new condition with account key (acct key will be ur defined acct key) OBYZ
    4 define tax account to ur account key OB40
    5 create tax code FTXP
    then
    for taxinn process
      cretate tax code with out values
    then maintain FV11 for condition type in combination of vendor material and tax code
    for taxinj  
    maintain rates in ftxp
    reward if useful
    regards
    kunal

  • Dynamic component creation and population

    I'm trying to create a page such that , based upon some backing bean, a different component would be rendered and populated based upon a property in that bean.
    For instance
    public class MyBean {
      private int type;
      private String data;
      getters/setters...
    }Say the type can be sex (a radio button component), level of user (selectOne with the values of gold, platinum and silver) or location (a textfield) (these are an example of the type of data--there are many more entries that are of one of these three component types that need to be handled). I have a list of these beans that could go in a dataTable or whatnot, so I'd like to be able to dynamically generate the components. Does anyone have any suggestions or input?
    My guess is a component will need to be returned from the bean that describes how it should be rendered--I'm just looking for a jumpstart on the best way to do this, see if anyone has code snippets, references, etc.
    TIA.
    P.S. Apologies if this is posted twice...some errors when I tried to post this the first time...

    So, are you saying to have all three types of components in a given line of the datatable, wire each up to do have the appropriate values (male/female or silver/gold/platinum) and then have a rendered argument read a bean property such as isRadio, isSelect or isText and just render the appropriate one?

Maybe you are looking for

  • The sound of my iPod 5th generation is no longer working

    The sound of my iPod touch 5th generation is no longer working. I did not drop it or anything like that. I just noticed that the sound was no longer working but when I plug in my headphones I can hear the sound perfectly. I called Apple today and the

  • ADF BC : JMX : ApplicationModule MBean ?

    hi Is there any JMX (Java Management Extensions) MBean available (from Oracle or someone else) that provides information on a running ADF BC application? I think this could be convenient to examine the state (pooling info, object instance stats, quer

  • Net Parameter "keepalive" And Remote Gateway

    Hello,everyone There are some over time connections in the remote gateways monitor,Tcode "SMGW".I used command "netstat -ano | grep 172.27.0.*". Output like this "tcp        0      0 172.59.2.19:3300            172.27.0.203:59454          ESTABLISHED

  • Default Printer Retained In Report

    I have a report that was designed in Crystal Reports on a development workstation and configured to use the system default printer.  When this report is moved to the shared production server and accessed by a user on another workstation through a 3rd

  • Eraser tool in Elements 8 not working

    I just downloaded Elements 8 a few weeks ago. When I try to use the eraser tool, nothing happens. I reset the tool and still nothing. It seems that it doing something because when I go to the Edit menu, I am able to undo the eraser. But I can't see t