Experts doubt again

HI
What are the steps to create a dynamic ALV ? can some one help me out.

Its very simple if you understand .
make these declarations
DATA:     L_STRUCTURE   TYPE REF TO DATA,
          L_TABLE    TYPE REF TO DATA,
          STRUC_DESC   TYPE REF TO CL_ABAP_STRUCTDESCR,
          LS_LVC_FIELDCATALOGUE  TYPE LVC_S_FCAT,
          LT_LVC_FIELDCATALOGUE  TYPE LVC_T_FCAT.
FIELD-SYMBOLS :
  <IT_TABLE>    TYPE STANDARD TABLE,
  <DYN_STR>         TYPE ANY,
  <STR_COMP> TYPE ABAP_COMPDESCR.
Then we create the structure dynamically,
Syntax:
Dynamic creation of a structure
  CREATE DATA L_STRUCTURE TYPE (P_TABLE).
  ASSIGN L_STRUCTURE->* TO <DYN_STR>.* Fields Structure
  STRUC_DESC ?= CL_ABAP_TYPEDESCR=>DESCRIBE_BY_DATA( <DYN_STR> ).
We build the fieldcatalog by looping the structure :
LOOP AT STRUC_DESC->COMPONENTS ASSIGNING <STR_COMP>.
  Build Fieldcatalog
    LS_LVC_FIELDCATALOGUE-FIELDNAME = <STR_COMP>-NAME.
    LS_LVC_FIELDCATALOGUE-REF_TABLE = P_TABLE.
    APPEND LS_LVC_FIELDCATALOGUE TO LT_LVC_FIELDCATALOGUE.
  Build Fieldcatalog
    LS_FIELDCATALOGUE-FIELDNAME = <STR_COMP>-NAME.
    LS_FIELDCATALOGUE-REF_TABNAME = P_TABLE.
    APPEND LS_FIELDCATALOGUE TO LT_FIELDCATALOGUE.
  ENDLOOP.
Then we create the dynamic internal table:
CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
    EXPORTING
      IT_FIELDCATALOG = LT_LVC_FIELDCATALOGUE
    IMPORTING
      EP_TABLE        = L_TABLE.  ASSIGN L_TABLE->* TO <IT_TABLE>.
Then its a dynamic select if required we can Use. rest is the same process.
i will give you a link again
http://www.****************/Tutorials/ALV/DynamicALV/Demo.htm

