Need some help on Start routines,

Hi Gurus,
I am new to SAP ABAP, I am a BI consultant with 0 ABAP knowledge, Please help me writing a code for the following scenario.(START ROUTINE)
I have a DSO(S_DSO) as source and cube(T_CUBE) as target, and before extracting the data into T_CUBE i need to validate the data. for this I got one more DSO(LU_DSO) for look up.
structures of the dso's and cube :
S_DSO  ............                                                T_CUBE .........   .....                        LU_DSO
ZDOC_NO  .........                           ZDOC_NO ...........                       ZDOC_NO
ZPROD_FAM  ........                                       ZPROD_FAM .........       ZPROD_FAM
QTY   .........    .....................                                                             QTY........
UNIT_PRICE  ..........                                        UNIT_PRICE.......
LOGIC
if S_DSO-ZDOC_NO = LU_DSO-ZDOC_NO AND S_DSO-ZPROD_FAM = LU_DSO-ZPROD_FAM
THEN
S_DSO-ZDOC_NO = T_CUBE-ZDOC_NO AND S_DSO-ZPROD_FAM = T_CUBE-ZPROD_FAM AND
S_DSO-QTY = T_CUBE-QTY AND S_DSO-UNIT_PRICE = T_CUBE-UNIT_PRICE
please help me to achieve this....please provide code from the initializations of internal tables not just the looping conditions.
You help will be most appreciated
Surabhi
Edited by: surabhi5579 on Mar 28, 2009 8:14 PM
Edited by: surabhi5579 on Mar 28, 2009 8:16 PM
Edited by: surabhi5579 on Mar 28, 2009 8:17 PM
Edited by: surabhi5579 on Mar 28, 2009 8:17 PM

Hi Viren,
I did applied the code in Start routine but the out put is not as required.
My Data model is as follows:
zmd_dso(source dso)                                        
zdocno..  zprod_fam.. qty.. price                               
a001...      A    ...         10   ... 100                                      
a002 ...    B     ...          20  ...  200                                      
a003...     C     ...          30  ...  300
zmd_dsc(lookup dso)
zdocno ...  zprod_fam
a001  ....      A 
a003    ....    C
desired output
zdata_ic(target)
zdoc_no ...  zprod_fam ..  qty   ..  price
aoo1  ...     A    ...          10   ...    100
  a003   ...    C   ...            30 ...      300
As per the above table   zmd_dso is the source DSO and Zdata_ic is Target Cube, but in between there is DSO called zmd_dsc which contains zdoc_no and zprod_fam   and after the transfermation u can see the cube filterd by the values in zmd_dsc which is a look up dso. the doc_no "  a002" and the Zprod_fam "B" are not present in the lookup dso and that is the reason why the entries are not visible in the cube after extraction.
I tried ur code, but the result is same as source dso  i can see all the records which are available in the source dso and it is not cross checking the lookup dso that is Zmd_dsc.
I hope ur understanding what i meant to say. sorry if i am confusing you.
Edited by: surabhi5579 on Mar 29, 2009 7:08 PM
Edited by: surabhi5579 on Mar 29, 2009 7:19 PM

