Function... to capture data in worksheet  to table help needed

hi,
I am new to this field, i need a sample code, for the following
A function1 should capture data elements like 3 to 4 values from discoverer worksheet1 and those values must me transfered to dummy tables..
The data in the dummy tables should be deleted once it is being captured by Function2
Other function2 should capture those data from dummy tables and pass it to other worksheet2. the result on the worksheet 2 will be based on the data in the dummy tables
It would be really helpful, if i get a sample code for this process..
regards
-Seetha.

Hi Sabine,
I created a worksheet 1, which shows the amount of all
customers for Quater1, Quater 2, Quater3 and Quater 4.
And in the end it will show total amount for Quat1,
Quat2,Quat3 and Quat4.
eg.
CUSTOMER     Quat1     Quat2     Quat3     Quat4
abcd          100     10     200     300
zaqws          10     230     90     60
qwer          400     250     300     100
Total          510     580     590     460
This Four Values in total
Quat1_Total = 510
Quat2_Total = 580
Quat2_Total = 590
Quat2_Total = 460
These four amounts has to be transfered to worksheet 2..
the output of the worksheet 2.. depends on these 4
values.
1. How should i captures these four values and pass it
to worksheet 2?
2. Should I have to use function? if so how?
I need sample code for it.. since i am new to this field.
3. Depending up on the result on worksheet 1 , worksheet2
has to provide results like.. comparing with last
quaters...etc..
Thanks in Advance
-Seetha