Similar Messages

  • Hi experts doubt real time environment

    hi abapers could u please guide me
    could please give me correct examples
    userid                      :
    system id                :
    requestnumber         :
    devlopmentclient no  :
    quality serverno        :
    produaction no         :

    Hi Sayeed,
    User ID: It is ID created by the system administrator.Genarlly they follow some
                 standard for this.My company follow it as Last name + first Character
                 of Name So,I become RAJANN
    System ID: This is system id again assigned by Basis team(system people).Generally,it denotes the system number in whole landscape if you have same kind of instance.Suppose you have three same kind of system ,you can put it as 01,02,03 etc.
    Request Number: This is a request number assigned for making any changes in system.It is just like a number using which you can track the changes made in system in terms of development or any configurational changes.These number are transported from one system to another system.
    SAP ask to apply atleast three environement.
    DEV-Development system where all changes are done and you create transport  request here in terms of development & Configuration.
    QAC:Transport are moved into QAC system.In QAC system you do testing of the object and do quality check.
    PRD-Production system is one where all transaction and other activity of enterprise happen .
    So a transport request move changes from DEV->QAC->PRD using request number.
    Quality server number: This is just like IP address ,a number assigned to your system,it is like address of your system in entire network landscape.For understanding purpose you can assume this system as simple computer and all computer have some IP address so Quality server number will also have some IP address and this refer exactly that.
    Production System: It is exactly as explianed above.
    Regards,nishant
    Please reward points if this helps

  • Hi experts doubt in dictionery

    what is lock object, types of lock objects, how we can create lock object could you please send steps for creation.
    what is match code object and search help types of search helps how we can create could please send steps.

    Hi,
    How many types of lock objects?
    How to create Lock objects?
    What is the main use of it in real time?
    Lock objects are use in SAP to avoid the inconsistancy at the time of data is being insert/change into database.
    SAP Provide three type of Lock objects. 
    - Read Lock(Shared Locked)
       protects read access to an object. The read lock allows other  transactions read access but not write access to 
       the locked area of  the table
    - Write Lock(exclusive lock)
       protects write access to an object. The write lock allows other  transactions neither read nor write access to 
        the locked area of the  table.
    - Enhanced write lock (exclusive lock without cumulating)
      works like a write lock except that the enhanced write lock also  protects from further accesses from the 
      same transaction.
    You can create a lock on a object of SAP thorugh transaction SE11 and enter any meaningful name start with EZ Example EZTEST_LOCK.
    Use: you can see in almost all transaction when you are open an object in Change mode SAP could not allow to any other user to open the same object in change mode.
    Example: in HR when we are enter a personal number in master data maintainance screen SAP can't allow to any other user to use same personal number for changes.
    Technicaly:
    When you create a lock object System automatically creat two function module.
    1. ENQUEUE_<Lockobject name>. to insert the object in a queue.
    2. DEQUEUE_<Lockobject name>. To remove the object is being queued through above FM.
    You have to use these function module in your program.
    for more info
    http://help.sap.com/saphelp_nw04s/helpdata/en/41/7af4c5a79e11d1950f0000e82de14a/content.htm
    for
    Regards
    Shiva

  • RFC experts : doubt

    Hi,
    I am using a frontend with multiple logon IDs to call an RFC with a single SAP user ID (for spool job creation).
    Now ths issue is :
    When a single front-end(non sap) user logs in and does the process of sales order/deliver creation/sapscript/pdf conversion/ftp to web server a single PDF document is obtained.
    When two or more front-end users simultaneously hit the button for the process of sales order/deliver creation/sapscript/pdf conversion/ftp to web server, then the pfd get merged with the two or more documents.
    The first process after hitting the button for the process of sales order creation is the call to an RFC.
    Maybe there is a process to make the user 2 wait until user 1 has called RFC and the entire process is over. How can this be achieved in ABAP/4.
    WAIT UP TO 10 SECONDS. will not work because effectively user A and B will be a few micro seconds away from each other. Is there any other process to delay the RFC call.The front-end call to RFC is supposed to be synchronous.
    Any pointers to the solution.Thanks.

    Hi SV,
    This problem seems to be problem of locking. Lock the program for further access until a user has executed it. as you mentioned WAIT is not a good idea. Create a Lock Object and use the FM ENQUEUE and DEQUEUE, associated with it to achieve the functionality.
    Thanks & Regards,
    Goutham.

  • Query doubt again

    Hello Friends,
    SET SERVEROUTPUT ON;
    DECLARE
    vMemName VARCHAR2(100) DEFAULT '';
    vName VARCHAR2(100) DEFAULT '';
    BEGIN
    FOR I IN (SELECT EMAIL FROM MYTABLE WHERE ID <10)LOOP
    IF vMemName IS NULL THEN
    vMemName := I.MEM_EMAIL;
    ELSE
    vName := CONCAT(CONCAT(vName,','),vMemName);
    END IF;
    END LOOP;
    DBMS_OUTPUT.PUT_LINE('The Name :'||vName);
    END;
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at line 9
    y?..What's the wrong here ?

    Hmm, I think it would be better to limit it:
    SELECT SUM(length(EMAIL )) + count(EMAIL ) - 100 FROM MYTABLE where id < 10
    (this is trying to find the amount you'll need to extend your variable by)

  • Q&A with the SharePoint MVP Experts Chat On Oct 29th @1pm EST or 10am PDT

    Hello everyone
    We are launching our SharePoint MVP Expert Chats again!  Have questions about SharePoint 2010 or 2013? 
    Or SharePoint Online? Office 365?  Please join us October 29th at 1pm EST or 10am PDT where you can have your questions answered live! 
    We will be using the Reddit Ask Me Anything format.  This is new to us but many of Microsoft teams are using this medium now. 
    Please create a Reddit account beforehand so you can be ready to ask questions. 
    More information on the chat and room location will be available on Oct 29th in the SharePoint forum. 
    Hope you can join us!
    Melissa Travers
    SharePoint MVP Community Program Mgr.
    https://www.reddit.com/r/sharepoint
    Melissa Travers, SR. MVP Lead. Please do not send email directly to this alias. This alias is for forum purposes only. This posting is provided "AS IS" with no warranties, and confers no rights.

    maybe OP want to extract all numbers from his inbox using regular expressions?

  • Reg:How to delete the column in table control also from database table.

    Hi Experts,
    Once again thank u all for giving the responses.
    one more doubt is how to delete the columns of table control and also the record shold delete from ztable.
    With Regards,
    Saroja.P.

    Hi,
    If you want to delete the rows in the table control and simultaneously delete it from the database table, then you can implement a 'DELETE' functionality specific to your table control. Have a MARK field (you will find that in the screen attributes of the table control -> give a name for the MARK field, you will find an additional MARK column at the beginning of your table control). You can check whatever rows you want to delete from the table control, call the delete module.
    "This portion of code inside the LOOP...ENDLOOP.
    IF sy-ucomm eq 'F_DELETE'.
       gt_itab2-check = mark.  " Store the MARK field status into your internal table's correspoding field 'check'
      MODIFY gt_itab INDEX tabcontrol-current_line.
    ENDIF.
    iF sy-ucomm eq 'DELETE1'.
      DELETE gt_itab WHERE check eq 'X'. "Your internal table does not have rows that you want to delete
    ENDIF.
    Now you can modify your database table using the MODIFY statement.
    MODIFY ZDB FROM TABLE gt_itab.

  • Update data from cube to cube in BW 3.5

    Dear Experts,
            Can we update data from one cube to another cube in BW 3.5. i tried it, I created the connection between two cubes as i did in ods to cube through update rules but there is no option like in ods to send the data(update dso data to data targets).Please help me on this.

    hi arvind,
           Thanks, but i have some doubt again, i did it and also data transfered to the second cube, but after creating the connection i went to bi7 in infosource and there i found that cube name starting with 8(cube name), but my question is can i do it in bw3.5 without going to rsa1.

  • How to query on User object in a workflow ?

    Hi experts,
    I want to email users 1 week before the password expired.
    For this Icreate a workflow in which I will query for the users who will expire in x days.
    My problem is that the field on which I want to query (Waveset Password Expiration date ) is not an attribute thus I think that's not possible to set it as queryable attibute.
    My question is :
    How can I query users based on the "paswordExpiry" ????
    Would be appreciate if you can help me .

    Try to make use of the deferred task...
    The description goes below how implement it....
    While creating the user add a deferred task .
    Here there are 2 things to Remember.
    1) The task which u want to run (here which sends emails to the User)
    2) the Date on which u want to run this task as a deferred task.
    So give the task name as the task which will be able to send emails to the users.
    and for the date( when u want the deferred task should run) calculate the date from the Users attribute passwordEpiry (i.e subtract one week from the User attribute passwordExpiry , U can access this attribute by cheking out the User view and then checking in)
    And finally schedule the deferred task scanner to be run everyday at some particular time to run the deferred task( i.e sending Emails task)
    So that no need of any manual interaction now..
    I believe this will solve ur purpose,If u get any doubt again post a reply for this mesg ok

  • Configuration of Waiting List in T&D 4.6

    Hi Experts,
    Once again I need a help.
    Could you, please, tell me where can I change the pre-configuration of the maximum number of accepted attendees in an event Waiting list?
    I am still in doubt if this is possible to do, but I expect it is.
    Tks in advance,
    Elisa Santos

    Tks Dilek.
    Very curious becouse despite the value in this entry is 20 my waiting lists still accept only 1 atendee.
    I still don't know the reason of this behaviour, but your answer was very helpful!
    Tks a lot.
    Regards,
    Elisa

  • Convert English to Thai Language

    Hi everyone.
    Is there anybody know how to convert English word to Thai ???
    I very tired searching and asking.
    Let say I want to convert a name Uthit to Thai.
    Any one who expert or Thai people.
    Thanks
    Regards
    hairi

    Once more, don't call it translation. It will only confuse the issue (and everybody trying to help you).
    The code you post has to do with yet another concept, that of character encoding conversion from one encoding to another. Two issues with that code:
    1. It will not work correctly for conversion from one encoding to another because it attempts to convert between incompatible encodings (do not cover the same character set). And ISO8859-7 covers Greek, as far as I know, so I don't know why that would be useful in connection with Thai.
    2. It will never do any kind of transcription or transliteration.
    But since you now bring encoding conversion into the mix via your code example I am in doubt again about what you want to do. And it looks as if you don't understand the various terms used with respect to this whole internationalization area. That makes it difficult to help you.

  • Two SCM Systems connected to one ERP System

    Hello Experts,
    Here again I got a doubt.
    Is it technically possible to connect two SCM Systems via CIF to one ERP System?
    Because I heard that we could connect more than one ERP System to one SCM System, but not vice versa.
    If you have seen a system in production like this, what are the pros and cons of having such a scenario?
    Expecting your valuable replies!
    Thanks and Best Regards,
    Suresh

    Hi,
    technically it's no problem to connect two or more SCM systems to the same ERP system. We have one for DP/ PP/DS, one for EWM and one for SNC connected to the same R/3 systems. You however might get problems with the bom explosion for planned orders being sent from SCM to R/3.
    The bom explosion uses field MARC-APOKZ which is maintained automatically by CIF. If there are multiple SCM system using CIF for product master data the field might not be set up correctly and the bom explosion could be wrong.
    As a solution SAP provided OSS note 1576703.
    Regards.
    Hubert

  • Does anyone know how many kilobytes pixie plus runs??? i want to use the hotspot feature for netflix and playstatio​n3...i need to know before i sign up and spend money on it! thank you

    i need to know if palm pixie plus runs with 500 kilobytes or more  please some one HELP MEEEE
    Post relates to: Pre Plus p101vzw (Verizon)

    Sorry, your question isn't very clear... What are you asking?
    - what storage capacity does the phone have?. (8gb, 7 available to user)
    - will the phone run if it has only 500kb free?. (doubtful)
    - is it possible to stream netflix through your Pixi to your PS3? (doubtful again).  You would have to be getting a strong 3g signal and then figure out how to get netflix to work. 
    If I were you, I'd search for this answer over at PreCentral.net.  I got zero hits for "Netflix" in the Pixi board.  Many users were using "FreeTether" instead of the VZW app.
    WyreNut 
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Enhance EC85/EC86 Transaction for Additional Fields

    Dear Experts,
    Is there any option available in BDT to enhance EC85/EC86  transactions for addition of new fields.
    (The same data need to be used in BW reporting with out doing any further enhancments once after implementing this)
    Thanks in Advance.
    Best Regards,
    Rajani Kanth

    Thnx Andreas,
    i have following doubts again..
    I have to add sales organisation field to the selection screen...(this is given in the req.)
    now if i will say GET KNKK...it would not keep account of this 'sales organisation' field...so how should i fetch the data with these input data( i.e. 'compny code' and 'customer' are the fields given by LDB and 'sales oraganisation' is the field i put it on the selection screen)
    And what about the KNVV-VKORG ,because the KNVV is not present in the LDB.

  • Updated iPad2 to iOS 6 and lost all pictures and videos

    I updated my roomate's iPad 2 days ago, following the instructions of a friend with years of Apple experience.
    He explained that I would need to install iTunes on my laptop (a newer Asus running Win7) and that just plugging the iPad in would start an automatic process of backing up and updating.
    Being from the PC world, I wanted to make sure we would be safe. I asked if I needed to copy pictures to my laptop or pc first, and he said that iTunes defaults to backing up first, then running the update.
    Of course this makes sense, but erring on caution, I was very specific in wanting to make absolutely sure.
    So I get the laptop ready. I plug in the iPad, it's immediately discovered and a window pops up saying there is an update for the iPad, and would I like to update now.
    I pressed the button yes, or ok, I don't remember exactly what the vernacular was.
    The lengthy process began.... with a status bar and activity..... took about 20 minutes.
    After it was done, it said so. I don't remember the dialog box wording at that point exactly.
    I pushed the home button on the iPad and it had the normal grey lock screen, opened it, and all of her apps were there, her email showed she had email,
    but when i looked in the pictures folder, it was empty.
    Thought perhaps they would appear later from iTunes. ( I didn't know at this point that she had never backed up or used iTunes for anything other than the initial activation and for her old iPhone that died several months ago)
    Called my Apple friend, he said maybe I unplugged the iPad before it was able to restore things to the iPad.
    So I started iTunes, attached the iPad , right clicked on "Tiffany's ipad" and went into the Backup section. There it says that the iPad was never backed up on this computer in bold text. And the option to restore from backup is grayed out.
    I call my expert friend again. He has me look for backup files on the laptop, utilizing an application called 'iExplore'. went to 'device' section and there is a box that will show all backup files found on the pc. That box was empty.
    What's tragic, is, this poor lady, unbeknownst to me, had been using her iPad as a picture and video dump for ALL of her child's pictures and vids for over a year. Without telling me. She is not a technical person.
    Had I known this, I would have backed it up manually myself, before the update and all along. I would have made her do it. But I had no idea. I assumed she was plugging it in to her Dell Laptop.. but she never did.
    I've run 2 'recovery' programs I got from online that scan for deleted files, but they don't show any of the hundreds of pictures and videos she had, Im sure because it was wiped, not deleted. 
    All attempts to locate a large backup file on my laptop have come up empty.
    She is extremely and unbelievably broken up about this, as am I. I'm furious with Apple for not making the BACKUP stage of the process more tenacious, and with more pop up warnings so that this kind of thing cannot happen. Had I seen that, I would have used an application to MANUALLY copy her stuff.... even though at the time I had NO IDEA she was using her iPad as her ONLY repository for all of her precious media.
    Folks, this is a life changing horror for her, and me. I love this woman's little boy as my own, and as a single mom, she was depending on me as a friend in this matter. If I cannot retrieve these images and vids, I fear she will never forgive me, as I'm the 'tech guy' who always has had the answers for everything in the past, and failed her on the most important tech issue in her life, her little boy's life in pictures.
    Please, where can I send this iPad for forensic recovery of these images.
    I've powered the iPad down until further notice to avoid writing additionally on the internal flash memory.
    Thanks,
    Lu Johnson

    Doesn't sound like you have iCloud? If not, then no, you are out of luck....
    GB

Maybe you are looking for