Record contents of variables

Dear Friends,
do you know a way how to achieve this.
Record contents of the processed variables e.g. of a report or program.
Assume any report has been performed and there is a way to record or store
all its variables for evaluating .
If it is not possible by abap maybe there is a way to solve it with system calls.
I mean  same as like CALL 'ABAP_CALLSTACK  but only for variables. Maybe there is a
system call something like CALL ABAP_STACK_VARIABLES.
Kindly Regards
Alex

and list of global variables of a program:
REPORT z_write_global_variables.
PARAMETERS progname TYPE program DEFAULT 'SAPLSALV'.
START-OF-SELECTION.
  PERFORM write_global_variables USING progname.
*&      Form  find_global_variables
FORM write_global_variables USING progname TYPE program.
  DATA lo_prog TYPE REF TO cl_abap_compiler.
  DATA lt_types TYPE scr_rtags.
  DATA ls_types TYPE LINE OF scr_rtags.
  DATA lt_result2 TYPE scr_glrefs.
  DATA ls_result2 TYPE scr_glref.
  DATA lt_grades TYPE scr_grades.
  DATA ls_grades TYPE LINE OF scr_grades.
  CREATE OBJECT lo_prog
    EXPORTING
      p_name = progname.
  ls_types-sign = 'I'.
  ls_types-option = 'EQ'.
  ls_types-low = cl_abap_compiler=>tag_data.
  APPEND ls_types TO lt_types.
  ls_grades-sign = 'I'.
  ls_grades-option = 'EQ'.
  ls_grades-low = cl_abap_compiler=>grade_direct.
  APPEND ls_grades TO lt_grades.
  lo_prog->get_all_refs(
        EXPORTING
          p_local = 'X'
          p_types = lt_types
          p_grades = lt_grades
        IMPORTING
          p_result = lt_result2 ).
  DATA l_start TYPE string.
  CONCATENATE '\' cl_abap_compiler=>tag_program ':' progname '\'
        cl_abap_compiler=>tag_data '*' INTO l_start.
  LOOP AT lt_result2 INTO ls_result2 WHERE full_name CP l_start.
    WRITE / ls_result2-full_name.
  ENDLOOP.
ENDFORM.                    "write_global_variables

