How to fetch ABAP STACK value

Dear all,
In below snapshot, i want value in line number 23 (Current stack) from line number 12.
There is some value in stack nunber 12 , i want to use it into current stack 23.
How to fetch value from stack number 12??? Is it possible with the help of field symbol??
Thanx,
Satyen Trivedi

Hi Satyen trivedi,
You can use the Below method to fetch the non accessible value in your program using the Program Name.
http://www.dataxstream.com/2009/08/use-abap-to-access-any-data-in-memory/
Regards,
Bhushan.

Similar Messages

  • How to fetch geometry of values

    How to fetch geometry of values,
    I wanted to fetch the 4th positioned n 5th positioned values from the
    SDO_ORDINATE_ARRAY and one unique Column ID,
    sample data for the same follows
    SQL> desc TEST
    Name Null? Type
    GEOMETRY MDSYS.SDO_GEOMETRY
    ID NUMBER
    SQL> select id, geometry from test
    where rownum<7
    TEST GEOMETRY(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES)
    1 SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, 1), SDO_ORDINATE_ARRAY(0, 1, 0, 408551.27, 2925997.25))
    2 SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, 1), SDO_ORDINATE_ARRAY(.011493516, -.99993395, 0, 408442.69, 2925997.45))
    3 SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, 1), SDO_ORDINATE_ARRAY(-.02636329, .999652428, 0, 408551.45, 2926096.46))
    4 SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, 1), SDO_ORDINATE_ARRAY(0, 1, 0, 408551.77, 2926212.98))
    5 SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, 1), SDO_ORDINATE_ARRAY(0, 1, 0, 408552.01, 2926314.81))
    6 SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, 1), SDO_ORDINATE_ARRAY(1, 0, 0, 408470.67, 2926137.08))
    6 rows selected.
    SQL>
    another table TESTZ is created to insert the fetched values from TEST
    table
    SQL> desc TESTZ
    Name Null? Type
    TEST NUMBER
    ES NUMBER
    NR NUMBER
    The following pl/sql program is used for fetching the required data
    DECLARE
    CURSOR p_cur
    IS
    select id,geometry from test order by rownum ;
    es number;
    nr number;
    locus mdsys.sdo_geometry;
    BEGIN
    for i in p_cur
    loop
    locus := i.geometry ;
    es:=locus.sdo_ordinates(4);
    nr:=locus.sdo_ordinates(5);
    insert into testz values(i.idz,es,nr);
    end loop;
    END;
    ERROR at line 1:
    ORA-06533: Subscript beyond count
    ORA-06512: at line 20
    the same Script is working well for other data sets But its giving the
    following Errror for the ABOVE
    data set, the test table got 90,000 records
    please Suggest me the required Solution to fecth the 4th and 5th
    postioned values from SDO_ORDINATE_ARRAY ;
    Many thanks
    ZameeR

    As I said in another posting (this is a cross-post):
    drop table test;
    create table test (id integer, geometry mdsys.sdo_geometry);
    insert into test ( id, geometry ) values (
    1,SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, 1), SDO_ORDINATE_ARRAY(0, 1, 0, 408551.27, 2925997.25)));
    insert into test ( id, geometry ) values (
    2,SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, 1), SDO_ORDINATE_ARRAY(.011493516, -.99993395, 0, 408442.69, 2925997.45)));
    insert into test ( id, geometry ) values (
    3,SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, 1), SDO_ORDINATE_ARRAY(-.02636329, .999652428, 0, 408551.45, 2926096.46)));
    insert into test ( id, geometry ) values (
    4,SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, 1), SDO_ORDINATE_ARRAY(0, 1, 0, 408551.77, 2926212.98)));
    insert into test ( id, geometry ) values (
    5,SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, 1), SDO_ORDINATE_ARRAY(0, 1, 0, 408552.01, 2926314.81)));
    insert into test ( id, geometry ) values (
    6,SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, 1), SDO_ORDINATE_ARRAY(1, 0, 0, 408470.67, 2926137.08)));
    commit;
    select a0.id, c.column_value, e.column_value
    from test a0,
          (select b1.id, mod(rownum,5) rown, b2.*
             from test b1,
                  table(b1.geometry.sdo_ordinates) b2
          ) c,
          (select d1.id, mod(rownum,5) rown, d2.*
             from test d1,
                  table(d1.geometry.sdo_ordinates) d2
          ) e
    where ( c.id = a0.id and c.rown = 4 )
      and ( e.id = a0.id and e.rown = 0 )
    /Requires no external functions or packages.
    regards
    Simon

  • How to add abap stack to existing NW Java engine- for XI installation

    Hi All,
    I am having a netweaver Java Stack installed on my system. I would like to install XI - in order to install Xi ,I guess the system should be ABAP + Java. But since I am having java based engine, I would like to add ABAP stack to it. So, my question how to add an ABAP stack to already existing JAVA/J2ee engine.
    So what this process is known as-- Is it upgrading or New Installation. Because I need the guide and CD's for it.
    Can any one tell me which Guide(Install/upgrade/Master) wud help me.
    Thanks
    S

    Hi
    check the link www.service.sap.com/instguides>SAP Netweaver 7.0>installation guides there you can find what is the process which involves in installing ABAP+JAVA with PI
    Regards
    Uday

  • How to read ABAP STACK of another report

    Hi,
    I wish to read the ABAP STACK of another report which may or may not be running in debugging mode.
    First of all is it possible. if yes then pls reply.
    Thanks

    Hhhmm, ok, then I really didn't understand your request. Here's something that might come closer, but is actually of questionable value due to timing issues: Assuming that you know already the debugging takes place on the same application server you could call function module TH_GET_WPINFO and check for any processes with WP_WAITING = 'Debug'. For those take the work process number WP_NO and get the details via TH_WP_DETAIL_INFO (feeding the work process number into WP_INDEX and evaluating the parameter DIAREC-REPORT. However, this doesn't give you call stack and I'm pretty sure it always just contains the current main program that's running. Not to mention the fact that between the calls the debugging might have ended... (though in the second call it seems that WP_INFO-WP_ISTATUS = 8 seems to indicate that process is in debugging from the few tests that I did).

  • How to use ABAP stack of one with Java stack of another PI Server

    Hi Friends,
    We need to use the Java Stack of one server with the Abap stack of another PI server,
    will that be possible ? and if yes what are the things need to be taken care of. please suggest on the same.
    Regards,
    Nitin

    Hi Michal,
    Thank you very much for your answer, but want to know in detail (Technical Point of view) why it is not
    possible. As we can use SLD of another server by maintaining details in SLDAPICUST transaction,
    similarly cant we use java stack components of one server from ABAP stack of another PI Server.
    Just a query ??
    If you can put a light on this area it will be very helpful for us.
    Regards,
    Nitin

  • How to fetch the maximum values of 2 columns

    Hi All,
    I need to fetch the maximum value of 2 columns. For example I need to fetch the latest record for which i have to fetch the latest date and time. Date and time fields are 2 different columns. As of now am doing it the crude fetching the latest date records and then fetching the latest time record.
    Is there any other smarter way to do it. The one am doing rite now is turning out to be very performance intensive at the moment for me.  Also I could not apply max condition for two fields together.
    Please guide.
    Thanks,
    Nagraj

    Hi Jaspreet,
    Thanks for your response. But the problem am facing with this approach is I have to do this for n number of records in another internal table which is making it to cumbersome and affecting performance.
    Please suggest is there any better way to do it.
    Thanks,
    Nagraj

  • How to fetch future Delivery Value based on Sales Order

    Hi,
    I'm fetching the delivery data using the datasource 2LIS_12_VCITM.In my report I would also like to display the value of the delivery.How do I valuate these deliveries?Do I have to access the Sales order item for the net price or go to the pricing conditions data?
    Please suggest.
    Thanks,
    A Pothuneedi

    Hi
    You can search the samples....C:\-->Program files->SAP----->SDK->Samples->DiAPI----->OrderandInvoice...
    Here invoice is added for a particular sales order.....the same can be done for delivery.....
    Hope it helps

  • How to fetch the condition value per line item in PO o/p

    Dear Experts ,
    I need to fetch the value of the all valid condition types in the PO item , for its o/p .
    For this i should know
    1.what all are the  condition types involved in the item .
    2.what is the condition rate
    3. what is the condition value .
      Pleas etell me how do i fetch this data ??
    Thanks in advance
    Regards
    Anis

    Hi Anis,
    At first collect the doc.condition-KNUMV from EKKO table.
    Later enter the above doc.condition no in KONV and KONP to get the details.
    Regards
    Ramesh Ch

  • How to fetch last transactioned values for given period

    Hi,
    I'm working on a report, here I'm fetching data from j_2irg1bal table for some period. it has data to internal table like
    e.g. : given period 01-04.2009 to  30.04.2009
    date        mantr  opening balance closing balance
    04.04.2009  1007     100             130
    08.04.2009  1007     130              80
    here for given date two record are available,
    i need to capture last updated value i.e. for date 08.04.2009.
    Kindly suggest your ideas to move with this

    Hi,
    Assume that your values are in internal table ITAB.  Then,
    Sort ITAB by date DESCENDING.
    Doing so, your records gets sorted in Descending Order with respect to Date. And the Last updated record comes in the first position.
    And now,
    Read table ITAB index 1.
    The above code, fetches the last record into the Work-Area.
    That's it.
    Rgds,
    Ramani N

  • How to fetch the junk values of a column and the column name in oracle

    Hello,
    Can anyone help me in writing a procedure/dynamic SQL to fetch the column where the junk values appears and its value. Eg: If emp table contains ID and Name columns, and ID column contains junk values, the result should be the Id column and the junk value/s. It should be dynamic because next time if the other column contains junk values(like $,%...), the query should display the other column too..
    Thanks in advance..

    Try this, I'm not sure if it'll help... and get some idea...
    try to modify it as per your requirement -
    select * from junk_vals;
    1     ranit1
    2#     ranit2
    3     ranit3
    4$     ranit@4
    5     ranit5
    6     r^anit6
    select 'ID', id, val from junk_vals
        where regexp_like(id,'[^a-zA-Z0-9]')
    UNION
    select 'VALUE', id, val from junk_vals
        where regexp_like(val,'[^a-zA-Z0-9]');
    -- "Output :"
    ID     2#     ranit2
    ID     4$     ranit@4
    VALUE     4$     ranit@4
    VALUE     6     r^anit6
    NOTE - I've considered anything other than Alphabets and Numbers as a Junk Value
    Edited by: ranit B on Jan 4, 2013 5:07 PM
    -- o/p added

  • How to Fetch the Row value in SBO Formatted search

    Hi Experts,
    I have created a Sales order, in which i  have 4 UDF Fields(A,B,C,D) in the following:
    Example values:
    A  B  C  D 
    2   2   4  4
    3   2   6  10
    C=A*B
    D=1st value of D + 2nd col value of C
    i have written query for C, but how to write the Formatted search Query for generation of D values. plz reply as soon as possible.

    Magesh,
    I quite understand what you are trying to do.   If you look at the example below I added a third row to show how you want the D to be a running total of column C. RIGHT !!
    A B C D
    2 2 4 4
    3 2 6 10
    <b>4 2 8 18</b>
    Honestly, it is not going to be simple as you do not have a way in SBO to access a particular column from a row.  When you say $[$38.U_C] it refers to the context row OR the row which has the highlight OR the row which has the curson on it.
    It is not possible to say $[$38.U_C from row 2]  JUST  NOT POSSIBLE ...
    You have to write a tricky code by using a temp table referencing the value of column C.  Also you have to keep track if Rows gets deleted and a new row added. 
    I will test a sample code and will come back.
    Suda

  • How do I get a variable, or object from ABAP STACK.

    Hey Gurus,
    How do I get a variable, or object from ABAP STACK.
    Example: I start my FM. I can see in the ABAP STACK the variable I need. I can see the object; I could use to get my variable. I need to use it in my FM; however I need to reference it in the run time. How do I do that?
    Is there a method I can use for reading ABAP STACK?
    Do I just use command: get reference of u2026?
    Does anyone have an example code?
    Basis version 7
    Thanks in advance
    Martin

    Ah, you mean you want to access a variable from another program in the call stack, yes?  You can do this using field symbols, but please don't try to change a value while doing this, it could really screw things up. 
    this example, is using two programs, where the second is accessing variables of the first program.  Basically just notice that we are using the program name and the variable name when assigning the field symbol.
    report zrich_0006 .
    tables: mara.
    parameters: p_matnr type mara-matnr..
    data: matnr type mara-matnr.
    data: imarc type table of marc with header line.
    matnr = p_matnr.
    select * from marc into table imarc up to 10 rows
                   where matnr = p_matnr.
    perform in in program zrich_0007.
    report zrich_0007 .
    *       FORM in                                                       *
    form in.
      data: field(50).
      data: xmarc type marc.
      field-symbols: <matnr>.
      field-symbols: <imarc> type marc_upl_tt.
    * Assign an individual variable
      field = '(ZRICH_0006)matnr'.
      assign (field) to <matnr>.
    * Assign an internal table
      field = '(ZRICH_0006)IMARC[]'.
      assign (field) to <imarc>.
    * Write out your data
      write <matnr>.
      loop at <imarc> into xmarc.
        write: / xmarc-werks.
      endloop.
    endform.
    Regards,
    Rich Heilman

  • How to fetch audit log in ABAP

    can somebody tell me how to fetch audit log texts in abap program to displyay.
    if Any functional module present to retrieve could you pls tell me..
    ambichan

    hi,
    use the function module read_text to retreive the text details.
    FUNCTION READ_TEXT.
    ""Lokale Schnittstelle:
    *"       IMPORTING
    *"             VALUE(CLIENT) LIKE  SY-MANDT DEFAULT SY-MANDT
    *"             VALUE(ID) LIKE  THEAD-TDID
    *"             VALUE(LANGUAGE) LIKE  THEAD-TDSPRAS
    *"             VALUE(NAME) LIKE  THEAD-TDNAME
    *"             VALUE(OBJECT) LIKE  THEAD-TDOBJECT
    *"             VALUE(ARCHIVE_HANDLE) LIKE  SY-TABIX DEFAULT 0
    *"             VALUE(LOCAL_CAT) DEFAULT SPACE
    *"       EXPORTING
    *"             VALUE(HEADER) LIKE  THEAD STRUCTURE  THEAD
    *"       TABLES
    *"              LINES STRUCTURE  TLINE
    *"       EXCEPTIONS
    *"              ID
    *"              LANGUAGE
    *"              NAME
    *"              NOT_FOUND
    *"              OBJECT
    *"              REFERENCE_CHECK
    *"              WRONG_ACCESS_TO_ARCHIVE
    specify the name of the text and the object type as specifed in THEAD table.
    Regards,
    Jagath

  • How to edit the roles in ABAP stack?

    Hello All,
    Can any one please tell me how to edit a role in ABAP Stack in step by step manner. If you could guide me to any link that would be really great. Thanks in advance.
    Sardaar.

    Hi Sardaar,
    By using transaction code PFCG you can edit a role/create a role.
    once you execute t-code PFCG in the initial screen you are displayed with options for Create / Edit role or composite role.
    Enter the name of the role which you want to edit.
    Clik on the edit button (pencil icon) or if you want to view only clik on next button.
    Once you click on edit button in the next screen you will have multiple tabs
    Description / Menu / Workflow / Authorizations / Users
    If you want to write some description you can use this tab.
    If you want to add T-Codes/Reports or Folder etc click on Menu.
    Add necessary transactions (click on + transaction button) then click on Authorization tab.
    you will be two options
    Change authorization data
    Expert mode
    If you want to edit authorization data click pencil button
    If you have added new T-codes then click on Expert mode
      -> choose read old status and merge with new data.
    in the next screen you will be displyed with existing objects
    Change the values and generate the role.
    then click back button and then click on user tab assign user as required.
    If you need more help let me know
    For more info
    Single Role: http://help.sap.com/saphelp_erp2005vp/helpdata/en/52/6714b6439b11d1896f0000e8322d00/frameset.htm
    Composite Role : http://help.sap.com/saphelp_erp2005vp/helpdata/en/42/271d24d86211d2961a0000e82de14a/frameset.htm
    Cheers
    Soma

  • How to get a dynamic receiver determination based on a table an SAP PI ABAP Stack

    Hello folks,
    currently I get stuck dealing with a problem about the receiver determination. Let me first describe the Problem: We are using to different SAP ERP- backend system in our test enviroment. But only of this systems is marked as current "actuall" test system. Every once in a while we need to switch between these two systems and mark the other one as the actual test system.
    This is the point were it get's a little bit time consuming for me: We have about 50 interfaces were I need to change the receiver from test system A to test system B or vice versa. So I thought about creating a more dynamic way to determine the actual test system:
    Therefore I have created a table on the ABAP stack of our PI (7.31 double stack) with just one field that holds the current test system. Now I would like to create a dynamic receiver determination where I call the RFC-function RFC_READ_TABLE. But how can I acess a table from the grapchical mapping of the pi which is stored on the PI?
    Is there mybe another fundamental way to retrieve the actuall test system within the mapping?

    You can go for enhanced receiver determination, where in you can determine the receiver system using a graphical mapping.
    Now in that graphical mapping, use the standard function " RFC Look up" and make a call to bapi and get the actual receiver system.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40b64ca6-b1e3-2b10-4c9b-c48234ccea35?QuickLink=index&…
    Step by Step guide to Explain Enhanced Receiver Determination - Application Server Infrastructure - SCN Wiki

Maybe you are looking for

  • Error  while creating PO --   Unit of measure not defined for lanuage  ZH

    Hi all, i  have created the PR with EA as UOM. Then while creating PO, i am getting error like '  Unit of measure not defined for lanuage ZH' . Then  I execute CUNI Then menu is GOTO > Translation > units of measure enter source language and target l

  • DuplicateMovieClip() issue with XML

    The problem I'm having in the code below, is that only the last iteration of the loop is being displayed on the page. The trace commands output everything as though the movie clips have been made, but they don't show up when I test the movie. Please

  • Class is not appearing in "Java Batch Job Class Search" when trying to add.

    Hi, I have oracle CC&B 2.3.1, with SDK 2.2.0.12. I am trying to create new java batch job class by copying an existing one and modifying it to be used with new Batch Control . Steps are as follows: 1-Created file by copying the exiting file CreateLat

  • User exit for vendor no. in PO transaction me22n

    i need any user exit which have eina-idnlf(vendor no. field) at run time. i had to check if this field is changed or blank then that shoul reflect.

  • How to display a binary file

    Hello, I am working on creating program that lets me display data I've collected and stored in a binary file. Here is the code (+pic of the program) for collecting and storing the data. Data will be recorded on multiple channels (possibly 4 channels)