Transfer of Internal Table between BSP's

Hi all,
Can i transfer an internal table across BSP's if so how?
Thanx in advance,
Regards,
Altaf.

hai,
    ypu can do it by using server side cookies and to know how to dit please see this link.
  http://help.sap.com/saphelp_erp2005/helpdata/en/bd/4cd23a09313b37e10000000a11405a/content.htm<a href="http://http://help.sap.com/saphelp_erp2005/helpdata/en/bd/4cd23a09313b37e10000000a11405a/content.htm">http://http://help.sap.com/saphelp_erp2005/helpdata/en/bd/4cd23a09313b37e10000000a11405a/content.htm</a>
cheers

Similar Messages

  • Error Passing an internal table between BSP pages

    Any time there is data in the internal table and I try to pass it from one BSP page to the next I get an Web error.  I've heard that it is possible to pass an internal table from one page to the next.  can anyone point me in the right direction here?

    You can do this with the navigation object only if the table is very small. Overwise it overflows 2+KB limitation of URLs.
    Alternative ideas is to use server side cookies (search forum for many examples).
    If stateful, just hang stuff of your application class.

  • How to pass internal table between views

    Hello Experts,
      How to pass an internal table between views? I have followed some steps but its showing an error.
    i have created a table type of ZTTYPE_VBAP and line type  VBAP.
    I have declared in component controllers attribute  LT_VBAP of associated type ZTTYPE_VBAP .
    But when i am using this in my method in component controller its not taking.

    Venkata123# wrote:
    Hello Experts,
    >
    >   How to pass an internal table between views? I have followed some steps but its showing an error.
    >
    > i have created a table type of ZTTYPE_VBAP and line type  VBAP.
    > I have declared in component controllers attribute  LT_VBAP of associated type ZTTYPE_VBAP .
    > But when i am using this in my method in component controller its not taking.
    you will have to declare a node with the attributes in the context tab of component controller. by doing this you will make this node a global one in your entire application . now copy the value you have in the internal table of yours in this node.
    after doing so you can read this node anywhere in the program and you can retrieve the values.
    regards,
    sahai.s

  • How to transfer an internal table from one FUNCTION to another

    Hi,
       In Normal Enabled Function, I have created an External Parameter as
         ZTEMP LIKE ZSTR.  (ZSTR is a structure).
       In Source Code, am using an Internal Table(ZINT) which is of the same structure type.
    I have populated the internal table. Now I have to export these internal table values to another function.
    I tried to assign the internal table to the exporting parameter. But this shows error as ZTEMP is not an internal table.
       So, How to transfer this??
       Give me sample Code.
    Regards,
    Kalai.
    Message was edited by:
            Kalaivani Pachiappan

    Hi Ramesh,
      Thanks for ur reply. Actually I am a beginner. So I dint get u. Can u first clear me one doubt: If I give ZTEMP LIKE ZSTR as export parameter, will it create ZTEMP as a table with all fields as in ZSTR ( or ) ZTEMP itself as a structure???
      Then How can I transfer the internal table using Import/Export?
       Actually FUNCTION1 is giving some input to FUNCTION2. FUNCTION2processes and stores the result in Internal Table. Now I have to export these internal table contents to FUNCTION1. 
       How can I do this??
    Thanks and Regards,
    Kalai

  • Internal table to BSP Page

    how do I fill up the internal table on BSP page.

    I have the following code in a view
    <htmlb:textView text   = "PO # "
                    design = "EMPHASIZED" />
    <htmlb:inputField invalid  = "false"
                      value    = "po number"
                      required = "true" />
    v_po_num type ref to my_model
    but when I execute the BSP, i'm getting "po number" displayed in the PO number field.  Couldn't figure out
    why it is not displaying the value retrieved from the model method.

  • Passing Internal tables between pages (in stateless appl.)

    hi BSP gurus,
    how do I pass internal tables from one BSP page to another. The problem is that the appl. is stateless and hence I am not able to use the appl. class.
    thanks in advance,
    Ashish Walke

    Hi Ashish,
    In the onInputProcessing event of the first page , write the following code...
    call method NAVIGATION->SET_PARAMETER exporting
    name = 'filled_table'
    value = filled_table.
    Here filled_table is internal table.
    NAVIGATION->GOTO_PAGE('second.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,
    Aashish Garg

  • Transfer of Internal table contents to ftp server

    Hi,
    I have data in one internal table, which needs to transferred to file on ftp server,
    please tell me how to create file on ftp server, how should i transfer contents of this internal table to file on ftp server.
    please help me.

    Hi,
    Please refer following code, which create a log file in Ftp server,
    Step 1 Connect to Ftp server.
    SET EXTENDED CHECK OFF.
        g_slen = STRLEN( p_pwd ).
      CALL FUNCTION 'HTTP_SCRAMBLE'
        EXPORTING
          SOURCE      = p_pwd
          sourcelen   = g_slen
          key         = g_key
        IMPORTING
          destination = p_pwd.
      CALL FUNCTION 'FTP_CONNECT'
        EXPORTING
          user            = p_user        <----- Pass User ID
          password        = p_pwd  <---- Pass Password
          host            = p_host        <---- Pass IP Address
          rfc_destination = p_dest  <----- RFC destination SAPFTP
        IMPORTING
          handle          = g_hdl
        EXCEPTIONS
          not_connected   = 1
          OTHERS          = 2.
      IF sy-subrc <> 0.
        sy-msgty = 'E'.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    *   MESSAGE SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4 TYPE 'I'.
      ENDIF.
    Step 2  Reading file from FTP
    CALL FUNCTION 'FTP_SERVER_TO_R3'
      EXPORTING
        handle               = g_hdl
        fname                = p_fname   <---- File path
    *   CHARACTER_MODE       =
    IMPORTING
       BLOB_LENGTH          = l_xml_table_size
    TABLES
       BLOB                 = l_xml_table
    *   TEXT                 =
    EXCEPTIONS
       TCPIP_ERROR          = 1
       COMMAND_ERROR        = 2
       DATA_ERROR           = 3
       OTHERS               = 4
    Step 3 Write a file
    g_docid = l_filename.
    * **Transferring the data from internal table to FTP Server.
      DESCRIBE TABLE gt_log LINES l_count.
      g_slen = l_count * 275.
    CALL FUNCTION 'FTP_R3_TO_SERVER'
      EXPORTING
        handle               = g_hdl
        fname                = g_docid     <---File name
       BLOB_LENGTH          = g_slen   <---- Length
       CHARACTER_MODE       = 'X'
    TABLES
    *   BLOB                 =
       TEXT                 = gt_log
    EXCEPTIONS
       TCPIP_ERROR          = 1
       COMMAND_ERROR        = 2
       DATA_ERROR           = 3
       OTHERS               = 4

  • Download internal table from BSP application to C:\ drive of the user

    Hi,
    How do we download a internal table data from a BSP application to the C:\ drive of the user. Have tried GUI Download, but it doesn't work. Also don't want a pop up to appear while this is happening. The code has to there in 'OnInputProcessing' event.
    Regards,
    Jaison

    Hi Raja,
    I went through few of the blogs and wrote the below code for downloading data. My requirement is that in the InputProcessing event i need to write a subset of data to the users C:\ drive. But even after doing the below change i'm unable to get the requirement done. Can you please tell me as to what i'm missing. I'm new to BSP development and help would be highly appreciated.
    if not it_messages1[] is initial.
      clear wa_messages1.
      loop at it_messages1 into wa_messages1.
       clear temp_string.
       concatenate wa_messages1-PROJECT wa_messages1-FILENAME.......
       into temp_string separated by CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
       concatenate main_string temp_string into main_string separated by
       CL_ABAP_CHAR_UTILITIES=>CR_LF.
      endloop.
    CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
      EXPORTING
        TEXT                 = main_string
        MIMETYPE        = 'APPLICATION/MSEXCEL;charset=utf-16le'
      ENCODING       =
    IMPORTING
       BUFFER         =  xmain_string.
    EXCEPTIONS
      FAILED         = 1
      OTHERS         = 2
    CALL METHOD cl_bsp_utility=>download
    EXPORTING
        object_s = xmain_string
        content_type = 'APPLICATION/MSEXCEL;charset=utf-16le'
        content_disposition = 'attachment;filename=test.xls'
        response = mresponse
        navigation = navigation.
    Edited by: Jaison Yohannan on Jun 3, 2009 2:16 PM

  • How to transfer from internal table to table control ?

    How to transfer data from internal table to table control wihtout using select statement?

    HI
    GOOD
    The commands in the flow logic are:
    LOOP AT itab [INTO wa] WITH CONTROL ctrl.
    ENDLOOP.
    This statement assigns an internal table itab of the ABAP program to the table control and triggers a parallel loop run over the table control rows displayed on the screen and over the internal table itab. The additions INTO and WITH CONTROL are possible at the time of PBO, but not at PAI. The assignment of the loop to the table control takes place at PAI through the internal table.
    Using the INTO addition, the fields of the internal table itab are written to the work area wa at the time of PBO and the content of wa is transported, line by line, to the identically-named fields of the table control on the screen. Without the INTO addition, you must use an internal table with a header line. Then the content of the header line is transported line by line to the identically-named fields of the table control on the screen at the time of PBO. No module is required for filling the table control rows.
    Conversely, at the time of PAI, the internal table rows are not automatically filled with the contents of the table control rows. Instead, you must call a dialog module within the loop that modifies the table.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fa/0970a4543b11d1898e0000e8322d00/content.htm
    THANKS
    MRUTYUN^

  • Transfer an internal table with non char data type to an application server

    Here is a part of my code. lv_string variable was type string initially but i got an error Not mutually convertible in a Unicode Program. I changed it to type ty_afko. Now the program works but the data it puts out has just a bunch of  #####. I cannot make all value in the internal table type char because then my select statement is giving errors..  Please help...
    Type: BEGIN OF ty_afko,
           rsnum LIKE afko-rsnum,          " Number of reservation
           aprio LIKE afko-aprio,          " Order Priority
           maufnr LIKE afko-maufnr,          " Number of superior order
           lead_aufnr LIKE afko-lead_aufnr,     " Leading order in current processing
         END OF ty_afko.
    data: gt_afko         TYPE STANDARD TABLE OF ty_afko INITIAL SIZE 0,
          wa_afko         TYPE ty_afko,
    select  rsnum aprio maufnr lead_aufnr
    from afko into table gt_afko.
    IF gv_error = 'X'.
      EXIT.
    ELSE.
    <b>DATA: Lv_string type ty_afko.</b>
      loop at gt_afko into wa_afko.
        clear lv_string.
    <b>  move wa_afko to lv_string.</b>
        perform f_transfer_dataset using gc_f_afko lv_string changing gv_error.
      endloop.
    endif.
    FORM f_transfer_dataset USING         p_file
                                          p_data
                            CHANGING      p_error TYPE c.
      Data: lv_file(25) type c.
      CONCATENATE gc_path p_file INTO lv_file.
      TRANSFER p_data TO lv_file.
    ENDFORM.                    "F_TRANSFER_DATASET

    The key is to create another empty structure with fields of type c.
    TYPES:       BEGIN OF ty_resb,
                bdter TYPE RESB-BDTER,     " This field is type d
                bdmng type resb-bdmng,  " This field is type p with 3 decimals - total 14
              END OF ty_resb,
              BEGIN OF ty_resbstr,     " This structure is the same as above but the field types will be char.
               bdter(10),            
               bdmng(14),                
              END OF ty_resbstr.
    DATA:     gt_resb         TYPE STANDARD TABLE OF ty_resb,
              wa_resb         TYPE ty_resb,
           structure type  ty_resbstr. " Empty fields with the same structure as the work area.
    SELECT   bdter bdmng  FROM resb INTO corresponding fields of TABLE gt_resb.
          open dataset pfile for output in text mode encoding default.
          loop at gt_resb into wa_resb.
              clear gv_string.
            move-corresponding wa_resb to gv_string.
             perform f_transfer_dataset using gc_f_resb gv_string.     
            endloop.
         FORM f_transfer_dataset USING p_file p_data.         
           TRANSFER p_data TO lv_file.     
         ENDFORM.

  • Error while passing internal table between methods at design time

    Hi,
    In a method (say method1 for eg) I have declared an internal table, IT_RANGE2 as:
    DATA: IT_RANGE2 TYPE STANDARD TABLE OF ZTTRANGE
    ZTTRANGE is a tabletype in SE11 and has a line type ZRANGE.
    In this method, I am calling another method (method2)
    WD_COMP_CONTROLLER->HOLD_DATA( CHANGING IT_RANGE = IT_RANGE2 ).
    IT_RANGE has been declared as;
    PARAMETER       TYPE                    REFTO       ASSOCIATED TYPE
    IT_RANGE           CHANGING                                  ZTTRANGE.
    I am getting an error: IT_RANGE2 is not type-compatible with formal parameter IT_RANGE.
    Please help.
    MIck

    change it_range2 like this
    DATA: IT_RANGE2 TYPE ZTTRANGE

  • Internal table in pdf output

    Hi All,
    My requirement is on click of a button i need to opwn a new window and display the table output through pdf.
    I am displaying a table through my bsp page using html code.
    On click of a button i need to open a window and show up the table data in pdf which should be printable.
    Am not using any iterator for my table. i just need transfer the internal table output to pdf and display.
    Please help.
    Thanks,
    Sandeep.

    Hi Alonso,
    Am not able to get the solution for my requirement, could you please give me the detailed solution.
    Can i go in this way.
    What parameters should i use for otf FM
    //...convert otf FM
    CONCATENATE cl_abap_char_utilities=>byte_order_mark_little
                    l_xstring
               INTO l_xstring IN BYTE MODE.
        CONCATENATE 'attachment; filename=NIM2_matter_Summary_'
                    sy-uzeit
                    '.pdf'
               INTO l_content.
        CALL METHOD cl_bsp_utility=>download
           EXPORTING
               object_s            = l_xstring
               content_type        = app_type
               content_disposition = l_content
               response            = _m_response
               navigation          = _m_navigation.
    Thanks in advance.

  • Dump In Dynamic Internal Table

    REPORT  ZDYNAMIC_INTERNAL_TABLE.
    TYPE-POOLS : abap.
    FIELD-SYMBOLS: <fs_table> TYPE STANDARD TABLE,
                   <fs_wa>,
                   <fs_field>.
    DATA: it_table TYPE REF TO data,
          it_line  TYPE REF TO data,
          xfc TYPE LVC_S_FCAT,
          ifc TYPE  lvc_t_fcat.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS: p_table(30) TYPE c DEFAULT 'T001'.
    SELECTION-SCREEN END OF BLOCK b1.
    START-OF-SELECTION.
      PERFORM get_structure.
      PERFORM create_dynamic_itab.
      PERFORM get_data.
      PERFORM write_out.
    *&      Form  get_structure
          text
    FORM get_structure.
      DATA : idetails TYPE abap_compdescr_tab,
             xdetails TYPE abap_compdescr.
      DATA : ref_table_des TYPE REF TO cl_abap_structdescr.
    Get the structure of the table.
      ref_table_des ?=
          cl_abap_typedescr=>describe_by_name( p_table ).
      idetails[] = ref_table_des->components[].
      LOOP AT idetails INTO xdetails.
        CLEAR xfc.
        xfc-fieldname = xdetails-name .
        xfc-datatype = xdetails-type_kind.
        xfc-inttype = xdetails-type_kind.
        xfc-intlen = xdetails-length.
        xfc-decimals = xdetails-decimals.
        APPEND xfc TO ifc.
       WA_XFC-FIELDNAME = P_NAME.
       WA_XFC-DATATYPE = 'C'.
       WA_XFC-INTTYPE = 'C'.
       WA_XFC-INTLEN = P_LEN.
       WA_XFC-DECIMALS = 0.
       APPEND WA_XFC TO IST_IFC.
    ENDLOOP.
    ENDFORM.                    "get_structure
    *&      Form  create_dynamic_itab
          text
    FORM create_dynamic_itab.
    Create dynamic internal table and assign to FS
      CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = ifc
        IMPORTING
          ep_table        = it_table.
      ASSIGN it_table->* TO <fs_table>.
    Create dynamic work area and assign to FS
      CREATE DATA it_line LIKE LINE OF <fs_table>.
      ASSIGN it_line->* TO <fs_wa>.
    ENDFORM.                    "create_dynamic_itab
    *&      Form  get_data
          text
    FORM get_data.
    Select Data from table.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE <fs_table>
                 FROM (p_table).
    ENDFORM.                    "get_data
    *&      Form  write_out
          text
    FORM write_out.
    Print data from table.
    *call function 'reuse_alv_grid_display'.
    *pass <fs_table> as internal table to the function **
    BREAK-POINT.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
          EXPORTING
            I_CALLBACK_PROGRAM       = SY-REPID
            IT_FIELDCAT              = ifc[]
           IT_SORT                  = IST_SORT_SUBTOTAL[]
           IT_EVENTS                = IST_EVENT[]
           IS_LAYOUT                = WA_LAYOUT
            I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'
            I_CALLBACK_USER_COMMAND  = 'USER_COMMAND'
            I_SAVE                   = 'X'
          TABLES
            T_OUTTAB                 = <fs_table>.
    ENDFORM.                    "write_out
    It was tried to transfer the internal table "IFC" to the formal parameter
    "IT_FIELDCAT". In doing so, a type conflict occurred between the formal.
    here how can i resolve it.
    thanks ,
    rajan.

    Try like following
    TYPE-POOLS : abap,SLIS.
    FIELD-SYMBOLS: <TABLE> TYPE STANDARD TABLE.
    DATA: it_table TYPE REF TO data,
          it_line  TYPE REF TO data,
          xfc      TYPE LVC_S_FCAT,
          ifc      TYPE LVC_T_FCAT.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS: p_table(30) TYPE c DEFAULT 'T001'.
    SELECTION-SCREEN END OF BLOCK b1.
    START-OF-SELECTION.
    PERFORM get_structure.
    PERFORM create_dynamic_itab.
    PERFORM get_data.
    PERFORM write_out.
    FORM get_structure.
    DATA : idetails TYPE abap_compdescr_tab,
                xdetails TYPE abap_compdescr.
    DATA : ref_table_des TYPE REF TO cl_abap_structdescr.
    * Get the structure of the table.
      ref_table_des ?= cl_abap_typedescr=>describe_by_name( p_table ).
      idetails[]     = ref_table_des->components[].
      LOOP AT idetails INTO xdetails.
       CLEAR xfc.
       xfc-fieldname = xdetails-name .
       xfc-datatype  = xdetails-type_kind.
       xfc-inttype   = xdetails-type_kind.
       xfc-intlen    = xdetails-length.
       xfc-decimals  = xdetails-decimals.
       APPEND xfc TO ifc.
      ENDLOOP.
    ENDFORM. "get_structure
    FORM create_dynamic_itab.
    * Create dynamic internal table and assign to FS
    CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = ifc
        IMPORTING
          ep_table = it_table.
    ASSIGN it_table->* TO <TABLE>.
    * Create dynamic work area and assign to FS
    * CREATE DATA it_line LIKE LINE OF .
    * ASSIGN it_line->* TO .
    ENDFORM. "create_dynamic_itab
    FORM get_data.
    * Select Data from table.
    SELECT * INTO CORRESPONDING FIELDS OF TABLE <TABLE> FROM (p_table).
    ENDFORM.
    "get_data
    FORM write_out.
    *REPLACE FM REUSE_ALV_GRID_DISPLAY WITH REUSE_ALV_GRID_DISPLAY_LVC
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
       EXPORTING
         I_CALLBACK_PROGRAM = SY-REPID
         IT_FIELDCAT_LVC        = ifc[]
         I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'
         I_CALLBACK_USER_COMMAND  = 'USER_COMMAND'
         I_SAVE = 'X'
      TABLES
         T_OUTTAB = <TABLE>.
    ENDFORM.

  • 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 a internal table into Java Bean

    Hi Experts,
    I created a JSPDyn page to display Sales orders form R/3 using bapi_sales_order_getlist.
    I used JCO to establish connectivity between JSP Dynpage and R/3. I executed the bapi successfully, i want to move the sales orders retrieved from the Bapi to a Java Bean. So that i can use the bean to populate the value as a table.
    with regards,
    James.
    Valuable answers will be rewarded.....

    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

Maybe you are looking for

  • How can I stop Game Center from opening every time I finish a game?

    I despise Game Center and don't want to use it.  Every time I finish a game of Real Solitaire, Game Center opens and bothers me about not logging in.  This is on an iPad 4/128gb.  I never had this problem until I got the new iPad.  Is there any help,

  • Screen black out on the ipod touch 8gb

    I was using my ipod and put it in my chest shirt pocket. It worked fine and then a couple of minutes later I tried to turn it on and the screen was black. nothing was happening. When I plugged it into my computer it made the typical noise of connecti

  • How to track number of calls to particular DN

    I need to compile information relating to the number of calls our operator handles in a given day, but am unsure how to do this. We are on CM V8.0.3.20000-2, using Fidelus console for the operator phone. Our old system ran reports that would give us

  • Set firefox to open pdf documents in adobe reader via script or GPO

    I am trying to change the settings of 400+ Windows 7 PCs with 2-10 users per PC. They all use Firefox and Adobe Reader XI. I would like to know how to use the Mozilla Administrative Template or how to create a GPO to change the default pdf viewer in

  • Connectivity Prob in Or8 Personal &...

    Hello, I have two separate problems which I have tried and got tired to solve and now in need of your help... No1: Problem with Oracle8 (Personal) Loaded Personal Oracle8 (8.o.3.) and Oracle Developer release 2.1. Now there is a problem in connecting