Infopackage group-- zero to zero records

Hi friends ,
I have an IPG which consists of 20 Ips .  all are loaded  sucessfully , but  many IPs are showing zero to zero records.  Iam doing a full load . In the  RSMO,  status is giving : NO DATA IS THERE IN SOURCE SYSTEM.  INFOIDOC recived with status  8 . How to solve this error , plz provide inputs what migght be the errors and also i donto have access to source system.
Regards,
Pavan.

hi,
   i want to know wheter you have given data in 'dataselection' tab page if it is so see that they are approporiate i.e the range should be present in the source system.
pls assign points idf helpful.

Similar Messages

  • Zero records added after dataload from texttable of 1 infoobject to another

    Hello,
    We are working on BI 7.0 (2004S)  but we still use BW 3.5 data flow.
    We have a requirement to load text data from one infoobject (0material) to another infoobject (0rt_confmat). The actual requirement was - Text table of  0material (/BI0/TMATERIAL) should  be added  to info-object 0RT_CONFMAT text table.)
    0rt_confmat is a navigational  attribute of 0material.
    I did the following steps to load this data using 2 methods. The data loads using both these methods are successful but zero records are added to the text table of 0rt_confmat.
    Method 1 :
    1. Text table of  0material (/BI0/TMATERIAL) cannot be added directly to info-object 0RT_CONFMAT text table.
    So a datasource ZTXTMATERIAL was created with text table  /BI0/TMATERIAL.
    2. Infosource, transfer rules and update rules were created. Changes were made to
    the info-object 0RT_CONFMAT to include its own text table according to the specifications given.
    Method 2:
    1.  created an export datasource for 0material and did the necessary steps such as replicating data source, creating infosource, update rules and transfer rules and infopackage.
    The problem is that the number of transferred records  is 16089 but 0 records are added to the text table of 0RT_CONFMAT.
    Records from text table are not getting loaded from
    I have searched sdn and sap notes but was unable to find a solution for this issue.
    Is it not possible to load data from the text table of a characteristic infoobject to the text table of its navigational attribute ?
    Please suggest a solution for this issue.
    Thanks and Regards,
    Radhika

    Hi All,
    Please refer below for replies to your questions
    Now I was to suggest the second approach:
    1. What have you set into the transfer structure, did you map 0rt_confmat with 0rd_confmat? -  I mapped it with 0material
    2. Do you see text elements in the transfer structure? -yes the text elements exist in the transfer structure
    3. As 0rt_confmat is an attribute of 0material, there is a possibility that for multiple material you may have same 0rt_confmat. In that case, your load may fail saying duplicate records.  - The data load is successful, but records are not added to the target.
    4. What is the data type for 0rf_confmat and 0material in your system? - Both are character strings
    On what basis are you loading the text from 0material to 0rt_confmat. -the key field 0material is mapped to 0rt_confmat
    Your problem seems to be the update rules / transfer rules from 0MATERIAL text table to 0RT_CONFMAT, that's why in your second method you have transfered values, but none were added.
    Remember that you have to have a key for 0RT_CONFMAT and the text for that key mapped through transfer rules, and I beleive that 0MATERIAL text table doesn't have the key for 0RT_CONFMAT, but has the key for 0MATERIAL. If you want both keys to be the same, then in your transfer rules map 0MATERIAL to 0RT_CONFMAT, and the text from 0MATERIAL to the text for 0RT_CONFMAT.
    Is that what you've done? - Yes, in the update rules 0material is mapped to 0rt_confmat and the text from 0material is mapped to text from 0rt_confmat. After reading your reply I mapped 0MATERIAL to 0RT_CONFMAT  it in the transfer rules as well, but still zero records are added.
    The data load is successful using both methods , but records are not getting added.
    Can you chk in RSA3 if the data is extracted for the datasoruce ZTXTMATERIAL?? - Yes, data gets extracted.
    ALso while you loaded the data, did you get the data in the PSA? - Yes data is seen in the PSA.
    Please suggest how I can proceed now.
    Thanks and Regards,
    Radhika

  • Initialization with zero records

    Hi BW Folks,
    I have scheduled initialization to ODS object, Ran successfully but zero records.
    After that tried to do delta the package got failed with out any proper error message. i can see only error message " Start InfoPackage XXXXX "
    if i go to infopackage manually its showing message saying that " There is no active delta Initialization for this IS/QS/DATA source"
    Have checked in R3 - extract checker could see only Zero records.
    Can you please help me in this! Thanks in Advance.
    Regards,
    --Nani.

    Hi,
    Thats the reason for why you are not able to do the delta loads. This request should be there in the <i>Schedular</i> as the prerequisite to do the delta loads.It does not matter  even you have that request in the data target if there is no delta init info at infopackage.
    So you need to do delta init one more tmie. So delete teh data from data targets. And do the delta init .
    With rgds,
    Anil Kumar Sharma .P
    Message was edited by:
            Anil Kumar Sharma

  • Load fails everytime if it has zero records

    Hi friends,
    1.Load fails everytime if it has zero records?.
    how to overcome this issue.
    2.HOw to Load field more than 60 chars length& how to represent in WEB Reports?
    It's Very Urgent.
    Thanks,
    Basava Raju

    <i>1.Load fails everytime if it has zero records?.
    how to overcome this issue.</i>
    Check this - Open up a load in RSMO - Menu - Settings - Evaluation of Requests - Set it Green - This will act global.
    To make is specific  to a load - Infopackage - Scheduler - Jst look for similar option ( guess it is the penultimate one )

  • Global Temp Table, always return  zero records

    I call the procedure which uses glbal temp Table, after executing the Proc which populates the Global temp table, i then run select query retrieve the result, but it alway return zero record. I am using transaction in order to avoid deletion of records in global temp table.
    whereas if i do the same thing in SQL navigator, it works
    Cn.ConnectionString = Constr
    Cn.Open()
    If FGC Is Nothing Then
    Multiple = True
    'Search by desc
    'packaging.pkg_msds.processavfg(null, ActiveInActive, BrandCode, Desc, Itemtype)
    SQL = "BEGIN packaging.pkg_msds.processavfg(null,'" & _
    ActiveInActive & "','" & _
    BrandCode & "','" & _
    Desc & "','" & _
    Itemtype & "'); end;"
    'Here it will return multiple FGC
    'need to combine them
    Else
    'search by FGC
    SQL = "BEGIN packaging.pkg_msds.processavfg('" & FGC & "','" & _
    ActiveInActive & "','" & _
    BrandCode & "',null,null); end;"
    'will alway return one FGC
    End If
    ' SQL = " DECLARE BEGIN rguo.pkg_msds.processAvedaFG('" & FGC & "'); end;"
    Stepp = 1
    Cmd.Connection = Cn
    Cmd.CommandType = Data.CommandType.Text
    Cmd.CommandText = SQL
    Dim Trans As System.Data.OracleClient.OracleTransaction
    Trans = Cn.BeginTransaction()
    Cmd.Transaction = Trans
    Dim Cnt As Integer
    Cnt = Cmd.ExecuteNonQuery
    'SQL = "SELECT rguo.pkg_msds.getPDSFGMass FROM dual"
    SQL = "select * from packaging.aveda_mass_XML"
    Cmd.CommandType = Data.CommandType.Text
    Cmd.CommandText = SQL
    Adp.SelectCommand = Cmd
    Stepp = 2
    Adp.Fill(Ds)
    If Ds.Tables(0).Rows.Count = 0 Then
    blError = True
    BlComposeXml = True
    Throw New Exception("No Record found for FGC(Finished Good Code=)" & FGC)
    End If
    'First Row, First Column contains Data as XML
    Stepp = 0
    Trans.Commit()

    Hi,
    This forum is for Oracle's Data Provider and you're using Microsoft's, but I was curious so I went ahead and tried it. It works fine for me. Here's the complete code I used, could you point out what are you doing differently?
    Cheers,
    Greg
    create global temporary table abc_tab(col1 varchar2(10));
    create or replace procedure ins_abc_tab(v1 varchar2) as
    begin
    insert into abc_tab values(v1);
    end;
    using System;
    using System.Data;
    using System.Data.OracleClient;
    class Program
        static void Main(string[] args)
            OracleConnection con = new OracleConnection("data source=orcl;user id=scott;password=tiger");
            con.Open();
            OracleTransaction txn = con.BeginTransaction();
            OracleCommand cmd = new OracleCommand("begin ins_abc_tab('foo');end;", con);
            cmd.Transaction = txn;
            cmd.ExecuteNonQuery();
            cmd.CommandText = "select * from abc_tab";
            OracleDataAdapter da = new OracleDataAdapter(cmd);
            DataSet ds = new DataSet();
            da.Fill(ds);
            Console.WriteLine("rows found: {0}", ds.Tables[0].Rows.Count);
            // commit, cleanup, etc ommitted for clarity
    }

  • Query returns zero records in coldfusion context, but works fine in Navicat

    I've got a query that's returning zero records when I load a page.  If I copy and paste that same query (from the debug output) into navicat, I get rows returned (as I expect).  Has anyone seen this?  It happens locally (CF9) AND remotely on our staging server (CF10).  Even weirder, it's a query that was previously working fine - I simply added an if statement to the where clause, and all of a sudden... 
    Here's the query:
            <CFQUERY name="LOCAL.getEncounterServices" datasource="#REQUEST.dsn#"> 
            SELECT
                a.EncounterProductID,
                a.DateTime AS ServiceDate,
                aa.CartItemID,
                aaa.CartID,
                aaaaa.CartStatus,
                b.ProductID,
                b.ProductName,
                b.CPTCode,
                b.Price,
                c.EncounterID,
                c.DateTimeClosed AS EncounterClosedDate,
                d.FirstName,
                d.LastName
            FROM
                EncounterProducts a
                    LEFT JOIN CartItemProduct aa ON (a.EncounterProductID = aa.EncounterProductID AND aa.Active = 1)
                    LEFT JOIN CartItem aaa ON (aa.CartItemID = aaa.CartItemID)
                    LEFT JOIN Cart aaaa ON (aaa.CartID = aaaa.CartID)
                    LEFT JOIN CartStatus aaaaa ON (aaaa.CartStatusID = aaaaa.CartStatusID),
                Product b,
                Encounters c,
                Contacts d,
                EncounterStatuses e
            WHERE
                1 = 1
                AND (aa.CartItemID IS NULL OR aaaaa.CartStatus = 'Deleted')
                AND a.Active = 1
                AND a.ProductID = b.ProductID
                AND a.EncounterID = c.EncounterID
                AND c.PatientID = d.ContactID
                AND c.EncounterStatusID = e.EncounterStatusID
                AND e.EncounterStatus = 'Closed'
              <CFIF IsDefined("ARGUMENTS.encounter") AND IsObject(ARGUMENTS.encounter)>
                     AND c.EncounterID = <CFQUERYPARAM cfsqltype="cf_sql_integer" value="#ARGUMENTS.encounter.getID()#">
             <CFELSE>
                    AND c.DateTimeClosed >= <CFQUERYPARAM cfsqltype="cf_sql_date" value="#ARGUMENTS.startDate#">
                    AND c.DateTimeClosed < <CFQUERYPARAM cfsqltype="cf_sql_date" value="#DateFormat(DateAdd('d', 1, ARGUMENTS.endDate), 'yyyy-mm-dd')# 00:00:00">
               </CFIF>
                AND c.LocationID = <CFQUERYPARAM cfsqltype="cf_sql_integer" value="#ARGUMENTS.locationID#">
                AND c.CustomerID = <CFQUERYPARAM cfsqltype="cf_sql_integer" value="#ARGUMENTS.customerID#">
            </CFQUERY>
    All of this worked just fine before I added the lines:
             <CFIF IsDefined("ARGUMENTS.encounter") AND IsObject(ARGUMENTS.encounter)>
                     AND c.EncounterID = <CFQUERYPARAM cfsqltype="cf_sql_integer" value="#ARGUMENTS.encounter.getID()#">
             <CFELSE>
                    AND c.DateTimeClosed >= <CFQUERYPARAM cfsqltype="cf_sql_date" value="#ARGUMENTS.startDate#">
                    AND c.DateTimeClosed < <CFQUERYPARAM cfsqltype="cf_sql_date" value="#DateFormat(DateAdd('d', 1, ARGUMENTS.endDate), 'yyyy-mm-dd')# 00:00:00">
              </CFIF>
    Previously, it had just been:
                    AND c.DateTimeClosed >= <CFQUERYPARAM cfsqltype="cf_sql_date" value="#ARGUMENTS.startDate#">
                    AND c.DateTimeClosed < <CFQUERYPARAM cfsqltype="cf_sql_date" value="#DateFormat(DateAdd('d', 1, ARGUMENTS.endDate), 'yyyy-mm-dd')# 00:00:00">
    With no IF/ELSE statement.
    Anyone seen anything like this before?  Any ideas? 
    Thanks.

    Right, I'll start disabusing myself of the DateFormat!
    I'm sorry, I should've posted the actual query too.  It's inserting the first part - "AND c.EncounterID = ....."
    Here's the full query:
    LOCAL.getEncounterServices (Datasource=xmddevdb, Time=9ms, Records=0) in /Applications/ColdFusion9/wwwroot/XMD_NEW/xmd_dev/cfc/ShoppingGateway.cfc @ 16:56:28.028
    SELECT
                a.EncounterProductID,
                a.DateTime AS ServiceDate,
                aa.CartItemID,
                aaa.CartID,
                aaaaa.CartStatus,
                b.ProductID,
                b.ProductName,
                b.CPTCode,
                b.Price,
                c.EncounterID,
                c.DateTimeClosed AS EncounterClosedDate,
                d.FirstName,
                d.LastName
            FROM
                EncounterProducts a
                    LEFT JOIN CartItemProduct aa ON (a.EncounterProductID = aa.EncounterProductID AND aa.Active = 1)
                    LEFT JOIN CartItem aaa ON (aa.CartItemID = aaa.CartItemID)
                    LEFT JOIN Cart aaaa ON (aaa.CartID = aaaa.CartID)
                    LEFT JOIN CartStatus aaaaa ON (aaaa.CartStatusID = aaaaa.CartStatusID),
                Product b,
                Encounters c,
                Contacts d,
                EncounterStatuses e
            WHERE
                1 = 1
                AND (aa.CartItemID IS NULL OR aaaaa.CartStatus = 'Deleted')
                AND a.Active = 1
                AND a.ProductID = b.ProductID
                AND a.EncounterID = c.EncounterID
                AND c.PatientID = d.ContactID
                AND c.EncounterStatusID = e.EncounterStatusID
                AND e.EncounterStatus = 'Closed'
                     AND c.EncounterID = ?
                AND c.LocationID = ?
                AND c.CustomerID = ?
    Query Parameter Value(s) -
    Parameter #1(cf_sql_integer) = 28
    Parameter #2(cf_sql_integer) = 16
    Parameter #3(cf_sql_integer) = 6
    Thansk again for the help!

  • 0fi_ar_4 INIT returning zero records

    Hi gurus,
    0fi_ar_4 INIT is returning zero records while loading into ODS.I have checked in RSA3 it is returning zero records with INIT selection but is it is fetching records with Full update.Can ne one tell me what to do.how to solve this problem.
    rgds,
    ***Points Assured**

    Hi Suravi,
    Check at the Info Package selection-- Init with out data transfer.
    Make it with data transfer..
    Hope it helps..

  • 0FI_AR_4 extractor bringing zero records

    Hi,
    We are using extractor 0FI_AR_4 as delta. At times it is bringing zero records but the next time it brings data along with the daata missed the previous day.
    For ex
    Monday it brought records until previous week
    Tuesday it brought zero record
    Wednesday it brought more records i.e including records created on Monday and Tuesday
    We could not figure out a situation when can this happen. But our observation is that there is no entry for tuesday in the table BWOM2_TIMEST.
    BWOM_SETTINGS
    BWFILOWLIM     19910101
    BWFINSAF         3600
    BWFISAFETY     1
    BWFITIMBOR      020000
    DELTIMEST         60
    OBJCURTYPE    10
    Regards
    Vijay

    check http://help.sap.com/erp2005_ehp_04/helpdata/EN/af/16533bbb15b762e10000000a114084/content.htm
    it states :
    In delta mode, data requests with InfoSource 0FI_AR_4 and InfoSource 0FI_AP_4 do not provide any data if no new extraction has taken place with InfoSource 0FI_GL_4 since the last data transfer. This ensures that the data in BW for Accounts Receivable and Accounts Payable Accounting is exactly as up to date as the data for General Ledger Accounting.
    you can check this...de link gives details about the delta methods for FI extractors

  • Webi Publication - Do not send report by email when zero records

    Hello,
    I have a report that I am scheduling.  It is using dynamic recipients and personalization based on the recipients.  Some of the recipients will have zero records for the report and I do not wish to send the report by email to them.  I have searched and found a "workaround" of adding a conditioned error in the footer to get a division by zero error if there are no records.  However, the report still runs and gets sent to the recipient with no data.  Any way to accomplish what I want to do?
    I am using SAP BusinessObjects BI Platform 4.1 Support Pack 2 Version: 14.1.2.1121
    My data sources are Excel, so I am not using a Universe for this particular application.
    Thank You in advance.

    I have been trying different options and the most promising one would be to generate a list of dynamic recipients that have data and output it to Excel file.  I can use that Excel file as data source for a Webi Document that is going to be used as the dynamic recipient document in a publication.
    One problem is I cannot automate the creation and replacement of an Excel file in InfoView folders.  This means I would have to update the Excel file manually.  Also it seems like the Webi document used for dynamic recipients must be refreshed and saved, otherwise the old list of recipients is used by the publication.

  • Zero Record Data Load Problem

    Hi,
    Please give your suggestion for following problem.
    we are loading data from ETL (Flat File - Data Stage) into SAP BW 3.1.
    data may contain Zero records. When we try to push the data into BW. At ETL side, it is showing successful data transfer. At, BW side it is showing "Processing state" (Yellow light). and all BW resources are hang-up.
    When we try to send another data load from ETL side, We could not push the data as BW resources are hang up by the previous process.
    Whenever we are getting this kind of problem, we are killing the process and continuing with another data Re-load. But this is not a permanent solution. This is happening more often.
    What is the solution for this problem?
    One of my colleague suggested following suggestion. Shall I consider this one?
    Summary:  when loading with empty files, data may be in the processing state in BW 
    Details:  When user load with empty file(must be empty, can not have any line returns, user can check the data file in binary mode), data is loaded into BW with 0 records. BW will show be in yellow state(processing state) with 0 record showing, and in the PSA inside BW, 1 datapacket will show there with nothing inside. Depends on how user configured their system, BW server can either accept the 0 record packet or deny it. When BW server is configured to accept it, this load request will change to green state(finished state). When the BW server is configured to deny it, this load request will be in the yellow state.
    Please give me ur suggestions.
    Thanks in advance.
    Regards,
    VPR

    hi VPR,
    have you tried to set the light 'judge'ment
    go to monitor of one request and menu settings->evaluation of requests(traffic light), in next screen 'evaluation of requests', 'if no data is avaible in the system, the request' -> choose option 'is judged to be successful' (green).
    Set delta load to complete when no delta data
    hope this helps.

  • Zero records in generic extractor

    Dear all ,
    I have created  a generic extrator with function module but there are zero records which are getting extracted.I am able to extract records if I execute only the function module.
    Below is the code for the same.*
    FUNCTION ZGET_CUST_SALP .
    ""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  ZKN_VP OPTIONAL
    *"  EXCEPTIONS
    *"      NO_MORE_DATA
    *"      ERROR_PASSED_TO_MESS_HANDLER
    Example: DataSource for table ZKN_VP
      TABLES: ZKN_VP.
    Auxiliary Selection criteria structure
      DATA: L_S_SELECT TYPE SRSC_S_SELECT.
      data : begin of t_tab1 occurs 0,
               kunnr like kna1-kunnr,
               land1 like kna1-land1,
               PERNR like knvp-PERNR,
               end of t_tab1.
      data : begin of t_knvv occurs 0,
             kunnr like knvv-kunnr,
             vkorg like knvv-vkorg,
             VTWEG like knvv-VTWEG,
             spart like knvv-spart,
             end of t_knvv.
      data : begin of t_knvp_kunn2 occurs 0,
              kunnr like knvp-kunnr,
              kunn2 like knvp-kunn2,
              vkorg like knvv-vkorg,
              VTWEG like knvv-VTWEG,
              spart like knvv-spart,
              end of t_knvp_kunn2.
      data : begin of t_knvp_pernr occurs 0,
              kunnr like knvp-kunnr,
              pernr like knvp-pernr,
              vkorg like knvv-vkorg,
              VTWEG like knvv-VTWEG,
              spart like knvv-spart,
              end of t_knvp_pernr.
      data : begin of t_knvp_p_k occurs 0,
           kunnr like knvp-kunnr,
           pernr like knvp-pernr,
           vkorg like knvv-vkorg,
           VTWEG like knvv-VTWEG,
           spart like knvv-spart,
           end of t_knvp_p_k.
      data : IS_BW_CUST1_w like zkn_vp occurs 0 with header line.
    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,
              S_CURSOR1 TYPE CURSOR,
              S_CURSOR2 TYPE CURSOR.
    Select ranges
      RANGES: L_R_KUNNR  FOR KNA1-KUNNR.
    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 'ZGET_CUST_SALP_ATTR'.
          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.
      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 = 'KUNNR'.
            MOVE-CORRESPONDING L_S_SELECT TO L_R_KUNNR.
            APPEND L_R_KUNNR.
          ENDLOOP.
         LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'CONNID'.
           MOVE-CORRESPONDING L_S_SELECT TO L_R_CONNID.
           APPEND L_R_CONNID.
         ENDLOOP.
    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.
    ******Get Customer Number from KNA1 Table
          OPEN CURSOR WITH HOLD S_CURSOR FOR
          SELECT kunnr FROM KNA1
                                   WHERE KUNNR  IN L_R_KUNNR.
          fetch next cursor s_cursor APPENDING corresponding fields of table t_tab1
          PACKAGE SIZE S_S_IF-MAXSIZE.
          CLOSE CURSOR S_CURSOR.
    ******Get Customer Details from KNVV Table
          OPEN CURSOR WITH HOLD  S_CURSOR1  FOR
          SELECT kunnr vkorg VTWEG spart  FROM KNVV for all entries in t_tab1
          where
          KUNNR = t_tab1-kunnr.
          fetch next cursor s_cursor1 APPENDING corresponding fields of table t_knvv
          PACKAGE SIZE S_S_IF-MAXSIZE.
          CLOSE CURSOR S_CURSOR1.
    ******Get Customer Partner Function Details from KNVP Table for ship to party.
          OPEN CURSOR WITH HOLD  S_CURSOR2  FOR
      select kunnr kunn2 vkorg VTWEG spart from knvp for all entries in t_knvv
        where kunnr = t_knvv-kunnr and vkorg = t_knvv-vkorg
       and VTWEG = t_knvv-VTWEG and spart = t_knvv-spart and parvw = 'WE'.
          fetch next cursor s_cursor2 APPENDING corresponding fields of table t_knvp_kunn2
                PACKAGE SIZE S_S_IF-MAXSIZE.
          CLOSE CURSOR S_CURSOR2.
          delete adjacent duplicates from t_knvp_kunn2 comparing kunnr.
    ******Get Customer Partner Function Details from KNVP Table for Sales Personnel.
          OPEN CURSOR WITH HOLD S_CURSOR2 FOR
          select kunnr pernr vkorg VTWEG spart from knvp for all entries in t_knvv
          where kunnr = t_knvv-kunnr and vkorg = t_knvv-vkorg
          and VTWEG = t_knvv-VTWEG and spart = t_knvv-spart and parvw = 'ZR'.
        ENDIF.                             "First data package ?
        fetch next cursor s_cursor2 APPENDING corresponding fields of table t_knvp_pernr
           PACKAGE SIZE S_S_IF-MAXSIZE.
        CLOSE CURSOR S_CURSOR2.
        Loop at t_knvp_pernr.
          t_knvp_p_k-kunnr = t_knvp_pernr-kunnr.
          t_knvp_p_k-pernr = t_knvp_pernr-pernr.
          t_knvp_p_k-vkorg = t_knvp_pernr-vkorg.
          t_knvp_p_k-VTWEG = t_knvp_pernr-VTWEG.
          t_knvp_p_k-spart = t_knvp_pernr-spart.
          append t_knvp_p_k.
          loop at t_knvp_kunn2 where kunnr = t_knvp_pernr-kunnr and vkorg = t_knvp_pernr-vkorg
          and VTWEG = t_knvp_pernr-VTWEG and spart = t_knvp_pernr-spart.
            t_knvp_p_k-kunnr = t_knvp_kunn2-kunn2.
            t_knvp_p_k-pernr = t_knvp_pernr-pernr.
            t_knvp_p_k-vkorg = t_knvp_pernr-vkorg.
            t_knvp_p_k-VTWEG = t_knvp_pernr-VTWEG.
            t_knvp_p_k-spart = t_knvp_pernr-spart.
            append t_knvp_p_k.
          endloop.
        endloop.
        delete adjacent duplicates from t_knvp_p_k comparing kunnr pernr vkorg vtweg spart.
        loop at t_knvp_p_k.
          IS_BW_CUST1_w-kunnr = t_knvp_p_k-kunnr.
          IS_BW_CUST1_w-pernr = t_knvp_p_k-pernr.
          IS_BW_CUST1_w-vtweg = t_knvp_p_k-vtweg.
          append IS_BW_CUST1_w to  E_T_DATA.
        endloop.
    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 e_t_data[] is initial.
          RAISE NO_MORE_DATA.
        endif.
      IF SY-SUBRC <> 0.
      CLOSE CURSOR S_CURSOR.
        RAISE NO_MORE_DATA.
      ENDIF.
        S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
      ENDIF.              "Initialization mode or data extraction ?
    ENDFUNCTION.
    Nimisha Gandhi.

    Hi,
    you can't open several cursors this way....
    If you need fields from several tables I suggest to open the cursor on something like
    SELECT t1<field> t2<field>
    FROM KNA1 AS t1
    INNER JOIN KNVV t2 ON t2KUNNR = t1KUNNR
    Please try to stick to template as well since it is of paramount importance to FETCH NEXT at the right moment as well as RAISE NO_MORE_DATA at the right place....
    otherwise that won't work.
    Hope this helps...
    Olivier.

  • CRM Segment builder Showing zero records.

    Hello Gurus,
    Iam running a segment builder in CRM and the BI report comes with Zero records. The report is all fine in BI and it works 100%, is there anything iam missing on the CRM side.
    Please advice.
    Thanks,
    Praveen

    Hello,
    I think you might be having some of the characters as mandatory in BI report. When you run the report from CRM, the report expects the value for mandatory fields. You can pass these values from CRM before creating filters in Segment Builder.
    Right click on the Attribute and click on the Edit filter condition and check search help of Variable Name if any of the fields are mandatory then give the reqd values here.
    Once you put the values then create the filter for attribute.
    Hope this will work.
    Rgds
    Mallikarjun

  • SSRS report email Scheduling omit zero record

    Is that a way to omit zero record for SSRS report email scheduling?
    That means if zero record happened it shouldn't trigger emailing.

    Hi SAMSUNG TECH,
    Per my understanding that you don't want to send the scheduled email subscription if the report have no data, right?
    I have tested on my local enviroment that you can modify the commend in the job step include some condition to send the email or not.
    Detials information in below for you reference:
    Open SQL Server Management Studio (SSMS) to connect to Database Engine ->expand SQL Server Agent->expand Jobs, double-click the Job.
    you can use query below to find the Subscription you have just created and the “ScheduleID” in the table is equal to the Jobs Name.
    use ReportServer;
    SELECT USR.UserName AS SubscriptionOwner
    ,SCH.ScheduleID
    ,SCH.NextRunTime
    ,SCH.LastRunTime
    ,SCH.EndDate
    ,SCH.EventData
    ,SUB.EventType
    ,SUB.SubscriptionID
    ,SUB.ModifiedDate
    ,SUB.[Description]
    ,SUB.DeliveryExtension
    ,SCH.Name AS ScheduleName
    ,CAT.[Path] AS ReportPath
    ,CAT.[Description] AS ReportDescription
    FROM dbo.Subscriptions AS SUB
    INNER JOIN dbo.Users AS USR
    ON SUB.OwnerID = USR.UserID
    INNER JOIN dbo.[Catalog] AS CAT
    ON SUB.Report_OID = CAT.ItemID
    INNER JOIN dbo.ReportSchedule AS RS
    ON SUB.Report_OID = RS.ReportID
    AND SUB.SubscriptionID = RS.SubscriptionID
    INNER JOIN dbo.Schedule AS SCH
    ON RS.ScheduleID = SCH.ScheduleID
    ORDER BY USR.UserName
    ,CAT.[Path]
    2.  Select "Steps" on the left pane on the Job Properties window.
    3.  Click Edit button in the bottom of the window and then change the command
    Existing command is:
    EXEC [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='9be28f07-3784-4070-802a-b7ca0aec4c7c'
    Change the command as below: (Remember to check the Database Name and table name):
    If exists
    (Select top 1 * from [DBName].TableName )
    EXEC   [ReportServer].dbo.AddEvent @EventType='TimedSubscription',   @EventData='9be28f07-3784-4070-802a-b7ca0aec4c7c'
    BEGIN
    END
    Note: Change the @EventType and @EventData to the values in your job,the value of this two fields can be found by execute the query in step1.
    More details information in below articles:
    http://www.jasonyousef.com/2012/02/dont-send-that-empty-ssrs-report.html
    http://blogs.msdn.com/b/bimusings/archive/2005/07/29/445080.aspx
    If you still have any question, please feel free to ask.
    Regards
    Vicky Liu

  • Zero records in delta update

    Dear All,
    In HR :Time management (Time and Labour )(cube)  0PT_C01 two data sources are there  and one is 0HR_PT_1 , during delta load it does not get any recors and it will show zero records at cube level and in r/3 rsa3 ir shows new records.Please suggest how to solve this issue.
    Regards
    Albaik

    Hi,
    This is because you havent run the init load till now.
    We have to run a init load before running delta(one time process).
    now as you have selected init with datatransfer, you got all the records transferred.
    from next time, no need to run init and you can proceed with delta.
    Cheers,
    Srinath.

  • SID table /BIC/SUSITMSTR does not contain a zero record

    When checking my cube using RSRV, I get the error message above. I went to SE11 and confirmed that in our production system, the record with a SID = 0 is missing while it does exist in our development system. When I try to activate the master data, I get a message saying that it is already active.
    The only way that I know of to fix this is inserting the zero record into the table directly using ABAP like so:
    DATA WA_SUSITMSTR TYPE /BIC/SUSITMSTR.
    WA_SUSITMSTR-SID = 0.
    WA_SUSITMSTR-CHCKFL = 'X'.
    WA_SUSITMSTR-DATAFL = 'X'.
    WA_SUSITMSTR-INCFL = 'X'.
    INSERT INTO /BIC/SUSITMSTR VALUES WA_SUSITMSTR.
    COMMIT WORK.
    Does anyone know of a better / safer way to fix this? I do not like messing with SID tables directly unless absolutely necessary. Btw, reloading master data did not fix this issue.
    Thank you,
    Dennis
    Edited by: Dennis Staiger on Jul 28, 2008 9:33 PM
    Code fixed

    I did execute the ABAP code to manually create the zero SID and now things seem to be working fine. RSRV does also come up in green now.

Maybe you are looking for

  • How to consolidate data files using data pump when migrating 10g to 11g?

    We have one 10.2.0.4 database to be migrated to a new box running 11.2.0.1. The 10g database has too many data files scattered within too many file systems. I'd like to consolidate the data files into one or two large chunk in one file systems. Both

  • MSS PCR Team viewer Not working Poeperly when nodata available

    Hi We have implemented MSS Business package for Nw04 Sp18 portal and ERP2004 system. When using PCR team viewer list, we observed strange problem. We have created 4 views in r/3 side using  OADP img .all the views are displaying data correctly ,when

  • How to inventorise CST with a separate line item during GRN

    Dear All, Please could anybody tell me how to post the CST to a diff GL during the accounting entries in MIGO. I have a tax code where there is ED, Cess,Secess & CST(Which is inventorised). Now the CST is getting added to material cost during GRN. Th

  • How to export datagrid to Excel

    I want to export data from a datagrid to Excel. I heard about the use of Clipboard, but can't figure out how to use it. Can anyone give me a nice solution, how to do this? Thx

  • How to "re install"???

    My old computer died. I bought a new one (Mac). I was able to "migrate" from the old computer, but now a couple of applications are missing pieces. How do I re-install without un-installing first?