Urgent issue, BW Data extraction

Hi,
  I have an urgent issue and need help.
  We were loading data after activating business content. Every thing worked fine and the delta load was also smooth.
  However, in order to start everything fresh. I deleted all the info package, deleted the "Intialization option for the source system"  AND then created my infopackage for Full upload with initialize option.
  In this case the extractor didn't find any data. I though it will bring all the data and this behavious put me in difficult situation. Please note that till this time everything was working fine.
We were looading data from datassource 0CRM_SALES_ORDER_I

Hi Anurava,
What do you mean by <i>"Full upload with initialize"</i>?
I couldn't understand what exaclty you meant by I "deleted all the info package, deleted the "Intialization option for the source system" Are you saying you deleted the requests from your ODS/Cube?
Regards
SS

Similar Messages

  • Issue in data Extraction , Source tables having columns wth lengthe 60

    Hi BI Experts ,
    Here I have a issue while extracting the data from Oracle tables. I encountered some columns for which the length of character stream is more than 60 , some where around 200 to 300 , for example : Reason for some action , Comments , discription .
    I am not able to to treat them as master  data text since these fileds are coming with the Transaction data . In SAP BI we can have the data type CHAR with length max to 60 . Now how can I deal this situation in a better way ??
    Could you please come up with your ideas .
    Expecting interesting solutions
    Anurag

    Hello Charan,
    first check this Blog:
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417800)ID0294722750DB10878770002327649734End?blog=/pub/wlg/3705
    It may helps already.
    Anouter methode is to report from PSA Tables. But here no How-to is available.
    Br.
    Joerg

  • Issue with Data Extraction from OAGIS 9 User Area Tags ...

    We are working on displaying the data coming from OAGIS9 into Excel sheet. We created a custom Schema for the Excel sheet and are able to display all the data in OAGIS9 except for the ones in UserArea. We are facing issue in extracting data from tags present in UserArea of OAGIS 9 schema and transforming it into our Custom built schema.
    Can you please suggest us some way in which we extract data from userArea?
    Thanks in advance ~

    Here is the example with instructions, we have just done it and working
    1.You need to have the custom schema that is coming with in the <UserArea>/<any>
    For example this custom schema is like this one shown below and you are using this CutomerPartyMaster of OAGIS
    <?xml version="1.0" encoding="utf-8"?>
    <xs:schema xmlns="http://www.userarea.com/mdm/oagisextensions" elementFormDefault="qualified" targetNamespace="http://www.userarea.com/mdm/oagisextensions" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="Customer" type="CustomerType" />
    <xs:complexType name="CustomerType">
    <xs:sequence>
    <xs:element minOccurs="0" name="Gender" type="xs:string" />
    <xs:element minOccurs="0" name="DOB" type="xs:date" />
    <xs:element minOccurs="0" name="SSN" type="xs:string" />
    <xs:element minOccurs="0" name="PAN" type="xs:string" />
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    and the Input data snippet will be like this inside CustomerPartyMaster
    <tnsa:UserArea>
         <tnso:Customer>
              <tnso:Gender>string</tnso:Gender>
              <tnso:DOB>1980-10-13</tnso:DOB>
              <tnso:SSN>string</tnso:SSN>
              <tnso:PAN>string</tnso:PAN>
         </tnso:Customer>
    </tnsa:UserArea>
    where xmlns:tnsa="http://www.openapplications.org/oagis/9" and xmlns:tnso="http://www.userarea.com/mdm/oagisextensions"
    Lets assume your Target Schema is like this where only DOB is coming from userarea
    <CreateRequest>
    <record>
    <firstname></firstname>
    <lastname></lastname>
    <dob></dob>
    </record>
    </CreateRequest>
    2.declare the name space of incoming userarea custom schema in your xsl file like this
    xmlns:nsext="http://www.userarea.com/mdm/oagisextensions"
    3.here is xsl code that copies element from CustomerPartyMaster/UserArea
    <xsl:template match="/">
    <imp1:CreateRequest>
    <xsl:for-each select="/inp1:ESBProcessCustomerRequest/body/ns4:ProcessCustomerPartyMaster/ns4:DataArea/ns4:CustomerPartyMaster">
         <imp1:record>
    <xsl:for-each select="ns4:UserArea/nsext:Customer/nsext:DOB">
              <imp1:dob>
              <xsl:value-of select="."/>
              </imp1:dob>
         <imp1:record>
    </xsl:for-each>     
    where imp1 is target schema namespace
         ns4 is OAGIS standard namespace.
    *****************

  • Issue with Data Extraction for Master data

    Hi All,
    I have requriment to enhance standard Datasource(0VENDOR_ATTR) to populate certain fields from table LFBK.
    I have enhanced the datasource and the i am able to pull the data in ECC via RSA3.
    After that i have replicated the Datasource in BI and have activated the Datasource and the enhanced fields are available in BI datasources and have created the transformation between Datasource and 0VENDOR.
    when i run the infopackage, the new enhanced fields are not getting populated. I really wonder how the data is not coming to BI, when its is getting populated in RSA3 in ECC.
    Request to give your solution to solve this issue.
    Regards,
    Gowrisankar

    Hello Gowrisankar N K ,
    After making changes to your 0VENDOR_ATTR DS, make sure that you had replicate DS at BI side.
    if not then please first Replicate the DS & check the newly enhanced field is available in PSA.
    Regards,
    Divyesh Khambhati

  • Issue with data extracted to "loader" format

    I only just noticed something weird (yet probably not directly related to sqldeveloper)
    Using 3EA4, I see the following line when unloading a query result to "loader" format:
    CONTINUEIF NEXT(1:1) = '#'
    I assumed this is harmless , yet today I've noticed it cause sql*loader to systematically
    ignore the first character of every line in the data section of the .ldr file!
    I am using this format often as it conveniently bundles spec and data (ldr=ctl+dat),
    but have never paid attention to this glitch before. Could this perhaps affect this
    particular version of sql*loader only? Right now I only have access to the 10.2.0.1.0
    win32 version that comes with XE10g. Can someone confirm?
    If such a widespread (free, from Oracle, I assume attracted a lot of users) version
    is affected, wouldn't it make sense to not generate the offending line from sqldeveloper?

    Wow - on closer inspection I see sqldeveloper actually systematically includes
    a leading space, whicn can then be eaten by the CONTINUEIF while enabling
    the support for multi-line records.
    My problem only occurred because I had stripped that leading space.
    Every little thing counts, it seems :-(

  • Data extraction from Non-Unicode ECC6 to Unicode SAP BI system

    Hi,
    We have an existing non-unicode ECC6 system. Currently we are installing SAP BI unicode system. Can anyone tell me are there any issues in data extraction for SAP BI from a non-unicode ECC6 system to an Unicode SAP BI system ?
    Please also note that our data consists of Asian (korean, Japanese & Chinese) fonts.
    Regards,
    Anirban

    Hi Des Gallagher,
    Thank you for your reply.
    I have gone through the notes suggested by you, but they suggest issues related to BW 3.x versions. We are currently on SAP_BW 700 - SP16. Also, among other notes i found note 510882 which might be helpful for custom developments.
    But i am still wondering whether we are going to face major issues related to data extraction from non-unicode ECC6 system to unicode SAP_BW 700 system.
    Incase you have any further details, please let me know.
    Thanks in advance.
    Regards,
    Anirban Kundu

  • Error in data extraction for 0TCT_DS22

    Hi All .
    I am facing issue in data extraction for 0TCT_DS22 , its giving message 'error in source system ' and also giving a dump
    Runtime Errors TSV_TNEW_PAGE_ALLOC_FAILED
    Date and Time 24.05.2010 11:22:53
    Short text
    No more storage space available for extending an internal table.
    What happened?
    You attempted to extend an internal table, but the required space was
    not available.
    As per following thread i updated the table but still data load is failing ( Our system is at EHP1)
    DataSource 0TCT_DS22 not extracting Data
    Any pointers what could be the solution for this data load failure .
    Thanks.

    Hi Neetika,
           This type of error occures due to lack of memory in server or no process is available for request process.
    Please refer below forum.
    Re: Runtime Errors  TSV_TNEW_PAGE_ALLOC_FAILED
    Have you done any custom coding? if yes then check the loop.. endloop statement. (not closing loop)
    Thanks & Regards,
    Ashish

  • Urgent issue, Suddenly no data is extracted Once I create new infopack

    Hi,
    I have an urgent issue and need help.
    We were loading data after activating business content. Every thing worked fine and the delta load was also smooth.
    However, in order to start everything afresh, I deleted all the info package, deleted the "Intialization option for the source system" AND then created my infopackage for Full upload with initialize option.
    In this case the extractor didn't find any data. Please see the following log from the monitor "status " Tab.
    "No data available
    Diagnosis
    The data request was a full update.
    In this case, the corresponding table in the source system does not
    contain any data.
    System response
    Info IDoc received with status 8.
    Procedure
    Check the data basis in the source system."
    This is not correct since we were loading data ( full and delta ) successfully before and there are data in the system. This is most probably to do with the delta queue initialization in the source system.
    We were looading data from datassource 0CRM_SALES_ORDER_I.
    Please help, we are really stuck.
    Thanks
    Arunava

    hi Anurava,
    take a look oss note 692195, i think authorization issue
    Activities : 0CRM_SALES_ACT_1
    oss 692195
    Question 2 : On executing transaction RSA3 I get records but I find 0
    records when I load data from BW request.(No Data Available).
    How can I extract data in this case?
    Suggestion 2: First check if there are any entries in the table
    CRMD_ORDER_INDEX.Only if there are entries in this table you can
    extract records.
    If this is not the case then,
    It is possible that the user does not have sufficient
    authorities for extraction of  the relevant objects.
    Additionally, please review and implement the following notes
    615670
    161570
    150315
    618953
    If you are in the release 4.0 then
    To do BW extraction with the user please see that the following
    authorization object exists(display mode is enough):
    CRM_ACT, CRM_OPP, CRM_LEAD, CRM_SAO, CRM_SEO, CRM_CO_SE, CRM_CO_SC
    CRM_CO_SA, CRM_CON_SE, CRM_CMP, CRM_ORD_OP, CRM_ORD_LP, CRM_ORD_PR
    CRM_ORD_OE, CRM_CO_PU, CRM_CO_PD, CRM_ORD_PO
    (all these objects are linked to transaction crmd_order).

  • Very Very Urgent Issue: Restricted Key Figure does not return any data

    Hi all,
    Please help me solving this urgent issue.
    created customer exit variable on characterstics version and also
    other customer exit variable on Value type.
    I coded that in variable exit. Problem is when I include these in
    restrickted keyfigure My query does not return me any data.
    But if I remove from restrickted key firgure and put it as normal
    charaterstics I see the variable is getting populated.
    Also in RSRT the SQl generated when these are included in RKF is not
    correct.
    I debugged and know they are getting populated. As when included in RKF
    I can also see the values of customer exit variables from information
    tab.
    I also know that there is data in cube for those restrictions.
    I posted one OSS Notes regarding this urgent issue. But got no reply from SAP.
    FYI: We are using BEx 3.5 Browser SAP GUI 6.4 Patch 20 BW Patch 11
    Thanks
    SAP BW
    **Please do not post the same question twice: Very Urgent Issue: Restricted Key Figure does not return any data

    Hi,
    Everyone out there this is very urgent. If someone can help me solving this problem.
    We are using BEx 3.5 Browser SAP GUI 6.4 Patch 20 BW Patch 11.
    I posted one oss notes also regarding this issue. But got no reply from SAP.
    So, Please help me solving this issue.
    Thanks
    SAP BW

  • Data Extraction from Third party system to BW System issues...

    Hi Experts,
      I would like to know about data extraction issues from third party systems like hyperion or DB2 or Sysbase to BW system, proper procedure to minimise risk facors, etc.
    I hope hear from you soon...
    Thanks in advance....
    Regards,
    Nagendra KReddy

    Hi,
    Below is a document for DB connect. in that frequent problems also mentioned.
    Create DataSource for DB Connect step by step
    -Sriram

  • KSB1 data extraction issue

    Hi Experts!!!
    I have an issue regarding KSB1 extraction of Activities specifically. The report was not fetching the activities data in the report, whereas expenses data was appearing.
    After selecting the data source of database & archive, then the report started fetching the activities data. Here my question is when the data is archived is it deleted from the main database?
    How can I see when & who performed this action?

    thanks for your response,
    I think I have to re-phrase my question, actually KSB1 is behaving very odd in terms of activity values fetching. The data is available on the main database, other reports like COOIS showing actual activity data and KP27 is dispalying planned activity data.
    But the KSB1 is not fetching the data properly, what may be reason behind it. Please help....

  • CRM - BI Data Extraction Issue

    Hi Gurus,
    We have CRM 2007 and BI 7.0. We have activated all the DS and also replicated them in BW and also activated all the necessary Infocubes in and Transfer rules etc.
    In CRM, the data is available in table - CRMD_ORDERADM_H (480 records), but when I check in RSA3 for the 0CRM_SRV_PROCESS_H Data Source, it displays as 0 records.
    Would be of great help if someone can guide me if we missed any necessary settings or configurations that have to be performed in order to populate the data from tables to Data Sources.
    Thanks & Regards.

    Hi,
    Check this forums:
    CRM data to BW .. some issues
    No data when extracting using 0CRM_SRV_PROCESS_H
    Delta queue for 0CRM_SRV_PROCESS_H not populated
    Hope this helps...........
    Rgs,
    Ravi.

  • BODS 3.1 : SAP R/3 data extraction -What is the difference in 2 dataflows?

    Hi.
    Can anyone advise as to what is the difference  in using the data extraction flow for extracting Data from SAP R/3 ?
    1)DF1 >> SAPR/3 (R3/Table -query transformation-dat file) >>query transformation >> target
    This ABAP flow generates a ABAP program and a dat file.
    We can also upload this program and run jobs as execute preloaded option on datastore.
    This works fine.
    2) We also can pull the SAP R/3 table directly.
    DF2>>SAPR/3 table (this has a red arrow like in OHD) >> Query transformation >> target
    THIS ALSO Works fine. And we are able to see the data directly into oracle.
    Which can also be scheduled on a job.
    BUT am unable to understand the purpose of using the different types of data extraction flows.
    When to use which type of flow for data extraction.
    Advantage / disadvantage - over the 2 data flows.
    What we are not understanding is that :
    if we can directly pull data from R/3 table directly thro a query transformation into the target table,
    why use the Flow of creating a R/3 data flow,
    and then do a query transformation again
    and then populate the target database?
    There might be some practical reasons for using these 2 different types of flows in doing the data extraction. Which I would like to understand.  Can anyone advise please.
    Many thanks
    indu
    Edited by: Indumathy Narayanan on Aug 22, 2011 3:25 PM

    Hi Jeff.
    Greetings. And many thanks for your response.
    Generally we pull the entire SAP R/3 table thro query transformation into oracle.
    For which we use R/3 data flow and the ABAP program, which we upload on the R/3 system
    so as to be able to use the option of Execute preloaded - and run the jobs.
    Since we do not have any control on our R/3 servers nor we have anyone on ABAP programming,
    we do not do anything at the SAP R/3 level
    I was doing this trial and error testing on our Worflows for our new requirement
    WF 1 : which has some 15 R/3 TABLES.
    For each table we have created a separate Dataflow.
    And finally in between in some dataflows, wherein, the SAP tables which had lot of rows, i decided to pull it directly,
    by-passing the ABAP flow.
    And still the entire work flow and data extraction happens ok.
    In fact i tried creating a new sample data flow and tested.
    Using direct download and - and also execute preloaded.
    I did not see any major difference in time taken for data extraction;
    Because anyhow we pull the entire Table, then choose whatever we want to bring into oracle thro a view for our BO reporting or aggregate and then bring data as a table for Universe consumption.
    Actually, I was looking at other options to avoid this ABAP generation - and the R/3 data flow because we are having problems on our dev and qa environments - giving delimiter errors.  Whereas in production it works fine. Production environment is a old set up of BODS 3.1. QA and Dev are relatively new enviornments of BODS. Which is having this delimiter error.
    I did not understand how to resolve it as per this post : https://cw.sdn.sap.com/cw/ideas/2596
    And trying to resolve this problem, I ended up with the option of trying to pull directly the R/3 table. Without using ABAP workflow.  Just by trial and error of each and every drag and drop option. Because we had to urgently do a POC and deliver the data for the entire e recruiting module of SAP. 
    I dont know whether i could do this direct pulling of data - for the new job which i have created,
    which has 2 workflows with 15 Dataflows in each worflow.
    And and push this job into production.
    And also whether i could by-pass this ABAP flow and do a direct pulling of R/3 data, in all the Dataflows in the future for ANY of our SAP R/3 data extraction requirement.  And this technical understanding is not clear to us as regards the difference between the 2 flows.  And being new to this whole of ETL - I just wanted to know the pros and cons of this particular data extraction. 
    As advised I shall check the schedules for a week, and then we shall move it probably into production.
    Thanks again.
    Kind Regards
    Indu
    Edited by: Indumathy Narayanan on Aug 22, 2011 7:02 PM

  • URGENT!!! Extraction by FM is  not working after entering No_MORE_DATA

    Hi Experts,
    We are trying to extract data from a custom table and look up cdhdr and cdpos table for change log for recrods in that custom table. I created a generic datasource with an abaper who defined a self defined FM below which is a copy of the RSAX_BIW_GET_DATA_SIMPLE and added code to it as necessary to meet the requirements above. It was extracting data fine but the job in ECC was hanging forever and bringing down the server. Then we added the code for  RAISE NO_MORE_DATA. Now it is not extracting any data at all. Please help as this is really urgent. Following is the code. pleae tell me what i am doing wrong.
    Thanks in advance.
    FUNCTION zrsax_get_cd_data .
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_REQUNR) TYPE  SRSC_S_IF_SIMPLE-REQUNR
    *"     VALUE(I_DSOURCE) TYPE  SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
    *"     VALUE(I_MAXSIZE) TYPE  SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
    *"     VALUE(I_INITFLAG) TYPE  SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
    *"     VALUE(I_READ_ONLY) TYPE  SRSC_S_IF_SIMPLE-READONLY OPTIONAL
    *"     VALUE(I_REMOTE_CALL) TYPE  SBIWA_FLAG DEFAULT SBIWA_C_FLAG_OFF
    *"  TABLES
    *"      I_T_SELECT TYPE  SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
    *"      I_T_FIELDS TYPE  SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
    *"      E_T_DATA STRUCTURE  ZDIRUPDTE OPTIONAL
    *"  EXCEPTIONS
    *"      NO_MORE_DATA
    *"      ERROR_PASSED_TO_MESS_HANDLER
    DataSource tables
      TABLES: zdirupdte.
    Auxiliary Selection criteria structure
      DATA: l_s_select TYPE srsc_s_select.
    Maximum number of lines for DB table
      STATICS: s_s_if TYPE srsc_s_if_simple,
    counter
              s_counter_datapakid LIKE sy-tabix,
    cursor
              s_cursor TYPE cursor.
      IF i_initflag = sbiwa_c_flag_on.
    Initialization: check input parameters
                    buffer input parameters
                    prepare data selection
    Check DataSource validity
        CASE i_dsource.
          WHEN 'Z_DE2110_DIRUPDATE'.
          WHEN OTHERS.
            IF 1 = 2. MESSAGE e009(r3). ENDIF.
    this is a typical log call. Please write every error message like this
            log_write 'E'                  "message type
                      'R3'                 "message class
                      '009'                "message number
                      i_dsource   "message variable 1
                      ' '.                 "message variable 2
            RAISE error_passed_to_mess_handler.
        ENDCASE.
        APPEND LINES OF i_t_select TO s_s_if-t_select.
    Fill parameter buffer for data extraction calls
        s_s_if-requnr    = i_requnr.
        s_s_if-dsource = i_dsource.
        s_s_if-maxsize   = i_maxsize.
        APPEND LINES OF i_t_fields TO s_s_if-t_fields.
      ELSE.                 "Initialization mode or data extraction ?
    Select: Retrieve all rcords from Custom table, then get CD data.
          IF sy-subrc = 0.
            LOOP AT payrl_itab.  " 1st loop to populate e_t_data with updatd values from custom table.
    Add reoord from cusom table. Update with CD header info.
              s_counter = s_counter + 1.
              MOVE s_counter TO e_t_data-unq_rec_id. "Make record unique
              MOVE-CORRESPONDING payrl_itab TO e_t_data.
              PERFORM concatenate_key. " key for cdpos_UID
              PERFORM select_cd_data.  " select CDHDR/CDPOS data
              PERFORM get_header_data.
              MOVE-CORRESPONDING hdr_itab TO e_t_data.
              APPEND e_t_data.
    Add same record to datapacket but with old actv/civ type value from CD table.
              s_counter = s_counter + 1.
              MOVE s_counter TO e_t_data-unq_rec_id.
              MOVE-CORRESPONDING payrl_itab TO e_t_data.
              MOVE-CORRESPONDING hdr_itab TO e_t_data.
              LOOP AT cdpos_itab.
                CASE cdpos_itab-fname.
                  WHEN 'ACTV_TYP'.
                    MOVE cdpos_itab-value_old TO e_t_data-actv_typ.
                  WHEN 'CIV_TYP'.
                    MOVE cdpos_itab-value_old TO e_t_data-civ_typ.
                  WHEN OTHERS. " Only need ACTV & CIV Types for 1.2.
                ENDCASE.
              ENDLOOP.
              APPEND e_t_data.
              CLEAR: hdr_itab[], cdpos_itab[], cdhdr_itab[].
            ENDLOOP.
          ELSE.
            MESSAGE e185.
          ENDIF.                             "First data package
        ENDIF.
        s_counter_datapakid = s_counter_datapakid + 1.
        RAISE NO_MORE_DATA.
      ENDIF.              "Initialization mode or data extraction ?
    ENDFUNCTION.

    Hi,
    Where is the first select statement - that is select statement on the custom table ?
    You should open cursor on this table and subsequently fetch package by package.
    After each fetch you will check whether any data is retrieved and raise the exception no more data
    something like
          OPEN CURSOR WITH HOLD s_cursor_doc FOR
          SELECT docnr FROM xxxxxx
          WHERE racct BETWEEN '0000200000' AND '0000200999'
          AND   cpudt IN xxxxxx.
        ENDIF.                             "First data package ?
    **fetching required PCA documents into ranges table
        FETCH NEXT CURSOR s_cursor_doc
                    INTO TABLE itab_docnr
                    PACKAGE SIZE s_s_if-maxsize.
        IF sy-subrc NE 0.
          CLOSE CURSOR s_cursor_doc.
          RAISE no_more_data.
        ENDIF.

  • Urgent: Problems in Generic Extraction by Function Module

    Hi BW Gurus,
    I am new to SDN and also new to generic extraction using function module. My requirement is to extract long text(142 char) from CRM to BW as the text is not stored in database table I used function module read_text with in another ZXXX function module copy of (RSAX_BIW_GET_DATA_SIMPLE). In my extract structure I used GUID(char,32), Langu, long text(142 char) and 2 placeholders. Text can be extracted by passing STXH table fields(Tdname, Tdid, Tdobject, Tdspars) to read_text as parameters and i also need to use CRMD_ORDERADM_H field GUID(32 char) to compare 1st 32 chars of tdname(70 char) with Guid to select Guids and loop thru this Guids and for each Guid i need to append lines of text to e_t_data but as i donot know ABAP i unable to write the code for this. Through my friends help i wrote code when i check in RSA3 it is displaying the text but when i replicate into BW and load into data target in monitor the status is red with records initially but afterwards it will be red status again with 0 from 0 records for initial load again.when i check on job logs the errors i have are:
    The background job has created a job log file of 2Gb size and it is currently on a infinite loop writing entries into the SAP System Log that it cannot write to the Job log file due to “Error 22 for write/read access to a file” this is because of the datasource i have created. Please find my Function module and if anyone would please correct FM and send me that will be really great.I appreciate it in advance.
    MY Function Module is:
    FUNCTION Z_CRMORDERH_STR_TXT.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_REQUNR) TYPE  SRSC_S_IF_SIMPLE-REQUNR
    *"     VALUE(I_DSOURCE) TYPE  SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
    *"     VALUE(I_MAXSIZE) TYPE  SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
    *"     VALUE(I_INITFLAG) TYPE  SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
    *"     VALUE(I_READ_ONLY) TYPE  SRSC_S_IF_SIMPLE-READONLY OPTIONAL
    *"     VALUE(I_REMOTE_CALL) TYPE  SBIWA_FLAG DEFAULT SBIWA_C_FLAG_OFF
    *"  TABLES
    *"      I_T_SELECT TYPE  SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
    *"      I_T_FIELDS TYPE  SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
    *"      E_T_DATA STRUCTURE  YCRM_TEXT_STR OPTIONAL
    *"  EXCEPTIONS
    *"      NO_MORE_DATA
    *"      ERROR_PASSED_TO_MESS_HANDLER
    ***"  EXCEPTIONS     NO_MORE_DATA
    *"      ERROR_PASSED_TO_MESS_HANDLER
      Tables: CRMD_ORDERADM_H, STXH.
    Auxiliary Selection criteria structure
    data: l_s_select type srsc_s_select.
    Maximum number of lines for DB table
      Statics: s_s_if type srsc_s_if_simple,
    counter
             s_counter_datapakid like sy-tabix,
    Cursor
             s_cursor type cursor.
    data: i_crmtext type standard table of TLINE .
      types: begin of xsreph ,
              GUID type CRMD_ORDERADM_H-guid,
            end of xsreph.
       data: i_guid type standard table of xsreph.
      data: I_TEXT type STXH-TDNAME.
      data: xempl like  YCRM_TEXT_STR occurs 0 with header line.
      data: t_tab like dd03l-tabname.
    Select ranges
      ranges: l_r_guid for CRMD_ORDERADM_H-guid.
             l_r_connid  for sflight-connid.
    Initialization mode (first call by SAPI) or data transfer mode
    (following calls) ?
      if i_initflag = sbiwa_c_flag_on.
    Initialization: check input parameters
                    buffer input parameters
                    prepare data selection
    Check DataSource validity
        case i_dsource.
          when 'yCRM_TEXT'.  " for S_SREPH1
          when others.
            if 1 = 2. message e009(r3). endif.
    this is a typical log call. Please write every error message like this
            log_write 'E'                  "message type
                      'R3'                 "message class
                      '009'                "message number
                    i_dsource   "message variable 1
                      ' '.                 "message variable 2
            raise error_passed_to_mess_handler.
        endcase.
       append lines of i_t_select to s_s_if-t_select.
    Fill parameter buffer for data extraction calls
        s_s_if-requnr    = i_requnr.
        s_s_if-dsource = i_dsource.
        s_s_if-maxsize   = i_maxsize.
    Fill field list table for an optimized select statement
    (in case that there is no 1:1 relation between InfoSource fields
    and database table fields this may be far from beeing trivial)
       append lines of i_t_fields to s_s_if-t_fields.
    we will do our selection based on what is in the p table for the
    infoobject
      else.                 "Initialization mode or data extraction ?
    Data transfer: First Call      OPEN CURSOR + FETCH
                   Following Calls FETCH only
    First data package -> OPEN CURSOR
        if s_counter_datapakid = 0.
    Fill range tables BW will only pass down simple selection criteria
    of the type SIGN = 'I' and OPTION = 'EQ' or OPTION = 'BT'.
        LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'GUID'.
            MOVE-CORRESPONDING L_S_SELECT TO L_R_GUID.
            APPEND L_R_GUID.
          ENDLOOP.
          case i_dsource.
            when 'YCRM_TEXT'.  " for S_SREPH1
              t_tab = 'CRMD_ORDERADM_H'.
          endcase.
          select GUID
          from (t_tab)
          into table i_guid where   PROCESS_TYPE = 'ZACI'  and ( OBJECT_ID < '0000000042').
         select tdname from stxh into i_text where tdobject = 'TEXT'.
         if sy-subrc ne 0.
           message e009(r3).
    this is a typical log call. Please write every error message like this
           log_write 'E'                  "message type
                     'R3'                 "message class
                     '009'                "message number
                     i_dsource   "message variable 1
                     'No master data found'.           "message variable 2
           raise error_passed_to_mess_handler.
         endif.
    Determine number of database records to be read per FETCH statement
    from input parameter I_MAXSIZE. If there is a one to one relation
    between DataSource table lines and database entries, this is trivial.
    In other cases, it may be impossible and some estimated value has to
    be determined.
         open cursor with hold s_cursor for
         select (s_s_if-t_fields) from CRMD_ORDERADM_H
                                  where GUID in L_R_GUID .
                                   ENDIF.
    Fetch records into interface table.
      named E_T_'Name of extract structure'.
       fetch next cursor s_cursor
                  appending corresponding fields
                  of table e_t_data
                  package size s_s_if-maxsize.
        IF SY-SUBRC <> 0.
         CLOSE CURSOR S_CURSOR.
         RAISE NO_MORE_DATA.
       ENDIF.
    as we are doing this only once can use the select statement.
    ***data: crmtext like tline occurs 0 with header line.
    **data: i_crmtext type standard table of TLINE.
    **data: i_guid type standard table of xsreph.
    data: l_guid type THEAD-TDNAME.
    data: st_guid type xsreph.
    data: st_crmtext type TLINE.
    data: lan type THEAD-TDSPRAS.
    lan = 'E'.
    loop at i_guid into st_guid.
    l_guid = st_guid-guid.
    CALL FUNCTION 'READ_TEXT'
       EXPORTING
       CLIENT                        = SY-MANDT
         ID                            = 'A002'
         LANGUAGE                      = lan
         NAME                          = l_guid
         OBJECT                        = 'CRM_ORDERH'
       ARCHIVE_HANDLE                = 0
       LOCAL_CAT                     = ' '
    IMPORTING
       HEADER                        =
       TABLES
         LINES                         = i_crmtext.
    EXCEPTIONS
       ID                            = 1
       LANGUAGE                      = 2
       NAME                          = 3
       NOT_FOUND                     = 4
       OBJECT                        = 5
       REFERENCE_CHECK               = 6
       WRONG_ACCESS_TO_ARCHIVE       = 7
       OTHERS                        = 8
    e_t_data-guid = l_guid.
    loop at i_crmtext into st_crmtext.
    move lan to e_t_data-langu.
    move st_crmtext-tdline to e_t_data-description.
    append e_t_data.
    endif.
    endloop.
    clear: st_guid,l_guid.
    refresh: i_crmtext.
    endloop.
    S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
    endif.
    ENDFUNCTION.
    please Gurus as I donot know ABAP i appreciate if anyone would write a FM based on requirement and send me that will be really great this is my request. I gurantee of award points for good answers.
    Regards
    Kishore

    Hi,
    The statement <b>RAISE NO_MORE_DATA</b> should be active (uncommented) in your code. Otherwise, the infinte loop occurs.
    See also, the Siggi's blog:
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    BTW, was it your thread here:
    Re: Urgent: problems in extracting Long Text
    Best regards,
    Eugene

Maybe you are looking for

  • I have a problem, I need some help.

    So, tonight I decided to update my iPod, the new iOS 4.2.1 (which is as high as my iTouch allows me to go) was looking pretty good by now. So I did. But once my comp. was done updating both my computer software for itunes + my ipod, I required me to

  • Improving the look and feel of your application

    Deal all java programmers I have Frame at the moment that has a menu and displaying 2 images. The application looks very boring and dull at the moment. I am just wondering if there is a class,tool or function in java that can help improve the look an

  • Trasnfer function error usgin ULx library for running a DC motor

    HI, I am trying to run a DC motor using Labview's control kit. I want to add a transfer function to the system but once in the loop it gives me an error. The function has an added zero to see changes in the system. It is given by : H(s)= (1/5s +1) /

  • Regarding work process

    Hi All my application servers were in stopped mode.  and I am in the state of unlogon to SAP. So what can be done to make all my Aplication servers running..

  • Is there any standard thing in sap to find how old is the invoice or Bill.

    Hi Experts, i have query regading the invoice or bill. i.e. is there any standard functionality in sap to find how old is the invoice or bill. Thanks i advance, Roopa.K.