How to read a Header Attachment in Item component ??

Dear Experts,
My Scenario is as follows :
1. In quotation Overview page ( BT115QH_SLSQ/SQHOverView ),  I have an assisngment block call 'Attachments'. User can create URL attachment here. It is Std. Attachment ( component GS_CM , view Doclist ) Assignment Block and no enhancements are done for it.
2. The quotation overview page also have an items view ( BT115QIT_SLSQ/Items ) .
My requirement is in some eventhandler in view BT115QIT_SLSQ/Items , i want to read an attachment of the header , ie. say 1st row content of what gets displayed under Attchment Assignment Block for that quotation.
How can i get around this ?
Is it possible to read header attachment in item component ? how to do that ?
Any guidence or suggestions are highly appreciated !!
Thanks & Regards,
Suchita

Hi Carsten,
I tried using Custom Conroller, but i always got the entity on CMBO as initial in my event handle as it was getting called before CREAT_CMBO of custom controller was called.
But it was very good suggestion and i got to learn many things about custom controller as i had never worked much on custom controller related coding.
However, my issue got resolved with CL_CRM_BSP_CM_CONTROL class , method get_documents.
Once again thanks...thanks a lot for the prompt help you gave.
Thanks & Regards,
Suchita
P.S. : in component BT115QIT_SLSQ i created custom controller and related coding as you suggested, In the same compoent BT115QIT_SLSQ, i also have a view ZZ___ ,& in its DO_init_context, i called custom contoller using
lr_cuco ?= get_custom_controller( ).
and then i did 
lr_entity =  lr_cuco->typed_context->CMBO->collection_wrapper->get-current( ).
here i always got lr_entity as initial.
On debugging, i found that everything was gettting executed properly in ON_NEW_FOCUS method of CMBO, but still the collection was with 1 entity with empty attribut_ref in ON_NEW_FOCUS. and hence lr_entity used to be inital. The instid, typeid were had correct values taken from focus_bo ( which is btadminh instance) , stilll entity_list in collection was with 1 empty entity. I expected here values in attr_ref of the entity in enity_list but there were no values for the properties in structure Attribut_ref.
I did not understand this.
Also, after Do_init_context of my view ZZ___, the break point used to halt at CREATE_CMBO( )  statement. I tried with Do_prepare_output , but same stroty again, the breakpoint halted at create_cmbo() , after do_prepare_output was called.
Any idea why would be such behaviour ?

