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.

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.

  • 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

  • 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

  • Value tables and BSP-Pages

    Hello,
    how is supposed to work the value table or the search help that a field has behind it ?? When the end user enters a non-valid value in a field, the system should mark the frame of the field in red. For some fields in our BSP application it works, for some others it doesn´t. Probably we forgot to declare something in the structure in SE11 but can´t work it out.
    Has anyone an idea ??  Thanks a lot.

    Hi Jorge
    You are creating F-4 HELP and getting possible values in a pop-up.(say AAAA,BBBB).how can user select(HHHH) from that pop-up.
    Now let us assume you are not disabling the field to which you want to insert value via pop up.
    Now user is inserting value in that field without getting values from F-4 help.
    As you said it simply saves the record without checking whether user is inserting proper value or not.
    Now when you save that value in the record,just before that validate it.
    example:
    SELECT SINGLE <field-name> from <table> into <wa> where
    <field_name> eq <input_field_value>.
    if sy-subrc eq '0'.
    --success.
    else.
    --failed.
    endif.
    if it is success,then you should allow it to save record.
    else.
    Do the desired, Show a message....
    I assume,i understod the problem right way..
    cheers
    Vijay,

  • Problem in Smartforms Printing two internal tables

    Dear ABAPers,
           I am working in SAP Smartforms.
    I am passing two internal tables in Main Window one after another.After Printing the Data in the first internal Table.It prints the data in the Second internal table.My requirement is it should print from the Next Page.
    It is very Urgent Requirement.Please help me to solve this problem.
    Thanks & Regards,
    Ashok.

    Hi,
    Create a new page in your form in one page put one internal table and in the second page put the other.
    ->in each page in the page attributes select the nextpage = same page name
    -> After the loop of the first internal table in first page
    ->create a command node and select the checkbox goto newpage and select the second page in the dropbox.
    Thanks,
    NN.

  • How to create internal table for a structure in BSP

    hi ,
    I have created a Structure in BSP.I want to create an internal table for that Structure. But in my coding ie.
    <% data: begin of itab_1 .
                     include type zuvendstr.
                     data:end of itab_1.
                     data wa_str like line of itab_1.
                     loop at itab_1 into wa_str. %>
                    <tr>
                     <td><%=wa_str-name%> </td>
                           <%endloop.%>
    In this zuvendstr is Structure ,wa_str is workarea and itab_1 is an Internal table.But it is showinng an error that itab_1 is unknown.But we cannot define internal tables for an Structure in Page Attributes.So,please resolve how to create internal table for Structure in BSPS

    Hi,
    You can define itab_1 like this (assuming zuvendstr is a structure type):
    DATA: itab_1 TYPE TABLE OF zuvendstr.
    Regards,
    Tanguy

  • Problems navigate to other page when handover an internal table

    Hi all,
    I am navigating from one bsp page to another bsp page within an bsp application. In the first page an internal table is filled, handed over to the second page, and displayed in an html table. Everything works fine, while the internal table is small, once the internal table is growing, system does not navigate anymore, instead a message is coming up: internal error 500 in the IE.
    maybe there is a limitation on the html pagelenght, even if i did not limit ?
    muchos gracias for any hints or suggestions. thx Michael

    Hi Michael,
    Server side cokies is also a very good option for
    transferring bigger data, but using
    navigation->use_auto_submit_form( ) is having some problems.... see this
    Re: using navigation->use_auto_form_submit().
    Hope it helps.
    Regards,
    Narinder Hartala
    Message was edited by: Narinder Hartala

  • Internal table content not retained in statefull BSP application.

    Hi Forum,
    I have a statefull BSP application with two pages.I fill an internal table ITAB in the OnInputProcessing eventhandler of first page and then transfer this ITAB to second page , but when i navigate back from second page to first page , the internal table ITAB is cleared.I need the data in ITAB when i come back to first page.
    The internal tables that i fill in the OnCreate eventhandler of the first page are intact but this  ITAB that  i fill in OnInputProcessing is cleared.
    I tried using
    runtime->keep_context = 1.
    but it is not helping either...and i have checked the code carefully to ensure that ITAB is not cleared anywhere using CLEAR ITAB.
    ITAB is declared in PAGE ATTRIBUTES using a tabletype.
    What might be the problem?
    Thanks,
    Anubhav.

    Hi Heth,
    I carried out a small test application as follwos:
    1)Filled an internal table ITAB_ZSCMG in OnCreate event of first page.
    2)Filled an internal table ITAB_MATERIALS in OnInputProcessing for the OnClick of button event.
    When my application was stateless the internal table ITAB_ZSCMG was initial in the OnInputProcessing event .
    When i switched to STATEFULL mode , it contained data in the OnInputProcessing .
    3)Crearted one more page SECOND.HTM.
    4)in the OnClick event for button in OnInputProcessing eventhandler i navigated back to FIRST.HTM .
    Found that all the internal tables were initial , although my page was statefull.
    All these ITABs were declared using Page Attributes.
    So i guess , a statefull application just means that DATA is retained between different eventhandlers of the SAME PAGE and not if we navigate from that page....
    Hence in my case i have to transfer the ITAB back to first page again using SERVER SIDE COOKIES..
    Please correct me if my derivations are wrong!!!
    But the question still remains....
    How to retain data after navigation?
    Do we have a solution in BSP or we need to use SET/GET or EXPORT/IMPORT or COOKIES?
    Thanks,
    Anubhav.
    Edited by: Anubhav Jain on Jun 19, 2008 9:04 AM

  • Internal table one page to another?

    Hi, shall we transfer internal table data of one page into another page?
    I am passing the variables, but interal table data is not shown? Is there any procedure to send data from obe page to another page?
    Thanks & Regards,
    Dhanunjay

    Its not good idea to pass the table via Navigation object.
    You can do this with the navigation object only if the table is very small. Overwise your URL will overflow
    Alternative ideas is to use server side cookies.
    cl_bsp_server_side_cookie=>set_server_cookie
    cl_bsp_server_side_cookie=>get_server_cookie
    If your BSP application is stateful & if you are using Application class then store the data in Application class so that it will be available to entire BSP Application.
    <b>*Reward each useful answer</b>
    Raja T

  • Pass structure, internal table from workitem to BSP

    Hi All,
    I have a requirement where a BSP application is to be called from the workitem.
    How can i pass a structure or an internal table from the workitem to the BSP application?

    In the BSP application mark the check box AUTO  on the PAGE ATTRIBUTES tab and this makes the value available in the displayed URL of the BSP application.
    the documention mentation provided by SAP regarding this option is
    A page attribute marked as automatic is automatically supplied with a value from the calling URL or the navigation from another page. However there must exist a parameter of the same name with value in the URL or navigation interface.
    here your navigation interface  is WF_EXTSRV that you have already defined make the parameter as Exporting and when you get the URL read the URL and by using the OFFSET concept you can read the value of the element that you want in the BSP application

  • 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

  • Call an Function Module from BSP page to import an CSV file to internal tab

    Hi Experts,
    I am working on creating a web application in BSP which will call the function module  ALSM_EXCEL_TO_INTERNAL_TABLE.
    This function module imports an excel file into an internal table.
    Since this is the first time I am working on BSP I am not sure how to call this FM from event handler tab in BSP page.
    What I could gather from previous posts is that we need to create an attribute which should take the value of the export parameter of the function module.But I am kind of messed up on this.
    Could u guys please help ,I would be extremely grateful.Points will be assigned for sure
    Thanking in anticipation
    Ankit

    Could you please let me know how I can call an abap function module from a transformation? (from abap xslt program). I know how we can call methods of a class from the transformations, but no idea how we can call function modules. Any suggestions or a sample code snippet towards this will be very useful for me.
    Thanks,
    Shashi.

  • How to change co-ordinates of an internal table in page 1 & 2 using offline adobe forms?

    Hello All,
    How to change co-ordinates of an internal table(main window data) from page 2 onwards in offline adobe forms. For e.g., I need to print my internal table around 3-4 lines along with header&footer(only 1st page)in page 1. From 2nd page onwards Internal table should print header and use remaining page til end.
    Thanks in advance for your help.
    Thank you,
    Janakiram.

    Issue resolved...need to use content area option to achieve the same.
    Thanks,
    Janakiram.

  • How to use Different Main Windows in Multiple pages to print internal table

    Hi experts,
    I have a problem regarding how to have multiple different main windows in  smartforms..the problem is that i want to print an internal table in the third page of the smartform and that table can have dynamic values ..sometime it may have more than 400 values also which can not be printed in one or two pages ...
    so to accomplish the same what i did was..
    i tried creating a new main window in the third page but it is throwing an error saying two main windows not allowed and i also tried by copying the first page's main window but it is just repeating the same content what was there in second page..
      i also tried by creating a secondary window in the third page and in that  window i tried giving my internal table and tried by giving the next page to itself but  that also is not allowed and it throws an error saying a page without a main window cannot point to itself as a next page....
    i also tried using a secondary window and in that window i was trying to display the internal table but it is only showing third page content and fourth page itself  was not created....although in my next page field value of the third page , i have given  the third page itself as a next page ....but this also is not working ,.....
    please suggest how to have different main windows(not copy of first main window) in smartforms in order to display the dynamic contents of an internal table

    HI ,
    Just check with your smart styles with assigned  paragraph  allignment   .
    Try to create character style  with your required  font ,size and  Allignment  .
    Hope u this will solve your issue  .
    Let me know if any concerns......
    Regards,
    Lokesh

