Re: Issue with multiple records loading into cube

Hello Gurus,
A report is run on a monthly basis for Billing commissions. Info cube has all the data related to the Billing commission.
It has a custom field for total commissions for which the data gets populated from the DSO based on the Billing
document conditions. Look up has been done for the total commissions field. Most of them are showing up
the right values, but few billing documents are showing up the wrong values.
I made an attempt by reloading  the effected Billing documents into Info cube, now the code works and
total commissions are showing up right values. I tried selective deletion and loaded the data for the whole month,
the billing documents again show up the wrong values. These billing documents show up the right values when
they are loaded individually.I tried checking if the code was wrong, but it was working when the effected ones
are loaded individually. Please let me know your suggestions on this. Thanks in advance

Nanda,
Please find the start routine below
Z9SD_O21 = Billing document header
      L_ZUARC like /BIC/AZ9SD_O2300-INV_QTY,
       L_ZUART like /BIC/AZ9SD_O2300-KPRICE,
       L_ZCGU like /BIC/AZ9SD_O2300-KNVAL,
       L_ZCTU like /BIC/AZ9SD_O2300-KNVAL,
       L_ZCNU like /BIC/AZ9SD_O2300-KNVAL,
       L_ZCQU like /BIC/AZ9SD_O2300-KNVAL,
FORM SELECT_POST_ST
    USING COMM_BILL_NUM LIKE /BIC/AZ9SD_O2100-DOC_NUMBER.
*         COMM_BILL_DATE LIKE /BIC/AZ9SD_O2100-BILL_DATE.
   IF COMM_BILL_NUM <> /BIC/AZ9SD_O2100-DOC_NUMBER.
*  OR COMM_BILL_DATE <> /BIC/AZ9SD_O2100-BILL_DATE.
     CLEAR /BIC/AZ9SD_O2100.
     SELECT SINGLE DOC_NUMBER /BIC/ZPOST_ST
     INTO (/BIC/AZ9SD_O2100-DOC_NUMBER,
*          /BIC/AZ9SD_O2100-BILL_DATE,
           /BIC/AZ9SD_O2100-/BIC/ZPOST_ST )
     FROM /BIC/AZ9SD_O2100 WHERE
      DOC_NUMBER = COMM_BILL_NUM.
   ENDIF.
ENDFORM. "SELECT_POST_ST
*$*$ end of global - insert your declaration only before this line   *-*
* The follow definition is new in the BW3.x
TYPES:
   BEGIN OF DATA_PACKAGE_STRUCTURE.
      INCLUDE STRUCTURE /BIC/CS8Z9SD_O24.
TYPES:
      RECNO   LIKE sy-tabix,
   END OF DATA_PACKAGE_STRUCTURE.
DATA:
   DATA_PACKAGE TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE
        WITH HEADER LINE
        WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
FORM startup
   TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
            MONITOR_RECNO STRUCTURE RSMONITORS " monitoring with record n
            DATA_PACKAGE STRUCTURE DATA_PACKAGE
   USING    RECORD_ALL LIKE SY-TABIX
            SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
   CHANGING ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
*$*$ begin of routine - insert your code only below this line        *-*
* fill the internal tables "MONITOR" and/or "MONITOR_RECNO",
* to make monitor entries
* if abort is not equal zero, the update process will be canceled
* DELETE DATA_PACKAGE WHERE STORNO = 'X'.
* DELETE DATA_PACKAGE WHERE /BIC/ZPSTAS = 'A'.
* CG: 07/02/07 Assign Summarization group for each partner function
* based on Master Data.
   DATA: LV_LINES TYPE I.
   DATA: LV_RETURN(1).
   DESCRIBE TABLE DATA_PACKAGE LINES LV_LINES.
   IF LV_LINES > 0.
     CLEAR: LV_RETURN, SY-SUBRC.
     CALL FUNCTION 'Z_FIND_SUM_GROUP_2'
       IMPORTING
         MY_RETURN                      = LV_RETURN
       TABLES
         IT_DATAPACKAGE                 = DATA_PACKAGE
       EXCEPTIONS
         GENERAL_ERROR                  = 1.
   ENDIF.
   ABORT = 0.
*$*$ end of routine - insert your code only before this line         *-*
ENDFORM.

