Access data in structure

Hi,
I am trying to access some data in my structure CRMA_PARTNER.
On doing this i am getting an error:
Field CRMA_PARTNER-PARTNER_NO is unknown.
Following is my code:
method INIT_CHANGEHISTORY.
DATA: lr_ent TYPE REF TO if_bol_bo_property_access,
ls_adminh TYPE crmst_adminh_btil,
lt_ch TYPE crmt_cdorder_alv_tab,
lr_ch TYPE REF TO crmt_cdorder_alv,
ls_ch TYPE crmt_cdorder_alv,
lv_value_node1 TYPE REF TO cl_bsp_wd_value_node,
lv_value_node TYPE REF TO cl_bsp_wd_value_node.
lr_ent = me->typed_context->btadminh->collection_wrapper->get_current( ).
CHECK lr_ent IS BOUND.
lr_ent->get_properties( IMPORTING es_attributes = ls_adminh ).
CALL FUNCTION 'CRM_CDORDER_DISPLAY'
EXPORTING
iv_header_guid = ls_adminh-guid
iv_object = ls_adminh-object_id
iv_bus = ls_adminh-object_type
i_no_dialogue = abap_true
IMPORTING
ausg = lt_ch.
CALL FUNCTION 'CRM_LOG_READ_EXTENDED'
EXPORTING
iv_header_guid = ls_adminh-guid
CHANGING
et_cdorder = lt_ch.
    * removing all item related change logs
DELETE lt_ch WHERE number_int IS NOT INITIAL.
    * show newest entry first
SORT lt_ch BY udate DESCENDING utime DESCENDING.
    * clear old collection
me->typed_context->changehistoryvn->collection_wrapper->clear( ).
DATA :
LV_TABNAME TYPE STRING.
    * create new entities and add them to the collection
CREATE DATA lr_ch.
LOOP AT lt_ch INTO ls_ch.
CREATE OBJECT lv_value_node
EXPORTING
iv_data_ref = lr_ch.
lv_value_node->if_bol_bo_property_access~set_properties( ls_ch ).
LV_TABNAME = LV_VALUE_NODE->GET_PROPERTY_AS_STRING( IV_ATTR_NAME = 'TABNAME' ).
IF LV_TABNAME = 'CRMA_PARTNER'.
LV_PARTNER = CRMA_PARTNER-PARTNER_NO.
ENDIF.
me->typed_context->changehistoryvn->collection_wrapper->add( lv_value_node ).
ENDLOOP.
me->typed_context->changehistoryvn->sort( ). " keep the sorting
endmethod.
Please help!
Any pointers would be highly appreciated.
Thanks and Regards
Shilpi
Edited by: Matt on Dec 12, 2008 10:05 AM - please use  tags around your abap

Hi Uwe,
Thanks for the reply.
I wrote the following code:
data: ldo_data    TYPE REF TO data,
                  LV_PARTNER TYPE STRING.
FIELD-SYMBOLS:
  <ls_struct>      TYPE any,
  <ld_fld>           TYPE any.
    lv_value_node->if_bol_bo_property_access~set_properties( ls_ch ).
   LV_TABNAME =  LV_VALUE_NODE->GET_PROPERTY_AS_STRING( IV_ATTR_NAME = 'TABNAME' ).
   IF LV_TABNAME = 'CRMA_PARTNER'.
     Ldo_data = lv_value_node->get_property( IV_ATTR_NAME = 'TABNAME' ).
     ASSIGN ldo_data->* to <ls_struct>.
     ASSIGN COMPONENT 'PARTNER_NO' OF STRUCTURE <LS_STRUCT> TO  <LD_FLD>.
     IF SY-SUBRC EQ 0.
       LV_PARTNER = <LD_FLD>.
     ENDIF.