Similar Messages

  • Need some help in developing routines

    Hi  Ajay/all,
    I need some help in writing the routines to my business requirement. If you could send me your mail id I could mail you the requirement.I appreciate ur response.
    Thanks.

    hi ,
      Look in this link
      <a href="http://help.sap.com/saphelp_nw04/helpdata/en/b3/0ef3e8396111d5b2e80050da4c74dc/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/b3/0ef3e8396111d5b2e80050da4c74dc/frameset.htm</a>
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/21/894eeee0b911d4b2d90050da4c74dc/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/21/894eeee0b911d4b2d90050da4c74dc/content.htm</a>
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/80/1a62bfe07211d2acb80000e829fbfe/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/80/1a62bfe07211d2acb80000e829fbfe/content.htm</a>
    Regards
    Renjith Kumar

  • Need some help getting started with Mobility Services Engine

    Someone has ordered several 3602 access points, a 5508 controller, and a MSE 3310 for one of our remote locations. The access points and controller are in place and are working fine (we use lightweight APs at many other locations), but I'm not sure how to approach the MSE. I've gone through the set up, and it's onsite, on the network, and I've added it to our WCS server. It's got a 2000 user context-aware services license. But I'm not sure where to go from here. It doesn't seem to actually be doing much of anything. Is there some quick start guide as to where to go from this point? The wireless users are mostly mini netbooks and iPads.

    Well, I'm no expert, but I did spend the night...
    Ok.  In the WCS on the Services tab, Mobility Services, your MSE is recognized and reachable with matching SW Versions.
    So, on the home tab, ContextAware tab, you see your MSE and it is showing Zero's  for data in most if not all fields?
    Back to the Services tab, Synchronize Services...  is this empty?
    The MSE can only 'SEE' what you tell it to 'LOOK' at.  That is, buildings and floor areas.  I haven't tried just a building.
    Check the left hand box for all the floor areas of interest.  Scroll to the bottom an slect 'Change MSE Assignment"
    select which (of the many or the one) MSE you wish to have monitor the area.  Check the 'CAS' box and save.
    Up on the upper levt is a Synchronization block..  push the Synchronize button and sit back..
    All MSE data is presented only to the WCS (or Pi).
    Good Luck
    David

  • HELP! I'm new at this and need some help getting started

    I am currently working on our website and was wondering how do I make a new page?
    for example.
    I want people to click on a link on the homepage to say a stockist list and see another page open with that information on.
    Also I need to know how to make the homepage have white strips on the left and right (for an example of what I mean please visit www.internationalrobes.com)
    I look forward to your replies!
    Carly

    Well, these are more web design related questions, but I will help as much as I can in the context.
    Going about adding a page:
    1) Navigate to Admin > Layout > Static pages
    2) Add a new static page here and enter your content
    3) Once it is saved, you should see an eyeglasses icon next to the page and you can copy that url and use it in a link.
    4) For example
    <a href="common/pagedetail.aspx?PageCode=test">My link here</a>
    As far as the white stripes, I think you mean centering a page?
    1) Edit the main master page under your theme
    2) Center the content using css, more info here: [http://www.thesitewizard.com/css/center-div-block.shtml]
    I think you would also benefit from the WebEx i created on implementing a layout into Webtools available here: [http://www.businessoneecommerce.com/developerdownloads/Implementing_a_Webtools_Theme.zip]

  • Need some help getting started

    This is my occi.c (test file)
    #include <occi.h>
    main()
    printf("hoho");
    Compile it
    gcc -I /u01/app/oracle/product/10.1.0/db_1/rdbms/public/ occi.c -o occi
    In file included from /u01/app/oracle/product/10.1.0/db_1/rdbms/public/occi.h:39,
    from occi.c:1:
    /u01/app/oracle/product/10.1.0/db_1/rdbms/public/occiCommon.h:125:18: string: No such file or directory
    /u01/app/oracle/product/10.1.0/db_1/rdbms/public/occiCommon.h:129:18: vector: No such file or directory
    /u01/app/oracle/product/10.1.0/db_1/rdbms/public/occiCommon.h:134:16: list: No such file or directory
    In file included from /u01/app/oracle/product/10.1.0/db_1/rdbms/public/occi.h:39,
    from occi.c:1:
    /u01/app/oracle/product/10.1.0/db_1/rdbms/public/occiCommon.h:145: error: syntax error before "oracle"
    /u01/app/oracle/product/10.1.0/db_1/rdbms/public/occiCommon.h:145: error: syntax error before '{' token
    /u01/app/oracle/product/10.1.0/db_1/rdbms/public/occiCommon.h:272: warning: data definition has no type or storage class
    /u01/app/oracle/product/10.1.0/db_1/rdbms/public/occiCommon.h:273: error: syntax error before "EnvironmentImpl"
    /u01/app/oracle/product/10.1.0/db_1/rdbms/public/occiCommon.h:273: warning: data definition has no type or storage class
    /u01/app/oracle/product/10.1.0/db_1/rdbms/public/occiCommon.h:274: error: syntax error before "Connection"
    /u01/app/oracle/product/10.1.0/db_1/rdbms/public/occiCommon.h:274: warning: data definition has no type or storage class
    /u01/app/oracle/product/10.1.0/db_1/rdbms/public/occiCommon.h:275: error: syntax error before "ConnectionImpl"
    There is a lot more of the error messages.
    What am I doing wrong? Or rather what is wrong? In this example I only include the header file and get lots of errors.
    Message was edited by:
    Marius

    I think I found the mistake, at least it feels that I'm closer:
    [oracle@akurei master]$ g++ -I/u01/app/oracle/product/10.1.0/db_1/rdbms/public/ -L/u01/app/oracle/product/10.1.0/db_1/lib -l occi10 occi.c -o occi
    occi.c: In function `int main()':
    occi.c:5: error: `Environment' undeclared (first use this function)
    occi.c:5: error: (Each undeclared identifier is reported only once for each function it appears in.)
    occi.c:5: error: `env' undeclared (first use this function)
    occi.c:5: error: `Environment' has not been declared
    occi.c:5: error: `createEnvironment' undeclared (first use this function)
    occi.c:6: error: `Connection' undeclared (first use this function)
    occi.c:6: error: `conn' undeclared (first use this function)
    occi.c:9: error: `Statement' undeclared (first use this function)
    occi.c:9: error: `stmt' undeclared (first use this function)
    occi.c:32: error: `Environement' has not been declared
    occi.c:32: error: `terminateEnvironment' undeclared (first use this function)
    With this file:
    #include <occi.h>
    main()
    Environment *env = Environment::createEnvironment();
    Connection *conn = env->createConnection("marius","passord","orcl");
    env->terminateConnection(conn);
    Statement *stmt = conn->createStatement("INSERT INTO test(empno) VALUES(:1)");
    int empno = 2;
    stmt->setInt(1,empno);
    stmt->executeUpdate();
    Environement::terminateEnvironment(env);
    I do not understand why environment is not declared. I though it should be as it is included through occi.h that include occiControl.h where it is declared.
    Can anyone point me in the right direction.

  • Ok i have indesign CS6 and all files are stored on a 10.7.5 MAC server.  This just started happening.  When I open a file indesigns is creating a textfile in the same folder?  I need some help on this.

    Ok i have indesign CS6 and all files are stored on a 10.7.5 MAC server.  This just started happening.  When I open a file indesigns is creating a textfile in the same folder?  I need some help on this.

    Ask in the ID forum and be much more specific about your configuration. there could be any number of reasons why manifests, temp files or restore files are created.
    Mylenium

  • The backup disk image "/Volumes/Data/David Witkowski's Mac Pro.sparsebundle" is already in use.  Whenever Time Machine starts to backup to Time Capsuel I get the previous error message. I need some help to fix this.

    The backup disk image “/Volumes/Data/David Witkowski’s Mac Pro.sparsebundle” is already in use.  Whenever Time Machine starts to backup to Time Capsuel I get the previous error message Where can I find this disk image?. I need some help to fix this.
    Thanks,
    David W

    There are multiple answers and solutions if you look just to the right under the heading of More Like This.

  • Need some help! My iPhone 4 cannot play music through it's built in speaker, only with headphones. I also cannot adjust volume, it only shows "ringer". I really do not know when it starts. I already clean the jack and dock,reset it. Update it to IOS 7.1.1

    Need some help! My iPhone 4 cannot play music through it's built in speaker, only with headphones. I also cannot adjust volume, it only shows "ringer". I really do not know when it starts. I already clean the jack and dock,reset it and still cannot be fixed. I updated it to IOS 7.1.1 recently only, does it have connection with the inconvenience I am experiencing right now? What should I do? Thanks!

    Hi Melomane1024,
    If you are still having issues with your iPhone’s speaker, you may want to look at the steps in this article -
    iPhone: No sound or distorted sound from speaker
    http://support.apple.com/kb/TS5180
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • I need some help. im getting error -69 when trying to sync my ipod. i dont kno what to do. ive tried googling as much info as i can on this but i cant seem to find a answer to get me off to a good starting point. i back all my music up on a hard drive.

    i need some help. im getting error -69 when trying to sync my ipod. i dont kno what to do. ive tried googling as much info as i can on this subject but i cant seem to find a answer to get me off to a good starting point. i back all my music up on a external hard drive.

    If the file was not originally from iTunes, you'll need to redownload it from it's original source or rerip it from the CD.  Files can sometimes go bad and become corrupted.  As to how or why that happens, there are a number of ways.
    What format are the problematic tracks in? Have you tried converting them to another format in iTunes?
    iTunes: How to convert a song to a different file format
    B-rock

  • ABAP HELP in Start routine

    Hello everybody,
    I have written a code to delete some records in start routine, we are using BI 7.0.
    here is the code,
    TYPES: BEGIN OF tys_SC_3,
    TCTUSERNM TYPE /BI0/OITCTUSERNM,
    END  OF tys_SC_3.
    DATA zz_s_SC_3 type sorted table of tys_SC_3 with unique key TCTUSERNM.
    DATA zz_s_SC_4 like line of zz_s_SC_3.
    select TCTUSERNM from /B12/ARIAO0100 into table zz_s_SC_3
    where TCTIOBJNM = '0TCAIPROV' and TCTLOW = '/MRG/RIMAC_01'.
    DELETE SOURCE_PACKAGE where TCTUSERNM NOT IN zz_s_SC_3.
    When I am running this code,I am getting an error
    "E:"ZZ_S_SC_3" does not have the structure of a selection table."
    can anybody out there help me out,
    Thank you,
    Karthik

    Hi,
    you need to define zz_s_SC_3 as:
    data: zz_s_SC_3 type standard table of rsrange.
    do the select as:
    select TCTUSERNM as low from /B12/ARIAO0100 into table zz_s_SC_3
    modify zz_s_sc_3 to set the fields sign and option to 'I' and 'EQ' for all records then it will work.
    Siggi

  • Need some help in ARCHITECTURE level for upgrading SAP BW 3.5 to SAP BI 7.0

    HI all,
    I am a consultant in a small company, i am curently handling upgradation project i need some help in ARCHITECTURING this complete project, please share me your knowledge, like process flows what information i need to get from clients before starting the project, what is pre upgradation checks, post upgradation cheks  ...............
    Thanks in advance.............

    Hi,
    You need to confirm the downtime during the upgrade activity.
    Check for Space and resource allocation.
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8d1a0a3a-0b01-0010-eb82-99c4584c6db3
    https://wiki.sdn.sap.com/wiki/display/BI/UpgradefromBW3.XtoBI7.0+%28SP13%29
    https://wiki.sdn.sap.com/wiki/display/BI/Migrationof3.xobjectstoBI7.0
    You need to make sure some OSS notes should be applied, check the below link for the same:
    https://wiki.sdn.sap.com/wiki/display/BI/UpgradetoNetWeaverBI7.0%28SAPNotes+%29
    http://wiki.sdn.sap.com/wiki/display/BI/BIUpgradation-HelpfulOSSnotesfromEDWperspective
    Hope this helps...
    Rgs,
    Ravikanth.

  • Need some help...in need of a different way.

    Hi, I'm new to Java and need some help. I have 2 questions that are similar in nature.
    1st Question:
    In a program that I'm writting I have a do-while loop which at the end brings up a dialog box that asks the user to enter '1' for 'Yes' or '2' for 'No' to continue.
    I would rather have the option of having the user enter 'y' or 'Y' for Yes and 'n' or 'N' for No.
    Here is what I have currently:
    int x;
    String data;
    do{
    //Blah blah code
    data = JOptionPane.showInputDialog(null, "Enter 1 for Yes or 2 for No");
    x = Integer.parseInt(data);
    }while(x == 1);
    x++;
    2nd Question:
    In another part of my program I have a Case statement that asks the user to enter a number or a letter from a list of choices. They can enter '2' , 't', or 'T'.
    I would rather have all of this in an if-else chain. Is this possibe? if so, how would I do it.
    Thanks.

    I would rather have the option of having the user enter 'y' or 'Y' for Yes and 'n' or
    'N' for No. You can test the first letter of whatever the user inputs like this:String response = JOptionPane.showInputDialog(null, "Enter (Y)es or (N)o");
    response = response.toLowerCase();
    if(response.startsWith("y")) {
        // the user entered something starting with y
    } else if(response.startsWith("n")) {
        // the user entered something starting with n
    } else {
        // what are you going to do?
    }JOptionPane also has versions that would allow yes/no buttons. Eg, see:
    http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html

  • Hi! I got movies on my external hard drive that are AVI kind and won't play on my macbook pro? need some help please!!

    Hi! I got Movies on my external hard drive that are AVI kind and won't play on my macbook pro? When I start playing the movie a message pops up and says "a required codec is not available". I tried flip4mac, xvid, divx already and still not playing my video. need some help please!! thanks.

    Although vlc mentioned above is a much more powerful and better player you could try installing Perian if you insist on using the quicktime player.  It may supply the codec it needs.
    Not sure why you wouldn't be able to play straight avi files though in quicktime.

  • Need some help with downloading PDF's from the net.

    need some help with downloading PDF's from the net.  Each time I try to click on a link from a website, if it takes me to a new screen to view a pdf, it just comes up as a blank black screen?  any suggestions?

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Need some help with social net site

    I need to create a site with editable user profiles, the site
    will feature sports stats that the user can update.
    I use Dreamweaver and MYSQL but I need some direction. Im
    starting from scratch here, are there any templates or free source
    code to go off of? I really need some help!!

    "Funks Da Burn" <[email protected]> wrote in
    message
    news:g1np74$eej$[email protected]..
    >I need to create a site with editable user profiles, the
    site will feature
    > sports stats that the user can update.
    > I use Dreamweaver and MYSQL but I need some direction.
    Im starting from
    > scratch here, are there any templates or free source
    code to go off of? I
    > really need some help!!
    That's not something you can do using templates or by
    dropping in a free
    script; it's pretty complicated. You need to know how to
    design a database
    and write server-side code. Dreamweaver will help you write
    the code, but
    you still need to plan and design the whole application. I'd
    recommend
    starting with a book. It sounds like PHP is going to be your
    best bet - does
    your host server support it? If so, do a search on Amazon.com
    for books on
    Dreamweaver and PHP, and/or ask for recommendations here.
    Patty Ayers | www.WebDevBiz.com
    Free Articles on the Business of Web Development
    Web Design Contract, Estimate Request Form, Estimate
    Worksheet

Maybe you are looking for

  • Quantity Variance in Purchase Order

    Dear All I have a requirement where the  system should display error if the quantity exceeds Purchase Order quantity however there should be seperate treatment. ie.If the quantity variance upto 5 percent is allowed for raw material but for spares mat

  • Reinstalling Office 2008 on MacBook Pro

    I had to have the hard drive on my MacBook Pro replaced.  When i got it back i tried to reinstall Office 2008.  After the first time, when i tried to activate it nothing would happen - the icon/s (e.g., for Excel) would "bounce" up and down but no ap

  • Firefox cannot load homepage on local linux desktop

    Firefox cannot establish a connection to 127.0.0.1:8080/apex. Msg - Website 127.0.0.1:8080 does not support encryption for the page you are recovering. Using Oracle-xe with Mandriva and Redhat. Firefox accesses the internet directly.

  • CS5 trouble

    I have been using CS5 since I bought it without any problems until last week. Since then I can't open any of the software, Photoshop, Bridge, Acrobat, AI, ID. When I try to open I get error messages. Why?. I need to solve this problem as soon as poss

  • Migration of CS5 from old to new IMac

    This is all I get even after re installing from Adobe. Why? One or more files in the Adobe Application Support folder, necessary for running Photoshop, are missing.  Please run the Photoshop installer and re-install Photoshop.