How to pass one's tables information to another

Hello :
i would like to one favor iam trying to send some specific information from one internal table to another,
but when i make the APPEND the information doesn't apear in the destiny table(r_omisiones_nocreadas) , this a segment of the code that iam using:
LOOP AT t_patrones.
READ TABLE t_seleccion WITH KEY entidad = t_patrones-entidad BINARY SEARCH.
Si la entidad para PSCD y SICOP,coincide con la entidad de SIE (la
cual puede ser diferente debido a que tiene una dirección de
notificacion independiente), se suman los importes.
    IF t_patrones-entidad = t_patrones-entidad_sie.
      w_aportacion = t_patrones-aportacion + t_patrones-aportacion_sie.
      w_amortizacion = t_patrones-amortizacion +
                       t_patrones-amortizacion_sie.
      w_subtotal = w_aportacion + w_amortizacion.
      IF NOT ( ( w_amortizacion >= t_seleccion-amortizacion ) OR
               ( w_subtotal >= t_seleccion-aportacion ) ).
     No se alcanza el importe requerido para efectuar la notificación
IF t_omisiones-patron = t_patrones-patron.
  APPEND r_omisiones_nocreadas
  MOVE 'No cumple con el rango de importes' TO r_omisiones_nocreadas-nocreado.
ENDIF.
this segement of code try to eliminate some information and when this informations is eliminated should be pass to the destiny table r_omisiones_nocreadas.
i would appreciate if you have any answer for me thanks a lot

Hi,
LOOP AT t_patrones.
READ TABLE t_seleccion WITH KEY entidad = t_patrones-entidad BINARY SEARCH.
Si la entidad para PSCD y SICOP,coincide con la entidad de SIE (la
cual puede ser diferente debido a que tiene una dirección de
notificacion independiente), se suman los importes.
IF t_patrones-entidad = t_patrones-entidad_sie.
w_aportacion = t_patrones-aportacion + t_patrones-aportacion_sie.
w_amortizacion = t_patrones-amortizacion +
t_patrones-amortizacion_sie.
w_subtotal = w_aportacion + w_amortizacion.
IF NOT ( ( w_amortizacion >= t_seleccion-amortizacion ) OR
( w_subtotal >= t_seleccion-aportacion ) ).
No se alcanza el importe requerido para efectuar la notificación
IF t_omisiones-patron = t_patrones-patron.
r_omisiones_nocreadas = t_patrones.APPEND r_omisiones_nocreadas.MOVE 'No cumple con el rango de importes' TO r_omisiones_nocreadas-nocreado.
ENDIF.
Thanks,
Pramod