Similar Messages

  • Vc++ how to read column header of cursor

    How to fetch the Column name or header of the stored procedure which is using a cursor as the output.
    P_out  out sys_refcursor
    need to read the column name of this output.
    I am using Vc++ code to reterive the data, in Vc++ how to read column header of cursor

    You haven't provided much detail to go on.  How are you reading data from the ref cursor? Do you already have a reader from it?
    Maybe this helps.
    Greg
    create or replace procedure proc1 (v1 out sys_refcursor) as
    begin
    open v1 for select * from emp;
    end;
    using System;
    using System.Data;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    public class RefCur
        public static void Main()
            using (OracleConnection con = new OracleConnection("user id=scott;password=tiger;data source=orcl"))
                con.Open();
                using (OracleCommand cmd = new OracleCommand("proc1", con))
                    cmd.CommandType = CommandType.StoredProcedure;
                    cmd.Parameters.Add(new OracleParameter("v1", OracleDbType.RefCursor, ParameterDirection.Output));
                    cmd.ExecuteNonQuery();
                    using (OracleDataReader reader = ((OracleRefCursor)cmd.Parameters[0].Value).GetDataReader())
                        for (int i=0;i<reader.FieldCount;i++)
                            Console.WriteLine(reader.GetName(i));

  • How to read URL parameters of one wdp component into other WDP component?

    Dear Experts,
    Can anyone let me know how to read URL parameters of one wdp component into other WDP component?
    My requirement is i have one standard WDP component with 3 URL parameters and i needto
    read that URL parameters along with their values in my Z-WDP component.
    Thanks
    SK

    Hi Santosh,
    You can read parameters send from one WebDynpro Component to another component by adding code in "HANDLEDEFAULT" Event Handler method ( Window )of your target Web Dynpro Component.
    data: lt_parameter             type tihttpnvp,
             ls_parameter             type ihttpnvp.
    lo_api_controller ?= wd_this->wd_get_api( ).
       call method lo_api_controller->get_message_manager
         receiving
           message_manager = lo_message_manager.
       clear : ls_parameter.
       refresh : lt_parameter[].
    * Read all URL parameters
       wdevent->get_data( exporting name = if_wd_application=>all_url_parameters importing value = lt_parameter ).
    if not lt_parameter[] is initial.
         clear : ls_parameter.
         read table lt_parameter into ls_parameter index 1.
         if ls_parameter-name = 'ACTION' and
            ls_parameter-value is initial.
           lv_flag = 'X'.
           clear : lo_msg.
           lo_msg = 'Action Parameter Missing in URL Link !'.
    *         report message
           call method lo_message_manager->report_error_message
             exporting
               message_text = lo_msg.
         else.
         endif.
    Best Regards
    Priyesh Shah

  • How to read file header/open filein binary mode

    i am using FileConnenction API to read from a file. how can i open a file in binary mode so that i can read file header. In other words i want to open a file in binary mode.

    You can always try looking at the [Header Signatures|http://www.techpathways.com/uploads/headersig.txt]. But it would probably be easier to adjust your application so it doesn't have to guess.
    ~

  • How to read the header of an FLV 1.1 file?

    I would like to read the header of an FLV file and determine
    if it's an FLV 1.1 file, and if so, get it's length. (Without
    downloading the entire file. ) How do I do this?

    bump

  • How to read File Header in JAVA

    I wanna upload a(doc/pdf) file from client site, where I hv to check whether the the file is originally a doc/pdf file or not, I mean not just the extension, but the actual header information of the file. Please some body help me to do this, I dont know how to read the file header. Thnx in advnc.

    You can always try looking at the [Header Signatures|http://www.techpathways.com/uploads/headersig.txt]. But it would probably be easier to adjust your application so it doesn't have to guess.
    ~

  • How to read data from Analysis web Item.

    Hi,
    We are currently on BI 7 SP 16 Java 16,
    I am trying to present data from 10 reports on to one single page, so for that i want to read data from the Analysis item, and present it on one page.
    How do i read data and write it on to a page, i know we have to use java script for this , but i am not sure how to use the script. Can any one please help me on how to write the code if possible please give me the code or any suggestions.
    Appreciate your help in advance.
    Kumar

    Hello,
    May the Report Designer can help you on this:
    http://help.sap.com/saphelp_nw70/helpdata/EN/dd/cea14119eb9f09e10000000a155106/frameset.htm
    Best Regards,
    Ricardo

  • How to read an email attachement

    I cannot read any email attachment on my Ipad. Any suggestion ? Thanks in advance.

    Firstly, try a Reset (Hold the Home and Sleep/Wake buttons down together for 15 seconds).
    As a matter of interest, you should be able to view any attachment. However, you will not be able to save it to a location of your choice (and work on it) unless you have an app that is appropriate. For instance, if the attachment is a PDF then you get the option of where you want to store it, I.e., in iBooks (which is automatically supplied with the iPad) or one which you install such as Goodreader etc. A Word document attachment would require the Pages app or another suitable app. [Just adding this in case you are not aware.]

  • How to read 'clicked header' AND selected row from multicolumn listbox?

    I have a multicolumn listbox filled with 6 columns and about 500 rows.
    I want the user to be able to click on a column header, and sort the listbox alphabetically on that column. I've written the code for that, and that works. (using the 'itemnames' en 'get clicked col hdr' properties.)
    However, I also want to include the option, that when a user highlights a row, and then clicks on the header, that after the listbox gets sorted it scrolls down to the selected row.
    (So that the user doesn't have to search for it)
    And that's where things go wrong, because the value of the listbox changes to zero when you click on a column header. No I idea why it does that, but it's rather
    annoying. Can I change that behaviour somehow?
    Or any ideas how to get around it?

    My thanks to you and Jared.
    Seems I got a working solution now.
    Did take a while to figure out why your solution worked. Basicly, you're reading the row from a few iterations before.
    As soon as I understood that, I simplified it a little. Look at the attached file... I think it does the same. :-)
    Jared asked for the sorting routine. As I don't seem to be able to attach files when replying to comments, I took the liberty to include it here also.
    Basicly, I just use the 'sort 1D array' that comes with Labview 6. To be able to sort a 2D array, I convert every row to a cluster. That's something the 'sort 1D array' VI can handle nicely.
    To sort on the correct column, I just cut all columns in front, and paste them behind again. A
    fter sorting, I reverse the process.
    Anthony.
    Attachments:
    copy2_of_multicolumn.vi ‏26 KB
    sort_2d_string_array.vi ‏34 KB

  • How to read response header

    Hi,
    We are using Fiori framework and directly binding a odataservice(entity of a odata service) to a table like following
    <Table id="dTable" mode="MultiSelect" updateStarted="handleStarted" 
      items="{/testCollection}" selectionChange="enableDisableButtons">
    We are using ODataModel in our view. The model itself triggers the OData service and bind the data. Now we have some custom response headers which we return with the service. We are unable to read the custom header in the requestCompleted event also. Please assist us here and please let us know how we can read these custom response headers
    Regards,
    Nandakumar

    You coud create a procedure like this:
    CREATE OR REPLACE PROCEDURE soap_env_pr (p_soap_env IN VARCHAR2)
    IS
       v_start     NUMBER;
       v_end       NUMBER;
       v_message   VARCHAR2 (400);
       v_length    NUMBER;
    BEGIN
       v_start := INSTR (p_soap_env, '<ns0:Ok>');
       v_length := LENGTH ('<ns0:Ok>');
       v_end := INSTR (p_soap_env, '</ns0:Ok>');
       v_message :=
              SUBSTR (p_soap_env, v_start + v_length, v_end - v_start - v_length);
       HTP.prn ('Ok: ' || v_message);
       v_start := INSTR (p_soap_env, '<ns0:SessionNumber>');
       v_length := LENGTH ('<ns0:SessionNumber>');
       v_end := INSTR (p_soap_env, '</ns0:SessionNumber>');
       v_message :=
              SUBSTR (p_soap_env, v_start + v_length, v_end - v_start - v_length);
       HTP.prn ('SessionNumber: ' || v_message);
       v_start := INSTR (p_soap_env, '<ns0:ErrorMessage>');
       v_length := LENGTH ('v_length');
       v_end := INSTR (p_soap_env, '</ns0:ErrorMessage/>');
       v_message :=
              SUBSTR (p_soap_env, v_start + v_length, v_end - v_start - v_length);
       HTP.prn ('ErrorMessage: ' || v_message);
    END;and call it like this:
    BEGIN
       soap_env_pr
          ('<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header/>
    <env:Body>
    * <invokeScenarioResponse xmlns:ns0="xmlns.oracle.com/odi/OdiInvoke/" xmlns="xmlns.oracle.com/odi/OdiInvoke/">*
    * <ns0:Ok>true</ns0:Ok>*
    * <ns0:SessionNumber>2223201</ns0:SessionNumber>*
    * <ns0:ErrorMessage/>*
    * </invokeScenarioResponse>*
    </env:Body>
    </env:Envelope>'
    END;That would give you this output:
    Ok: true
    SessionNumber: 2223201
    ErrorMessage:Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • How to change column heading in line item report

    Hello Experts,
    How to change the column heading in the line item report CJI4 or CJI3  ?
    for eg: The field WBS will show as Object in the heading. Here  I would like to change to WBS.
    Is there a way to do this without changing ABAP code
    FATMAN

    Not possible through standard I guess.
    Enhancement you should be looking is COOMEP01 which includes the component EXIT_SAPLKAEP_009
    i.e., Line Item Reports: Customer-specific Formatting of the Lists.You use this enhancement to modify column headings.
    Regards
    Sreenivas

  • How to read BP header data in standardaddress context node

    Hi,
    we have the next requirement in CRM 7.0 WebUI:
    In view BP_ADDR/StandardAddress the field STRUCT.TELEPHONETEL should only be an input field if the authorization group of the business partner has a certain value. So I tried to solve this in the I-getter method for this STRUCT.TELEPHONETEL field by reading the authorization group and change the rv_disabled value.
    How should I read the authorization group? This is field STRUCT.AUTHORIZATIONGROUP and belongs to the HEADER node.
    Can you please supply me an example code for this?  
    Thanks in advance!!
    Kind regards,
    Roy Willems

    Hi,
    In the get_i method use the below code to get BuilHeader entity.
    Data: lv_entity type ref to cl_crm_bol_entity.
    lv_entity ?= collection_wrapper->current( ).
    lv_entity ?= lv_entity->get_parent( ).
    if lv_entity is not bound.
       lv_authgrp =   lv_entity->get_property_as_string( iv_attr_name = 'AUTHORIZATIONGROUP' ).
    endif.
    Regards,
    Arun
    Edited by: Arun Kumar on Aug 9, 2010 12:58 PM

  • How to read the text from the item text of the purchase order

    i want to extract the text which is maintained in the purchase order item text. i used the function module read_text but it reads only the header text. can anyone help.

    u have to chek the following parameters  
      ID: this textid
      language:language u maintained the text,this also important
       name: The no in which text-id is maintained
             Usually we make mistake here,the no is          combination of purchase order no and item no.
    Example:420000210000010(Puchase orderno:4200002100 item no:00010)
        Object:it change based on the text-id so u can check it the document no.
        CALL FUNCTION 'READ_TEXT'
             EXPORTING
                  id                      = p_var
                  language                = g_f_langu
                  name                    = g_f_tdname
                  object                  = g_f_obj
             TABLES
                  lines                   = g_t_lines
             EXCEPTIONS
                  id                      = 1
                  language                = 2
                  name                    = 3
                  not_found               = 4
                  object                  = 5
                  reference_check         = 6
                  wrong_access_to_archive = 7
                  OTHERS                  = 8.
        IF sy-subrc <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    Pass the varibles as i have said and let me know if u face any problem.
    Regards

  • How to read overall status of line item in Tab Status of Sales Order

    Hi Friends,
    I need to read the overall status of a sales order line item in transaction VA02.
    For example line item 00010, in its status tab under processing status there is a field overall status which has value Open, Completed etc.
    I need to read the text like open, completed etc.
    Kindly help.
    Thanks,
    Pradeep

    Hi Pradeep,
    Try these tables.
    Please have a look at below tables.
    AUSP
    Characteristic Values
    CMFK
    Storage Structure for the Error Log Header
    CMFP
    Storage Structure for Errors Collected
    FMSU
    FI-FM Totals Records
    FPLA
    Billing Plan
    FPLT
    Billing Plan: Dates
    INOB
    Link between Internal Number and Object
    JCDO
    Change Documents for Status Object (Table JSTO)
    JCDS
    Change Documents for System/User Statuses (Table JEST)
    JEST
    Object Status
    JSTO
    Status Object Information
    KANZ
    Assignment of Sales Order Items u2013 Costing Objects
    KEKO
    Product Costing - Header
    KEPH
    Product Costing: Cost Components for Cost of Goods Mfd
    KNKO
    Assignment of a Cost. Est. Number to Config. Object
    KOCLU
    Cluster for Conditions in Purchasing and Sales
    KSSK
    Allocation Table: Object to Class
    NAST
    Message Status
    SADR
    Address Management: Company Data
    VBAK
    Sales Documents: Header Data
    VBAP
    Sales Documents: Item Data
    VBEH
    Schedule Line History
    VBEP
    Sales Document: Schedule Line Data
    VBEX
    SD Document: Export Control: Data at Item Level
    VBFCL
    Sales Document Flow Cluster
    VBLB
    Sales Document: Release Order Data
    VBSN
    Change Status Relating to Scheduling Agreements
    VBUK
    Sales Document: Header Status and Administrative Data
    VBUP
    Sales Document: Item Status
    VBUV
    Sales Document: Incompleteness Log
    VEDA
    Contract Data
    Regards,
    Vijay

  • In Receiver Mail Adapter ,how to ignore SOAP Header attachment

    HI Folks,
    Am using Receiver Mail Adapter and am getting 2 attachments.
    1. one is Soap header which contains Control records
    2. payload
    I want only Payload as attachment and need to ignore SOAP Header(AT00001.xml).
    The configuration is as below:-Trasport protocol : SMTP
                                                Message Protocol: XIALL
    Please provide Inputs.
    Thanks & Regards
    Ashok Reddy

    Hi Gagandeep,
    Scenario: File------>mail( Bypass scenario)
    i had posted file in FTP and am getting attachment properly but aditionally am getting ATT00001.xml as SoapHeader.this i need to ignore.
    PFB Module Parametrs i used:
    localejbs/AF_Modules/MessageTransformBean   LocalEnterpriseBean    transform
    Modulekey                      Parameterattribute                        value
    transform                      Transform.ContentDisposition            attachment;filename=”Pocr_860.txt”
    transform                     Tansform.ContentType                       text/plain
    Regards
    Ashok

Maybe you are looking for

  • Can I replace my new macbook I got on Tuesday because of a scratch?

    I know Apple has a 14 day return policy, but my grandma bought this macbook for me to start college off. Anyways I found a big scratch about one inch in length, on the bottom of my macbook. This is the mid-2014, 13.3 inch macbook pro retina display w

  • Report changes for Multiple sets of books

    Hi, I am new to the financials suite. What changes would be needed in reports to make them global and run across multiple sets of books and currencies. I was thinking of eliminating any _all tables. I am not sure on what SOB related parameter changes

  • Logic 9.1: no more mp3 bounce in 32-bit mode

    Hi all, I wanted to make it clear in the subject line that I'm not opening Logic in 64-bit mode ('coz mp3 bounce is greyed out in that mode)... How I reproduce the issue (works every time): - Open my project. Is in 24/96. - Press Bounce. - Choose mp3

  • Problem with new window opening with basic test JTree program

    I'm still getting to grips with Swing, and have now moved on to basic JTrees. I'm currently trying to use an add and delete button to add new nodes to the root etc. The addition and deletion is working ok, except that each time the addButton is press

  • What is SMTP address?

    Anybody could u tell what is SMTP address? Thanks in advance.