IC WebClient: Reading data from different views

In the view SrvTHead I intend to develop a PDF file which contains information from the views SrvTProduct, SrvTExtras, SrvTPartner, SrvTText, FoUpText and FollowUpDetails.
From the Cookbook I have learnt that this is possible using custom controllers.
Example:
data: bdc TYPE REF TO cl_crm_ic_cucobdc_impl.
bdc ?= me->get_custom_controller( 'CuCoBDC' ).
current_one_order = bdc->typed_context->currentoneorder.
current_inboxitem = bdc->typed_context->currentinboxitem.
lv_col_wrapper = current_one_order->get_collection_wrapper( ).
lv_current = lv_col_wrapper->get_current( ).
lv_col_wrapper1 = current_inboxitem->get_collection_wrapper( ).
lv_current1 = lv_col_wrapper1->get_current( ).
I am not sure how to proceed after this...
Has anyone implemented this before?
Thanks,
Krish.

In the view SrvTHead I intend to develop a PDF file which contains information from the views SrvTProduct, SrvTExtras, SrvTPartner, SrvTText, FoUpText and FollowUpDetails.
From the Cookbook I have learnt that this is possible using custom controllers.
Example:
data: bdc TYPE REF TO cl_crm_ic_cucobdc_impl.
bdc ?= me->get_custom_controller( 'CuCoBDC' ).
current_one_order = bdc->typed_context->currentoneorder.
current_inboxitem = bdc->typed_context->currentinboxitem.
lv_col_wrapper = current_one_order->get_collection_wrapper( ).
lv_current = lv_col_wrapper->get_current( ).
lv_col_wrapper1 = current_inboxitem->get_collection_wrapper( ).
lv_current1 = lv_col_wrapper1->get_current( ).
I am not sure how to proceed after this...
Has anyone implemented this before?
Thanks,
Krish.

