Open Hub, Delta Transformation

Hi All,
Thanks in advance for your help.  I am extracting data from a DSO to a flat file using an Open hub and a delta DTP.  The problem I have is that if there is no delta (i.e. zero new/changed records) since the last time the open hub ran, my file is not cleared.
For example,  If I ran the DTP in the morning and received 100 records, the open hub creates a file in the UNIX directory with a 100 records.  However if in the evening I run the DTP again and there are no new records, the file is cleared, and remains with the 100 records.  This is causing a problem down the line because the data is sent twice.
Is there anyway that the DTP can output blank files? or can the file be cleared out in a different step in the process chain?
your help is very appreciated.
Thanks

Hi,
This note should correct your problem: 1111259
Summary
Symptom
You extract data using a Delta data transfer process (DTP) to an open hub destination of type 'File on application server'. If the source does not contain any new data, the existing file is not deleted.
Reason and Prerequisites
This problem is caused by a program error.
Solution
SAP NetWeaver 7.0 BI
           Import Support Package 17 for SAP NetWeaver 7.0 BI (BI Patch 17 or SAPKW70017) into your BI system. The Support Package is available when Note 1106569 "SAPBINews BI7.0 Support Package 17", which describes this Support Package in more detail, is released for customers.
In urgent cases, you can implement the correction instructions as an advance correction.
Hope this helps.
Regards,
Diego

