Display data in smartforms using report

hi,
i want to display data from smartform using report.
i have a preview buttons in report when i select preview buttons displays in smarts
regards
amit

design the smartform as per ur need and get  the function module generated by smartform and pass it to ur report programas below..
case sy-ucomm.
when 'smartform'.
pass the f.m that is generated by system in smartforms
       CALL FUNCTION '/1BCDWB/SF00000265'
    EXPORTING
    ARCHIVE_INDEX              =
    ARCHIVE_INDEX_TAB          =
    ARCHIVE_PARAMETERS         =
    CONTROL_PARAMETERS         =
    MAIL_APPL_OBJ              =
    MAIL_RECIPIENT             =
    MAIL_SENDER                =
    OUTPUT_OPTIONS             =
    USER_SETTINGS              = 'X'
      DATE_L                     = s_fkdat-low
      DATE_H                     = s_fkdat-high
      PLANT_L                    = s_werks-low
      PLANT_H                    = s_werks-high
  IMPORTING
    DOCUMENT_OUTPUT_INFO       =
    JOB_OUTPUT_INFO            =
    JOB_OUTPUT_OPTIONS         =
    TABLES
      IFINAL                     = ifinal1[]
  EXCEPTIONS
    FORMATTING_ERROR           = 1
    INTERNAL_ERROR             = 2
    SEND_ERROR                 = 3
    USER_CANCELED              = 4
    OTHERS                     = 5
  IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
endcase.