Similar Messages

  • How Can i Read data From Maintainance View

    I Want read data from Maintainance View. i written select query
    SELECT *
    FROM J_1yyyyV
    INTO TABLE GT_BUSPLACE.
    WHERE BUPLA = LV_BUPLA.
    this is giving following error
    "J_1yyyyV" is not defined in the ABAP Dictionary as a table,
    projection view, or database view.
    Can you help me Please.
    Thanks in Advance.
    Regards,
    Raj.

    Hi raj,
    maintainance view is a nothing but combinations of table using join on some fields..
    see the relation ship between the joins..
    if you want to write selection query ..go to se11 -->enter view name >and open tab>
                    Table/Join  conditions--> see the table's involved and join conditons between tables.
    and write the select query same as like the Table/Join  conditions in se11..now you can acheive the
    table maintainance fields..
    Prabhudas

  • Select query to read data from a view

    Hi friends,
    We have been using a query to read data from a custom view which used to work perfectly. Now the program sits at that select query forever. We are able to extract same data from se16. Not sure what could be the problem.
    Thanks in advance.

    Dev
    Have a look at the Table Index for the tables involved in the View... I think there is some change in the Indexes.. (Add / Remove / Change)
    Thanks
    Amol Lohade

  • Read data from maintenance view

    hi all,
    could anyone please tell me if there is any special way to read data from a maintenance view (if at all it is possible).
    i wrote a simple select on it but it gave me a syntax error that the view is not defined in the dictionary. (i am able to see the view definition by double clicking and it is active too).
    the following is my select.
    select single lgnum from v_t320 into (w_lgnum) where werks eq p_i_werks and lgort eq p_i_lgort.
    awaiting answers...
    regards,
    PJ

    Thanx Rich,
    but the documentation on maintenance views says that we can have read access to them. Does that mean the data can only be seen via the DDIC and not from a select written in a program??
    this is what i read...
    Maintenance Status
    The maintenance status of a view controls whether data records can also be changed or inserted in the tables contained in the view.
    The maintenance status can be defined as follows:
    Read only: Data can only be read through the view.
    Read, change, delete, insert: Data of the tables contained in the view can be changed, deleted, and inserted through the view.
    Only read access is permitted for database views that are defined through several tables. If a database view contains only one single table, data can be inserted in this table through the view (see Inserts Through Database Views).
    The following status definitions are also possible for maintenance views:
    Read and change: Existing view entries can be changed. However, records cannot be deleted or inserted.
    Read and change (time-dependent views): Only entries whose non-time-dependent part of the key is the same as that of existing entries may be inserted.
    you surely have earned some points here....just let me be clear of the concept behind this
    regards,
    PJ

  • Reading data from maintainance view

    hi ,
    Can we read the data from maintainance view through select statement.

    Hi again,
    1. V_001K_K
       Since this view comprises
       more than 1 table
      T001K
      T001
      It gives this error.
    2. Maintenacnee views comprising only 1 table
       can be used in Select.
      For eg. V_T001
      V_T003 = Not allowed
    PS:
    3. The reason for this is :
       Any R/3 view having only one table,
       for such view, a physical view is created
       in the database.
       The records in it can be modified, inserted,deleted.
       (conditions apply)
       But for view having 2 or more tables,
       no physical view is there in the database.
    regards,
    amit m.
    Message was edited by: Amit Mittal

  • How to read data from different tabs of an excel sheet?

    Hello everybody:
    I try to read an specific sheet from excel workbook with multiple sheets, but I can't obtain any soluction. Any have a example ABAP code for the specific question?
    Regards,
    Piero Cimule Troise,

    Piero,
    Have a look into this link
    http://searchsap.techtarget.com/tip/1,289483,sid21_gci868246,00.html?FromTaxonomy=/pr/283958

  • Hi experts, how to use open sql to read data from one " maintenance view"?

    i want to use this part of data within report ,so how to use open sql statement to read data from one " maintenance view"?

    Hi
    You can't use OPEN SQl statements to fetch data from maintenance view
    You have to use only Database views
    see the different types of views and the difference
    The followings are different types of views:
    - Database View (SE11)
    Database views are implement an inner join, that is, only records of the primary table (selected via the join operation) for which the corresponding records of the secondary tables also exist are fetched. Inconsistencies between primary and secondary table could, therefore, lead to a reduced selection set.
    In database views, the join conditions can be formulated using equality relationships between any base fields. In the other types of view, they must be taken from existing foreign keys. That is, tables can only be collected in a maintenance or help view if they are linked to one another via foreign keys.
    - Help View ( SE54)
    Help views are used to output additional information when the online help system is called.
    When the F4 button is pressed for a screen field, a check is first made on whether a matchcode is defined for this field. If this is not the case, the help view is displayed in which the check table of the field is the primary table. Thus, for each table no more than one help view can be created, that is, a table can only be primary table in at most one help view.
    - Projection View
    Projection views are used to suppress or mask certain fields in a table (projection), thus minimizing the number of interfaces. This means that only the data that is actually required is exchanged when the database is accessed.
    A projection view can draw upon only one table. Selection conditions cannot be specified for projection views.
    - Maintenance View ( SE54 )
    Maintenance views enable a business-oriented approach to looking at data, while at the same time, making it possible to maintain the data involved. Data from several tables can be summarized in a maintenance view and maintained collectively via this view. That is, the data is entered via the view and then distributed to the underlying tables by the system.
    Please have a look at below link. It will help you.
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed06446011d189700000e8322d00/frameset.htm
    for more detailed info look on:
    http://www.sap-img.com/abap/what-is-the-different-types-and-usage-of-views.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/abap+dictionary&
    Reward points for useful Answers
    Regards
    Anji

  • View Object to read data from a java file

    Hi,
    I am using JDeveloper 11.1.1.4 and ADF-BC in my application.
    For one of my view objects , I want the data to be read from a java file which exposes some method to return a collection.
    I cannot use a static view object in this case.
    Please suggest the best way to implement this requirement.Basically build a view object that should read data from a java file.
    Thanks,
    Praveen

    Depending on your use case you can either use a programmatic VO or directly expose the JV class as a data control.
    http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_36/jdtut_11r2_36.html

  • Reading Data From a Different Planning Package in a Exit Function

    Hi,
    Is it possible to read data from a planning level / package other than the package that the exit function was executed with?  I want to read data into an internal table from another package and use that data in combination with the data in the current package to create new records.  If this is possible sample code for how to read data from a different package would be appreciated.
    Thanks!
    Mel Waldner

    Hi,
    As an example lets say you have restricted 0calmonth in your package to 6.2007. In the planning layout to fetch values for 5.2007 (read only), you can take 0calmonth in data columns, and for this column restrict it as 5.2007.
    Similarly in Planning functions, you can mark 0calmonth as field to be changed and fetch data for 5.2007.
    Hope this helps.

  • Reading data from View

    HI all,
    Can anyone help me please. I want to read data from view with below simple program
    Report zread_view.
    DATA: it_t053 TYPE TABLE OF V_T053,
               wa_t053 like line of it_t053.
    *SELECT * INTO TABLE it_t053 from v_t053.*
    LOOP AT it_t053 INTO wa_t053.
      WRITE: / wa_t053-KURZT.
    ENDLOOP.
    But when activating this message is show:
    'V_T053" is not defined in the ABAP Dictionary as a table, projection view, or database view.
    Need for anyone help...?
    Thanks,
    Ramses

    hi,
    which view you are accessing in the program? you can able to access only database view and projection view from prgram.
    the view which you are using in the program is niether database view nor projection view. that is why you are getting that error message ''V_T053" is not defined in the ABAP Dictionary as a table, projection view, or database view".
    hope this will help you.
    Regards,
    Kiran

  • Reading data from dynamically from different file.

    Is there any function moudle or class to read data from a file in application layer, whoes structure is changing dynamically.
    Urgent....... Can any one help me out in this......
    Thanks in advance....
    Thanks,
    feroz.

    Hi Feroz,
    Do u mean that structure of the file on the application server is changing dynamically.
    The following is the FM to read data from a file on Application Server.
    OPEN DATASET FNAME FOR INPUT in text mode encoding default.
    LOOP AT TAB INTO WA.
      READ DATASET FNAME INTO WA.
      IF SY-SUBRC  0.
        EXIT.
      ENDIF.
      WRITE: / WA-COLUMN1, WA-COLUMN2.
      ENDLOOP.
    This is the FM to search the file on Application Server.
    F4_DXFILENAME_TOPRECURSION
    Regards,
    Sai
    Edited by: Sai Krishna Kowluri on Jul 15, 2008 9:45 AM

  • Is it possible to retrieve the data from maintainance view?

    Hi experts,
    Am facing one problem.
    Is it possible to retrieve the data from Maintainance View ,If yes how?
    IF it is not possible then Y?
    While am trying to retrieve data from maintainance view it's showing message like
    "it is not a database view or table".
    Can u pls give me ans.
    Thanks&Regards,
    Arun.

    Hi Arun,
    It is not possible to retrieve the data from Maintenance view. Maintenance View is different and Database View is different.
    Maintenance view : Maintenance view permits you to maintain the data of an application object together.The data is automatically distributed in the underlying database tables.
    A standardized table maintenance transaction is provided (SM30), permitting you to maintain the data from the base tables of a maintenance view together.
    In other words, Maintenance views enable a business-oriented approach to looking at data, while at the same time, making it possible to maintain the data involved. Data from several tables can be summarized in a maintenance view and maintained collectively via this view. That is, the data is entered via the view and then distributed to the underlying tables by the system.
    Database View: Data about an application object is often distributed on several database tables. A database view provides an application-specific view on such distributed data.A database view is automatically created in the underlying database when it is activated.Database views implement an inner join.If the database view only contains a single table, the maintenance status can be used to determine if data records can also be inserted with the view. If the database view contains more than one table, you can only read the data.
    Database views should be created if want to select logically connected data from different tables simultaneously. Selection with a database view is generally faster than access to individual tables. When selecting with views, you should also ensure that there are suitable indexes on the tables contained in the view.
    Hope this helps.
    Please reward if useful.
    Thanks,
    Srinivasa

  • Adobe offline form with capablity to read data from a local data base.

    Hi ,
            We have customer requirement for a offline Adobe form which will be used by Sales rep, this form when saved to the local hard disk is required to read data from another local data base available in the laptop  and prefill a few fields in the form . 
    Is this requirement technically feasible using Adobe forms?
    Thanks
    Srikanth S

    Well may be it's possible because if you go to the Data View in ALD and create a new Data Connection --> OLEDB database --> Build --> It gives you various options for connecting to different DBs but frankly speaking I have never tried it.
    Check the ALD help for more information on the topic.
    Using LiveCycle Designer > Working with Data Sources > Connecting to a data source > To create a data connection to an OLE database
    Chintan

  • Is possible to represent data from a view in MapViewer?

    I have tried to represent data from a view instead a table with the Java-Beans API but I couldn't beacause it doesn't represent any geometry referenced by the view. I think it should be implemented because is very common to use views. Are there any way to represent them in MapViewer?
    Thanks.

    Like a table, you also need to register the view in spatial metadata (user_sdo_geom_metadata). Did you register the view and its spatial column there?

  • Why do we get the data from a view to a report.

    hi
    why do we get the data from a view to a report. is it possible to get the data from a view in all the cases?

    hi Jyotssna,
      Suppose you are planning to get the data from multiple tables then you got to specify seveal condtions and make use of joins which results in poor performance in fetching the data . In order to improve the performance we make use of views where the conditions of different tables are defined and the data is fetched accordingly.
    Regards,
    Santosh

