Get Layout details during run time of the report

Hi floks,
          We are downloading the ALV ouput data through a customised button. Presently, it downloads all the data from the Internal table that is passing to the function module. But the requirement is it should download only those fields which are in that particular layout selected....Could you please let me know how to get the various fields assigned to that variant at run time...is there any function module to do so..
                                Thanks in advance,
                                    Shyam.

Hi shyam,
                  The layouts are stored in the table LTDX. The function module 'LT_DBDATA_READ_FROM_LTDX' gives the info about the  fields displayed in the using the layout. In the tables paremeter T_DBFIELDCAT the field key1 is  populated with the the fields used in the layout. you just have to poplulate the exportin parameter IS_VARKEY with the report name and variant name . it is similar the entries in the table LTDX.  All these related info about the Layouts can be found in the function group SKBS .  you have to code accordingly once you have the fields used in the layout and download the data.
Hope this helps you.
Cheers,
Ravi.

Similar Messages

  • Is there a way to put TIME as a parameter during run-time of the Disco repo

    Hi All,
    I want to time TIME as a report parameter, so that I can fetch the data within the specific time period. Already we can give the Date as a parameter to fetch the data within the specific date period.
    But I want to fetch the data within the particular time period in a day . Is there a way to give TIME as a parameter in the Disco report.
    Thanks,
    Kamal

    Hi,
    Transaction_date is date field and therefore will have a date and a time component. So when you say "transaction_date between 10.00 and 17.00" do you mean between 10.00 and 17.00 with todays date or do you mean the time part of the date is between 10.00 and 17.00 and the date can be any date?
    If you mean the time part of the date is between 10.00 and 17.00 and any date then follow this workflow:
    1. Set the format mask of a date field, eg. transaction_date using Disco Admin as HH24:MI
    2. In Disco plus/desktop create a start date parameter e.g. sdate based on this date field
    3. In Disco plus/desktop create a end date parameter e.g. edate based on this date field
    4. Create a condition using the transaction date and these parameters:
    TO_DATE(TO_CHAR(TRUNC(:sdate),'YYYYMMDD')||TO_CHAR(TRANSACTION_DATE,'HH24:MI'),'YYYYMMDDHH24:MI') BETWEEN :sdate AND :edate
    5. Unselect any conditions created when the parameters were created.
    You can then enter 10:00 and 17:00 into the parameters and select any transaction date with a time portion between the times in the parameters.
    Rod West

  • How to get the Title and Tcode of a Program during run time

    Hello,
    I am new to abap and I have this question please. Is the a way to get the title, Tcode and Author of a program during run time? I would like to get the name and title of a program or a view or an include during run time.
    Using table TADIR, you can only get the object_name and the author. Is the a way for me to get the Title of the repository object and any Tcode if any is available for the case of a program?
    I loop forward for your respond.
    Thank you.
    Sabina

    You can get it by accessing SYST.
    SY-TITLE for Title
    SY-TCODE for Tcode
    I don't think there is any field in SYST for the Author.
    To get the author name you can use the TRDIR table.
    Regards,
    Naimesh Patel

  • Changing data in the table control during run time of transaction F-28

    Dear Experts,
    in transaction F-28 of second screen of second column (Field Name: Assignment) currently the data is getting from BSEG table and populating this column of table control, now I have a requirement that the data should be get from the other ZTABLE and populate this column during run time instead of the data from BSEG table, please let me know your suggestions, if you guys feel it will be done using User Exit then please let me know the suitable exit for this.
    Best Regards
    Venkat

    Hi Venkat,
    Use the appropriate sort key in the GL to fill up the assignment field automatically.
    U can create ur new sort key through OB16
    Regards,
    Kiran

  • I get an error when I try to trim my string during run-time??

    I am able to get the string inputted in without the trim.. but when i add the trim, the program screws up during run-time..
    i have this in my code...
    input = in.readLine();
    when i put the following afterwards.. it doesn't work:
    input = input.trim();
    what should i do that I am not doing? or what am I doing wrong?

    You don't specify what the error is, if it's a NullPointerException then you just need to check
    if (input != null) {
        String trimmed = input.trim();
        ...

  • HT3275 For the past several days, I have been getting this message during backups: Time Machine could not complete the back up.  The backup disk image "Volumes/Data/iMac.sparsebundle" could not be accessed (error-1).

    For the past several days, I have been getting this message during backups:
    Time Machine could not complete the back up.  The backup disk image "Volumes/Data/bhoppy2's iMac.sparsebundle" could not be accessed (error-1).  When I click on the 'help' icon on the message, it reverts to a blank page, and I cannot find anything online regarding the term 'sparsebundle.'  In addition, I cannot access previous backups any longer. 
    Help?

    See C17 in Time Machine Troubleshooting by Time Machine guru Pondini:
    http://pondini.org/TM/Troubleshooting.html

  • Getting windows error during running the sql scripts from form 6i

    I made a little form application. The purpose of this application is to generate explain plan for a particular SQL. Some sql scripts run internally in order to populate the result on form’s screen after pressing the form’s button but I am getting windows error during running the sql scripts from form 6i.
    I am using forms 6i with patch 17 with Oracle 10G database on windows 2000 professional on same computer.
    This application runs fine with 8i.
    Please inform me where the problem is and how to overcome it.
    Zafri.

    I am using Text_IO in my form's when button press trigger , inorder to create the
    text file, then in the same when button press triger
    I am calling RMAN via host command in order to run the script which was created by text_IO.
    Below you find some of the code. I will appreciate if you solve the problem.
    when button press trigger:
    Declare
    in_file3 Text_IO.File_Type;
    linebuf3 VARCHAR2(1800);
    output11 varchar2(1000);
    BEGIN
         output11:='C:\EXPLAIN_PLUS\misc\rm_file.bat ';
    Host(output11,no_screen);
    :sql.execution_plan:= 'Working........................';
    synchronize;
    in_file3 := Text_IO.Fopen('c:\explain_plus\misc\create_table.txt', 'w');
    Text_IO.Put_Line(in_file3, linebuf3);
    Text_IO.put_line(in_file3,' ');
    Text_IO.put_line(in_file3,' run { sql "create table PLAN_TABLE (statement_id,...object_name varchar2(30),object_instance numeric,object_type varchar2(30),optimizer varchar2(255),search_columns number,id .....partition_start varchar2(255),partition_stop  varchar2(255),partition_id numeric,other long,distribution varchar2(30)) "; } ');
    Text_IO.put_line(in_file3,' ');
    Text_IO.put_line(in_file3,' ');
    Text_IO.FCLOSE(in_file3)
              Declare
    un VARCHAR2(80);
    pw VARCHAR2(80);
    cn VARCHAR2(80);
    output VARCHAR2(1000);
    output2 VARCHAR2(1000);
    dummy varchar2(40);
    in_file Text_IO.File_Type;
    linebuf VARCHAR2(1800);
    BEGIN
         Get_Connect_Info(un,pw,cn);
         /* for Plan_table Begg. Second INNER BLOCK */
         declare
              dummy2 varchar2(40);
         begin
         select table_name into dummy2 from all_tables where table_name='PLAN_TABLE';
         if dummy2 = 'PLAN_TABLE' then
         output2:='rman target/ nocatalog @C:\EXPLAIN_PLUS\MISC\TRUNC2.txt ' ;
    Host(output2,no_screen);
         end if;
         exception
         when no_data_found     then
    output2:='rman target/ nocatalog @C:\EXPLAIN_PLUS\misc\create_table.txt ';
    Host(output2,no_screen);
         end; --

  • How to hide the Parameter field during Run time?

    Hi,
    How to hide the Parameter field during Run time?
    I have a parameter field which behaves differently depending on the User logged in.
    I am using reports 10G
    For ex: I have 3 field created in JSP
    CUSTOMER
    PROVIDER
    FROM DATE
    END DATE
    If the user = 'SUPER show all the parameter
    CUSTOMER
    PROVIDER
    FROM DATE
    END DATE
    If the user is 'GATEKEEPER" Just show
    PROVIDER
    FROM DATE
    END DATE
    Can I do that?
    Please help
    Thanks.
    KK

    hi, i'm not familiar much with JSP. but i think workaround is to create two window one which have 4 fields and the other which have 3. if user is SUPER then call the first screen otherwise if user is GATEKEEPER then call the second screen.

  • Need an option to populate the calculated percentage during run time

    Hi All,
    I have a requirement in reporting , My report out put contains two key figures based on condition it will populate exceptions (green, yellow, Red) .Now i want calcuate Miss percantage (Marked in Red color in expection)
    This Miss percentage to be calculated as per below logic during run time , percentage should populate in out put.
    total no of records in report out put / Miss records (which marked red color in out put)*100
    Regards
    Murali.K

    Hi Murali,
    You need to create three CKF.
    For calculating Red color count, create a CKF and use the Alert level condition which you have used in Exception.
    For Example if your Alert level for red is Value LT 20.
    then "Missed Record CKF" will have ( VALUE < 20) boolean calculation. Hope you aware about it.
    after that create another "Total record CKF" which calculate the number of records by simply keeping 1.
    Then under the third CKF used, SUMGT(Missed Record) / SUMGT(Total Record) * 100.
    Regards,
    Ashish

  • My Prompt back ground colour changes during run time in Client / Server Env

    <p>Dear Friends, </p>
    <p> My Prompt of text items are changing its back ground colour according to the Text item's back colour during runtime. This doesn't look good. My look and feel of my application gets spoiled due to this. I tried with Visual Attribute (both prompt & Text item) but of no use. I don't want to use text label as I want to change the prompt during run time. Please help me. </p>
    <p> Form during Design time </p>
    <IMG SRC="C:\Documents and Settings\Administrator\My Documents\My Pictures\myform1.jpg"></IMG>
    <p>Form during Runtime </p>
    <IMG SRC="C:\Documents and Settings\Administrator\My Documents\My Pictures\myform2.jpg"></IMG>
    <p> Thank you.
    Regards,</p>
    <p>Senthil .A. Perumal.</p>
    <p>My version of forms is Forms [32 Bit] Version 6.0.8.8.0 (Production).
    </p>

    Dear Kevin,
    Yes I agree with you, but in my case as this application supports bilingual (English & Arabic), I want to change the prompt of the text at run time. Can I change the text of boilerplate text at runtime?
    Thank you for your reply.
    Regards,
    Senthil .A. Perumal.

  • Variable Creation During Run Time

    Is there anyway to create new instances of variables during run time based off of user input from a command line prompt. Thnx~!

    Depends what you mean .. if you mean the user can type "a = 8", and it creates a variable "a" with the value 8, then no.
    But you can implement something very similar using a HashMap. Use put("a", new Integer(8)), or whatever, and then get it out later with get("a").

  • How to get sequence name in run time.

    hi
    I have several sub sequence called in the main sequence in TestStand. Those sub sequences have different sequence names, which i wanted to display by string indicator on the Labview Operator Interface. Is there a simple way to show the current calling sub sequence name during run time(run main).
    thanks.
    Message Edited by Appledoll on 07-12-2007 10:12 AM

    Hi,
    The easiest way is to use the NameOf() function. In this case where you wish to get the name of the current sequence the syntax NameOf(RunState.Sequence) yields the name. I attach a very simple example also.
    Getting the Name of Any TestStand Property Programmatically in TestStand
    Hope this helps
    Pelle S
    District Sales Manager
    National Instruments Sweden
    Attachments:
    Get sequence name.vi ‏15 KB

  • Datatypes and names of columns of recordgroup during run-time

    Hi everyone,
    Can you please tell me that Is it possible to get the datatype and name of columns of a recordgroup during run-time or not. So that I don't waste my time in searching for this solution. If you are not getting my question then please let me know but I need this help very badly.
    Thanks
    Subodh

    After  the call of the methods GET_COLUMN_WIDTH or  GET_ROW_HEIGHT
    You need to add this command :
                            CALL METHOD cl_gui_cfw=>flush.
    This will send back from the SAPGUI  to your ABAP program the new values.
    Found in this Thread  : Method GET_ROW_HEIGHT
    Eric

  • MIGO( (good receipt,Transfer pos how to  to get serial number  at run time

    Hi Experrts:-
    I need to change the status of serial number (equipment number ) during Migo (good receipt,Transfer posting).
    I have checked all the user exits and number of badis but i am not getting serial number at run time if i get serial numbar
    in exit od badi i will change the status
    I have used  following badi:-
    MB_DOCUMENT_BADI
    MB_MIGO_ITEM_BAdI
    Thanks

    Hi Dilip,
    If I am correct you are taking about changing user Status at device level (serial number)
    you can set the user status through status profile (Tcode OIBS for particular status profile).
    within this, you can also set/ change the status, if particular business transaction is executed (for e.g. good receipt, Stock transfer)
    Please check if you are using status profile in your case, if not create one, by this way i think you can able to map the requirement.
    Regards,
    Chetan

  • MIGO  to get serial number at run time

    Hi Experrts:-
    I need to change the status of serial number (equipment number ) during Migo (good receipt,Transfer posting).
    I have checked all the user exits and number of badis but i am not getting serial number at run time if i get serial numbar
    in exit od badi i will change the status
    I have used following badi:-
    MB_DOCUMENT_BADI
    MB_MIGO_ITEM_BAdI
    Thanks

    Depending on your needs, you need to put below code in a different UserExit or BAdI :
    types: begin of ty_s_goserial,         "Cfr. INCLUDE 'LMIGOKE1' for 'trx. MIGO
              selected type xfeld,
              serialno type gernr,
              uii type uii_char72,
              subrk type xfeld,
            end of ty_s_goserial.
    data: lt_goserial type standard table of ty_s_goserial with non-unique default key.
    data: ls_goserial like line of lt_goserial value is initial.
    field-symbols: <fs_goserial> like lt_goserial. "type goserial.
    unassign <fs_goserial>.
    "Get the SERIALNOs via trx.MIGO-itabs ('GOSERIAL')
    assign ('(SAPLMIGO)OREF_DETAIL->T_GOSERIAL') to <fs_goserial>.
    loop at <fs_goserial> into ls_goserial.
    "do your checks or whatever ...
    endloop.
    Check the possible 'enhancement points' via break-point in the "CL_EXITHANDLER"-class, method 'GET_INSTANCE' code-line 28 (SY-SUBRC) when running trx. "MIGO". As you can clearly see, this is only applicable when running trx.'MIGO'.

Maybe you are looking for