Doubt in code....

Hi,
I have following doubt. I am using a BAPI to get details regarding particular Object number. The list of object numbers are in internal table it_tab
Loop at it_tab.
Call Function 'ZCUSTOM'
EXPROTING
NUMBER = IT_TAB-NUMBER
TABLES
TAB1 = TAB1[]
TAB2 = TAB2[]
TAB3 = TAB3[].
Now the Data from TAB1 table, TAB2 table and Tab3 table should be written in a flat file1, fil2 and file3.
My doubt, is when the next number is passed to BAPI ZCUSTOM while looping, the data tables for that next number should be written in respective files but on next line (keeping the previous data intact)
So,
Data returned when NUMBER1 :- TAB1 - AAA,11; TAB2 - BBB,12; TAB3 - CCC,13
Data returned when Number2 :- TAB1 - YYY,10; TAB2 - ZZZ,09; TAB3 - TTT,08
Flat file1 Content should be:
AAA,11
YYY,10
Flat file2 Content should be:
BBB,12
ZZZ,09
Flat file3 Content should be:
CCC,13
TTT,08
How can I achieve this ?
Regards,
Rajesh.

Ok,  so again, I would build internal tables for you files.  Then when done in the LOOP and calling the custom BAPI,  simply download the internal tables to the PC once.  see the pseudo code below.
Loop at itab.
    call function 'ZCUSTOM'
    append lines of ttab1 to itab1.
    append lines of ttab2 to itab2.
    append lines of ttab3 to itab3.
    append lines of ttab4 to itab4.
endloop.
call function 'GUI_DOWNLOAD'
         tables
               data_tab   = itab1.
Regards,
Rich Heilman