Similar Messages

  • Issue with multiple files merging into 1

    I'm trying to write some code that will read the contents of multiple files in a directory then output it into a single file. However when I try to open the files via a for loop it does not recognise the variable I have assigned for the filename:
    FileReader fr = new FileReader(fileName);
    please see the full program so far, it isn't finished and this currently has me beat, any help would be greately appreciated.
    Thanks
    Chris
    import java.io.*;
    public class OutputCCFile
              public static void main(String []args)
                   File absolutePath = new File("C:\\java\\Credit Cards");     
                   String[] ccFiles = absolutePath.list();
                   try
                        boolean newFile = false;
                        CCHeaderLine cch = new CCHeaderLine();
                        String strDate = cch.getDate();
                        String headerLine = cch.getHeader();
                        File file = new File("TUHCC_"+strDate);
                        FileWriter fw = new FileWriter(file);
                        fw.write(headerLine);
                        fw.flush();
                        fw.close();          
                   }catch(IOException e) {}
                   for (int i = 0; i<ccFiles.length;i++)
                             String filename = ccFiles;
                             filename.toUpperCase();
                             if (filename.startsWith("C")) //only want to open files beginning with C
                                       FileReader fr = new FileReader(fileName);
    /*Exception in thread "main" java.lang.Error: Unresolved compilation problem:
         fileName cannot be resolved */
                                       BufferedReader br = new BufferedReader(fr);
                                       String dataLine = br.readLine();

    String filename = ccFiles;
    filename.toUpperCase();
    if (filename.startsWith("C")) //only want to open files beginning with C
    FileReader fr = new FileReader(fileName);
    There are several problems here.
    1) Variable names (and many other things) are case sensitive in Java. filename != fileName
    2) filename.toUpperCase(); will not change filename, it will just determine its upper case version and discard it                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Cfgrid updating issue with multiple records

    I have a cfgrid within cfform, it fetches the records and shown in the screen properly. refer screenshot.
    have a new field "sortfield" as a editable field and updating the record as 1,2,3,4 (instead - 1,6,2,4) but after updated in the db. The datas updated differently and not clearly updating the relevant data in the relevant record in the sort field. value was shuffled sometimes.
    used the below code:
    http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c2 4-7acf.html
    under Update the data source with the cfquery tag

    I have a cfgrid within cfform, it fetches the records and shown in the screen properly. refer screenshot.
    have a new field "sortfield" as a editable field and updating the record as 1,2,3,4 (instead - 1,6,2,4) but after updated in the db. The datas updated differently and not clearly updating the relevant data in the relevant record in the sort field. value was shuffled sometimes.
    used the below code:
    http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c2 4-7acf.html
    under Update the data source with the cfquery tag

  • Flat File with multiple record types (OWB 10.2.0.2)

    Hi!
    I`m using OWB 10.2.0.2 and I`m trying to load a flat file with multiple record types, using SQL LOADER.
    In the flat file editor in the Record tab, I`ve set the type values and the corresponding record names like this:
    Type Value Record Name
    ======== ===========
    T TRAILER
    0 DETAILS
    1 DETAILS
    2 DETAILS
    When using this flat file in a mapping to load the data in a staging table, the generated code looks like this:
    INTO TABLE TRAILER
    TRUNCATE
    REENABLE DISABLED_CONSTRAINTS
    WHEN (1:1) = 'T'
    INTO TABLE DETAILS
    APPEND
    REENABLE DISABLED_CONSTRAINTS
    WHEN (1:1) = '0,1,2'
    The above clause (WHEN (1:1) = '0,1,2') is wrong as I expect one "INTO TABLE..." clause for each record type.
    Could this be a bug or am I doing something wrong?
    Thanks a lot for your help,
    Yorgos

    We`re using two target tables, one for the trailer record and the other for the details records.
    We are facing this problem from the moment we upgraded from OWB 10.1 to OWB 10.2.0.2, so we think it must be something with the way the sql loader code is generated in the new version.
    As our data sources are mainly flat files coming from mainframes, this is a huge problem for us. We even asked an expert in DW from Oracle to help us on this, but still haven`t found a solution.
    Is there any workaround for this or should we forget sql loader and go with an external tables + custom PL/SQL code solution?
    Your help is greatly appreciated Jean-Pierre.
    Regards,
    Yorgos

  • We run an iMac 3.4 GHz I7 for our church worship service; we haven't upgraded to Mavericks because we heard about issues with multiple screens crashing.  Has this issue been resolved?  Thank you!

    We run an iMac 3.4 GHz I7 in our church worship service; we have front screens and a stage display monitor ; we haven't upgraded to Mavericks because we heard about issues with multiple screens crashing.  Has this issue been resolved?  Now that we are 2 upgrades behind, I'm getting little concerned.  Thank you!

    Oh, well that was a whole other kettle of fish:
    Oh the G4 I attempted to install iLife '08 before Lepoard was available. About the only thing that installed cleanly was iPhoto. I ended up reinstalling everything back to iLife '06, and then upgrading back to the current stable version of the iLife '06 version. I didn't attempt a reinstall until after I upgraded to Leopard.
    When I did reinstall, I made a iLife '06 folder, copied all iLife apps into it, and upgraded. Seemed to work, except for the part where iMovie gets left behind and iDVD is only mostly functional.
    When I installed on the other 2 machines, it was after installing Leopard and all upgrades. On those 2 machines, I didn't bother with the copy, I just moved everything to the iLife '06 folder I created, and did a fresh install.
    I didn't have to do anything with the iPhoto Libraries, that I can recall.
    I always do an upgrade, never an archive and install. I've never had a problem with this back to 10.1 or 10.2.

  • Handling Change of IT with multiple records in P&F

    Good Morning all,
    Has anyone done this yet? What is the approach to change an infotype with multiple records using P&F; For example IT0021, Subtype 2 (Child). I'm assuming that we will need to display all the records in a tbale first in the Form. Then, create a button or radio button for each row. On click, we can then make changes to the record. Any ideas? Thanks
    Regards

    Welcome to the forum. You can loop through the records like following.
    go_block('A');
    First_Record;
    Loop
    variable := :A.Item_Name;
    Exit when :System.Last_Record = 'TRUE';
    Next_Record;
    End Loop;But what happens when u run the above code, the variable will have the last record's item value.
    So how you are trying to get all the record's Item value into one item?
    Are you going to concatenate? What's the logic you are planning?
    Regards
    Sankar MN

  • Select max date from a table with multiple records

    I need help writing an SQL to select max date from a table with multiple records.
    Here's the scenario. There are multiple SA_IDs repeated with various EFFDT (dates). I want to retrieve the most recent effective date so that the SA_ID is unique. Looks simple, but I can't figure this out. Please help.
    SA_ID CHAR_TYPE_CD EFFDT CHAR_VAL
    0000651005 BASE 15-AUG-07 YES
    0000651005 BASE 13-NOV-09 NO
    0010973671 BASE 20-MAR-08 YES
    0010973671 BASE 18-JUN-10 NO

    Hi,
    Welcome to the forum!
    Whenever you have a question, post a little sample data in a form that people can use to re-create the problem and test their ideas.
    For example:
    CREATE TABLE     table_x
    (     sa_id          NUMBER (10)
    ,     char_type     VARCHAR2 (10)
    ,     effdt          DATE
    ,     char_val     VARCHAR2 (10)
    INSERT INTO table_x (sa_id,  char_type, effdt,                          char_val)
         VALUES     (0000651005, 'BASE',    TO_DATE ('15-AUG-2007', 'DD-MON-YYYY'), 'YES');
    INSERT INTO table_x (sa_id,  char_type, effdt,                          char_val)
         VALUES     (0000651005, 'BASE',    TO_DATE ('13-NOV-2009', 'DD-MON-YYYY'), 'NO');
    INSERT INTO table_x (sa_id,  char_type, effdt,                          char_val)
         VALUES     (0010973671, 'BASE',    TO_DATE ('20-MAR-2008', 'DD-MON-YYYY'), 'YES');
    INSERT INTO table_x (sa_id,  char_type, effdt,                          char_val)
         VALUES     (0010973671, 'BASE',    TO_DATE ('18-JUN-2010', 'DD-MON-YYYY'), 'NO');
    COMMIT;Also, post the results that you want from that data. I'm not certain, but I think you want these results:
    `    SA_ID LAST_EFFD
        651005 13-NOV-09
      10973671 18-JUN-10That is, the latest effdt for each distinct sa_id.
    Here's how to get those results:
    SELECT    sa_id
    ,         MAX (effdt)    AS last_effdt
    FROM      table_x
    GROUP BY  sa_id
    ;

  • Since I've installed Mountain Lion, I am having lock up issues with multiple programs. MS Outlook has crashed and I've lost all my folders. HELP?

    Since I've installed Mountain Lion, I am having lock up issues with multiple programs. MS Outlook has crashed and I've lost all my folders. HELP?

    okay I've finally been able to get tor and all the other programs to work according to my plan the only thing that's still making problems is that iptables doesn't work as I want it to, when I start chromium without proxy settings privoxy doesn't seem to forward the information to polipo.. do I need to add another rule to iptables.rules in order for the program to know it has to reroute the information again or how can I get this to work? and is there any way to run rtorrent with proxy support?
    anyway, problem 2 and 3 are still to be solved.
    and does anybody know where i can get a good dansguardian blacklist that was not designed for 6 year old children and for which I don't need to subscribe? I'm still getting these partypoker popups -.-
    //e: with iptables it's the same thing as described in the first post. https works, http doesnt. I get the output "Invalid header received from client." on http sites. still no idea why though.. (and the https-version of torcheck.xenubite says i'm tor unprotected while starting the browser with iptables)
    Last edited by deF291 (2011-04-23 16:16:31)

  • How can I convert string to the record store with multiple records in it?

    Hi Everyone,
    How can I convert the string to the record store, with multiple records? I mean I have a string like as below:
    "SecA: [Y,Y,Y,N][good,good,bad,bad] SecB: [Y,Y,N][good,good,cant say] SecC: [Y,N][true,false]"
    now I want to create a record store with three records in it for each i.e. SecA, SecB, SecC. So that I can retrieve them easily using enumerateRecord.
    Please guide me and give me some links or suggestions to achieve the above thing.
    Best Regards

    Hi,
    I'd not use multiple records for this case. Managing more records needs more and redundant effort.
    Just use single record. Create ByteArrayOutputStream->DataOutputStream and put multiple strings via writeUTF() (plus any other data like number of records at the beginning...), then save the byte array to the record...
    It's easier, it's faster (runtime), it's better manageable...
    Rada

  • File to RFC with multiple records using BPM Scenario Error...!!!

    Hello Guru's,
      I have done the File to RFC with multiple records using BPM scenario as per the Materiel available in the sdn.sap. This involves BAPI (BAPI_MATERIEL_AVAILABILITY). I have done exactly the same what is their in the materiel. SXI_CACHE is also giving return value " 0 ". File is getting deleted from the source directory, but no file in target directory. SXMB_MONI is also showing no error (black Flag). BPM is also error free. Checked the interfaces also.
    Can any one tell me what mistake would i have done.
    Thanks in advance.

    Hi,
    There is one similar discussion I found,
    FTP TO RFC using BPM
    Thanks
    Swarup

  • How to isolate error with a record/segment in IDOC with multiple records

    I have an IDOC with multiple records/segments (typically 1000 records/segments). Sometime XI can not process the IDOC because of some control characters in data.
    1. How can I pre-processed the IDOC to remove those control characters?
    Can I use XPATH expression/Java class to do it? How can I configure the XPATH expression/Java class in XI to pre-process the file?
    2. Until I have answer to 1st question. I would like to find out the error is exactly for which record? What configuration can I do in XI to isolate the error is with which record/segment in IDOC?
    Thanks in advance.

    Split the IDoc.
    with in the UDF, after the validations if every thing fine, pass as successful records to success_MT and pass it to target system using Branching in BPM.
    if errors found in the record, then store the error records in Hash table with in UDF, get the IDoc number, frame as a string and raise alert.
    U have to do this in the context of IDoc.
    If U wanna get the IDoc Number, Segment Name and field name for every failure, U can pass the expected error field name as constant to UDF, frame the sentence in the UDF like -> <b>IDoc 1234321 segment – SEG001 – field – FLD03 has a special character ‘*’</b>.
    If U wanna pass this string to source/target, U can do in error messages branch in BPM.
    U must use BPM for splitting the IDoc, since it is multi-mapping.
    reg.,
    Yallabandi.

  • Total number of records loaded into ODS and in case of Infocube

    hai
    i loaded some datarecords from Oracle SS in ODS and Infocube.
    My SOurceSytem guy given some datarecords by his selection at Oracle source system side.
    how can i see that 'how many data records are loaded into ODS and Infocube'.
                     i can check in monitor , but that not correct(becz i loaded second , third time by giving the ignore duplicate records). So i think in monitor , i wont get the correct number of datarecords loaded in case of ODS and Infocube.
    So is there any transaction code or something to find number records loaded in case of ODS and Infocube .
    ps tell me
    i ll assing the points
    bye
    rizwan

    HAI
    I went into ODS manage and see the 'transferred' and 'added' data records .Both are same .
    But when i total the added data records then it comes 147737.
    But when i check in active table(BIC/A(odsname)00 then toal number of entries come 1,37,738
    why it is coming like that difference.......
    And in case of infocube , how can i find total number of records loaded into Infocube.(not in infocube).
               Like any table for fact table and dimension tables.
    pls tell me
    txs
    rizwan

  • Convert a scatter graph with multiple data series into individual graphs

    I am trying to convert a scatter graph with multiple data series into individual graphs, with the series having the same formatting as in the graph when all series are together.
    Normally, if I delete any series, the color scheme for all the other series vanishes. I can then waste more time in having to re-adjust the  color and shape of the series, but this is tedious. This, I do not want. Is there an automated way to do this?
    Ideally, of course, all series would appear in little subsections in the space of the former one graph, all with individual axes, but I can't have all, so I'll settle with having several individual new graphs, each with just one series, and with the original
    formatting.
    Thx.

    How about creating a copy of the chart, and then setting all series except one to be transparent (no line, no marker)? Repeat for each series.
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • Anyone having issues with importing CR2 files into lightroom 5 as error message comes up saying "Some import operations were not performed". please advise what is a solution please

    Urgent please
    anyone having issues with importing CR2 files into lightroom 5 as error message comes up saying "Some import operations were not performed". please advise what is a solution please

    Sounds like the folder Write permissions issue described here with a solution:
    "Some import operations were not performed" from camera import

  • SPEL in Extended VO - Issue with Multiple Rows

    Hi,
    I have extended a seeded VO by adding a new attribute *'Course_Flag'* with attribute type 'Boolean' and Query Column type 'VARCHAR2' and i wa successfully able to personalize and view the data of the new attribute *'Course_Flag'* in the page as ('true' / 'false') aacording to the query where clause.
    Now after adding a new image with SPEL property as *${oa.LearnerCatalogCoursesVO.Course_Flag}* it will have an issue with multiple items.
    I mean the SPEL will take the first row value 'true' / 'false' and will be corrected rendered according to the value of the first row and ignore other rows values.
    Example: if the *'Course_Flag'* value of the first row is 'true' then all the images will be rendered and if the *'Course_Flag'* value of the first row is 'false' then all the images will be NOT rendered.
    Please advise if I've missed any step.
    Thanks in advance to all.
    Regards....Ashraf

    Dear Kali,
    I have added a new function to the seeded VO SQL +('XXARMS_TRG_EVALUATION_PKG.XX_COURSE_GOT_EVAL')+,
    SQL Statment :-
    select av.activity_version_id, avtl.version_name, av.language_id, av.start_date,
    av.end_date, av.version_code, i.category_usage_id, upper(avtl.version_name) AS SORTVERSIONNAME,
    XXARMS_TRG_EVALUATION_PKG.XX_COURSE_GOT_EVAL(i.category_usage_id, av.activity_version_id) Course_Flag from
    ota_act_cat_inclusions i, ota_activity_versions av, ota_activity_versions_tl avtl
    where i.category_usage_id = :1 and i.activity_version_id = av.activity_version_id and
    nvl(av.end_date, sysdate + 1) >= trunc(sysdate) and
    av.business_group_id = ota_general.get_business_group_id and av.activity_version_id = avtl.activity_version_id and
    avtl.language = userenv('LANG') and
    ota_learner_access_util.learner_has_access_to_course(:2,:3,avtl.activity_version_id) = 'Y'
    And it is retriving the correct data for each row and i did not write any code in the RowImpl.
    Thanks for your help in advance.
    Regards...Ashraf

Maybe you are looking for

  • Impressão de Cheques - Padrão Brasileiro - SAP Business One v. 8.8

    Olá Experts! O Layout de impressão de cheques default do SAP Business One 8.8 que está pré configurado no PLD imprime cheques nos padrões brasileiros? Ou tenho que customizar o PLD para imprimir os cheques? Muito obrigado, Ricardo Vieira

  • Error in Downloading Distribution Viewer(.zip) in Viewer Builder

    In the signing screen. I enter the Certificate p12 and password and mobile provision and I get this error Not finding expected label 'iPhone Distribution' in the certificate. I have rebuilt the viewer and checked/amended the cerificates in the the ap

  • Journals of iPhoto not in Photos for iOS 8

    The journal feature of iPhoto has been lost. Will it be included in Photos in the near future? Are there third party apps with which I can accomplish the same?

  • How can i export animations in html format?

    i made some animations with indesign 5.5 Can i export these animations in html format? thanks

  • Fake BT E-mail (Phising Scam)

    A heads-up regarding an e-mail doing the rounds entitled "Important information about your BT email service". It has a 'genuine' look about it, except links within it are pointing towards the address in this image: Part of the message is as follows: