Look Up - Important

Hello,
I am loading data from a DSO to Cube. While i do this i have to pick up two fields from another look up DSO and fill these fileds in the Cube fields along with source DSO fields for each record which are same structure.
I have written some code but not working. Please correct it.
DATA: LT1_ZCCCHP09 TYPE _ty_t_tg_1,  ( These are internal tables and work areas of result_package which is cube )
         LT2_ZCCCHP09 TYPE _ty_t_tg_1,
         LS1_ZCCCHP09 TYPE _ty_s_tg_1,
         LS2_ZCCCHP09 TYPE _ty_s_tg_1,
         /BIC/ZCCCHP205 TYPE /BIC/OIZCCCHP205.
   LT1_ZCCCHP09 = RESULT_PACKAGE.
   CLEAR: RESULT_PACKAGE[].
       LOOP AT LT1_ZCCCHP09 INTO LS1_ZCCCHP09.
       SELECT single /BIC/ZCCCHP205 /BIC/ZCCCHP206 /BIC/ZCCCHP207
      /BIC/ZCCCHP208 /BIC/ZCCCHP209 /BIC/ZCCCHP210 /BIC/ZCRCHA094
      /BIC/ZCRCHA089
           /BIC/ZCRCHA093 /BIC/ZCRCHA090 /BIC/ZCRCHA091 /BIC/ZPDCHA058
           /BIC/ZPDCHA061 /BIC/ZCCCHP211 /BIC/ZCCCHP212 ( Fields to be picked up from look up DSO /BIC/AZCCCHP0900 )
    FROM /BIC/AZCCCHP0900 INTO CORRESPONDING FIELDS OF  LS2_ZCCCHP09
    WHERE /BIC/ZCCCHP200 = LS1_ZCCCHP09-/BIC/ZCCCHP200.
         IF SY-SUBRC = 0.
         LS2_ZCCCHP09-/bic/ZCCCHP201 = LS1_ZCCCHP09-/bic/ZCCCHP201. ( These fields are source DSO fields to be filled along with above fields in each record )
         LS2_ZCCCHP09-/bic/ZCCCHP202 = LS1_ZCCCHP09-/bic/ZCCCHP202.
         LS2_ZCCCHP09-/bic/ZPDCHA077 = LS1_ZCCCHP09-/bic/ZPDCHA077.
         LS2_ZCCCHP09-/bic/ZCCCHP204 = LS1_ZCCCHP09-/bic/ZCCCHP204.
          LS2_ZCCCHP09-/bic/ZCCCHP203 = LS1_ZCCCHP09-/bic/ZCCCHP203.
          LS2_ZCCCHP09-/bic/ZCCCHP213 = LS1_ZCCCHP09-/bic/ZCCCHP213.
          LS2_ZCCCHP09-/bic/ZCCCHP214 = LS1_ZCCCHP09-/bic/ZCCCHP214.
          LS2_ZCCCHP09-/bic/ZCCCHP215 = LS1_ZCCCHP09-/bic/ZCCCHP215.
          LS2_ZCCCHP09-/bic/ZCCCHP216 = LS1_ZCCCHP09-/bic/ZCCCHP216.
          LS2_ZCCCHP09-/bic/ZCCCHP217 = LS1_ZCCCHP09-/bic/ZCCCHP217.
          LS2_ZCCCHP09-/bic/ZCCCHP218 = LS1_ZCCCHP09-/bic/ZCCCHP218.
         APPEND LS1_ZCCCHP09 TO RESULT_PACKAGE.
         ELSEIF
         SY-SUBRC NE 0.
         CONTINUE.
   ENDIF.
  ENDLOOP.
  CLEAR: LS1_ZCCCHP09, LS2_ZCCCHP09.
  REFRESH LT1_ZCCCHP09[].
Edited by: Syed786 on Dec 4, 2009 12:23 PM

Hi,
Try with following code.
DATA: LT1_ZCCCHP09 like line of RESULT_PACKAGE,  ( These are internal tables and work areas of result_package which is cube )
         LT2_ZCCCHP09 like line of RESULT_PACKAGE,
         LS2_ZCCCHP09 like line of RESULT_PACKAGE,
         /BIC/ZCCCHP205 TYPE /BIC/OIZCCCHP205.
DATA: Declare  LS1_ZCCCHP09 itab with required fileds.
   if NOT RESULT_PACKAGE IS INITIAL.
       SELECT single /BIC/ZCCCHP205 /BIC/ZCCCHP206 /BIC/ZCCCHP207
      /BIC/ZCCCHP208 /BIC/ZCCCHP209 /BIC/ZCCCHP210 /BIC/ZCRCHA094
      /BIC/ZCRCHA089
           /BIC/ZCRCHA093 /BIC/ZCRCHA090 /BIC/ZCRCHA091 /BIC/ZPDCHA058
           /BIC/ZPDCHA061 /BIC/ZCCCHP211 /BIC/ZCCCHP212 ( Fields to be picked up from look up DSO /BIC/AZCCCHP0900 )
    FROM /BIC/AZCCCHP0900 INTO CORRESPONDING FIELDS OF  LS1_ZCCCHP09
    WHERE /BIC/ZCCCHP200 = LS1_ZCCCHP09-/BIC/ZCCCHP200.
endif.
loop at RESULT_PACKAGE into LS2_ZCCCHP09.
read table LS1_ZCCCHP09 with key (give key filed names here).
         IF SY-SUBRC = 0.
         LS2_ZCCCHP09-/bic/ZCCCHP201 = LS1_ZCCCHP09-/bic/ZCCCHP201. ( These fields are source DSO fields to be filled along with above fields in each record )
         LS2_ZCCCHP09-/bic/ZCCCHP202 = LS1_ZCCCHP09-/bic/ZCCCHP202.
         LS2_ZCCCHP09-/bic/ZPDCHA077 = LS1_ZCCCHP09-/bic/ZPDCHA077.
         LS2_ZCCCHP09-/bic/ZCCCHP204 = LS1_ZCCCHP09-/bic/ZCCCHP204.
          LS2_ZCCCHP09-/bic/ZCCCHP203 = LS1_ZCCCHP09-/bic/ZCCCHP203.
          LS2_ZCCCHP09-/bic/ZCCCHP213 = LS1_ZCCCHP09-/bic/ZCCCHP213.
          LS2_ZCCCHP09-/bic/ZCCCHP214 = LS1_ZCCCHP09-/bic/ZCCCHP214.
          LS2_ZCCCHP09-/bic/ZCCCHP215 = LS1_ZCCCHP09-/bic/ZCCCHP215.
          LS2_ZCCCHP09-/bic/ZCCCHP216 = LS1_ZCCCHP09-/bic/ZCCCHP216.
          LS2_ZCCCHP09-/bic/ZCCCHP217 = LS1_ZCCCHP09-/bic/ZCCCHP217.
          LS2_ZCCCHP09-/bic/ZCCCHP218 = LS1_ZCCCHP09-/bic/ZCCCHP218.
         modify RESULT_PACKAGE from   LS2_ZCCCHP09.
         ELSEIF
         SY-SUBRC NE 0.
         CONTINUE.
   ENDIF.
  ENDLOOP.
  CLEAR: LS1_ZCCCHP09, LS2_ZCCCHP09.
  REFRESH LT1_ZCCCHP09[].

Similar Messages

  • Get in the images in Lightroom to look like import screen

    When I go into lightroom to import my raw file the images in the import screen looks great, I import them with no present and standard previews.
    As the images come in they still look great until the second task when the standard thumbnails are being generated then they change drasticlly, I have cleared all my defaults and still have this problem can anyone please advise.
    Thank you in Advance

    http://www.lightroomforums.net/index.php?topic=1500.0

  • Looking to import narrations into FCE

    Now that my video project is done i need to narrate it. I was wondering what would be the best way. Im looking for a good recorder and how to import them. Or can i hook up an external mic to the mac mic jack? any info would be great.

    You can get a pretty decent USB mics from Samson.

  • Hi there can you help?looking to import my library from my external HDD ?i have my current library on my ipod right now from earlyer

    i recently needed to make more space on my laptop ,so i made a backup of all that was on my laptop with an external Hard Disk Drive, i was then told to reformatt my laptop (ie delete everything back to how it was when i bought it) big mistake . I lost all of my installed soft wear including windows 7 ( now stuck back down to vista) all of my itunes library was imported whilst i was opperating in windows 7 mode, could this be why i carnt seem to transfur my songs back to my NOW NEWLY DOWNLOADED ITUNS , a lot to get your head around i know , but any assistance would be much appriciated ....PS my windows 7 disk will not work now ether as yet so i carnt re-insall it....

    although i have it on ipod
    Connect the iPod to your computer.
    Launch iTunes.
    From the menu bar click File / Transfer Purchases From...
    SCARED TO PUT IPOD ON NEW LY DOWNLOADED ITUNES
    U.S. residents that have iTunes 10.3, iOS 4.3.3 or later, can re download iTunes purchased media for free.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Note. You may need to re authorize your computer from the iTunes menu bar. Click Store / Authorize This Computer.

  • Recovered Photos -- looking for "import" folder

    I have read many threads about opening the iPhoto library, reviewing package contents, finding the "import" folder, etc.  But, all I find is a folder marked "Autoimport."  Is this the folder with the recovered photos?  The folder contains 4,305 images, which is about the same number of photos that I deleted during a massive cleanup effort.  But, I emptied the iPhoto trash and don't know where all these images might come from.

    Old Toad!
    You don't know how helpful this post is. After the 9.4 fiasco I have an 'event' folder with recovered photos that has about 82.000 some pictures in it. They are all duplicates of my originals about 22.000 give or take. This thing is eating up a lot of space and holding down all applications.
    I still think 9.4 stinks. I had to delete the library on my iMac and copy the one from my macbook.
    Spend hours on this, thanks Apple for a premature update!
    Wolfgang

  • Looking to import music from android to itunes

    I have a Samsung s3 and would finally like to import the music to my ITunes library via windows 7 desk top or Mac pro laptop?

    See turingtest2's user tip on Recover your iTunes library from your iPod or iOS device for information on various 3rd party tools that can be used to recover content from iDevices to iTunes.  You can also achieve a partial recovery (media only, possibly without artwork), as follows:
    Run iTunes with your iPod not connected, select Edit > Preferences > Devices and check the Prevent iPods, iPhones, and iPads from syncing automatically box
    Connect your iPod, select the Summary tab and check the Enable disk use box
    Exit iTunes
    You should now be able to see your iPod as a disc drive in Windows Explorer.  Make sure that you've configured Windows to show hidden files and folders (Organize > Folder Search and Options, View tab).
    Open the iPod_Control folder on your iPod, and copy the Music folder that you'll see there to your desktop
    Still using Windows Explorer, right click on the Music folder just copied to your desktop and make sure that both the Read-only and Hidden flags are cleared.
    Run iTunes, select File > Add Folder to Library..., navigate to and select the Music folder on your desktop
    The previous content of your iPod should now be added to your library.  Any songs/albums for which you'd previously used the Get Album Artwork function will no longer have associated images, but these should be easily redone.
    This should be regarded as an "emergency" procedure only.  There's no excuse for not maintaining an up to date backup of your iTunes library (as with any data that you value) - computers, and in particular hard drives, always fail ... you just don't know when it's going to happen.  See another of tt2's user tips - Backup your iTunes for Windows library with SyncToy - for a suitable/recommended method.  Although cloud-based backups are the way things are headed, its probably still simpler to use an external hard drive - this may not be as high-tech as using the cloud but is more robust, at least as far as not having dependence on an internet connection.

  • Error "A web exception has occurred during file upload" when trying to import ESXi image file into Update Manager

    I'm encountering this error and not sure how to fix, I'm quite new to vCenter so please bear with me.
    I'm trying out vCenter 5.1 with Update Manager 5.1 right now.  No license key has been entered and I still have 50 odd days to try it out.
    2 ESXi hosts are being managed by this vCenter, and they're both running ESXi 4.0
    I'm looking to use Update Manager to try to upgrade the ESXi 4.0 hosts to ESXi 5.1
    I downloaded the image file VMware-VIMSetup-all-5.1.0-799735.iso from VMWare website, and is looking to import it using the Update Manager so I can update the ESXi hosts, but I keep on getting the error:
    File name:     VMware-VIMSetup-all-5.1.0-799735.iso
    Failed to transfer data
    Error was: A web exception has occurred during file upload
    I tried importing it by using vSphere client to connect to vCenter server both remotely and locally, with firewall disabled.
    I've read http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1026602
    I've disabled firewall, and there is no anti-virus program on the server.  I've also restarted the machine several times, to no avail, I didn't reinstall update manager because the whole Windows and VCenter installations are clean from scratch.
    I logged into the vSphere Client using Active Directory credentials, and I've made all Domain Admins (which my account is a member of) part of the administrator group on the vCenter server. I can't log in using admin@System-Domain because it tells me I don't have permissions for it, I still haven't really had the chance to figure out why that is and not sure if that makes a difference.
    Also, I'm fairly certain I'm using the right image file, as I've burned some DVD's used that image file to upgrade some other ESXi hosts.  Unless there's a special image file I need to download?
    I'm at lost on what I can do to make it work.  Please advise.
    Thanks.

    The ISO file you mentioned is the one for vCenter Server. What you need is the "VMware-VMvisor-Installer-5.1.0-799733.x86_64.iso" (or VMware-VMvisor-Installer-201210001-838463.x86_64.iso) for the ESXi host.
    André

  • How can i append the variable to filename in import statement?

    how can i append variable(substitution variable) to file name in import command for maxL?
    example : For suppose there is a file like "dataload.txt" and a variable like cur_month(august).How can i rename the file like daload_august in import statement.
    Edited by: 788996 on Aug 22, 2010 11:18 PM

    Are you saying you want to use an OS level environment variable in a MaxL statement to substitute for an entire file name? I am going to illustrate Windows, but do it your own way in *nix if you want.
    YourCallingCode.cmd
    REM Note the \\ and then the \\, you had \\ and \
    SET curmon=c:\\ABC\\datafile_21_AUG.txt 
    REM Call MaxL with a paramenter
    startMaxL.cmd DoItForTheCurrentMonth.msh %curmon%DoItForTheCurrentMonth.msh
    login blah blah for blah ;
    import database appname.dbname data from local text data_file $curmon using server rules_file "rulefile"
         on error abort ;The trick is to change whatever's in % and % and replace it with a $ in the MaxL script.
    I gave a presentation last year on MaxL at ODTUG Kaleidoscope. If you go to http://www.odtug.com, then Tech Resources, then Essbase, then search on my name, you'll find "Master Essbase with MaxL Automation". More than you could ever want to know about MaxL, variables (parameter, environment, and explicitly declared), scripting, etc., etc., are all there for the taking. If you're not already a member, you'll have to join, but an associate membership is free. You can then download my presentation and all of the others. It is a treasure chest of technical tips and knowledge.
    Yes, I am a fan a member of the Hyperion SIG, so I am ever so slightly biased. Regardless, it is good information, for free.
    Regards,
    Cameron Lackpour
    Edited by: CL on Aug 24, 2010 5:33 AM
    If you want to substitute part of the data file name, you can do that too:
    set curmon=21_AUG
    Your MaxL statement would look like:
    import database appname.dbname data from local text data_file "c:\\ABC\\datafile_$curmon.txt" using server rules_file "rulefile"
         on error abort ;

  • How do I stop LR from changing setting when I Import?

    Whenever I import photos the exposure and other settings are changed.  I have resete every default setting I can find for any kind of preset.
    I tried to uninstall by dragging to the trash can (Mac OS) and reinstalled to try and clear the issue.  Not sure this was the correct process as
    it didn't seem to wipe everything out.  Don't know what setting got changed along the way.  Just trying to get everything back to default
    so that my photos aren't arent manipulated before I can even get them to the develop module.

    You probably set either a default import preset applied during import or changed your Camera Raw defaults.  If the first, look in import and remove that preset from being applied.  If not, try edit-preferences-presets-Reset all default Develop settings.  I'm actually not sure if that will reset the Camera Raw settings or not, as I've only set them before, not reset them.

  • Importing and executing a .sql file into  Oracle 10g

    Hi
    I am looking to import and execute a .sql file(create scripts created of a databse designed in MS SQL Server 2005). The file was imported into Oracle APEX 3.10 but we are unable to execute the script. Please suggest alternatives as to how we can import these files.
    Thanks in advance.

    You likely need to migrate the database (objects and data). This is not so easy and you should have a look to migration tools: http://www.oracle.com/technology/oramag/oracle/07-sep/o57sql.html.

  • Importing XML using AppleScript in CS5.

    Hi, totally new to inDesign but do programming and database work.  I am looking to import an XML file created from our database.  I can do a basic import manually after creating document and importing xml to load tags then creating text box element and tagging it and placeholder text.  Now trying to automate using AppleScript.  Found some samples from inDesign but not sure how to tie all the pieces together.  Does anyone have a simple example that takes a small XML file and loads a few records automatcally into indesign.  Maybe, create new document, create textbox element and create text placeholders and tags then import xml file?
    Thanks,
    Joe

    I don't work in applescript, but:
    Does anyone have a simple example that takes a small XML file and loads a few records automatcally into indesign.  Maybe, create new document, create textbox element and create text placeholders and tags then import xml file?
    Err, when you say "records," you have me slightly concerned.
    Because it is quite difficult to get Data Merge -like functoinality with XML.
    Have you tested (and validated!) this workflow withoutscripting?

  • Adding an area for text and importing HTML from Photoshop.

    Okay, here's the skinny:
    I've designed a homepage in photoshop and have decided to export it using the "save for web and devices" option in Photoshop.  I've basically sliced the image up into different areas and now that I have it sliced and saved I am looking to import it into dreamweaver, which is actually really easy and caused me no issues.
    My question is regarding adding text to such a page, which is now in dreamweaver and all I have is images as the web page.  Can I just delete the images, and some of them are just blank black space that i've specifically sliced in the photoshop in case I want to add text in those areas later, and just add text in those areas?  Do I need a div tag in that situation?  Sometimes when I try and just add text the text pushes the rest of the images to the right when I reach the edge of the space I am using to type text.  I guess you've probably established I am kind of new to this and doing it in a completely amateur way, but at this point all I am trying to do is create a sample for someone.  I am not in the business of web design or plan on getting into it at any point.  This is mostly for fun for me and screwing around.
    Thanks.
    Maybe an illustration would help?  Let me know.

    Sadly, this is an all too familiar lament in these forums.   Graphics apps produce crappy HTML pages.  They're only good for quick comps to show the client before you go to all the trouble of re-building the design with CSS and HTML code.  Use Pshop for images only.  Use DW to build your web pages. 
    The following tutorial describes the procedure you should use.
    Part 1 - Initial Design
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt1.html
    Part 2 - Markup preparation
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt2.html
    Part 3 - Layout and CSS
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt3.html
    Best of luck on your project!
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Re-importing Configuration Objects

    experts!
    I have imported Configuration Objects from .tpz files in Integration Directory. Because of those objects where unable to activate, I did a reject change and all objects were gone. When I try re-import from the same .tpz file, it is not showing in the file list. The .tpz file is there in the import folder of directory.
    Please help me to re-import objects from .tpz file.
    thanks
    nikhil

    Hi,
    Here we have to consider some points while Exporting & Importing the .tpz files.
    1)Once you export that configuration objects, the tpz file will be created at Export DIR.
    2)From there we have to copy that file into Import DIR.
    3)Once You import the tpz file from Import DIR or faild to Import DIR means those files will be moved to Imported Files DIR.
    4) Now if we are looking to import those again means , they will not be available to import in ID.
    So we have to copy that file again from the Export DIR and Paste it inImport Folder
    REgards
    Seshagiri

  • Is it possible to import a photoshop timeline into Flash CC?

    I'll explain what it is I am making,
    I have created a globe in photoshop which rotates 360 degrees, I'm looking to import this into flash to make the globe interactive with markers. I need to earth to be continuously spinning though when a location is clicked, the earth spins to that point, a bit like google earth. I can see there is no way to create 3D objects in flash so I cannot make a professional looking globe without it looking flat and boring unless I can make it on photoshop and somehow import it to flash while still maintaining the 3D attributes of the sphere and still have the earth rotate.
    I'm not overly experience at flash but any help I can get would be greatly appreciated.
    Thank you,
    Jamie

    if you can save as a sequence of bitmaps, you can import that sequence into flash along a timeline.

  • Importing jpeg's to Microsoft word

    I am looking to import some jpeg's to word using activex, but i am having trouble doing that. need help on how to import a jpeg to labview.I do not have the office toolkit.
    thanks
    anand

    You may need to visit msdn.microsoft.com to get more information about the implementation of Word's activeX ablities. Once you find a promising command, Microsoft usually has a VB example that can copied/translated into LabVIEW. I believe finding the command and an example to be the hard part of the problem.
    LabVIEW controls have a method to read their image. You can use this with some coding to save the image to file. (Be sure to look at the help for the method).I am not sure how you would get it into Word at that point but it is a start.

Maybe you are looking for

  • First iPhone- dummy question

    OK, how does on *remove an item from the Dock and replace it with another one?* I tried dragging it off, clicking on it, double-clicking, poofing, and "settings". I'd like to take Safari (won't be doing a lot of surfing from the phone) off the Dock a

  • CD importing problems

    I have loaded hundreds of CDs into iTunes. Did the diagnostics ok and have clean CDs, minor scratches play fine. Why does a few CDs refuse to load ?

  • PDF Digital Signature for Offer letter

    How to enable, pdf digital signature for BI Publisher, we need to enable for the offer letter generated thro' irecruitment . Please advice Thanks Siva

  • Using bespoke profiles in Lightroom

    I know this is an old chestnut but I wonder if anyone has yet cracked the problem of printing with bespoke profiles (Permajet, for their own ink and paper combination) in Lightroom. I use an iMac and Epson 2400. I've recently had Permajet's continuou

  • The loading bar can't work correctly!

    hello, everybody, i creat a loading bar, but it can't work correctly, the code is that: as u see, the"will_load.swf" is in the same file