Similar Messages

  • CALL function to extract data from a structure table

    Hi Gurus,
    Anyone knows how to write a call function to extract data from a structure table?
    Your help is very much appreciated.
    Thanks alot.

    Hi,
    structure doesnot hold any data. instead of it you can check the stucture in which table it is used, find the table name,use select query to extract the data u needed.
    you can use where used list option to find the structure in which table it is used.
    regards
    siva

  • Function modules for data retrieval from diff. tables

    Hi,
    I would just like to ask if there are function modules that can be used to retrieve data from the ff. tables:
    TSAD3T
    KNVV
    ESTRH
    for TSAD3T i need to get the value of title_medi
    for KNVV    i need to get the fields klabc vkorg vtweg
    for ESTRH  i need to get the fields subcat subid.
    Thanks.

    I doubt if you have such a FM

  • Date Format in 'HH:MI' - help needed

    I have a table details that contains time_status column of Timestamp datatype.
    Data is stored in the column in the format '1/1/2008 10:31:00.000000 AM'.
    Now I want to select the data in HH:MI fopmat only.
    i.e., for '1/1/2008 10:31:00.000000 AM' I should get 10:31.
    I have written as select to_char(time_status,'HH:MI') from dual;
    I am getting an error when this query is included in the procedure.
    When I am executing outside, its is working.
    Also, How can I get the format a '1/1/2008 10:31'.
    Thanks in advance.
    Regards
    Raghunadh.

    I have a table details that contains time_status column of Timestamp datatype.Good. Always use the correct datatype. Either date or timestamp.
    Data is stored in the column in the format '1/1/2008 10:31:00.000000 AM'.
    Wrong! A timestamp or also a date column has no format! Same as a number column has no format.
    Now I want to select the data in HH:MI fopmat only. i.e., for '1/1/2008 10:31:00.000000 AM' I should get 10:31.When you work with date and timestamps you don't need any format. When you display the value, then you need to change your date into a string. Only during this transformation formatting takes place.
    Example:
    SQL*Plus: Release 9.2.0.2.0 - Production on Thu Aug 21 10:45:17 2008
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.8.0 - Production
    /* lets do a simple date select */
    SQL> select sysdate from dual;
    SYSDATE
    21-AUG-08
    "Attention!" Sql*Plus did an implizit date to string conversion to show this value on the screen.
    It used the NLS settings for the format.
    /* Now lets change the nls settings */
    SQL> alter session set nls_date_format = 'FMddth Month YYYY';
    Session altered.
    SQL> select sysdate from dual;
    SYSDATE
    21st August 2008
    SQL>
    "Different output for the same query! Value is the same, only the formatting was changed."
    I have written as select to_char(time_status,'HH:MI') from dual;You should ask yourself, why do I want this string?
    I am getting an error when this query is included in the procedure.
    When I am executing outside, its is working.
    Also, How can I get the format a '1/1/2008 10:31'.Check the documentation (sql manual) for the many options for the date format settings. Also check for timestamps, they are a bit more difficult to handle than dates.
    Thanks in advance.
    Regards
    Raghunadh.You're welcome.

  • Capturing data from a dynamic table that span multiple pages

    I created a PDF form that contained a dynamic table that can span across multiple pages. Additional rows in the table can be created by the person filling the form as and when needed.
    The PDF form is distributed to the receipient using Adobe LiveCycle Designer.
    However, when the form is "Submitted" back to the originator of the form, only data in the first row of the table is captured in the Response file. All the other rows are left out.
    I would be grateful if anyone can advise me as to how do I or what shall I do to get all the data in all the rows in the table into the Response File?
    Thank you.

    Hi
    Attached are the saved completed PDF-Form and the response file after the completed form has been submitted. I have copied this message to your gMail account.
    Only data in the first row of the table is captured in the Response file.
    If it is working correctly on your side, please let me know what could have gone wrong on my side.
    Thank you.
    Best regards,
    Kim-Siang Ng
    http://www.tipstoenrichyourlife.com/parenting
    With the wish to help all beings, may all my thoughts,words,and actions be void of attachment and ego.
    May they arise from compassion and wisdom.
    May they be imbued with patience and joy.
    The information contained in this transmission may contain privileged and confidential information and is intended only for the use of the person(s) named above. If you are not the intended recipient, any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you received this email in error, please contact the sender immediately by reply e-mail and destroy all copies of the original message. This email is not intended as an offer or solicitation for the purchase or sale of any financial instruments.
    This email is forwarded automatically to a selected list of my buddies for enjoyment. Contents come from various sources and none of the materials I claim as my property. If any belongs to you, please consider it an honor that the content was worthy enough to be shared. No copyright infringement intended!. If any material is not appealing to you DELETE immediately.
    When forwarding this email, please have the courtesy to respect the privacy and confidentiality of the sender by deleting all previous email trails and addresses before you proceed to forward this email to others.

  • Dynamically fetaching data into PL/SQL tables help

    Hi,
    I am develioping a PL/SQL procedure in which I am creatig 24 PL/SQL tables of the same type.
    But while inserting data in them I need to use the table names dynamically i.e., the Execute immediate used to put the data into the tables would remain same just I need that for each and every run of for loop for that Execute immediate statement, it should use different table name.
    Please see sample code below:
    col_name varchar2(20);
    Type RA_TABLE is table of CALL_DETAIL_EXCEPTION.IC_CIRCT_GR_CD%TYPE
    index by binary_integer;
    MY_RA1 RA_TABLE;
    MY_RA2 RA_TABLE;
    MY_RA3 RA_TABLE;
    MY_RA4 RA_TABLE;
    BEGIN
    for idx in 1..cnt_interval Loop
    Col_name := 'MY_RA'||idx;
    query1:='select Trunk_info bulk collect INTO MY_RA'|| idx ||' from dbl.vw_cgi v where not exists (select 1 from dbl.varun f
    where f.ic_circt_gr_cd= v.TRUNK_INFO and f.call_gmt_dnect_dt_time between
    to_date('''||stime||''',''yyyymmddhh24miss'') and to_date('''||etime||''',''yyyymmddhh24miss''))';
    Now when I execute this code, it gives me an error for query1 saying that it is unimplemented feature in Oracle.
    It is not able to pick up that dynamic table name.
    Please help!

    user9315951 wrote:
    I am develioping a PL/SQL procedure in which I am creatig 24 PL/SQL tables of the same type.All wrong. This is NOT how one treats data in PL/SQL.
    There is NO such concept as PL/SQL "+tables+". You are in fact defining associative arrays and not using these as associative arrays, but as normal arrays. Your code can consume vast amounts of server memory as private process memory. Your code CAN crash the Oracle database server (yes, I have seen this multiple times - even in production).
    Your code is flawed. Your approach is flawed.
    I suggest that you take several steps back, gain some understanding of fundamental Oracle concepts, about what does scale and perform in PL/SQL and SQL, and then apply these concepts and principles.

  • Error: No batch input data for screen SAPMZVKDIALOGDEMO 1000 Help Needed

    Hi Experts!
    I wrote a program for BDC. I am attaching the code herewith. When i am trying to process the session in SM35, i was getting the error: No batch input data for screen SAPMZVKDIALOGDEMO 1000. Can anyone please tell me, what am i doing wrong.
    Thanks.
    REPORT  zvkbdcdemo01.
    DATA: bdc_tab LIKE bdcdata OCCURS 6 WITH HEADER LINE.
    DATA: session LIKE apqi-groupid VALUE 'Session #1'.
    CALL FUNCTION 'BDC_OPEN_GROUP'
      EXPORTING
        client                    = sy-mandt
    *   DEST                      = FILLER8
        group                     = session
    *   HOLDDATE                  = FILLER8
    *   KEEP                      = FILLER1
        user                      = sy-uname
    *   RECORD                    = FILLER1
    *   PROG                      = SY-CPROG
    * IMPORTING
    *   QID                       =
    * EXCEPTIONS
    *   CLIENT_INVALID            = 1
    *   DESTINATION_INVALID       = 2
    *   GROUP_INVALID             = 3
    *   GROUP_IS_LOCKED           = 4
    *   HOLDDATE_INVALID          = 5
    *   INTERNAL_ERROR            = 6
    *   QUEUE_ERROR               = 7
    *   RUNNING                   = 8
    *   SYSTEM_LOCK_ERROR         = 9
    *   USER_INVALID              = 10
    *   OTHERS                    = 11
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    PERFORM fill_bdc_tab.
    CALL FUNCTION 'BDC_INSERT'
      EXPORTING
        tcode                  = 'ZVKTR001'
    *   POST_LOCAL             = NOVBLOCAL
    *   PRINTING               = NOPRINT
    *   SIMUBATCH              = ' '
    *   CTUPARAMS              = ' '
      TABLES
        dynprotab              = bdc_tab
    * EXCEPTIONS
    *   INTERNAL_ERROR         = 1
    *   NOT_OPEN               = 2
    *   QUEUE_ERROR            = 3
    *   TCODE_INVALID          = 4
    *   PRINTING_INVALID       = 5
    *   POSTING_INVALID        = 6
    *   OTHERS                 = 7
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'BDC_CLOSE_GROUP'
    * EXCEPTIONS
    *   NOT_OPEN          = 1
    *   QUEUE_ERROR       = 2
    *   OTHERS            = 3
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *&      Form  fill_bdc_tab
    *       text
    FORM fill_bdc_tab.
      REFRESH bdc_tab.
      PERFORM populate_bdc_tab USING:
      '1' 'SAPMZVKDIALOGDEMO' '1000',
      ' ' 'SFLIGHT-CARRID' 'LH',
      ' ' 'SFLIGHT-CONNID' '0400',
      ' ' 'SFLIGHT-FLDATE' '07/07/2007',
      ' ' 'SFLIGHT-PRICE' '1982',
      ' ' 'SFLIGHT-CURRENCY' 'EUR',
      ' ' 'SFLIGHT-PLANETYPE' 'A310-300',
      ' ' 'BDC_OKCODE' 'CREA'.
    ENDFORM.                    "fill_bdc_tab
    *&      Form  POPULATE_BDC_TAB
    *       text
    *      -->FLAG       text
    *      -->VAR1       text
    *      -->VAR2       text
    FORM populate_bdc_tab USING flag var1 var2.
      CLEAR bdc_tab.
      IF flag = '1'.
        bdc_tab-program = var1.
        bdc_tab-dynpro = var2.
        bdc_tab-dynbegin = 'X'.
      ELSE.
        bdc_tab-fnam = var1.
        bdc_tab-fval = var2.
      ENDIF.
      APPEND bdc_tab.
    ENDFORM.                    "POPULATE_BDC_TAB

    This normally means that you are trying to insert data on a screen for which a particular field is not available.
    So check screen number, screen fields and report name. In case of screen fields, use F1, F9 (technical information), and check the name of the screen field for batch processing (all the way at th bottom of the pop-up). This can differ from actual name of the screen field.
    If all this is ok, try to create a recording of the transaction with SM37.

  • Looping through a table Help needed ....Forms 10g..... When Button Pressed

    Hye craig, hamid, christian and all ...........
    i have a user access interface which i create where there are two fields username and password and a button,
    i have also created a table USERS for users which have username and password fields ..... On useraccess interface i coded on WHEN BUTTON PRESSED like this
    declare
    go_block('users');
    execute_query;
    declare
    begin
         if :useraccess.username=:users.username and
              :useraccess.password=:users.password then
              go_block('MAINPAGE');
              else
              go_block('USERACCESS');
              MESSAGE('SORRY WRONG PASSWORD OR NOT A REGISTERED USER');
              MESSAGE('SORRY WRONG PASSWORD OR NOT A REGISTERED USER');
              end if;
    end;
    This code works for a single user in USERS table but for multiple users there has to be some looping system
    which matches the USERACCESS and USERS tables fields thoroughly ....

    Hi Majid,
    I can suggest you a workaround for this. raise a ON-LOGON trigger and you can use the LOGON_SCREEN builtin to flash the logon screen at runtime. And then try capturing the username and password.
    DECLARE
      connected BOOLEAN := FALSE;
      tries     NUMBER  := 3;
      un        VARCHAR2(30);
      pw        VARCHAR2(30);
      cs        VARCHAR2(30);
    BEGIN
      SET_APPLICATION_PROPERTY(CURSOR_STYLE, 'DEFAULT');
      WHILE connected = FALSE and tries > 0
      LOOP
        LOGON_SCREEN;
        un := GET_APPLICATION_PROPERTY( USERNAME );
        pw := GET_APPLICATION_PROPERTY( PASSWORD );
        cs := GET_APPLICATION_PROPERTY( CONNECT_STRING );
        LOGON( un, pw || '@' || cs, FALSE );
        IF FORM_SUCCESS
        THEN
          connected := TRUE ;
        END IF;
        tries := tries - 1;
      END LOOP;
      IF NOT CONNECTED THEN
        MESSAGE('Too many tries!');
        RAISE FORM_TRIGGER_FAILURE ;
      END IF;
    END ;   a sample piece of coding to help you out.
    Regards,
    Manoj Chakravarthy

  • Mail to RFC -- Data Structed in Inbound Queue  -- Help needed !

    Hi Friends ,
                           I am doing Mail to RFC Asyn Scenario . Mail mails are come into the mail box . XI is trying to read the mail and send to R3.
                            It was working fine suddenly , Many mails read succesfully and data send to RFC , But it is structed in   ( SMQ2 ) inbound Queue ( <b>Message Scheduled on Outbound side</b> )
                  For long time it is showing like this . No data is accepted  by RFC. I have checked the Adpater confi for rfc it is fine .  I have given Max connection as 50 also .
              Please help me to solve this issue !
    Regards.,
    V.Rangarajan

    Hi,
    Have the Queues being registered in the R/3..?
    If not....
    1.Go to SXMB_ADM(R/3)
    2. Go to Manage Queues and then
    3. Register All Queues.
    <a href="/people/sap.user72/blog/2005/11/29/xi-how-to-re-process-failed-xi-messages-automatically Failed Messages</a>
    Regards
    San
    <a href="Remember to set the thread to solved when you have received a solution to set the thread to solved when you have received a solution</a>
    Where There is a <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/weblogs?blog=/weblogs/topic/16">blog</a> there is a Way.

  • Select distinct problem with muliple join tables, help needed

    Hi,
    I have two main tables. Each has its of sub joined tables.
    guest_id_for_reservation connects two major tables. This has
    to be that way
    because my guest may change the room status from single to
    double (and the
    similar exceptional requests).
    guests reservation
    guest_id_for_reservation
    countrytable hoteltable
    delegationtable roomtype
    I form a query. I want to select distinct those results. But
    it does not
    work.
    If I do not include any table related to reservation table
    and its sub
    joined tables (disregarding guest_id_for_reservation), it
    works.
    Is there a specific syntax for select distinct of this type
    or any
    workaround.?
    Thank you
    Hakan

    Hi I'm still battling with this - have connected the AX to my Imac via ethernet and it shows up fine in Airport Utility. Status light is green and it says its set up to connect to my existing wireless network using wireless connection. Security in Network Preferences is the same for both: WPA2 Personal.
    So I don't think there's a problem with the AX, and my current wireless network (BT Home Hub) is working fine.
    And when I restore factory settings Airport Utility can see the AX before updating settings so the wireless side of AX must work too.
    I'm figuring it must be something about the settings that mean AU can't see it anymore. But I can't work out what, since security is the same.
    Any ideas would be great!

  • Date format not recognized -- urgent help needed

    Hi,
    I'm having a problem when start sqlplus in dos command window. If I start it from C:\oracle\ora81\bin, it won't started and error message showing like 'Date format not recognized' and then come back to DOS.
    I do have OWB installed which also has SQLPLUS installed so that there is no problem if I start it from C:\ORACLE\owb92\bin.
    For some reason, the path is setting as C:\oracle\ora81\bin before C:\ORACLE\owb92\bin so the default always goes to 81 folder.
    If restart the DB instance, and this problem is gone. But it comes back after some application running (our own application and Oracle provided OMBPlus ). We double check our own application, and there is no where to "alter session ...".
    Any help will be very appreciatged,
    Thanks,
    Daming

    I'm having a problem when start sqlplus in dos command window. If I start it from C:\oracle\ora81\bin, it won't started and error message showing like 'Date format not recognized' and then come back to DOS.
    Do you have a file called 'login.sql' in the folder 'C:\oracle\ora81\bin'? If there is one, is there an 'alter session' command in this file?

  • QM Tables- Help Needed

    Hi all,
    I need to make a report on Defective Quantity ( Materialwise & Vendorwise).
    I am trying to make it using  the following tables...
    qave
    qals
    marc
    mkpf
    mseg
    qamb
    Can somebody suggest me from which table should get Defect type(code) & code group..? Is there any other table for the same..?Coz I need to display defect type alongwith defective material.

    Hi,
    Make a Select from table QMEL to get field qmnum (Notification No) with the field prueflos (Inspection Lot Number).
    SELECT prueflos qmnum INTO TABLE i_defect
        FROM  qmel FOR ALL ENTRIES IN i_orden
        WHERE prueflos = p_prueflos.
    Then with table i_defect you can select all the defects and groups asociated to Inspection Lot Number
        SELECT qmnum fenum fegrp fecod anzfehler pnlkn merknr probenr
               arbpl arbplwerk feqklas
        INTO TABLE i_defect_complete
        FROM  qmfe FOR ALL ENTRIES IN i_defect
        WHERE qmnum = i_defect-qmnum.
    regards,
    Alejandro.

  • Resizing tables help needed

    I've been using Dreamweaver 8 for a few years now. I must admit I kind of muddle through a lot of the time but get there in the end.
    A recurring problem I have though is when I am editing text in a table or more often nested tables. As I type the table becomes longer which is fine. However if I erase something the table / cell stays the same length. Usually I can just resize it but sometimes I get into an endless loop of trying to resize the inner cell / table then the outer one only to find the inner has set itself again. Sometimes everything seems set correctly but there is still an annoying blank space petruding at the bottom. I then check whether there are things like extra paragraphs html but there isn't.
    Is there anyway to make tables and cells always shrink again if text is erased? A kind of 'forget height' setting.

    sometimes I get into an endless loop of trying to resize the inner cell / table then the outer one only to find the inner has set itself again.
    Avoid manually resizing tables and table cells in DW Design View. In Code View, DW will then constantly insert updated height and width attributes in the <table> and <td> tags, none of which are necessary. This leads to an endless cat-and-mouse game of manually resizing.
    Far better to let the table adjust itself after editing the contents.
    Is there anyway to make tables and cells always shrink again if text is erased? A kind of 'forget height' setting.
    Yes, don't create heights in the first place
    To refresh a table after editing its contents, you should just be able to click anywhere on the page (in Design View) outside the table and DW will refresh the table.
    Any reason you're still using nested tables? You're aware that the web world has moved on to CSS layouts?

  • In ALV reports how can we capture separate data in 3 internal table

    HI
       In ALV reports how can we capture data in 3 Internal tables and combine them in another internal table to display........

    Hello Sudhanshu
    Another option would be to display all three itabs together which is a piece of cake using OO-based ALV lists. Please refer to thread
    Re: Alv
    for a sample report.
    Regards
      Uwe

  • Data transfer between 2 table views

    Dear Gurus
    Here is my scenario.
    I need to transfer data between 2 table views (Both these table views are having only column). These 2 tables are present in separate views (under same viewset).
    Now initially I need to display some data in one of the tables when I display the screen for the first time (this I was able to achieve). Now if I double-click on any row of this table,  I need to move the data present in that particular row to a different table present in the same screen.
    Here is what I have achieved.
    1) When I click on any row,  I was able to capture the row index and the corresponding data in that row.
    I put some code in the method EH_ONSELECT (present in the event handler) to get this working.
    Now my question is
    How can I move this captured data into a different table view?
    I tried investigating on some of the methods such as do_prepare_output. But I am left with no clue on what coding needs to be done here.
    Any help will be greatly appreciated.
    Thanks
    Raj

    Hi Raj,
    You can write the code in methods like DO_PREPARE_OUTPUT, but need to take adequate care of perfrormance as this method gets triggered for all server events.
    If you can identify any other method on the second view at an instance when you select rows on view1..
    that too is fine.
    You can get the selected entries from a context node collection wrapper method...
    DATA: lr_marked_line TYPE REF TO if_bol_bo_col.
    * Get the lines selected by the user
      lr_marked_line = me->typed_context->productcategory->collection_wrapper->get_marked( ).
    You can do a work around this way too...create an internal table attribute in the IMPL class of Custom Controller...Update it with the selceted rows in view1.
    Populate view2 with the values in this table by accessing them from Custom Controller.
    Code can be in DO_PREPARE_OUTPUT or some method that triggers at the point you select values in first row.
    Regards,
    Masood Imrani S.

Maybe you are looking for