Optimizing multiple performs....

Hi,
I basically want to embed multiple similar kind of performs in one single Perform.
There is a standard BAPI which get details of a given object number in multiple tables (54 internal tables). After that , I am using perform statement which does the initializaton check for each internal table, and then download data for each internal table in flat files as follows:
Call function 'XYZ'.
Exporting......
Tables
PTRVG = A1[]
PTRVF = A2[]
PTGTR = A54[].
IF  A1[] IS NOT INITIAL.
      FNAME = 'A1.txt'.
      perform download tables A1
                              using FNAME.
    ENDIF.
IF  A54[] IS NOT INITIAL.
      FNAME = 'A54.txt'.
      perform download tables A54
                              using FNAME.
    ENDIF.
Now this creates 54 flat files using 54 internal tables. This is what I wanted.
<b>But, I don't want to write perform 54 times. I was wondering if there is a way I can write ONE perform inside a loop which will check for INITIAL for every internal table which will get looped one after another.</b>
I know a table called The table FUPARAREF which can get Table type parameters in an internal tables for given function module.
Select PARAMETER PPOSITION STRUCTURE FROM FUPARAREF into TABLE PARAMETER_TAB WHERE FUNCNAME = 'ABC'
                                AND PARAMTYPE = 'T'
                                ORDER BY PPOSITION.
I was wondering if this can be used to solve my issue ? If not , then any suggestions...
Regards,
Rajesh.

Rajesh,
See if the following works for your requirement.
REPORT  ZTEST56                                .
data: counter type sy-tabix.
Perform test.
*---- Form test
FORM test .
  Write:/'test', counter.
  counter = counter + 1.
Read an internal table for the values you want to pass to
the perform using this counter.
  if counter GE 5.
    exit.
  else.
    Perform test.
  endif.
ENDFORM.                    " test