Maybe you are looking for

  • Using External Hard Drive as storage for iTunes Library - Problems

    I currently use an external hard drive to store my iTunes music, does anyone know why when I copy folders to iTunes library, duplicates appear - sometimes 2 or 3 copies of same song, same artist, album everything. A trud copy. Also, when you are sett

  • Photoshop CC 2014 - und Bridge CC

    Nach dem Update auf CC 2014 steht in der Bridge unter "Werkzeuge" die Photoshop-Stapelverarbeitung für ausgewählte Thumbnails nicht mehr zur Verfügung. Fehler bei mir oder allgemein? Danke für Hinweise, RT.

  • Error: An error occurred when attempting to change modules.

    I'm receiving this error after installing the trial v. of Lightroom 2.3. When I click on Library, Develop, etc. I get the same error message. Any suggestion? My Mac is running 10.5.5 with 2.4 GHz Intel Core 2 Duo and 2 GB 800 MHz.

  • Purchase order creation on an hourly basis

    Hi all, My reqmnt is to create purchase orders for shipments on an houly basis . I have one pgm which creates purchase orders based on shipment cost numbers or shipment cost type . So I need to know how to include date and time of cost document creat

  • Folder level permissions

    1) Can the following be executed at a folder level?      a) doc.AddAnnotation      b) doc.AddField      c) field.AddEvent