Similar Messages

  • From AE to SWF : some general doubts

    Hello,
    I have made a little project with After Effects CS3 : some animated text who 'jazz' for about 4 seconds and then turns to its original position.
    In order to upload it to my site, I exported it into .swf format, and all worked OK, even if the size is quite big (which doesn't put many problems by now).
    I located the files in the correspondent folder, and paste the code AE provided me with into my html file.
    I have from there on several doubts:
    - the code have an "if" statement trying to assure the user will be owning a determinated script : AC_RunActiveContent.js. Why is it important ? In which case the user would be without it, or avoiding its download ?
    - I see, below that first part of the code, a second one : a "noscript" html tag, which seems to provide with an alternative, embedding the video as an 'object'. The video seems resized (argh). Are there more inconvenients beyond that one ?
    - Finally, a very basic question : as it seems to be this two posibilities (javascript vs. flash player + video), what if the user don't have a flashplayer (or an adequated version) ? Will he see the typical dialog asking for a download ?
    And that's all. Thanks very much if someone can clarify me out how to deal with this !

    You are worrying too much. Scripts are automatically downloaded, so the user does not need to worry. You need of course put them on the server along with your main content. The rest is pretty much standard procedure for "good conduct". The noscript and object tags merely serve as a fallback option, if e.g. ActiveX has been disabled or Java is being suppressed/ not correctly installed. And yes, of course they should at least trigger a warning to enable the functions or download the latest version of Adobe Flash Player...
    Mylenium

  • Mod_plsql & psp sample codes

    Hi All
    Could anyone give me some pointers to sample practice code on mod_plsql & PSP
    Regards
    Sushant

    This application is developed using mod plsql ...completely
    http://kdemaxport3.kde.state.ky.us:7777/portal30/portal_code.pkg_rpt_acc_kcct_index.main?p_rep_id=5&p_report_name=sp_kcct_index&p_cat_id=101
    If you come with any doubts on code mail me ...

  • BDC file doubt

    hi friends,
    plz tell me wat is the functionality of this code and wat should be the input
    1)SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE  text-002.
    PARAMETERS: p_ifile LIKE dynpread-fieldname OBLIGATORY,   " Input file
                p_efile LIKE dynpread-fieldname OBLIGATORY.   " Error file
    SELECTION-SCREEN END OF BLOCK blk2.
    2)DATA : fm_file LIKE ibipparms-path .
    3)DATA :  v_file LIKE rlgrap-filename.
    4)DATA :  v_efile LIKE rlgrap-filename.
    5)i have a doubt
    is code SAVE_DOCUMENT is must while uploading from dat file to sap table
    thank's*regards
    soorya

    HI SOORYA,
    1)SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.
    PARAMETERS: p_ifile LIKE dynpread-fieldname OBLIGATORY, " Input file
    p_efile LIKE dynpread-fieldname OBLIGATORY. " Error file
    SELECTION-SCREEN END OF BLOCK blk2.
    It is a selection screen where u give filepath for the input file and also for the error file.
    2)DATA : fm_file LIKE ibipparms-path .
    its data transfer parameter for a local file to be uploaded or downloaded
    3)DATA : v_file LIKE rlgrap-filename.
    & 4)DATA : v_efile LIKE rlgrap-filename.
    --Local filename for uploading or downloading
    hope this helps,
    priya.

  • How to create a form for email?

    Hi all,
    I use 1 and 1 for hosting however they do not have a form script available with
    the package I have.
    What is the best way to put a simple form on my site? One that would be for
    entering an email for a free report/newsletter is what I am shooting for?
    I was told there are a couple free wysiwyg ones, however I tried them and when
    you copy the code and use it in DW it does not come out looking very well, or
    at least I couldn't get it to work. So I would like to do it the right way and of
    course the lowest cost way of doing it.
    Any help is greatly appreciated...regards, ..dano

    Hello,
    Yes I have no doubt the code is messed up
    I guess I should start from the beginning. Here is the original code below for the form code that I recieved from
    my hosting Company to use.
    However all I need is the email field and a submit button and not the other fields. That is probably how
    I managed to mess up the code, I was trying to take out the other fields, line it up etc and most likely did a pretty
    good hack job.
    I tried this original code and yes your right it really did mess up the side bar terribly.
    Here is the original code my hosting Co gave me before I made a mess out of it.
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Contact Us</title>
    <link rel="stylesheet" type="text/css" href="../../css/nms.css" />
    </head>
    <body>
    <form method="post" action="mail.php">
      <table>
       <tr>
        <td>What is your name ?</td>
        <td><input type="text" name="name" /></td>
       </tr>
       <tr>
        <td>What is your e-mail address ?</td>
        <td><input type="text" name="email" /></td>
       </tr>
        <tr>
        <td> Comments:</td>
        <td><textarea name="data" cols=40 rows=6></textarea></td>
        </tr>
       <tr>
        <td colspan="2"><input type="submit" /></td>
       </tr>
      </table>
    </form>
    </body>
    </html>
    Here is my site and where I wanted to put this was on the very top
    of the right side-bar, just above the words Customer Testimonial.  here
    is my site wwwdotselfdefenseproshopdotcom
    Thanks for any help...
    Regards,

  • How to use a sapscript for multiple languages ? (english,

    hi ,
             i am new to sap-ABAP can any one clarify my doubt .
              and i have few more doubts,  transaction code for logo uploading ?
              standard program used for uploading the logo to  script?  .

    Hi
    To create a logo in SAP printouts just do the following
    1. Save a Logo using Imaging, Paint shop Pro or Corel Draw as Tiff file.
    2. Run  program <b>RSTXLDMC</b> and enter the following parameters
       Enter file name                     C:\COMPLOGO.TIF
       UOM                           CM
        Line width for text                132
        Text name                     ZHEX-MACRO-COMPLOGO
        Text ID                          ST
        Text language = E
        Number of Tiff gray levels (2,4,9) 2
    3.  Then Create a new window 'COMP' with attributes;
    Window COMP description Company Logo
    Left margin 7.00 CH window width 10.00 CH
    Upper margin LN window height 8.00 LN
    Finally in the text element, mention
            /: INCLUDE 'ZHEX-MACRO-COMPLOGO' OBJECT TEXT ID ST LANGUAGE 'E'.
    Please note that if object name is not indicated as 'ZHEX...’ the logo may not be printed!
    You will not be able to see the logo in a test print. The same will be printed in actual printout.
    <b>
    Reward points for useful Answers</b>
    Regards
    Anji

  • Who's been f**king with my JTables

    OK....own up....who's broken all my JTables!?!?
    I went on holiday 2 months ago (i know....nice holiday!) and have returned this morning to find that my editable JTables no longer work correctly.
    If i edit a cell and then click on another component, the edit no longer gets committed automatically in the way it did before i left. Needless to say, I am not amused. I've found a solution to the problem by setting the value of the "terminateEditOnFocusLost" property on my JTables but i really can't understand what's happened in the previous 60 days to make this suddenly necessary. A swift look at our CVS logs appears to confirm my work colleague's innocence, although they're fiendishly cunning in their incompetence at times!
    If anyone has any ideas who has brought this befuddlement upon me i'd be exceedingly grateful to know. Prime suspects are currently the good people of Sun!! Defend yourselves if you dare!!
    Cheers,
    Dave

    the edit no longer gets committed automatically in the way it did before i leftThe edit never did get committed automatically when the table lost focus, only when you click/move to another cell in the table.
    The "terminateEditOnFocusLost" property was added in 1.4 as a table property because you can't change the default behavour from one release to the next.
    So I doubt your code worked correctly before you went on holidays.

  • How to compress a file for email

    How do you compress a video file for an email?

    Hello,
    Yes I have no doubt the code is messed up
    I guess I should start from the beginning. Here is the original code below for the form code that I recieved from
    my hosting Company to use.
    However all I need is the email field and a submit button and not the other fields. That is probably how
    I managed to mess up the code, I was trying to take out the other fields, line it up etc and most likely did a pretty
    good hack job.
    I tried this original code and yes your right it really did mess up the side bar terribly.
    Here is the original code my hosting Co gave me before I made a mess out of it.
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Contact Us</title>
    <link rel="stylesheet" type="text/css" href="../../css/nms.css" />
    </head>
    <body>
    <form method="post" action="mail.php">
      <table>
       <tr>
        <td>What is your name ?</td>
        <td><input type="text" name="name" /></td>
       </tr>
       <tr>
        <td>What is your e-mail address ?</td>
        <td><input type="text" name="email" /></td>
       </tr>
        <tr>
        <td> Comments:</td>
        <td><textarea name="data" cols=40 rows=6></textarea></td>
        </tr>
       <tr>
        <td colspan="2"><input type="submit" /></td>
       </tr>
      </table>
    </form>
    </body>
    </html>
    Here is my site and where I wanted to put this was on the very top
    of the right side-bar, just above the words Customer Testimonial.  here
    is my site wwwdotselfdefenseproshopdotcom
    Thanks for any help...
    Regards,

  • Mailclient memory usage

    Hi!
    I've been developing a supposedly lightweight email client for my own use, to learn java better. The problem is that when I run it, it is not exactly as lightweight as I'd like. It sucks up 20-30MB of memory, which I think is quite much, as at the moment it's not really more than a mail notifier.
    Is this due to JVM overhead or because of poor programming on my part? If the latter, are there any guides or similar to avoiding the most common pitfalls of excessive memory usage in java?
    //T
    EDIT: the only GUI classes that I'm using (except for when adjusting setting and such) is a subclass of awt.TrayIcon
    Edited by: ojve on May 10, 2008 9:50 AM

    I doubt your code takes up 30 MB, so I would venture a guess that it is also showing the JVM.

  • Chart builder finish but some threads are still alive ?!?!?!?

    Hello all,
    I'm using oracle chart builder for presenting data in my
    application. I use it after supplying its data for gif file
    generation. The chart is stacked bar but I don't think this is the
    problem.
    The problem is that it generates the gif file successfully but my
    application is still running after the main method is finished, I
    debugged it and I found about three threads are up:
    Thread[AWT-EventQueue-0]
    Thread[SunToolkit.PostEventQueue-0]
    Thread[AWT-Windows]
    I doubted my code - but I'm taking it copy paste from developer's
    guide - and I debugged another Java file from a sample that comes with
    the kit and the same problem happened ?!?!?
    Does anyone know y?
    I saw lots of SunToolkit.PostEventQueue-0 & AWT-EventQueue-0 problems, but I don't find matching my situation, nearly some mentioned problem in native threads or something, but I think the problem is related to AWT more
    I used in testing both Oracle JDeveloper 9i release 3, and IBM
    WebSphere Studio Application Developer 4.0.3 ( both JDK 1.3)
    Thankx

    I used ctrl-break to display all threads working and the following was printed:
    "Thread-6" prio=5 tid=0x2349f8 nid=0x9e0 waiting on monitor [0..0x6fb38]
    "AWT-Windows" prio=5 tid=0x8a07e50 nid=0x894 runnable [0xba9f000..0xba9fdc4]
    at sun.awt.windows.WToolkit.eventLoop(Native Method)
    at sun.awt.windows.WToolkit.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    "SunToolkit.PostEventQueue-0" prio=5 tid=0x8a07878 nid=0x88 waiting on monitor [
    0xba5f000..0xba5fdc4]
    at java.lang.Object.wait(Native Method)
    at java.lang.Object.wait(Unknown Source)
    at sun.awt.PostEventQueue.run(Unknown Source)
    "AWT-EventQueue-0" prio=7 tid=0x8acbe30 nid=0x980 waiting on monitor [0xba1f000.
    .0xba1fdc4]
    at java.lang.Object.wait(Native Method)
    at java.lang.Object.wait(Unknown Source)
    at java.awt.EventQueue.getNextEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    "Thread-4" daemon prio=5 tid=0x8ad6be8 nid=0x90c waiting on monitor [0x99bf000..
    0x99bfdc4]
    at java.lang.Thread.sleep(Native Method)
    at org.apache.log4j.helpers.FileWatchdog.run(FileWatchdog.java:95)
    "Thread-3" daemon prio=5 tid=0x8ad6aa0 nid=0x8c0 waiting on monitor [0x8f5f000..
    0x8f5fdc4]
    at java.lang.Thread.sleep(Native Method)
    at org.apache.log4j.helpers.FileWatchdog.run(FileWatchdog.java:95)
    "Thread-2" daemon prio=5 tid=0x8a37008 nid=0x900 waiting on monitor [0x8f1f000..
    0x8f1fdc4]
    at java.lang.Thread.sleep(Native Method)
    at org.apache.log4j.helpers.FileWatchdog.run(FileWatchdog.java:95)
    "Thread-1" daemon prio=5 tid=0x8b63c0 nid=0x948 waiting on monitor [0x8edf000..0
    x8edfdc4]
    at java.lang.Thread.sleep(Native Method)
    at org.apache.log4j.helpers.FileWatchdog.run(FileWatchdog.java:95)
    "Thread-0" daemon prio=5 tid=0x8b64a8 nid=0x9c0 waiting on monitor [0x8e7f000..0
    x8e7fdc4]
    at java.lang.Thread.sleep(Native Method)
    at org.apache.log4j.helpers.FileWatchdog.run(FileWatchdog.java:95)
    "Signal Dispatcher" daemon prio=10 tid=0x7fdf28 nid=0x72c waiting on monitor [0.
    .0]
    "Finalizer" daemon prio=9 tid=0x7fabb8 nid=0x560 waiting on monitor [0x8c5f000..
    0x8c5fdc4]
    at java.lang.Object.wait(Native Method)
    at java.lang.ref.ReferenceQueue.remove(Unknown Source)
    at java.lang.ref.ReferenceQueue.remove(Unknown Source)
    at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)
    "Reference Handler" daemon prio=10 tid=0x7f9368 nid=0x9a8 waiting on monitor [0x
    8c1f000..0x8c1fdc4]
    at java.lang.Object.wait(Native Method)
    at java.lang.Object.wait(Unknown Source)
    at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
    "VM Thread" prio=5 tid=0x23f638 nid=0xa28 runnable
    "VM Periodic Task Thread" prio=10 tid=0x8a4f48 nid=0x92c waiting on monitor

  • Comment after the commit statement.

    Hi Everyone,
    Please do have a look at this.
    Commenting on COMMIT: Example The following statement commits the current transaction and associates a comment with it:
    COMMIT COMMENT 'In-doubt transaction Code 36, Call (415) 555-2637';
    Now where can I see that comment? What is the data dictionary, which will have this detail?
    Regards,
    BS2012.

    If you look into the document for the COMMIT statement you will see this.
    COMMENT Clause
    Specify a comment to be associated with the current transaction. The 'text' is a quoted literal of up to 255 bytes that Oracle Database stores in the data dictionary view DBA_2PC_PENDING along with the transaction ID if a distributed transaction becomes in doubt. This comment can help you diagnose the failure of a distributed transaction.

  • [Mac CS2] ISerialNumber issue

    Hello,<br /><br />My plugin is getting the serial number of the current copy of InDesign at Load() time from my plugin's entry point doing this:<br /><br />InterfacePtr<ISerialNumber> serial(gSession,IID_SERIALNUMBER);<br /><br />This had worked just fine - as long as I didn't need to addin a selection suite to my plugin . . .<br /><br />But at the exact moment I do add a CSB Addin - within my plugin's .fr file - ISerialNumber returns a nil pointer, breaking my existing code to check plugin loading conditions.<br /><br />First of all - I must be missing something important in here since I don't see how adding a CSB in resources could break ISerialNumber interface in my plugin entry point: I would appreciate any comment or advice that would help me making some sense of this strange behaviour.<br /><br />Last of all - beyond the theorical side, always interesting but hardly conclusive - I would appreciate any suggestion for a work around, since my plugin do need a selection suite AND to get InDesign serial number at loading time - by customer specifications.<br /><br />Best regards<br /><br />Patrick Perroud

    I'd guess that with CSB your plugin is instantiated earlier on during startup or even initalization. At least in theory, plugins should become loaded only on demand and eventually even unloaded when they're not any more needed. As you mention startup service is later, this sounds reasonable.
    How something as the selection architecture can cause such an early instantiation that the object model is not yet established for the session boss feels a bit strange, but sh.t happens. Maybe someone has to see how much memory to reserve for those selectionext stub objects?
    In the dark age of probably ID2 I learned to not rely on the effects of plugin-load returning false, because at that point in time my menu paths were already established - remember, menu and action filters are only invoked when the workspace is rebuilt, which is far more frequent in plugin development cycle rather than real world. I doubt menu code has improved in this regard e.g. to verify the existence of the action component only for plugins that decided to load. Maybe its time to give dynamic menus a try, or just disable by default.
    Regarding facades - this pattern is roughly the same high abstraction level as selection suites, but located on the utils boss and working on argument specified objects themselves rather than indirectly on the selection. Ideally, the CSB part of suites could just apply facade methods to the selected target entities. Especially if you don't have a selection around these facades should be very useful, e.g. instead of yourself creating and processing command objects.
    Dirk

  • Need to update multiple records using store procedure

    Hi i am trying to update multiple records using store procedure but failed to achieve pls help me with this
    for example my source is
    emp_name sal
    abhi 2000
    arti 1500
    priya 1700
    i want to increase salary of emp whose salary is less than 2000 it means rest two salary should get update..using stored procedure only
    i have tried following code
    create or replace procedure upt_sal(p_sal out emp.sal%type, p_cursor out sys_refcursor)
    is
    begin
    open p_cursor for
    select sal into p_sal from emp;
    if sal<2000 then
    update emp set sal= sal+200;
    end i;f
    end;
    and i have called the procedure using following codes
    set serveroutput on
    declare
    p_sal emp.sal%type;
    v_cursor sys_refcursor;
    begin
    upt_sal(p_sal,v_cursor);
    fetch v_cursor into p_sal;
    dbms_output.put_line(p_sal);
    end;
    the program is executing but i should get o/p like this after updating
    1700
    1900
    but i am getting first row only
    2000
    and record is not upsating...please help me with this
    thanks

    Hi Alberto,
    thanx for your valuable suggestion. but still i have doubt. the code which i have mentioned above might be simple but what if i have big requirement where i need update the data by using loops and conditional statement.
    and i have similar kind of requirement where i need to deal with procedure which returns more than one row
    my source is
    empno ename salary
    111,abhi,300
    112,arti,200
    111,naveen,600
    here i need to write a store procedure which accepts the empno (111) as input para and display ename and salary
    here i have written store procedure like this
    create or replace procedure show_emp_det(p_empno in emp.empno%type, p_ename out emp.ename%type,p_salary out emp.salary%type, p_cursor out sys_refcursor)
    is
    begin
    open p_cursor for
    select ename,salary into p_ename,p_salary from emp where empno=p_empno;
    end;
    and i have called this by using
    declare
    p_salary emp.salary%type;
    p_ename emp.ename%type
    v_cursor sys_refcursor;
    begin
    show_emp_det(111,p_ename,p_salary,v_cursor);
    fetch v_cursor into p_ename,p_salary;
    dbms_output.put_line(p_ename);
    dbms_output.put_line(p_salary);
    end;
    here i should get
    abhi,300
    naveen,600
    but i am getting first row only
    abhi,300
    but i want to fetch both rows...pls help me to find the solution

  • Killing Threads

    Hello all,
    I'm using oracle chart builder for presenting data in my
    application. I use it after supplying its data for gif file
    generation. The chart is stacked bar but I don't think this is the
    problem.
    The problem is that it generates the gif file successfully but my
    application is still running after the main method is finished, I
    debugged it and I found about three threads are up:
    Thread[AWT-EventQueue-0]
    Thread[SunToolkit.PostEventQueue-0]
    Thread[AWT-Windows]
    I doubted my code - but I'm taking it copy paste from developer's
    guide - and I debugged another Java file from a sample that comes with
    the kit and the same problem happened ?!?!?
    Does anyone know y?
    I saw lots of SunToolkit.PostEventQueue-0 problems here in google
    groups, but I don't find matching my situation.
    I used in testing both Oracle JDeveloper 9i release 3, and IBM
    WebSphere Studio Application Developer 4.0.3
    Thankx

    That will not work because these are threads started by the event handlers and gui objects not by processes he wrote. I honestly do not know that it is possible to kill these threads. I know you could have used something like the stop process in the past but not any longer. System.exit is really the only way I have seen to do things like that. I would say that maybe the best sollution you could hop for is to keep the window active even when the user closes it so then when they later ask for it again you can return the same window and keep it to those three threads being the only extra ones you have running.

  • Randomizer help (javascript)

    I am using iweb to create a website to conduct an experiment for a class. I need to link the first page to one of two different pages at random, so as my participants are equally subjected to both experimental conditions. I have tried using the following javascript: <script type="text/javascript" language="JavaScript">
    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! <a class="jive-link-external-small" href="http://javascript.internet.com">http://javascript.internet.com</a> -->
    <!-- Begin
    function go_to(url) {
    window.location=url;
    function rand_link() {
    var a;
    a = 1+Math.round(Math.random()*3); ? // a = random number between 1-2
    if (a==1) goto("http://web.me.com/clarajsimpson/Claras_BiologySurvey/Ants.html");
    if (a==2) go_to(" <a class="jive-link-external-small" href="http://web.me.com/clarajsimpson/ClarasBiology_Survey/Sugar_Gliders.html">http://web.me.com/clarajsimpson/Claras_Biolog y_Survey/SugarGliders.html</a>");
    // End -->
    </script>
    <center>
    <form name="myForm"><input type="button" name="myButton" value="click here"></form>
    </center>
    <center>Free JavaScripts provided
    by The JavaScript Source</center>
    however this only creates a small window in the middle of the screen that cannot be made any bigger. Is there any other way I could do this? Thanks, Clara

    however this only creates a small window in the middle of the screen that cannot be made any bigger
    Drag the handles of the Snippet after clicking Apply. Or embed the code in a <div> with style="width: nnpx; height: nnpx;" and other attributes.
    Besides that, I doubt the code will work. The form has no code to trigger the JavaScript and if it has the page will be displayed in the HTML Snippet. Try this :
    parent.window.location=url;
    You may have to learn HTML/CSS/JavaScript.
    But that is not an iWeb issue.
    Message was edited by: Wyodor

Maybe you are looking for