Maybe you are looking for

  • Sales Order Blocking based on Minimum & Maximum Qty, Wt & Value.

    Hi Experts, I need to put a minimum and maximum (value, quantity and weight) set up in Sales Order based on the Customer. Based on the condition record I should be able to put the minimum and maximum quantity, order value and weight in condition reco

  • Master Detail Detail Form

    Hello, Can someone point me to an example of a master detail detail form? I have searched this form and have not been able to find a complete example. There are several entries in this form about master detail detail however, they are incomplete or d

  • Cannot connect to mobile hotspot using wpa; only open security works

    I have a Galaxy S5 and am trying to connect to the mobile hotspot using my Surface tablet.  If I have the mobile hotspot setup using WPA2 security with a password I cannot connect however I can connect if I am using Open security. I can connect the s

  • Drivers error (fastboot and flashmode) on Windows 8.1

    Hi, After update Windows 8 to Windows 8.1, fastboot and flashmode (so Sony Mobile Update also) doesn't works.The phone (any Xperia. I tested Xperia J and Xperia LWW) is detecting as 'not recognized USB device'. I'm sure that this is not my computer/p

  • Full screen graphical output

    I am working on a project for a school where I need to do fast (relatively speaking) graphics rendering in real time. Essentially, I have 5 computers; 1 Server and 4 clients.  Each client is hooked to a projector and is responsible for one letter of