Similar Messages

  • Display data in EP using BAPI-    BAPI_PO_GETITEMSREL

    hi all!!
    I need to display data in EP from R/3 and i'm using a BAPI mentioned in subject for it ,can anybody provide the step by step instructions.
    eagerly waitin
    sachin

    Hi Sachin,
    Go through the step by step tutorial for the WebDynpro application creation from following link.
    You can then create your application in Netweaver development studio Webdynpro.
    Link:
    http://help.sap.com/saphelp_nw04/helpdata/en/c3/76b45d9688e04abe1a1070410ddc1e/content.htm
    Regards,
    Tejas

  • Display data to matrix using LoadFromDataSource

    Hello all,
    I tried to display data to matrix.
    I used matrix object's LoadFromDatasouce.
    But it didn't display data at all.
    Pls help me!!
    creationPackage.ObjectType = "EVOSS_BUSTR"      
    creationPackage.UniqueID = "TEST
    creationPackage.FormType = "TEST"
    creationPackage.BorderStyle =  SAPbouiCOM.BoFormTypes.ft_Fixed
    Set oForm = SBO_Application.Forms.AddEx(creationPackage)
    sTableName = "@EVOSS_BUSTR"   
        oForm.Title = sTitle
        oForm.Height = 300
        oForm.Width = 350
        oForm.DataSources.DBDataSources.Add ("sTableName")
        Set oItem = oForm.Items.Add("1", it_BUTTON)
        oItem.Left = 5
        oItem.Width = 65
        oItem.Top = 240
        oItem.Height = 19
        Set oButton = oItem.Specific
        oButton.Type = bt_Caption
        Set oItem = oForm.Items.Add("2", it_BUTTON)
        oItem.Left = 75
        oItem.Width = 65
        oItem.Top = 240
        oItem.Height = 19
        Set oButton = oItem.Specific
        oButton.Type = bt_Caption
        'Adding a matrix
        Set oItem = oForm.Items.Add("TEST, it_MATRIX)
        oItem.Left = 5
        oItem.Width = 340
        oItem.Top = 10
        oItem.Height = 200
        oItem.AffectsFormMode = True
        Set oMatrix = oItem.Specific
        Set oColumns = oMatrix.Columns
        'Adding col 1
        Set oColumn = oColumns.Add("ColNb", it_EDIT)
        oColumn.TitleObject.Caption = "#"
        oColumn.Width = 20
        oColumn.Editable = False
        'oColumn.DataBind.SetBound True, "", "#"
        'Adding col 2
        Set oColumn = oColumns.Add("EVOSS_Code", it_EDIT)
        oColumn.TitleObject.Caption = "Code"
        oColumn.Width = 80
        oColumn.Editable = True
        oColumn.DataBind.SetBound True, sTableName, "Code"
        'Adding col 3
        Set oColumn = oColumns.Add("EVOSS_Name", it_EDIT)
        oColumn.TitleObject.Caption = "Name"
        oColumn.Width = 220
        oColumn.Editable = True
        oColumn.DataBind.SetBound True, sTableName, "Name"
        oMatrix.AddRow
        Set oColumn = oMatrix.Columns.Item("EVOSS_Code")
        Set eItemCode = oColumn.Cells.Item(1).Specific
    '   oForm.Mode = fm_FIND_MODE
    '   oForm.DataBrowser.BrowseBy = "EVOSS_Code"
        'oMatrix.SelectionMode = ms_None
         oForm.Visible = True
         add_line = True
         oMatrix.LoadFromDataSource

    Hello.
    For load a data to a matrix you need call a Query method of the dbdatasource to obtain data from the database.
    By.

  • Displaying data in xml using jsp

    how do we display data in database from jsp using xlst format in xml browser view

    how do we display data in database from jsp using xlst
    format in xml browser viewRefer this Post
    http://forum.java.sun.com/thread.jsp?forum=45&thread=482077&tstart=0&trange=15
    -Regards
    Manikantan

  • Displaying data on an ALV report

    Hi Abaper's
    I have data that is stored in an internal table and I want to display it in an ALV report, How can I achieve this?
    Thanx in advance
    Thandie

    Hi,
    Try to run the following code you will find the Ans.
    TABLES : ekpo.
    TYPE-POOLS : slis.
    TYPES : BEGIN OF t_ekpo,
            ebeln TYPE ekpo-ebeln,
            ebelp TYPE ekpo-ebelp,
            matnr TYPE ekpo-matnr,
            werks TYPE ekpo-werks,
            menge TYPE ekpo-menge,
            END OF t_ekpo.
    *VARIABLES
    DATA : check(1),
           rep_id TYPE sy-repid.
    *INTERNAL TABLE TYPE OF ZEKPO
    DATA : it_ekpo TYPE STANDARD TABLE OF t_ekpo WITH HEADER LINE.
    *FIELD CATALOG
    DATA : it_field TYPE slis_t_fieldcat_alv,
           wa_field TYPE slis_fieldcat_alv.
    *SORTING
    DATA : it_sort TYPE slis_t_sortinfo_alv,
           wa_sort TYPE slis_sortinfo_alv.
    INITIALIZATION.
      check = 'X'.
      rep_id = sy-repid.
    START-OF-SELECTION.
      SELECT ebeln
             ebelp
             matnr
             werks
             menge
             FROM ekpo
             INTO CORRESPONDING FIELDS OF TABLE it_ekpo.
    *          FIELD CATALOG
      wa_field-fieldname = 'EBELN'.
      wa_field-tabname = 'IT_TAB'.
      wa_field-outputlen = 10.
      wa_field-seltext_l = 'PO #'.
      APPEND wa_field TO it_field.
      CLEAR wa_field.
      wa_field-fieldname = 'EBELP'.
      wa_field-tabname = 'IT_TAB'.
      wa_field-outputlen = 10.
      wa_field-seltext_l = 'Line Item'.
      APPEND wa_field TO it_field.
      CLEAR wa_field.
      wa_field-fieldname = 'MATNR'.
      wa_field-tabname = 'IT_TAB'.
      wa_field-outputlen = 15.
      wa_field-seltext_l = 'Material'.
      APPEND wa_field TO it_field.
      CLEAR wa_field.
      wa_field-fieldname = 'WERKS'.
      wa_field-tabname = 'IT_TAB'.
      wa_field-outputlen = 6.
      wa_field-seltext_l = 'Plant'.
      APPEND wa_field TO it_field.
      CLEAR wa_field.
      wa_field-fieldname = 'MENGE'.
      wa_field-tabname = 'IT_TAB'.
      wa_field-outputlen = 10.
      wa_field-seltext_l = 'Qty.'.
    *  wa_field-outputlen = 17.
    *  wa_field-edit = 'X'.
      wa_field-do_sum = check.
      APPEND wa_field TO it_field.
      CLEAR wa_field.
    *          SORT W.R.T. PURCHASE ORDER NUMBER
      wa_sort-spos = 1.
      wa_sort-fieldname = 'EBELN'.
      wa_sort-tabname = 'IT_EKPO'.
      wa_sort-up = check.
      wa_sort-subtot = check.
      APPEND wa_sort TO it_sort.
      CLEAR wa_sort.
    *          DISPLAY RECORDS IN ALV GRID
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = rep_id
          it_fieldcat        = it_field
          it_sort            = it_sort
        TABLES
          t_outtab           = it_ekpo
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
      IF sy-subrc = 0.
      ENDIF.
    Kind Regards,
    Faisal

  • Display date prompt in crystal report output

    Hi There,
    In my report output the values entered in date prompt(range) is not displayed.
    I've prompt  that is created on document created on field. The properties of prompt are
    Posting date...... date.........static values
    value field : ERDAT.....
    value options:
    optional prompt: false
    allow custom values: true
    allow multiple values : false
    allow discrete values: false
    allow range values: true

    Hi Raj,
    I believe you're trying to display the start date and the end date of the date range parameter.
    Create a formula called 'start':
    Minimum(?Postingdate) //This formula extracts the start date from the date parameter
    Similarly, create another formula called 'end':
    Maximum(?Postingdate) //This extracts the end date
    Place these formulae on the desired report section.
    P.S: You may even do this in a single formula.
    Hope this helps!
    -Abhilash

  • Displaying data from database using Repeater

    Hi,
    I have created a database with 3 column in a table.Where column 1 is username and column 2 is Report name.
    Column 1 has 2 user :-
    user1-----> ABC
    user2-----> PQR. So if i select ABC i am getting 2 records from Report based on ABC and if i select PQR i get 1 record from Report based on PQR.Till here i have done
    Now I am using repeater control and binding the data from the database.but the problem is I want hyperlink on the data which is populating.Since i am using repeater,i am able to fetch 2 records for Report.I want hyperlink on it so i am using anchor tag with
    href,Now both the records are redirecting to the same page.I want each record should redirect to different page.Please help me if any one know about these.
    Thansk Regards,
    Simanchal

    Hi,
    Base on your description here:
    "I want hyperlink on it so i am using anchor tag with href,Now both the records are redirecting to the same page"
    I agree with Bob you have to consult this issue on this forum:
    http://forums.asp.net/24.aspx/1?Web+Forms+Data+Controls
    Regards,
    Barry Wang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Displaying date/time in the report of last updating data?

    Hi,
    I have produced a report over a multiprovider. The multiprovider is built up from tow cubes. The data is being updated to one cube each hour and to the another cube one time daily.
    The date/time that display in the report is for the last updating data of the cube that updating one time daily.
    I want that the date\time be updated each hour, in another words, to display the date\time of last updating data to the second cube.
    Any suggestions?

    Hi Mohamad,
    Please read through this discussion for a solution:
    ROLLUPTIME of a multiprovider
    Hope this helps...

  • Display date in jsp. using struts, JSTL

    want to display today's date in format October 18, 2006
    how to get today's date and how to display it in jsp?
    I am using struts framwork and JSTL tags in my JSP.
    Thanks.

    rizza_99 wrote:
    The page underlines {<fmt:formatDate value="${now}" type="both" dateStyle="long" />} says
    attributte value doesn't accept any expressionsWait, you said "the page underlines"?? So you're using an IDE? Are you sure that it a JSTL problem and not an IDE problem? Ignore the IDE and just execute the code. Does it work without any compilation errors or runtime exceptions? If so, then there's a problem in the IDE.

  • Displaying data from database using AJAX

    Hi,
    I have a table that holds data from a database, on each row I have a hyperlink.
    When the user presses the hyperlink the table drops down and displays some additional data,I am trying to display another table of data based on the ID of the row selected. As the second table holds a lot of data I was hoping to use AJAX. Does anybody know of any good tutorials or how to retrieve data from a database based on the ID of the row for .jspx pages.
    Regards
    Steve

    Hi Steve,
    Follow the steps below to achieve what you want:
    a. Specify actionListener for the commandlink component, when the user clicks it invokes the actionListener method in the backing bean(in which you can get the id of the selected row from the ActionEvent), perform the call to your database and fetch the data required for the second table
    b. Set PartialTriggers property of second table to the id of the command link
    Hope this helps.
    Sireesha

  • Problem while displaying data in spool using oops alv

    Hi,
    I have created a oops alv, in which iam displaying 2 ALV's  on 2 containers..
    Iam able to display the data which i need when i execute the program in foreground , But when i execute the program in background iam not able to see the 2nd ALV in the spool....
    The ALV displays one below the other.
    How i can i correct it..?
    Vishwa

    Hi,
    The container created in ALV will work only in foreground as this is the framework the background cannnot initiate the container object and assign the ALV to the container.
    Hence you cannot create the container object and assign the same to the ALV screen in background. Instead you need to use the factory method/ALV FM to display in background mode.
    For background ALV processing, don't use OOPS! U can use this fm : REUSE_ALV_GRID_DISPLAY.
    You can also refer below threads:
    Re: ALV: Foreground Vs Background
    Re: OO ALV in background job
    Regards
    Shiva

  • Unable to display data in BI publisher Report

    Hi,
    We are developing BI publisher reports in siebel 8.1.1.
    We are able to preview data perfectly with the rtf which we developed and by loading sample data file generated based on integration object.
    we uploaded the template file into the application associated with the integration object and generated xliff and tagged it to a view.
    When we navigated to that view and trying to run the report. the report is generating but unable to view data in that report .
    on checking siebel log we found the below error....
    ObjMgrLog     Error     1     000000024b97169c:0     2010-03-10 20:24:01     (bcfile.cpp (5808)) SBL-SVC-00185: Error occurred while deleting file 'Error occurred while deleting file 'C:\Siebel81\Client\Local\files\S_XMLP_REPOUTPT_17XF-3PM_.SAF'.'.
    did anyone of you faced this kind of issue....?
    Please help .
    Maneesh

    Thanks for you reply,
    Our scenario is this report is basically a dissconnected mode report... we are developing these reports for mobile clients.
    We dint face this kind of issue while developing other reports.
    So please let us know if you have any idea on why we are facing this issue.
    Regards,
    Maneesh

  • Displaying Date and Time using SimpleDateFormat

    I am having trouble displaying the year in a 4 digit format.
    My code is as follows:
    long measurement;     
    Calendar TimeStamp = Calendar.getInstance();
    SimpleDateFormat TimeStampFormat = new SimpleDateFormat("yyyy:dd:hh:mm:ss");
    TimeStamp.setTimeInMillis(measurement);
    System.out.print( "\n" + this.getName() + TimeStampFormat.format(TimeStamp.getTime()) + "\t" + Double.longBitsToDouble(measurement));
    The display is as follows:
    1229798184808538385     38972723:04:10:15:38     Sun Feb 04 22:15:38 EST 38972723
    1229798184808538385     38972723:04:10:15:38     Sun Feb 04 22:15:38 EST 38972723
    1229798184808538385     38972723:04:10:15:38     Sun Feb 04 22:15:38 EST 38972723
    1229798184808538385     38972723:04:10:15:38     Sun Feb 04 22:15:38 EST 38972723
    The first column is milliseconds which looks fine, the second column looks like the year is stll displayed in milliseconds, same with column 3.
    Any ideas on what the problem is?
    Thanks

    Your time has too many digits. When I print currentTimeMillis I get
    1234028242125
    You appear to have the time in nano-seconds.
    1229798184808538385
    You might get the right time if you divide by a million.

  • Problem in displaying dates for replacement path with text variable

    Hi all,
    I have to display dates in sequence as descriptions for 15 columns based on the the date entered by the user in Bex Report.I managed to display date as description using text variable with replacement path for single column.I could not able to increment date for other descriptions.Could you please help me to solve this issue.Its urgent.
    Ex: User enters 03/09/2007 then in the out put desciptions for the columns should be  03/09   04/09  05/09 ............ 17/09.
    Thanks in advance.
    Regards,
    Mandadi.

    Hi,
       goto the properties of your KF and click on the variable button side to that of the description field and click on new/Create option.Enter the technical name description for the text variable and select Replacement path as the Processing type and in the nxt screen select Fiscal year as the replacement variable and in nxt screen  specify as Key and provide offset values if necessary and click on finish.now select the variable by clickin on the variable button next to the description field.it comes after the description of the KF.Now run the query.
    Thanks,
    Sandeep

  • How to display data in canvas which is fetched from servlet to midlet.

    I am able to display data from database using servlet.
    I am using MySQL as database.
    But i want to display it more nicely using canvas. Right now i just print all the data's , it doent look professional.
    I want to know how to show those data's nicely. How to use canvas? where i can use canvas? Is there any other way to display data/records so that it looks more professional.
    Need help as soon as possible.
    Thanks in advance.

    hey listen i created midlet and servlet. I can see the record which is on my database but as i have just printed using servlet on the mobile screen. Now i want to display those records nore nicely that is . say for example
    i am showing personal profile of a user.
    I am just displaying like ---"Name:" Abc,
    Age: 27 etc
    now i wnat to bold "Name" , "Age" stuff like that.
    I want to use color etc but i dont know how to do that. How can i my records look good?
    I have stored all the record in resultset and have passed it to midlet not i want display it more nicely. How to do that?

Maybe you are looking for