Similar Messages

  • How to optimized Multiple CASE statement

    Hi..
    Somebody please help me out to use most optimized Multiple CASE statement in below example.. 
    Select
    CAST(COUNT(DISTINCT(CASE WHEN period_id <350 THEN period_id END)) AS DECIMAL(30,0))  AS Column1,                  CAST(COUNT(DISTINCT(CASE WHEN period_id >=351 AND period_id<=375 THEN period_id END))
    AS DECIMAL(30,0)) AS Column2,                                
    CAST(COUNT(DISTINCT(CASE WHEN period_id >=376 AND period_id<=400 THEN period_id END)) AS DECIMAL(30,0)) AS Column3,                             
    CAST(COUNT(DISTINCT(CASE WHEN period_id >=401 AND period_id<=450 THEN period_id END)) AS DECIMAL(30,0)) AS Column4,                             
    CAST(COUNT(DISTINCT(CASE WHEN period_id >=451 AND period_id<=575 THEN period_id END)) AS DECIMAL(30,0)) AS Column5,
    CAST(COUNT(DISTINCT(CASE WHEN pmc ='UVS' THEN pmc END)) AS DECIMAL(30,0)) AS Column6,                                
    CAST(COUNT(DISTINCT(CASE WHEN pmc ='VAL' THEN pmc END)) AS DECIMAL(30,0)) AS Column7                            
    FROM [Table1]
    Thanks in Advance,
    Deepak Goyal

    How is an index going to help in a query with no where clause or join?
    Rhetorical question but it brings to light the problem.  This query is going to produce a table/index scan precisely because there's no where clause.
    You need to change the way you are thinking about the problem.  The problem isn't that you need a better performing case statement, the problem is that you need to minimize the number of records you ask SQL Server to read from disk.  You do that
    by using a where clause or by joining to a smaller table.
    Here's one option which should give you the desired results while performing much better:
    create index idx_period_id on Table1 (period_id)
    create index idx_pmc on Table1 (pmc) include (period_id)
    select (select count(distinct period_id) from Table1 where period_id < 350) as Column1,
    (select count(distinct period_id) from Table1 where period_id between 351 and 375) as Column2,
    (select count(distinct period_id) from Table1 where period_id between 376 and 400) as Column3,
    (select count(distinct period_id) from Table1 where period_id between 401 and 450) as Column4,
    (select count(distinct period_id) from Table1 where period_id between 451 and 575) as Column5,
    (select count(distinct period_id) from Table1 where pmc = 'UVS') as Column6,
    (select count(distinct period_id) from Table1 where pmc = 'VAL') as Column7

  • What are the main things to do when optimizing the performance of Java App

    what are the main things to do when optimizing the performance of Java App

    what are the main things to do when optimizing the performance of Java App

  • FCP 7 Optimized Codec Performance

    Cramming for that FCP 7 recert and going through a list of new features. One I am trying to chase down is "Optimized Codec Performance", that is briefly described as rendering XDCAM HD, EX, HDV and XDCAM HD422 faster. The description further goes on to say that you have greater freedom creating complex multilayers. The question is, is that native or that all of them are now supported as Pro Res render options in sequence settings?

    I think all it means is that rendering is now faster, so having a lot of video tracks is less of a hassle in terms of waiting for re-renders.
    Doubt if it's anything to do with ProRes.

  • Optimizing tempdb performance in SQL Server 2012

    SQL Server 2008 R2 BOL contains a topic on optimizing tempdb: SQL Server 2008 R2 Books Online > Database Engine > Development > Designing and Implementing Structured Storage > Databases > Optimizing Databases > Optimizing tempdb Performance.
    I have been unable to locate a comparable topic in BOL for SQL Server 2012.  Is this type of performance tuning for tempdb no longer necessary in SQL Server 2012?

    Is this type of performance tuning for tempdb no longer necessary in SQL Server 2012?
    That's incorrect. Looks like topic is missing in SQL 2012 BOL. I will alert the author and report back if needed. Meantime, you can follow the same for 2012 as well.
    Balmukund Lakhani
    Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    This posting is provided "AS IS" with no warranties, and confers no rights.
    My Blog |
    Team Blog | @Twitter
    | Facebook
    Author: SQL Server 2012 AlwaysOn -
    Paperback, Kindle

  • Stuck at Optimizing System Performance after installing Security Patch

    24" iMac seems to be stuck at "Optimizing System Performance" after installing the latest Security Update. Software Update won't quit. Nervous to force the computer to shutdown during that process. It's working fine at the moment other than that the Software Update box won't go away.
    What do you think?

    Well kind of answered my own question. Tried to run Activity Monitor which only started halfway and then crashed. I remembered the whole computer is backed up to an external drive everyday so I figured if it won't start at least I can start up from the external drive.
    Forced the shutdown by holding the power button. Started up w/o a hiccup; ran Repair Permissions which checked out and the Verify the Disk with First Aid which also checked out fine.
    So I guess it's ok though I may unplug that external for a day or two.

  • Optimizing system performance hangs during Tiger install

    When I try to install Tiger on my Powermac G3 B&W it gets to optimizing system performance and hangs there for hours and when I reboot it starts to install off disk 2 and it hangs again at optimizing system performance part of the install. What do I need to do to fix this because I need to get the computer going

    *Hi Colton, Welcome back* to Apple's Users Help Users Forums.
    Were you using the puter during Install—that's a no-no.
    Follow standard precautions as listed all over the forums:
    Quit all apps
    Unplug all except KB and Mouse.
    Repair Disc via Install Disc. Repair Permissions via HD. (That one receives some debate but it's quick.)
    etc.

  • OS X 10.4.4 DOWNLOAD HANGING AT "Optimizing System Performance" STAGE

    I began downloading 10.4.4 update about 1.5 hours ago; most of the download executed fairly quickly--within 10 minutes. But then the download got to the "Optimizing System Performance" stage, and has been hanging in it ever since. It's accompanied by the spinning beach ball.
    Is this common, or at least normal?
    If not, what should I do? How long should I wait? I don't know if I can even get my iBook to force quit at this stage.
    thanks in advance for your help.
    T.W.

    Timothy,
    What you are experiencing is not common or normal, but can hopefully be rectified.
    According to iBook: If the Computer Won't Respond you can Force Quit by holding the power button for several seconds.
    Restart from the Tiger Installation CD and run the Disk Utility as directed in the Try Disk Utility paragraph of Using Disk Utility and fsck to resolve startup issues or perform disk maintenance.
    Next, attempt a normal startup of your computer.
    Mac OS X: Troubleshooting installation and software updates says this about optimization failures:
    Installation fails during "optimization"
    If the installation fails during "optimization," all of the software was installed. There is no risk of an "incomplete installation." The optimization phase of an installation only affects performance and not stability or features. You may force optimization to be repeated by reinstalling the software. If you were using the Software Update pane of System Preferences on the first attempt, you will need to download the standalone installer of the same software from Apple Downloads in order to reinstall the software.;~)

  • Optimizing for performance

    A few days ago, we did a live web presentation and Q&A session about optimizing for performance for Adobe Premiere Pro and After Effects. Here is a blog post that gives a link to the recording and links to supporting materials:
    "optimizing for performance: Adobe Premiere Pro and After Effects"
    Thanks to Harm (and others) for some great forum threads that I could refer people to for good advice.

    hi ,
    1.) try to avoid ' into correspondig field of ' option in select query
    use ' into table tanle_name'.
    2.) fro all the select queries containing addition
    ' FOR ALL ENTRIES IN TABLE_NAME'  check the condition
    IF TABLE_NAME[] IS NOT INITIAL.
    ENDIF
    before the select query.
    3.)  before the read statement sort the table by any key field and
    use the addition BINARY SEARCH with READ statement.
    4.) For modifying the internal table always use index.
    5.) <b>never use select statement inside loop.</b>
    for ur case u can use internal table for selecting 'NAME1' from 'KNA1'.
    Inside the loop perform the read operation for this internal table.
    in the same way avoid the other select statement which u have used in the loop.

  • Optimal multiple disk setup for AE

    I have an 8-core Mac Pro 4,1 with 24GB RAM, a Radeon 5770, an SSD (about 75MBs/125MBs), a couple of WD Caviar Blacks and some regular old 7500rpm drives.  I've decided to try and extend it's life a little rather than buying a new Mac Pro.  Leaving more RAM and GPU upgrades aside, I'm not quite sure where to spend my money in order to maximise performance.  For example, I currently use the SSD for OS, Apps and Home folder.  But if AE is loaded into RAM when I run it, surely teh SSD would be more useful for my media? I don't really care how fast the OS or Apps load because I tend to do that over coffee and then spend all day in After Effects!
    …I use AE a lot.  Plus a bit of C4D, PS and very rarely PP.
    There is a chart here with suggestions for optimal disk allocation, but unfortunately it's aimed at PP, and doesn't mention disk or bus speed at all.
    I am thinking of buying a Sonnet Tempo Pro and SSD's so that I can add very fast  storage over PCIe.  The Tempo Pro can mount 2 SSD's as 2 volumes or as a RAID for even more speed.  I don't know which would be best - having media on a superfast RAID drive and the OS on a slower SATA one, or having one SSD for OS and one for Media.
    And then there is the AE Disk Cache. Then there is the 'Conformed Media'.
    I think I can figure out redundancy and backup options - I'm just keen to understand performance.

    Hm - this Adobe white paper states
    "Multiple drives may be used to deliver higher performance. A simple technique is to install multiple
    single drives in a desktop workstation computer, and dedicate each to specific tasks: for example,
    one for the operating system, one for your files (with potentially separate drives for your sources
    and output, especially for Adobe Premiere Pro), and one for your temporary storage caches"
    I am attempting to optimise performance here, not merely avoid problems.  If I were to go ahead and get the Sonnet Tempo, Todd, are you saying there would be no noticeable performance gain by then using other (albeit slightly slower) drives for the OS?  Or, to put it another way, if one's drives vary in IO speed, there is no point in using ANY of them other than the fastest one for Apps, OS and all AE Caches?

  • Optimizing restore performance with MAXPIECESIZE

    Hi,
    Currently I don't have a limit on the max size of backup pieces, backupsets or number of files per backupset. So I performed a full database backup and transferred it to tape. Then I tried to restore only a small datafile, but I noticed that the whole backuppiece containing all the datafiles was read from tape although I needed only a small portion of it. (The size of the whole database is 70GB and the restored datafile is 3GB)
    Then I performed another test and this time I set the MAXPIECESIZE parameter to 1G. The restore process read only the backuppieces it needed to restore this small datafile and the restore was much faster.
    My question is: Are there any drawbacks using such an approach - maybe a longer restore time of the whole database, or some other penalty to pay somewhere else?
    Thanks in advance for any answers.
    Regards,
    Jure

    Thank to both of you for the answers.
    @mrmessin
    Actually I haven't measured the whole backup time before and after setting MAXPIECESIZE. But even if the time for the backup will be slightly longer, that's not a problem for me. I prefer a slightly longer backup and a much faster restore. Currently I'm using only one sbt channel - I'll investigate how many tape drives do we have to see if's feasible to use multiple channels.
    @tychos
    I'll try to perform a restore of the whole database to see if wind/rewind will have any impact. I was also considering the usage of FILESPERSET - maybe I'll use it instead of MAXPIECESIZE, as you suggested.
    Regards,
    Jure

  • Best way to mix multiple camera angles from multiple performances?

    There has to be a slick way to do this, but I can't seem to figure it out.  I'm hoping someone can offer their advice on the best way to approach this project. (I'm using Premiere Pro CS4)
    I have footage from 2 performances of a high school play that I want to mix together, with 2 cameras used each night:
    Cam1: Friday Right
    Cam2: Friday Center
    Cam3: Saturday Wide Left
    Cam4: Saturday Wide Right
    I only had 2 cameras, but I wanted to capture 4 different angles that I could later mix and match.  The problem is that, as live performances go, you can't count on exact timing from night to night.  It's really simple to do multi-camera editing for one night with the Multicamera Monitor (painfully simple), which works great for the 2 angles that were filmed on the same performance, but if I try to do it with footage from different nights, it only takes about a minute for actions onstage to be so far off between the two nights that I can't switch between cameras with reasonable accuracy.
    Since I will be going back and forth many times among 4 clips, the ideal solution that I have come up with (but I don't think Premiere can do) is to have the ability to set markers or keyframes at certain locations that basically say "switch to MM:SS on camera X now" without actually trimming clips and overlaying them into a single video track.  So basically determining which camera is "Live".  This would let me do rolling edits without having to create a new clip every time I want to switch to that camera angle.
    I may be missing something very simple or over-analyzing something that really won't be that bad, but I'm having a hard time wrapping my mind around the best way to approach cutting back and forth among the same 4 unsynchronized camera angles numerous times.  If nayone has a suggestion I'd love to hear it.
    Thanks,
    -keen

    Time - being in sync...
    Most performances like that shot ( for like a music video ) are done to recorded music ( lip sync and play to recorded music ) ..so timing stays the same to the music...  dont know what kind of performance you shot but this gives you an idea how tough it is to keep timing for music performances.
    ---------you wrote -----
    Since I will be going back and forth many times among 4 clips, the ideal  solution that I have come up with (but I don't think Premiere can do)  is to have the ability to set markers or keyframes at certain locations  that basically say "switch to MM:SS on camera X now" without actually  trimming clips and overlaying them into a single video track.  So  basically determining which camera is "Live".  This would let me do  rolling edits without having to create a new clip every time I want to  switch to that camera angle.
    If you can't just use one night as suggested earlier by Jim and Stan....I would say bite the bullet and just do what you dont want to do...
    make subclips ( trim clips or whatever ) and forget about rolling edits...
    You might want to consider putting stuff in 4 sequences... day 1, day 2, day 3, day 4...
    make a 5th sequence called "rough cut " or something...
    each time you take a "clip" from one of the 4 sequences move that clip up one video channel ( and copy / paste to your 5th sequence )..which then gives you a visual quick guide what you have USED from the sequences...so you dont waste time scrubbing through stuff you already put into sequence 5....
    You may be able to choose just ONE sound track from one night and just use THAT...and pick shots that FIT those moments in time OK from all 4 sequences....you can play with duration / time of a small clip ( as it is unlinked to the sound in this scenario ) to make it FIT better...but that would be very subtle changes...
    ps...I keep forgetting...some people use the camera to record sound instead of a sound mixer, recorder, etc...so if thats your case what I suggested at bottom of mssg probably would not work...using duration / time...unless its REALLY minor adjustment...hmmmm, maybe export just the sound from a single performance and try using that as your ONE sound file for the performance...I really dont know what you would do if you recorded sound with the cameras...as I would never do that I dont know what to suggest if thats the case...

  • Pointers for optimizing system performance (run time) while running DP process chain with parallel processing

    Hi Experts,
    We are running APO DP process chain with parallel processing in our company, we are experiencing some issues regarding run time of process chain, need your help on below points;
    - What are the ways we can optimize process chain run time.
    - Special points we need to take care of in case of parallel processing profiles used in process chain.
    - Any specific sequence to be followed for different processes in process chain - if there is some best practice followed.
    - Any notes suggesting ways to improve system performance for APO version 7 with different enhancement packs 1 and 2.
    Any help will be really appreciated.
    Regards

    HI Neelesh,
    There are many ways to optimize performance of the process chains (background jobs) in APO system.
    Firstly I would recommend you to identify the pain areas (steps) which are completing with more runtimes. Then each one of the step has got different approaches to decrease the runtime.
    Like you may end up with steps like infopackage executions, DTPs, DP mass processing jobs etc which might be running with more runtimes. So now target each one of them differently and find out the ways to optimize. At the same time the approach you follow should be technically possible with basis perspective (system load and utilization) as well.
    And coming to parallel processing, you can use parallel processing for different for different jobs. You can further r explore on the same using parallel processing. Like loading an infocube, mass processing, infopackage execution, DTP, TSCOPY etc.
    Check the below link for more info
    Performance problems in DP mass processing
    Let me know if you require further info.
    Regards,
    Raj

  • Optimizing AE performance/settings for my build

    Hi everyone,
    I'd really appreciated recommended setting/project settings for my pc build:
    i7 4790 3,6 to 4,0 Ghz
    32 GB RAM 1866 Mhz
    GTX 970 4 GB VRAM
    128 GB SSD for OS, Apps
    256 GB SSD for Cache and Preview
    512 GB SSD for Media footage, Projects, Auto-Save
    1 TB WD 7.200 Backup and Exports
    Windows 7 Prof.
    latest Nvidia drivers
    latest AE CC 2014 version
    Thank you in advance for help.
    Best,
    Alex

    See this page for resources about making After Effects work faster: http://adobe.ly/eV2zE7
    See this page for information about memory and improving performance in After Effects: http://adobe.ly/dC0MdR
    See this page for information about hardware for After Effects: http://adobe.ly/pRYOuk

  • Optimizing PP performance/setting for my build

    Hi everyone,
    I'd really appreciated recommended PP setting/project settings for my pc build:
    i7 4790 3,6 to 4,0 Ghz
    32 GB RAM 1866 Mhz
    GTX 970 4 GB VRAM
    128 GB SSD for OS, Apps
    256 GB SSD for Cache and Preview
    512 GB SSD for Media footage, Projects, Auto-Save
    1 TB WD 7.200 Backup and Exports
    Windows 7 Prof.
    latest Nvidia drivers
    latest AE CC 2014 version
    Thank you in advance for help.
    Best,
    Alex

    See this page for resources about making After Effects work faster: http://adobe.ly/eV2zE7
    See this page for information about memory and improving performance in After Effects: http://adobe.ly/dC0MdR
    See this page for information about hardware for After Effects: http://adobe.ly/pRYOuk

Maybe you are looking for

  • Call of Duty 4 for OS X

    Has anyone bought and played this since it came out a couple weeks ago for mac? I am intersted in buying it if it will play well on my 24" 2.4 GHz iMac w/ Radeon 2600. I had it when i used windows on my custom pc w/ an Athlon 64 FX CPU and Radeon X19

  • STPO 2nd line item not getting shipping tab

    Hi All, We have a issue with STP0, user created the STP0( different company code) with 3 line items of same materials.  The first line items shipping tab is appering but second & third line items are not getting the shipping tab in item detail Please

  • Recording dropouts, silences and stops

    Hi all. I'm really becoming crazy for a problem with my AA3. I would like to use my HP Notebook (Core 2 duo, 2 GB DDR2, Realtek HD Audio, Nvidia 8400M GS, Vista Home Premium 32 bit) for multitrack recording but i can't because the record contains lot

  • Installing VMRC on Windows XP

    We are trying to install the VMRC (VMWare Remote Console), as an alternative to vSphere Client console and Web Client. We found VMware Remote Console 7.0 for Windows and VMware Remote Console 7.0.1 for Windows Obviously, there are no older versions a

  • [SOLVED] "warning: could not find /bin/bash, starting /bin/sh instead"

    Hello all. I've just installed arch, despite very little knowledge of linux (i had ubuntu for a short while before this), but I like a challenge so i thought i'd throw myself in at the deep end. The installation went reasonably smoothly, but now i've