Similar Messages

  • Content of Variable

    Hi Expert,
    I want to see content of variable , but no result by
    "dbms_output.put_line" when exec procedure.
    CREATE OR REPLACE PROCEDURE ms_alert_custbr (p_altcd varchar2) IS
    v_altcomp msaltinval.ms_alt_comp%type;
    v_altinval msaltinval.ms_alt_inval%type;
    v_altstf msaltctc.ms_alt_stf%type;
    v_mailadd varchar2(100);
    v_emailadd varchar2(32767);
    v_smail1 varchar2(50) := '/usr/local/bin/sendEmail -f [email protected] -t ';
    v_smail2 varchar2(85) := ' -u "SendEmail Test" -s 123.123.123.123:25 -m "test" -a /u03/oradata/msdev/tempfile/';
    v_fname varchar2(26) := v_altcomp || '_custbr.xls' ;
    v_smcmd varchar2(32767) ;
    CURSOR c_altinval IS
    SELECT ms_alt_comp,ms_alt_inval
    FROM msaltinval
    WHERE ms_alt_cd = p_altcd ;
    CURSOR c_altctc IS
    SELECT ms_alt_stf
    FROM msaltctc
    WHERE ms_alt_cd = p_altcd and
    ms_alt_comp = v_altcomp ;
    BEGIN
    OPEN c_altinval;
    LOOP
    FETCH c_altinval INTO v_altcomp,v_altinval ;
    ms_alert_custbr_crexls(v_altcomp,v_altinval);
    v_emailadd := NULL;
    OPEN c_altctc ;
    LOOP
    FETCH c_altctc INTO v_altstf ;
    SELECT ms_email_add
    INTO v_mailadd
    FROM msstaff
    WHERE ms_staff_cd = v_altstf ;
    v_emailadd := v_emailadd || ',' || v_mailadd ;
    EXIT WHEN c_altctc%NOTFOUND;
    END LOOP ;
    CLOSE c_altctc ;
    dbms_output.put_line(v_emailadd);
    v_smcmd := v_smail1 || v_emailadd || v_smail2 || v_fname ;
    dbms_output.put_line(v_smcmd);
    Host_Command (p_command => v_smcmd) ;
    EXIT WHEN c_altinval%NOTFOUND;
    END LOOP;
    CLOSE c_altinval;
    END ms_alert_custbr ;
    boris

    > Besides, above procedure is ok or not ? somewhere need to improve ?
    Most definitely not okay.
    By coding a nested cursor fetch loop you are trying to re-invent an SQL join (a nested loop join to be specific) in PL/SQL. The SQL engine is very well capable of doing that without any outside assistance.
    SQL is by far superior in this regard. Join the tables in SQL. Do not code manual joins in PL/SQL.
    When fetching data in PL/SQL, consider using bulk collect to increase loop performance by reducing context switches from the PL/SQL engine to the SQL engine.
    This code suffers from a typical (and very wrong) approach to databases that consider the database a bit bucket. The database is nothing but a file cabinet of sorts for the persistent storage of rows. SQL is then used as I/O routines to read and write records. Why treat the database as a flat file?
    This approach stems from the 80's when we used COBOL and dealt with sequential files like ISAM. It has no place in the 21st century when dealing with the modern database.
    Something that I seem to be repeating on a daily basis here in this forum:
    1. Maximise SQL.
    2. Minimise PL/SQL (or Java or Delphi or VB or C or C# or whatever)
    SQL is the fastest and most powerful language to crunch database data. Use it to its full capability.

  • Can not view contents of variable in debug mode (version 1.1.1.5.0)

    Hi
    I am running on WebLogic 11R1 and using OEPE 1.1.1.5.0.
    When Fast swap is enabled and I run WebLogic in debug mode using OEPE I can not view the contents of variables with the Eclipse debugger. I get the message "Expressions must contain either an expression or a block containing a well formed statement"
    However, if I disable Fast swap, i can view the variable within the Eclipse debugger
    Has anyone else had this problem?
    Regards
    Steve H

    Small correction... the soon-to-be-released version of WebLogic Server that Danny was referring to is 11gR1 PatchSet 2 or 10.3.3.

  • How can I record content FROM an iPad and then publish it back to an iPad?

    Everything I search for talks about pushing content out to an iPad, but what if I want to capture/record content from an iPad? I am trying to do a software simulation, rather than a straigh record.
    I did find a third party application called Reflection that allows me to mirror, or reflect, the iPad onto my computer. The problem is that due to the way the content transmits from the iPad, I would have to manually capture each screen and corresponding action within Captivate.
    Any advice on on this?

    Hello,
    Welcome to Adobe Forums.
    I am not sure about the 3rd Party Application but if you can create a .mp4 video of your IPAD simulation then you can insert that video in Adobe Captivate 6 as a Slide Video.
    Thanks,
    Vikram

  • How do I copy the DVR recorded content to Laptop or any external drive.

    How do I copy the DVR recorded content  to Laptop or any external drive. Pl suggest.
    Thx.

    It is awkward but I have a Coax line out the DVR that goes to my Media Center Computer (which has the same multimedia software that is built into Vista) and then to my computer's TV tuner. (This is the same line out function that you use to send the DVR output to a VCR) Using my Media Center software, I can play the recorded DVR program and record that on my computer. Once in the computer, I can transfer the file by my wireless network to my laptop. It is a bit convoluted and requires a computer with a TV Tuner to record the program, but it can be done if I really want the item recorded to the computer.

  • Deploying the UPK recorded content in Peoplesoft Weblogic server.

    Hi,
    I have  Peoplesoft UPK recoded content with me and also have document for configuring help menu with the UPK content.
    It's appreciated If some one can help me in knowing steps (or) any documents for deploying the UPK recorded content in Peoplesoft Weblogic server.
    Also I don't want to install PeopleBook in the weblogic server.
    Thanks
    Soundappan

    There are two out of the box ways to enable UPK with PeopleSoft.
    PeopleBooks > PeopleTools 8.52: PeopleTools Portal Technologies > Configuring UPK Topics as Related Content Services
    PeopleBooks > PeopleTools 8.52: PeopleSoft Application Designer Developer's Guide > Configuring Embedded Help to Display UPK Content
    Hope this helps.
    Regards,
    Hakan

  • Evaluate the content of variables

    Dear Experts,
    is it possible to evaluate the content of variables (values) from a report (program, function module) with transaction SE30.
    Kind Regards
    Marco M.

    John Jakabcsin wrote:
    Marco,
    >
    .... then the only way yo expose them to write code to show their values.
    How is this possible?
    Regards
    Marco

  • Line separator to get multiple records in one variable

    Hi Experts,
    I have a requirement where i need to get data in the below form , in exactly one variable.
    Invoice No.       Inv. Date      Voucher   Gross Amount    TDS Amount     Discount    Paid Amount  
    986013092,17   04/08/2010    00091217   32415.00            .00                 .00          32415.00
    Bharti Infot      27/07/2010     00091230   19600.00            .00                 .00          19600.00
    9860442689    04/08/2010       001247     47374.00            .00                  .00         47374.00
    2031565000,2031565000Total Amount     99389.00             .00                  .00         99389.00
    As of now, I have written the following,
    loop at lt_merge into ls_merge.
      lv_skfbt  = ls_MERGE-SKFBT.
      lv_budat  = Ls_MERGE-budat.
      lv_wskto  = Ls_MERGE-wskto.
      lv_wrbtr  = Ls_MERGE-wrbtr.
      lv_WT_QBSHB = ls_merge-WT_QBSHB.
    concatenate invoice_id
                ls_merge-BELNR
                lv_BUDAT
                ls_merge-XBLNR
                lv_skfbt
                lv_wt_qbshb
                lv_WSKTO
                lv_wrbtr
    into invoice_id separated by space.
    endloop.
    which gives me one row of the table where, invoice_id stores my entire one record as a string. My question is how do I proceed with separating the lines if I have multiple records?
    Thanks in advance..
    Regards,
    Trishna

    HI
    choose some character that will be not use in your data for example '|' vertical separator. You will get string:
    invoice_id  = line1 | line2 | line3 |.....
    loop at lt_merge into ls_merge.
    lv_skfbt = ls_MERGE-SKFBT.
    lv_budat = Ls_MERGE-budat.
    lv_wskto = Ls_MERGE-wskto.
    lv_wrbtr = Ls_MERGE-wrbtr.
    lv_WT_QBSHB = ls_merge-WT_QBSHB.
    concatenate invoice_id
    ls_merge-BELNR
    lv_BUDAT
    ls_merge-XBLNR
    lv_skfbt
    lv_wt_qbshb
    lv_WSKTO
    lv_wrbtr
    into invoice_id separated by space.
    new code
    concatenate  invoice_id '|' into invoice_id
    endloop.

  • FILE CONTENT CONVERSION/ VARIABLE SUBSTITUTION

    Hi Experts,
    I have a reciver file which should have
    HEADER
    field 1
    field 2
    DETAIL
    field 1
    field 2
    TRAILER
    field 1
    field 2
    My reciever structure is
    HEADER
    field 1
    field 2
    DETAIL
    field 1
    field 2
    TRAILER
    field 1
    field 2
    TEMP
    field 1
    I am using TEMP field1 only for variable substitution and do not want
    it to be written to file. How can i use it in FCC.
    Pl. Help
    Akhil

    Hi,
    Plz do refer the folowing links:
    Sender -
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    Key value:
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter -
    TAB delimited
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    NAB the TAB (File Adapter)
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    Receiver FCC no need of Endseparator
    /people/shabarish.vijayakumar/blog/2007/08/03/file-adapter-receiver--are-we-really-sure-about-the-concepts
    Regards,
    Vinod.

  • Mail rule message content as variable

    I run a minecraft serer, and i need a way to promote a player when they fill in a form on the website. Every time a player filles in the form, I get an email like this:
    New application for member:
    Naam:  <name of the pearson>
    Username:  <minecraft username of the person>
    Skype naam:  <skype name of the person>
    E-mail:  <email of the person>
    Nieusbrief:  <Whether they want to get the newsletter or not>
    I know there is a way to setup a mail rule that runs an applescript, and from that I can run a shel script, but is it posible to feed the playername to the shel script script as a variable? So from the mesage body to the apple script, and from the apple script th the shel script. First problem I face is getting the username to the apple script. Then there is the second problem: I know there is an run-shel-script thingy, but i'm not sure how to pass the variable on from the apple script to the shel scrip. (I don't have anny experience with apple scripts...)
    Anny help is appreciated.

    Hi Stefan,
    Thanks for your reply.  I am glad to hear that I am wrong again )
    In your opinion is it possible to force the Outlook Exchange server to add the content attachment every time?  I mean by doing some configuration on it...?
    The reason why we would like to do this is because when - in the content tag of a Mail Package message - we have MIME message parts that are of content-type text/html we are having problems in decoding the html back to a readable format.
    To do this we use the apache QuotedPrintableCodec Java class.
    This works fine when the content type of the message is just text/plain but we get an exception when we try with text/html.
    The exception we get is:
    org.apache.commons.codec.DecoderException: Invalid URL encoding: not a valid digit (radix 16): 13
    I don't know if this is because of the two character sets we have in the payload (utf-8 and iso-8859-1) or if it is for other reasons...
    If you could help me figure out how to forward any HTML email to another system in a readable format it would be great.
    Thanks for your support,
    Aldo

  • Selecting record from a variable table

    Hi,
    I need to display the records from a table and the table name is saved in a variable. I am writing the code like
    create or replace procedure test_col as
         t_name VARCHAR2(40);
         V_ID VARCHAR2(10);
         cursor c_table is SELECT TABLE_NAME FROM ALL_TAB_COLS WHERE COLUMN_NAME = 'E_ID';
    begin
         OPEN C_TABLE;
         LOOP
              FETCH C_TABLE INTO T_NAME;
              EXIT WHEN C_TABLE%NOTFOUND;
              DBMS_OUTPUT.PUT_LINE(T_NAME);
              SELECT E_ID INTO V_ID FROM T_NAME;
              DBMS_OUTPUT.PUT_LINE(V_ID);
         END LOOP;     
    CLOSE C_TABLE;
    end;
    Its giving the error as table name doesn't exist. Its taking t_name as the table name but i wan to use the value saved in that variable as the table name;
    Any help..
    Thanks
    Ashish

    CREATE OR REPLACE PROCEDURE test_col
    AS
       t_name   VARCHAR2 (40);
       v_id     VARCHAR2 (10);
       CURSOR c_table
       IS
          SELECT table_name
            FROM all_tab_cols
           WHERE column_name = 'E_ID';
    BEGIN
       OPEN c_table;
       LOOP
          FETCH c_table
           INTO t_name;
          EXIT WHEN c_table%NOTFOUND;
          DBMS_OUTPUT.put_line (t_name);
          EXECUTE IMMEDIATE 'SELECT e_id FROM ' || t_name
                       INTO v_id;
          DBMS_OUTPUT.put_line (v_id);
       END LOOP;
       CLOSE c_table;
    END;
    /

  • Read a file content into Variable

    Hi There,
    I've a file in Unix and the content of it need to be assigned to an ODI variable. How can I do it?
    Regards.
    -Bhavani

    Step 1. ODI procedure .
    Command on Target - Java bean shell.
    import java.io.BufferedReader;
    import java.io.FileNotFoundException;
    import java.io.FileReader;
    BufferedReader br = new BufferedReader(new FileReader("C:\\test.txt" ));
    String strLine = br.readLine();Step 2
    Create variable and add
    SELECT '<@=strLine@>' from dual This particular code will read only first line and pass into variable.

  • How to Install Business Content BEX Variables.

    Hi Experts.
    i want to install all the standard bex variables
    (exits, formulas) available in business content.
    when i go to the business content i see lot of variables
    of 0CALDAY which one to install ?. and even after installation of all none of them seem to appear in the BEX query designer?.
    Is there anything am missing?
    Thanks,
    Hari Anand.

    Hi,
    A little correction to Aby's reply.
    You don't have to have something like Billing date mapped to 0CALDAY in transfer rules.
    It's enough to have just 0CALDAY.
    The other dates (if you need them), like billing date, receiving date etc. are created as A REFERENCE TO 0CALDAY.
    It means that to all derivative dates you may apply variables created on 0CALDAY.
    You may not see all variables installed from a business content. -- Some variables are created on a particular infoobject and you can see those variables in the left panel, beneath this infoobject.
    There are also text and formula variable that might be independent from infoobjects. You can see them while creating a formulas in structures.
    Best regards,
    Eugene

  • Need to view all records with two variables in recordset

    Hi - My recordset has two variables used to sort products by popularity and type.  But I want a "View all" link that shows all records, in ascending order, regardless of popularity or type.  At the moment the .php page is set up to receive either the popularity (varPopular) variable or the product type variable (varGrouping).  If neither variable is provided, no products appear on screen.  How do I set up the recordset to allow for all records to be displayed?  Thanks for your help!
    [CODE]
    $varPopular_Recordset1 = "n";
    if (isset($_GET[popular])) {
      $varPopular_Recordset1 = $_GET[popular];
    $varGrouping_Recordset1 = "1";
    if (isset($_GET[grouping])) {
      $varGrouping_Recordset1 = $_GET[grouping];
    mysql_select_db($database_connGiavan, $connGiavan);
    $query_Recordset1 = sprintf("SELECT crystal_colors.cystalid, crystal_colors.displayname, crystal_colors.imagename, crystal_colors.popular, crystal_colors.`grouping` FROM crystal_colors WHERE crystal_colors.popular=%s OR crystal_colors.grouping=%s", GetSQLValueString($varPopular_Recordset1, "text"),GetSQLValueString($varGrouping_Recordset1, "int"));
    $Recordset1 = mysql_query($query_Recordset1, $connGiavan) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $varGrouping_Recordset1 = "$_GET[grouping]";
    if (isset($_GET[grouping])) {
      $varGrouping_Recordset1 = $_GET[grouping];
    $varPopular_Recordset1 = "$_GET[popular]";
    if (isset($_GET[popular])) {
      $varPopular_Recordset1 = $_GET[popular];
    mysql_select_db($database_connGiavan, $connGiavan);
    $query_Recordset1 = sprintf("SELECT crystal_colors.cystalid, crystal_colors.displayname, crystal_colors.imagename, crystal_colors.popular, crystal_colors.`grouping` FROM crystal_colors WHERE crystal_colors.popular=%s OR crystal_colors.grouping=%s", GetSQLValueString($varPopular_Recordset1, "text"),GetSQLValueString($varGrouping_Recordset1, "int"));
    $Recordset1 = mysql_query($query_Recordset1, $connGiavan) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    ?>
    [Moved to Dreamweaver Application Development forum by moderator]

    To start with, you should be aware of the fact that you have the same recordset code twice in your page.
    You'll find an article that explains how to build a SQL query to do what you want here: http://cookbooks.adobe.com/post_Create_search_query_with_optional_fields-16245.html.

  • Audio Streamer Recorder content directory failing upd

    Trying to update content directory. Keeps failing. Firewall etc off. Any suggestions?

    If I remember correctly:
    original Audio Stream Recorder came with my (old) Audigy2
    Audio Stream Recorder 2 came with my (not too old) Zen USB 2.0
    When I get home on the weekend, I'll see if I can rip the app from the Zen's CD. Let me know if this is of interest to anyone here.<SPAN class=time_text>
    <SPAN><B><SPAN>macattak</B>
    <SPAN>I would like to record from a radio station on line. Can I still or actually do this?
    <SPAN>------------------------------------
    I would try using Media Source recording source "What you hear." Note that there is no timer to automatically start/stop the recording.
    Message Edited by johnston2 on -30-2005 09:08 PM

Maybe you are looking for

  • How to set cell background color for JCheckBox renderer in JTable?

    I need to display table one row with white color and another row with customized color. But Boolean column cannot set color background color. Here is my codes. import javax.swing.*; import javax.swing.border.*; import javax.swing.table.*; import java

  • 10.5.6 update has completely killed audio editing and burning capabilities

    So I ran the 10.5.6 update last night 12/19/2008. I downloaded the update to a flash drive and copied it to my desktop (My Macmini isn't connected to the Internet). I ran the update, and everything seemed to be OK. It was late at night so I went to b

  • Toshiba Dvd Player not working with Windows 7

    Not sure if this is the right place to put this, since I upgraded to windows 7 the Toshiba DVD Player is not working, I click on it and nothing happens, any idea what I should do? Solved! Go to Solution.

  • Dimming Display Brightness to Zero

    Hello All, I have been having a problem with the display brightness adjustment for a long time. Basically, the display of my 17" 1GHz G4 cannot be dimmed to black. From the System Preferences the display brightness can be lowered with the slider. In

  • JMS Sucess

    Hello Everybody: I have finished my jms chat program to the point of basic functionality. It uses the pub/sub method for messaging. There are a couple of things I need some conceptual input on though if any body has the time: 1. How to get a list of