Now when i debug:
The LDO_DATA only consists of string CRMA_PARTNER.
It does not give me the data:(
what is the possible reason?
Thanks and Regards
Shilpi
Edited by: Matt on Dec 12, 2008 10:06 AM - please use  tags around your ABAP

Similar Messages

  • Accessing data from db table on another client on a separate server

    Hi
    We are trying to access data from a db table on client 400 NSQ with a program running on client 200 NSD. We are also trying to find the name of the table in which the connection configuration should be maintained. The two clients are on separate servers.
    Regards
    B.Garlipp
    Edited by: B.Garlipp on May 31, 2010 9:22 AM

    Create an RFC destination for NSQ system client 400 into your system where program is running (in this case NSD Client 200)
    Now in your program you can call function module RFC_READ_TABLE (with reference to this destination) to read entries from the other system.
    If you know ABAP, In fact you can create a Z RFC FM specific for this tables, so that you get the data in exact structure. This is because RFC_READ_TABLE returns data in text format with a delimiter.
    Cheers.
    Edited by: Rashid Javed on May 31, 2010 10:36 AM

  • POWL accessing data from multiple tables/objects

    Hello,
    I have a query on the POWL applications.
    If the powl application has to access data from multiple tables/objects, then the solution would be creating a data structure of those tables/objects and referring to that structure in GET_OBJECT_DEF methods.
    Is there any other soln? or I am right here?
    The queries which are saved for a particular user are transportable? if not, how can they be made transportable?
    Thanks & regards,
    Ravish

    you are right, you can do in get_objects method.
    POWL_QUERIES are transportab;e, you can save them in POWL_QUERY transaction.
    Best regards,
    Rohit
    http://wiki.sdn.sap.com/wiki/display/WDABAP/POWL

  • APEX Application accessing data from two different databases

    Hi All,
    Currently as we all know that APEX Application resides in database and is connected to the schema of that database.
    I want APEX Application to be running and accessing data from two different databases. Elaborating my question,
    Currently, my APEX Production Application is connected with XXXX Schema of DB1 Database(Where APEX Resides). Now I want to add some pages into this APEX Application for REPORT Purpose, But I want to connect this REPORT APEX Pages to get data from Different Schema YYYY for Database DB2.
    Is it possible to configure this scenario?
    The reason for doing this is to avoid the REPORT related (adhoc queries) resource utilization effect on Production DB1 Database.
    Thanks
    Nil

    1. If you do the joining of two or more tables in DB1 then all data is pulled over to DB1 and then the join is executed: so more data over the databaselink and more work for DB1. Better keep the joining stuff where the data resides and just pull exactly that data over that you need.
    2. Don't know about your different block sizes. Seems a nice question for one of the other forums (DBA or SQL).
    3. I mean create synonyms on DB1 for reports VIEWS in DB2.
    Hope all is clear!

  • Want Access Data Grid control in SharePoint 2013?

    Hello everyone!
    Recently we noticed something funny in SharePoint 2013. While quite many people were hoping to have the datasheet view like those in SP2007 and 2010, Microsoft has chosen a different interface to display datasheet view.
    Now, if you try to create a sub site under a publishing site, and use the
    Publishing Site template then try to create a datasheet view in the sub site, SharePoint will try to use the Access data grid control to display the view. In some situations the view will display and other situations it will not, and will show this
    error:
    The list is displayed in Standard view. It cannot be displayed in Datasheet view for one or more of the following reasons: A datasheet component compatible with Microsoft SharePoint Foundation is not installed, your browser does not support ActiveX controls,
    a component is not properly configured for 32-bit or 64-bit support, or support for ActiveX controls is disabled.
    If you create a sub site using Publishing Site with Workflow instead, then the datasheet view will be created properly using SP2013 interface.
    Using PowerShell, we can see that both Publishing Portal and
    Publishing Site With Workflow are using the BLANKINTERNET 53 template. The
    Publishing Site on the other hand is using the CMSPUBLISHING 39 template.
    Want to try it out and let me know if that happens to your SharePoint too?

    Hi Conway,
    I tested the issue in my environment per your description and it returned the results as below:
    I created a subsite using Publishing site under a team site in SharePoint server 2013, the datasheet view in a list displayed as pic1
    I reproduced the issue in SharePoint server 2010, the datasheet view in a list displayed as pic2
    It turns out by design the datasheet view in the subsite based on Publishing site template displays as your situation. Here is an article which explains this:
    http://www.sharepointblues.com/2010/03/31/data-sheet-view-not-working/
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • Unable to export data from Web Access Data Sheet in Sharepoint to local excel or access file

    Greetings and good morning.
    I'm going to start off in broad terms with this question because I'm not 100 percent sure what information to provide.
    Long story short, we've got a Web Access Data Sheet list hosted in a Sharepoint 2010 environment. It is accessed and used by multiple people throughout the day. It contains several thousand line item entries. I'd call it a large data sheet.
    I think the size of the data sheet is casuign some instability in the list. I'd like to be able to export a defined range of data from the list into a local excel or access file. After that, I'd delete the stuff on the Access list to improve performance.
    But...when I attempt to use the Sharepoint Action bar to export - Excel locks up/crashes. If I try to export to Access, I get a similar issue.
    Any ideas? Could anyone begin by telling me what other information is required?

    Hi,
    If you would like to export data from Access Web Database in SharePoint 2010, you could go to Design With Access page in Settings. The url in my environment is http://sp/tt/_layouts/accsrv/ModifyApplication.aspx . Then choose the Table and export it to Excel
    or Modify it in Access.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • How do I access  data from one user account to another?

    I want to access data from a different user account. How do I make all the files available?

    I have another post here in the forum that explains in detail about the rez problem. It was read by a lot of people with no responses. 1 thing that might be important is that I was using a Wacom drawing tablet when this problem started. I removed the Wacom software and no help.
    My Apple 23" Cinema display has very large icons but the display prefs says it is at 1920 x 1200. It's not just a low screen rez but the dock and all icons will scroll on the screen when I move the mouse.
    The resolution will not change to anything else. The rez is fine on other user names.
    I have booted from the Apple DVD and run disk repair, repaired disk permissions. Booted and run Tech Tool.
    Booted from the Disk Warrior cd and ran that.
    I have zapped the PRAM. I have plugged the display into the other port on the video card.
    When I change to the problem user name it is fine for about 1 second and then changes to the "problem". I have never seen this before and I have been using a Mac since 1990.
    It's a G-5. Dual 2.0 ghz. 2.5 gb ram. OS 10.5.8. Apple keyboard. Logitech mouse and
    Thanks.

  • Can I create a Stored Procedure That access data from tables of another servers?

    I'm developing a procedure and within it I'm trying to access another server and make a select into a table that belongs to this another server. When I compile this procedure I have this error message: " PLS-00904: insufficient privilege to access object BC.CADPAP", where BC.CADPAP is the problematic table.
    How can I use more than one connection into an Oracle Stored Procedure?
    How I can access tables of a server from a Stored Procedure since the moment I'm already connected with another server?
    Can I create a Stored Procedure That access data from tables of another servers?

    You need to have a Database Link between two servers. Then you could do execute that statement without any problem. Try to create a database link with the help of
    CREATE DATABASE LINK command. Refer Document for further details

  • How to retreive data from structure MDEZ in T.code CO09

    As per our requirement 2 new columns are needed in a customize report .i.e
    - u201Cinc. lot dateu201D
    - u201Cavailable inc. lotu201D
    u201Cinc. lot dateu201D:to get the values for inc.lot.date
    From second screen of CO09(program: SAPLATP4 and screen number: 400) pick first date where MRP element is u201CPOitemu201D, u201CShpgNtu201D or u201CPrdOrdu201D.
    u201Cavailable inc. lotu201D: to get the values for available inc.lot
    Pick u201CCum. ATP QTyu201D from the same row.
    These data are stored in structure MDEZ. Actually I want dat00 and MNG04 based on field DELB0. If DELB0 filed is POitem or Prdord or ShpgNt then only I should retrieve the dat00 and MNG04. IF there are more than one POitem in MRP element then we should pick the first POitems' mrp date and *** ATP qty  .Can you please help me out how to get these data from the structure MDEZ.
    input parameters to get the values are material number and plant.

    Hi,
    First of all data is never stored in structure so there is no way you can retrive data from structure.
    you are looking into the screen field and it is not mandatory that it will always point to a table.
    Now  the qestion remains how to get the data ?  you need to find database table for that field there are many ways like SE84 or SE11 where used etc.
    Try to find the table if you still have the problem feel free to get back.
    Regards
    Bikas

  • Error in abap query sq03,02,01(to get data from structure) it is possible?

    hi
    experts,
    i am developing a report using abap query .(stand t code is s_alr_87012277 it contain more fields but i want only 4 fields , i found 2 but remaining 2 are from structure)
    my problem is that debit and credit amount is in structure
    how  i can get data from structure(FAGL_S_RFSSLD00_LIST )
    solbm = debit.
    habbm  = credit.
    report is like
    op.
    gl acc no, discription, credit amount,debit amount.

    Hi ajay,
    try to use with  logical database  SDF.
    assign the logical database name in info set.
    gl acc no    -               SKA1-SAKNR
    debit.         -     Field: um02h
    credit.        -     field:  um02s 
    discription  -               SKAT-TXT20
    regards,
    sateesh.

  • I have 3 macs. 2 are Lion, 1 I left Snow leopard so I can access data from my old Quicken Application that doesn't work with Lion. If I move to iCloud, will I no longer be able to access my MobileMe email on the Snow Leopard mac?

    I have 3 macs. 2 are Lion, but 1 I left Snow leopard so I can access data from my old Quicken Application that doesn't work with Lion. If I move to iCloud, will I no longer be able to access my MobileMe email on the Snow Leopard mac?

    What version of word do you have? The TS3938 sounds like it's a PowerPC app- written for an old architecture that is no longer supported in Lion. If this is the case, your files are fine- you just need a newer version of word that will run in Lion in order to open them. The newest version (2011) should be readily available anywhere, and has worked fine for me ever since I switched to Lion on release day....

  • DATA from structure

    hi firends,
    i need to retreive data from table and structure is it possible
    eg-- AAA is table having atr no
          BBB is strucrure in run time its having some data related to AAA table atrno
    i want a select query for this  plz some one provide me with example code
    but i know structure will not store value.my requirement is for IDOC so structure carries data so ineed to track that
    pointe will be rewarded
    thanks in advance
    raj

    Hi Raj ,
    basically addition or deletion of segments the data holds in the data record structure.
    all the data pertaining to the idoc is stored and processed
    in the structures
    EDIDC--> Control Records.
    EDIDD --> Data srecords.
    goto se37 and enter the FM name
    f7
    u 'll see
    TABLES
    *"      IDOC_CONTRL STRUCTURE  EDIDC
    *"      IDOC_DATA     STRUCTURE  EDIDD
    now if i want to know the data this is is structure EDIDD now in itab
    IDOC_DATA.
    BREAK-POINT.
    LOOP AT IDOC_DATA.
    ITAB-F1 = ID0C_DATA-F1.
    ITAB-F2 = ID0C_DATA-F2.
    ITAB-F3 = ID0C_DATA-F3.
    APPEND ITAB.
    CLEAR ITAB.
    ENDLOOP.
    this way u can fetch the data .
    regards,
    VIjay

  • LBBIL_INVOICE. Billing Data: Transfer Structure to Smart Forms

    Hi...
    Can u please help me out in my query regading how the data passes to
    LBBIL_INVOICE. Billing Data: Transfer Structure to Smart Forms.
    I have an smartform which runs through VF01/VF02/ VF03 while pressing the print preview button.
    But if i try to run it directly from driver program, no data wil be displayed. Now i have the requirement to detach from VF03.. and make it to run directly from my driver program.
    what shall i have to do to achieve this. Should i have to take all the internal tables saparately or else can i use LBBIL_invoice structure itself.
    If i can use that structure itself, how to make the data flow into it.  Pls help me.
    In my codeing these includes were there. is there anything related , is the data passes because of these includes
    INCLUDE rlb_invoice_data_declare.
    definition of forms
    INCLUDE rlb_invoice_form01.
    INCLUDE rlb_print_forms.
    Pls clarify my dobut...
    Thanks in advance,
    Hema

    1. These are normal structure
    2. you can use anywhere but they designed for forms currently.
    3. Yes ,it works like it will look at NAST Table -> nast table will connect the TNAPR Table -> tnapr will have smart form print program.
        so smart form program calls smartform and it will show output
    4. you can create your own structure and use them into anywhere like report program or forms..
    5. you can see example simple form name SF_EXAMPLE_01 ,program name is SF_EXAMPLE_01 ,you can design your own form and print program.
    Thanks
    Seshu

  • What is difference between data base structure and stucure  in program

    what is difference between data base structure and stucure  declared in program  level . can  explain cleary if knows

    Hi,
    Data base structure is global decalaration you can reffer this structure in any of your developments, when ever you cahange this structure the changes automatically will get updated in all the programs.
    coming to structures in program it is local to your program only, if you want to change the structure again you have to open the program and do the necessary changes.
    Reward if useful.
    Thanks,
    Sreeram.

  • Connecting and populating XDP/PDF on a Server with MS Access datas

    Hi! I've a similar Thing to do. I've figured an XDP file, with some Dynamic Data Fields, which is populated by connecting an MS Access Database. The file work, for now, correctly in localhost. I want to make it working via HTTP. The client , after log in , with his Username and Pwd , should open the file just by clicking on a HTTP Link with the variables attached, like as :
    http://www.mydomain/AUTO_Renderingtheform.pdf?Username='MM_UserSession'+Pwd='MM_PWDSession '
    at this point the PDF should be populated automatically by reading the MS Access Data present on the Server. The things which I would like to do are:
    1. Connecting the *.xdp form on the Server by changing the Connection String (probabily my Provider can help me...)
    2. Filtering through the SQL string like as, finally:
    WHERE Username = 'User_Session' AND Pwd = 'Pwd_User' to obtain the right binding. Do I Should use File>Properties>Variables Tool or writing directly this filter into the SQL statement ? Thanks in advance to Someone can help me (I'm newbie)

    Have a look at http://www.dtp-tjanst.com/Acrobat/PreLoad/PreLoad3.pdf
    It is in swedish but Ärendenummer=Case number (used for select)
    Hämta = Collect, Spara = Save, Ta bort = Delete record.
    This is done with ASP conecting to a SQL server on the server.
    It can be done with an mdb.
    /Ulf

Maybe you are looking for