Similar Messages

  • How to use one hash table inside another hash table

    Hi everyone,
    Any example of hash table inside another hash table.
    Can one here help me how to write one hash table inside another with repeating keys for the first hash table.
    Thanks,
    kanty.

    Do you mean you want the 'value' entries in a hash table to themselves be hash tables? Easy but this often indicates a design flaw.
    Hashtable<String,<Hashtable<String,Value>> fred = new Hashtable<String,<Hashtable<String,Value>> ();But what do you mean by "with repeating keys for the first hash table"?
    Edited by: sabre150 on Jul 2, 2010 10:11 PM
    Looks like you have already handled the declaration side in your other thread. I suspect you should be writing your own beans that hold the information and these beans would then be stored in a Map. The problem I have is that your description is too vague so I can't be certain.

  • How to pass an internal table to a SmartForm?

    Hi there!
    I have a program that calls a SmartForm.
    I have a internal table wich I want to print.
    This internal table is based on a custom structure with NO standard includes (e.g., with custom fields).
    How do I declare this internal table in the transaction SMARTFORMS?
    Best Regards,
    Luís.

    Refer below thread..
    How to pass an internal table to smartform.
    hope it will solve ur problem
    Thanks & Regards
    ilesh 24x7

  • How to pass an internal table to  LVC_FIELDCATALOG_MERGE

    Hi Abap'ers
       I want to know how to pass an internal table to the function module LVC_FIELDCATALOG_MERGE, as like we do in the FM REUSE_ALV_FIELDCATALOG_MERGE.
    For Eg
    v_name = 'I_OUTPUT'.
    call function 'REUSE_ALV_FIELDCATALOG_MERGE'
           exporting
                i_program_name         = wrk_repid
                i_internal_tabname     = v_name
                i_inclname             = wrk_repid
           changing
                ct_fieldcat            = wrk_fld_cat
           exceptions
                inconsistent_interface = 1
                program_error          = 2
                others                 = 3.
    Where I_OUTPUT  is the internal table name.

    Re: LVC_FIELDCATALOG_MERGE with internal table
    Check this
    In PBO,
      Building the field catalog
        PERFORM f9001_build_field_cat TABLES i_fieldcat
                                USING 'ZCSA_MARKETIING_EXPENSE_OUTPUT'
    FORM f9001_build_field_cat TABLES   p_fieldcat STRUCTURE lvc_s_fcat
                          USING value(p_structure).
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
           EXPORTING
                i_structure_name       = p_structure
           CHANGING
                ct_fieldcat            = p_fieldcat[]
           EXCEPTIONS
                inconsistent_interface = 1
                program_error          = 2
                OTHERS                 = 3.
      IF sy-subrc <> 0.
        MESSAGE i013 WITH text-e05."Error in ALV field catalogue creation
        LEAVE LIST-PROCESSING.
      ENDIF.
    ENDFORM.                    " f9001_build_field_cat
    U can create a structure or example pass MARA then it will take the structure of MARA.

  • State machine custom task workflow how to pass one task field value to the next task field

    i am using ItemMetadata.xml to pass value from list to custom task first value its passing the but second value is showing as null
    plus how to pass one custom task value to the next custom task
    i.e one supervisor approver comments submitted field i want to see on department manager approval custom task which is the next approver from supervisor
    ows_firstfield=""
    ows_SecondField=""
    the above ows fields are from list
    in this i am unable to retrive the second value in the task form this is my first query?
    second query is that how can we pass one task field value to next approver task field value?
    any idea
    MCTS,ITIL

    What type of workflow is this?  IS this Visual Studio or SharePOint designer or third party (K2, Nintex, etc...)?  YOu should be able to get ahold of the task that was edited via the correlation token, and then grab any value you want from that
    task (wether it be a custom field or a standard worfklow task field). 
    It would help to know what you are using to build the workflow.
    Thanks!

  • How to pass Single record set out to another Procedure in a LOOP

    In my complete Order lines FOR LOOP, I want to pass one line out to call another program to perform the insert or update action. How to write
    PROCEDURE order_line_process
      p_username      IN VARCHAR2,
      p_id            IN OUT NUMBER,
      my_orderdtl_tbl IN OUT my_orderdtl_tbl_type
    ) IS
    BEGIN
      FOR x IN 1 .. my_orderdtl_tbl.count LOOP
        IF my_orderdtl_tbl(x).update_flag = 'I' THEN
          order_line_insert(p_username      => p_username,
                            p_id            => p_id,
                            my_orderdtl_tbl => my_orderdtl_tbl(x));  --- how do I pass only one line info here? Do I have to assign/pass all column?
        END IF;
      END LOOP;
    END order_line_process;Thanks

    My example still works:
    SQL> create or replace package test2 is
      2  type my_orderdtl_rec_type is record (a number,b varchar2(10),update_flag char(1));
      3  type my_orderdtl_tbl_type is table of my_orderdtl_rec_type index by binary_integer;
      4  end;
      5  /
    Package created.
    SQL> create or replace procedure order_line_insert(p_user varchar2, p_id number, my_orderdtl_tbl test2.my_orderdtl_rec_type) is
      2  begin
      3   null;
      4  end;
      5  /
    Procedure created.
    SQL> create or replace  PROCEDURE order_line_process
      2  (
      3    p_username      IN VARCHAR2,
      4    p_id            IN OUT NUMBER,
      5    my_orderdtl_tbl IN OUT test2.my_orderdtl_tbl_type
      6  ) IS
      7  BEGIN
      8
      9    FOR x IN 1 .. my_orderdtl_tbl.count LOOP
    10      IF my_orderdtl_tbl(x).update_flag = 'I' THEN
    11        order_line_insert(p_username,
    12                          p_id,
    13                          my_orderdtl_tbl(x));
    14      END IF;
    15
    16    END LOOP;
    17
    18  END order_line_process;
    19  /
    Procedure created.But if you're using the following syntax to pass parameters:
    SQL> create or replace  PROCEDURE order_line_process
      2  (
      3    p_username      IN VARCHAR2,
      4    p_id            IN OUT NUMBER,
      5    my_orderdtl_tbl IN OUT test2.my_orderdtl_tbl_type
      6  ) IS
      7  BEGIN
      8
      9    FOR x IN 1 .. my_orderdtl_tbl.count LOOP
    10      IF my_orderdtl_tbl(x).update_flag = 'I' THEN
    11        order_line_insert(p_username => p_username,
    12                          p_id,
    13                          my_orderdtl_tbl(x));
    14      END IF;
    15
    16    END LOOP;
    17
    18  END order_line_process;
    19  /
    Warning: Procedure created with compilation errors.
    SQL> sho err
    Errors for PROCEDURE ORDER_LINE_PROCESS:
    LINE/COL ERROR
    11/7     PL/SQL: Statement ignored
    11/7     PLS-00306: wrong number or types of arguments in call to
             'ORDER_LINE_INSERT'Dublecheck the parameters name in the order_line_insert procedure
    SQL> create or replace  PROCEDURE order_line_process
      2  (
      3    p_username      IN VARCHAR2,
      4    p_id            IN OUT NUMBER,
      5    my_orderdtl_tbl IN OUT test2.my_orderdtl_tbl_type
      6  ) IS
      7  BEGIN
      8
      9    FOR x IN 1 .. my_orderdtl_tbl.count LOOP
    10      IF my_orderdtl_tbl(x).update_flag = 'I' THEN
    11        order_line_insert(p_user => p_username, -- THE ERROR WAS HERE!!! CORRECT PARAMETER NAME IS P_USER
    12                          p_id => p_id,
    13                          my_orderdtl_tbl => my_orderdtl_tbl(x));
    14      END IF;
    15
    16    END LOOP;
    17
    18  END order_line_process;
    19  /
    Procedure created.Max
    http://oracleitalia.wordpress.com

  • How to use one report column into the another report in obiee

    How to use one report column into the another report in obiee

    i dont want to use column as a filter for another report it should be report column for another report
    Thanks,
    Vivek

  • How to pass from a document pdf towards another

    Hello,
    I have two open documents.
    In javascript, how to pass from a document pdf towards another.
    David G

    You need to mark each document as "disclosed", in order for them to talk to each other. See the Acrobat JavaScript docs on "this.disclosed".
    Leonard

  • How to copy one column BLOB value into another column of another database.

    How to copy one column BLOB value into another column of another database.
    BLOB value contains word document.
    I thought of copy the BLOB value into a text file and then update the new column value by the same text in textfile. Will this work?
    Is there any other better way to do this?

    You're welcome
    BLOB fields contains binary data. I don't think you can do this
    Also if I view the BLOB as text. Can I copy it and insert into the new database.
    I think your options are as I said. Datapump or CTAS
    Best Regards

  • How to pass a internal table used in one method to another method in a view

    hi all,
    Is it possible to pass a internal table from one method to another method in a view??
    If so , kindly help me.

    Hi Bala,
    If you want to pass this internal table between different methods of the same view then write the contents of this internal table to a context node of your view using BIND_TABLE. You can then read the contents of this internal table from the other method using the reference of that node & the GET_STATIC_ATTRIBUTES_TABLE method.
    However if you want to pass the internal table between methods of different views then create a context node at the COMPONENTCONTROLLER level & then do a context mapping of this node to your local views context in both your views. You can follow the same BIND_TABLE & GET_STATIC_ATTRIBUTES_TABLE methods approach.
    Regards,
    Uday

  • How to pass the internal table data to smartforms

    Hi Gurus,
    I have a problem in passing the internal table data to the smartforms. In the print program
    I get the data into one internal table "LT_PRDLBL1". I am passing this internal table to the other in print program by calling the FM_NAME.
    CALL FUNCTION fm_name
      EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
        CONTROL_PARAMETERS         = T_SSFCTRLOP
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
        OUTPUT_OPTIONS             = T_SSFCOMPOP
        USER_SETTINGS              = ' '
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
      TABLES
        LT_PRDLBL                 = LT_PRDLBL1
    EXCEPTIONS
       FORMATTING_ERROR           = 1
       INTERNAL_ERROR             = 2
       SEND_ERROR                 = 3
       USER_CANCELED              = 4
       OTHERS                     = 5
    In the print program I had defined the internal tables like
    Data: lt_prdlbl  type standard table of zprdlbl.
    Data: Begin of lt_prdlbl1 occurs 0.
            include structure zprdlbl.
    Data: End of lt_prdlbl1.
    How do I define the internal table in the smartform to get the values printed in the smartform?.
    <REMOVED BY MODERATOR>
    Thanks,
    Edited by: Alvaro Tejada Galindo on Apr 21, 2008 1:01 PM

    Nehal,
    Thanks for quick response.
    In the smartform under the Form Interface->Tables tab
    I had defined
    LT_PRDLBL LIKE ZPRDLBL. If I define TYPE instead of LIKE I get the error message saying "FLAT TYPES may only be referenced using LIKE for table parameters".
    In the main window I have created LOOP, in which I have ticked the internal table and
    LT_PRDLBL INTO LT_PRDLBL. In the text node I am passing the values of this internal table
    &LT_PRDLBL-XXXX&.
    I am able to get the print but the data is not printing.
    Please help me with this.
    Thanks,

  • How to Pass the internal table data?

    DearAll,
    How to pass the Data of one internal table on a 1.html page to another html page for output, in BSP Application.
    regards.

    Hi ,
    In the onInputProcessing event of the first page , write the following code...
    call method NAVIGATION->SET_PARAMETER exporting
        name = 'it_filt_cur'
        value = it_filt_cur.
    Here it_filt_cur is internal table.
              NAVIGATION->GOTO_PAGE('next.htm').
    In the next page , you can make the internal table as auto in the attributes.
    Since you have made the itab as auto transfer , you can directly access the itab in the initialization event of the next page if it is stateless.
    Regards,
    Laxman Nayak.
    Message was edited by: Laxman  Nayak

  • How to create one master table and two detail for it

    I have one table , imagine it like mastertable( empid,deptid );
    and two different tables like employeetable(empid ) , departmenttable ( deptid )....
    I dont have any relation on database side. I need to create view link and ı need to use only one master table for two detail tables.
    How can ı manage this scenerio ?
    thanks...

    yes Shay ı really want to use two detail table in one UI as you suggest in your blog. But in that scenerio probably tables have link in database side with foreign key. My detail tables dont have any connection in database side with my master table. How can ı link them under one mastertableVO ?
    I am really sorry about my bad explanation. I am a newbie and probably ı dont know the correct words to tell my problem.
    Thanks for your time...

  • How to Pass the Internal table of a report to Smart Form

    Hi Experts,
    I have one report in which from selection screen i am getting the values from the users, and upon that values i am filling data in to the internal table.
    Now i want to pass that internal table data to the smart form
    and print that data in the smart form.
    So could you pls give me some pseudo code or any steps to achieve it.
    Thanks & Regards,
    DS

    Hi DS,
    First of all you need to create a SF and then need to call the FM generated by the FM in your report.
    In the SF in the form interface>tables tab>mention the name of the table and its type structure.
    Pls note that a new structure has to be created as the same type of your internal table which holds the data.
    And the import and export parameters as just the same as in a FM.
    Now after you create and activate your SF a FM will be generated (wen u execute your SF you will be taken to this SE37 screen with the name of FM so no probs..)
    You can call this FM in your report. Hope this helps.
    Ex:
    say itab has your final data, and you also want to export a variable var1 to the SF.
    after your normal report operations end, call the FM and pass on these data.
    say your FM name is FM1.
    call function FM1
    exporting
    var1 = var1
    tables
    itab1 = itab1.
    pls note that in the SF also i gave the same names, it is not mandatory to give the same names.
    and as you want to print a table in the smartforms, you need to create a table in the smart forms and then display the data which is quite simple.
    Hope this helps...
    if you need any further explanations, pls revert...
    Regards,
    Narendra.
    Reward points if helpful!!!

  • How to populate one internal table from another using field symbols

    Hi Gurus,
      I have a problem. I have to populate one internal table (sructure t_otput) from another internal table (sructure t_from) using field symbol.
    Structure for from table.
    types: begin of t_from,
             year(4) type c,
             ww(2) type c,
             site type marc-werks,
             demand type i,
           end of t_from.
    Structure for output table.
    types: begin of t_display,
             title(30),
             WW1(10),
             WW2(10),
             WW3(10),
           end of t_display.
    The from table looks like this:
    Year | WW | Site | Demand
    2005 | 1  | OR1  | 12.00
    2005 | 2  | OR1  | 13.00
    2005 | 3  | OR1  | 14.00
    The display table which has to be populated should look like this:
    Title  | WW1   | WW2   | WW3
    OR1    |       |       |
    Demand | 12.00 | 13.00 | 14.00
    How to populate display table using field symbol?
    Please give code snippets
    Thanks,
    Gopal

    Gopal,
    Here is the code, however I am not vary clear about the ORG1 and Demand display that you have shown in the display. I am sure with this code it should not be a big deal to tweak in whatever manner you want.
    TABLES : marc.
    TYPES: BEGIN OF type_display,
    title(30),
    ww1(10),
    ww2(10),
    ww3(10),
    END OF type_display.
    TYPES: BEGIN OF type_from,
    year(4) TYPE c,
    ww(2) TYPE c,
    site TYPE marc-werks,
    demand TYPE i,
    END OF type_from.
    data : t_from type table of type_from,
           t_display type table of type_display.
    field-symbols : <fs_from> type type_from,
                    <fs_display> type type_display.
    data : wa_from type type_From,
           wa_display type type_display.
    wa_from-year = '2005'.
    wa_from-ww   = '1'.
    wa_from-site = 'OR1'.
    wa_from-demand = '12.00'.
    insert wa_from  into table t_from.
    wa_from-year = '2005'.
    wa_from-ww   = '2'.
    wa_from-site = 'OR1'.
    wa_from-demand = '13.00'.
    insert wa_from  into table t_from.
    wa_from-year = '2005'.
    wa_from-ww   = '3'.
    wa_from-site = 'OR1'.
    wa_from-demand = '14.00'.
    insert wa_from  into table t_from.
    data : variable(3) type c.
    field-symbols : <fs_any> type any.
    break-point.
    Loop at t_from assigning <fs_from>.
    variable = 'WW'.
    wa_display-title = <fs_from>-site.
    concatenate variable <fs_from>-ww into variable.
    assign component variable of structure wa_display to <fs_any>.
    <fs_any> = <fs_from>-demand.
    endloop.
    append wa_display to t_display.
    clear wa_display.
    loop at t_display assigning <Fs_display>.
      write :/ <fs_display>.
    endloop.
    Note : Please award points if this helps you.
    Regards,
    Ravi

Maybe you are looking for