Similar Messages

  • Open Hub Delta Records

    Hi,
    Can we able download Delta Records from ODS / Cube by using Openhub , please some one tell me
    Thanks,
    GAL

    Hi,
    Yes it is possible,
    1)create an Open hub on the top of Cube/DSO and create a Delta DTP and execute
    2)Select the Destination type as CSV file or Database table
    If you select CSV file as Destination type
    1)If you want to download it to desktop or to your local machine, then click on the directory and chose the path.
    2)If you want to download it to Application Directory, then Check the button Application server, you can see the directory path automatically, now the file will be placed in the in that particular directoy.
    If you select Database table as Destination type
    1)Then you can see the database table name on the screen , goto se11 and download the data fomr that partiuclar table

  • Open hub - output structure enhancement - will delta need to disturb ?

    Hi,
    We have done some changes to the Open hub output structure and added few output fields, now we need to move it to production. I can see in production it is delta enabled i.e. only newly added data is written in output file.
    Now, I need to move new structure to the Production, I wanted to know shall I need to distrube the delta management for Open hub output, ot it will taken care automatically.
    Kindly advice.

    Thanks,
    Which is the best ABAP function to extract an SAP table to a flat file??
    Because at this point, I have put in <b>IF_EX_OPENHUB_TRANSFORM~TRANSFORM</b>
    the following:
    method IF_EX_OPENHUB_TRANSFORM~TRANSFORM.
    data: l_s_data_in type /BIC/CYZEPC_OH_EPCOT_PROSPER,
          l_s_data_out type ZEPC_I_EPCOT_PROSPER.
      data l_dummy.
      message i899(rsbo) with 'exit started' into l_dummy.
      i_r_log->add_sy_message( ).
      clear e_t_data_out.
      loop at i_t_data_in into l_s_data_in.
        move: l_s_data_in-/BIC/ZEPCC0018 to l_s_data_out-MARQUEFIL,
              l_s_data_in-/BIC/ZEPCC0005 to l_s_data_out-GENRE,
              l_s_data_in-CALMONTH       to l_s_data_out-MOISFERME,
              l_s_data_in-/BIC/ZEPCC0008 to l_s_data_out-TYPPROSPER,
              l_s_data_in-CALYEAR        to l_s_data_out-ANNEE,
              'ABC'                 to l_s_data_out-COD_MVT.
        insert l_s_data_out into table e_t_data_out.
      endloop.
      message i899(rsbo) with 'exit finished' into l_dummy.
      i_r_log->add_sy_message( ).
    endmethod.
    So now my <u>destination DB ta</u>ble, <b>/BIC/OHZEPC_OH_E</b> (same as structure <b>ZEPC_I_EPCOT_PROSPER</b> above) should have the data inside. 
    Can I now just insert a fuction at the end to download the table to flat file???
    Thanks,
    Tim

  • Error while assigning constant to infoobject in open hub transformation

    While assigning constants(in rule details) to infoobject in a transformation in a open hub I am getting an error "The Object Name is not allowed to be empty"
    Can anyone tell my why this is happening? What should I do now?

    Hi,
    In the transformation, have you connected that rule to any target field of your destination? If not, then do that and then try to create the routine.
    Regards,
    Vaibhav

  • DTP Delta request for open hub destination.

    Hi expert,
    As you know, In BW 7.0, open hub destination is used for open hub service, and you can create tranformation/DTP for the destination. and in some case the DTP delta is enabled.
    my questions are
    1) in the context menu of open hub destination, I did not find something like manage, which could list all the DTP request executed for this open hub destination..but for normal infocube or ods, you can find a list.
    2) if the DTP could enable the delta, where can I delete the latest delta request, and have a new load..
    3) I assume the DTP could be excuted with batch integrated with process chain by process type 'DTP', right ? if the destination type is third party tool, can it also be integrated with process chain ?
    4) can give some obvious difference of InfoSpoke and open hub destination in terms of advantage and disadvantage..
    Thanks a lot for the feedback.
    Best Regards,
    Bin

    Hi ,
    Please look at the links below . hope it helps .
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d063282b-937d-2b10-d9ae-9f93a7932403?QuickLink=index&overridelayout=true
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e830a690-0201-0010-ac86-9689620a8bc9?QuickLink=index&overridelayout=true
    Regards
    Santosh

  • Open Hub with DataSource as Source of Transformation

    Hello,
    I have created an Open Hub Destination to a database table and activated it.  I now try to create a transformation with the new open hub as the destination and a custom datasource as the source of the transformation.
    I get an error message that says "Cannot connect DataSource to an open hub destination".  We are on BI 2004s service pack 12.  I was able to perform this task successfully on previous support packs.
    For instance, I cannot open an existing transformation from a datasource to the open hub that was created before the application of the support packs.  I get the same error message.
    Any suggestions?
    Thanks for your help,
    Jason

    Hi Michael,
    I was loading directly from the DataSource into a database table because I was only going to use the table as a lookup table in a transformation.  The data doesn't really need to be in a BI object.
    I did the same procedure one other time while we were on service pack 6, and it worked fine.
    Anyway, I have loaded the lookup data into a DSO and everything is fine.  Thanks for your helpful response.
    Regards,
    Jason

  • ABAP routine in Open hub transformation

    Hello Experts,
    My BW consultant created a Open Hub service. For creating a .csv file from a cube.
    For that he had a transformation defined between the source and destination fields.
    I was asked to write a routine to bring the negative sign to front for one of the fields.
    I wrote the following code.
    >    DATA V_OUT(25).
    >
    >   CLEAR V_OUT.
    >
    >    V_OUT = SOURCE_FIELDS-G_AVVWHC.
    >
    >      CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
    >        CHANGING
    >          VALUE = V_OUT.
    >
    >      RESULT = V_OUT.
    there was no error in the syntax check.
    Now, when the open hub is created/ran without routine(direct assignment) it works fine.
    But when the above code is ran, it TIMED OUT!!!!
    I am unable to find any reason for that.
    Could anybody please provide some guidance on this.
    Regards,
    DNP

    Hi Jerry,
    Thanks for your input again. I checked the dump in ST22 and looks like nothing is related to Routine-
    >Information on where terminated
    >    Termination occurred in the ABAP program "CL_SQL_STATEMENT==============CP" -
    >     in "EXECUTE_QUERY".
    >    The main program was "RSAWBN_START ".
    >
    >    In the source code you have the termination point in line 19
    >    of the (Include) program "CL_SQL_STATEMENT==============CM004".
    SourceCde
    >METHOD execute_query .
    >*
    >* Execute the given query.
    >*
    >
    >  DATA:
    >    stmt_ref TYPE REF TO data,
    >    sql_code TYPE i,
    >    sql_msg  TYPE dbsqlmsg,
    >    c        TYPE cursor.
    >
    >
    >* check if a statement was provided by the caller
    >  IF statement IS NOT SUPPLIED.
    >    RAISE EXCEPTION TYPE cx_parameter_invalid
    >          EXPORTING parameter = 'STATEMENT'.
    >  ENDIF.
    >
    >>  CALL 'C_DB_FUNCTION' ID 'FUNCTION'    FIELD 'DB_SQL'                     
    >>                       ID 'FCODE'       FIELD c_fcode_prepare_and_open
    >>                       ID 'CONNAME'     FIELD me->con_ref->con_name
    >>                       ID 'CONDA'       FIELD me->con_ref->con_da
    >>                       ID 'STMT_STR'    FIELD statement
    >>                       ID 'HOLD_CURSOR' FIELD hold_cursor
    >>                       ID 'INVALS'      FIELD me->parameters->param_tab
    >>                       ID 'CURSOR'      FIELD c
    >>                       ID 'SQLCODE'     FIELD sql_code
    >>                       ID 'SQLMSG'      FIELD sql_msg.
    > IF sy-subrc <> 0.
    >  31 *   call error handling macro
    >  32     m_handle_error sy-subrc sql_code sql_msg.
    >  33   ENDIF.
    >  34
    >  35 * reset the parameters in order to make the statement object reusable
    >  36 * for the next execution of an DML statement or query immediately;
    >  37 * but the cursor C itself must not be freed because it will still be
    >  38 * accessed by the created result set object; the allocated cursor
    Regards,
    DNP

  • Error in Open Hub Transformation Routine

    Hi,
    I created an Open Hub Destination which has 67 fields.
    In the transformation, i am using 'routine' for one of the transformation rule.
    In the routine, the target field type is not defined automatically and I am not able to change it. When i save the routine, it gives me error: E:The field string "_TY_S_TG_1" contains no fields.
    Please help.
    Thanks,
    CH
    CLASS routine DEFINITION.
      PUBLIC SECTION.
        TYPES:
          BEGIN OF tys_SC_1,
         InfoObject: 0MATERIAL Product.
            MATERIAL           TYPE /BI0/OIMATERIAL,
          END   OF tys_SC_1.
        TYPES:
          <b><i>BEGIN OF tys_TG_1,
         Field: TXTLG.
          END   OF tys_TG_1.</i></b> 
          PRIVATE SECTION.
        TYPE-POOLS: rsd, rstr.

    Hi,
    In the transformation, have you connected that rule to any target field of your destination? If not, then do that and then try to create the routine.
    Regards,
    Vaibhav

  • How to load delta, changing the name of file for every day with open hub?

    Hi gurus,
    I load daily delta data from ODS to flat file, using open hub.
    The file is located on server. Now, if I do delta load from ODS to flat file, every day the file is overwritten, because it has the same name.
    I want to load delta data everyday to different file name, for example BW_20060101 , BW_20060102, BW_2006_01_03 ....
    How do I do that?
    Best regards,
    Uros

    Hi Uros,
    This thread may give you some idea
    Changing the file name n Flat file Extraction
    https://websmp107.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700002201112003E
    Regards,
    BVC

  • Delete the initialization of delta on open hub table

    HI Gurus
    I have loaded data from cube to open hub table using DTP with full update, later on i have loaded the data using a DTP with delta update. Now i am thinking that delta has been initialized on the open hub table, so now want to delete the initialization of delta on the open hub table. It would be great if some one could send me the response. 
    Thanks
    Rohit

    Hi Sam,
    If I understand you correctly,
    You have removed your Initialisation by going InfoPackage --> Scheduler --> Initialization Options for Source --> Removed the Request
    Then you did Init without Data Transfer
    Then you have the option from init withoout Data transfer to Delta in InfoPackage and Loaded the Data.
    Check in the Process Chain the InfoPackage you have mentioned in the selections may pointing towards Init load instead of Delta.
    Sudhakar.

  • Transformations on Datasource for Open Hub Services

    Dear all,
         I have created a Generic Datasource on a transparent table. Following which  have created an Open hub service on this datasource. Now am unable to create the thansformations on this. I encountered the following error "Cannot connect DataSource to an open hub destination ". 
    Please let me know whether it is possible to generate Transformations for Open hubs on Datasource.
    If not, let me know any procedure to populate data from generic datasource.
    Kind Regards,
    Sunitha

    Hi,
    connection with an datasource is not possible. But, try to connect the datasource to with an infosource and use the infosource as a source for the open hub. maybe this works.
    cheers
    Juergen

  • Open Hub Destination Delta issue

    Hi experts,
    We have a scenario in which a Open hUb is created on top of a cube.
    Regular delats are moving from this cube to Open hub daily.
    But as per the request, we had to dump the cube data, and the reload took, 2 days to complete.
    So, that 2 days, data got missed in Open hub.
    Now, as the new request are not datamarted, next time wen the DTP between Cube and Open Hub runs, it will fetch all the requests right. we dont want that.
    So, can we run a init w/o data transfer so that source status will be fetched?
    but then how to load that 2 days data alone.
    Kindly advise.
    Edited by: neethacj on Mar 7, 2012 1:06 PM

    If the cube doesnt have any other targets aprart from this OHD,
    delete the two days requests in the cube, set the init from cube to ohd
    load the cube for delta( brings two days requests) and run the ohd

  • Open hub delete delta

    Hello,
    I'm using open hub in BI 7.0. How does the delta queue work for this tool?
    I'm extracting data from a cube to a flat file with delta. I'm storing the flat file on the SAP server for further processing.
    How do I handle re-runs of delta. For example if something goes wrong in the load, how do I re-run the last delta without having to reload the entire content of the source cube?
    Thanks,
    F C

    Hello again,
    But I cannot delete the request from the cube. This is the source of the load. I do not wish to delete the source data, but only the "delta queue" in order to be able to reload. Please elaborate further..
    I have noticed that setting the monitor to red will delete the target file. Furthermore, when executnig the DTP again, alla data is loaded again (and not only the delta).
    Any ideas?
    Regards,
    F C

  • Open Hub Destination question

    Hi,
    We want to be able to extract data from a cube and would like to use Open Hub Destination for it. We also want to extract deltas.
    The question is ..
    Should we be making a single info package for this with delta capability ..
    or 2 separate info packages .. 1 for full mode and another for delta mode.
    Regards
    Vandana

    Hi,
    Yes what you said it is write
    from which cube do u want to retract the daat that cube will be the source
    first create the open hub in RSBO tcode and
    in open hub destination select aht and create the transformation between the table( to where u want to export)
    then create the DTP between the cube to the table
    and directly u can use the delta DTP first all the records will come and later onle delta records will be updated.
    Thansk & Regards,
    sathish

  • Open Hub  - Infosets as source and 'template fields' button

    Hi all,
    Two questions re Open Hub on 04s (we are on SP8).  I've surfed OSS, help.sap.com and SDN with no luck re answers to these:
    - I've defined an infoset as my source of an open hub destination.  It appears I must create a transformation, but it generates no proposal, and I'm not sure how/if I can add a virtual object (such as an infoset) as a source in a transformation.  It appears that the DTP requires this transformation to be defined.  Am I missing something?  So far, testing on all other objects has been successful.
    - How does one use the button 'Template Fields' when defining fields in an OHD?  I expected to see options to insert groups of fields (ex. all fields of an infoobject and its attributes), but I don't see any options available.
    Thanks!
    Lonnie

    Update:
    I was able to create the transformation (issue found btw keyboard and chair).
    New problem:  I am unable to activate my DTP.  When choosing the source for my DTP, I get a popup window (as normal) to choose the possible sources, but the infoset is not available for selection.  Only the 'pieces' of the infoset (the two DSO's that comprise the infoset), and this doesn't help me because my source is the infoset, not the indivudual tables of it. 
      Also, I cannot change the extraction mode to FULL.  Only delta is available.
    Thanks in advance for any help.

Maybe you are looking for