Output table

Hi Gurus,
I have to display some list in the output from an internal table.
But here I have to display the list in a TABLE along with the field descriptions.
I can't use the FM REUSE_ALV_LIST_DISPLAY(version 4.3).
Could any post some logic for this with which I could able to draw the lines forming a table, and display the values in the output from the internal table.
Thanks
G sandeep Kumar.

Hi Natasha..
Seems like you need to display the output as a classic display and not as ALV display.
For this you need to use the WRITE statment.
PFB the sample code for the same.
FORM display_output.
  DATA: lt_objtxt  TYPE  TABLE OF ty_output,
        lw_objtxt  TYPE  ty_output.
  WRITE : /.
*----- Row header -----------------------------------------------------
  lw_objtxt-line+0(20)   = text-013.
  lw_objtxt-line+20(1)   = '¦'.
  lw_objtxt-line+21(35)  = text-016.
  lw_objtxt-line+36(1)   = '¦'.
  lw_objtxt-line+37(71)  = text-014.
  lw_objtxt-line+72(1)   = '¦'.
  APPEND lw_objtxt TO lt_objtxt.
  CLEAR lw_objtxt.
  LOOP AT t_display INTO w_display.
    lw_objtxt-line+0(20)   = w_display-pernr.
    lw_objtxt-line+20(1)   = '¦'.
    lw_objtxt-line+21(35)  = w_display-reinr.
    lw_objtxt-line+36(1)   = '¦'.
    lw_objtxt-line+37(71)  = w_display-message.
    lw_objtxt-line+72(1)   = '¦'.
    APPEND lw_objtxt TO lt_objtxt.
    CLEAR lw_objtxt.
  ENDLOOP.
  LOOP AT lt_objtxt INTO lw_objtxt.
    FORMAT COLOR COL_POSITIVE.
    WRITE:/ lw_objtxt .
  ENDLOOP.
ENDFORM.                    " DISPLAY_OUTPUT
Hope this helps.
Harsh

Similar Messages

  • How to hide columns in the output table in webdynpro based on input

    Hi Experts,
       I have 2 inputs and 1 input is optional.If both inputs are given proper table output is displayed,but if only 1 input is given a column is empty in the output table  so i want to hide this column dynamically at runtime based on my inputs.And i want to hide some empty rows also at runtime based on inputs.
    Can anyone help me out to solve this.
    Thanks in advance.
    Regards,
    Anita.

    Hi Anitha,
    What i understood from your question is,you want to control the table from your inputs.I have a one question for you what do you want to show defaultly i.e when you run the application what you want to show,either no table or table with some values.
    Any how i am giving solution in this way.
    If both inputs are given proper table output is displayed
    Write your below logic in the WDDOMODIFYVIEW )
    Here i am assuming that you already have a table element in the view.
    Get the values entered in the input fields and compare those 2 values ,if the condition is satisfied then bind the values which you want to show in the table to the context node.
    but if only 1 input is given a column is empty in the output table so i want to hide this column dynamically at runtime based on my inputs
    You are telling that you know the empty column.If so get the view element reference and use the REMOVE_COLUMN to remove the column.
    data:lr_table type ref to cl_wd_table,
           lr_column type ref to L_WD_TABLE_COLUMN.
    lr_table ?= view->get_element( 'TABLE1' ).
    CALL METHOD LR_TABLE->REMOVE_COLUMN
        EXPORTING
          ID          = 'TABLE1_color'
         INDEX      =
        RECEIVING
          THE_COLUMN = lr_column.
    i want to hide some empty rows also at runtime based on inputs.
    Removing the rows is very simple.if you know the key fields data of internal table from your input fields then do in this way.
    delete itab from wa where key1= "12" and key2="abd".
    Now bind the internal table to context node.
    LO_ND_hcm->BIND_TABLE(
          NEW_ITEMS            = it_final
          SET_INITIAL_ELEMENTS = ABAP_TRUE ).

  • How to refresh output table in alv tree?

    Hi !
    I searched,
    there is many solutions.
    FRONTEND_UPDATE,
    refresh_table_display,
    or expand_nodes..
    But I want just fresh output table.
    Look this, please.
    IF p_tree IS NOT INITIAL.
        CALL METHOD g_container2->set_focus
          EXPORTING
            control = p_tree.
        CALL METHOD p_tree->frontend_update.
      CALL METHOD p_tree->refresh_table_display
       EXCEPTIONS
          program_error = 1
          OTHERS        = 2.
    *=> this method is privated. So I can't use it.
      ENDIF.
       CHECK p_tree IS INITIAL.
    create tree object
      CREATE OBJECT p_tree
        EXPORTING
          parent              = g_container2
          node_selection_mode = cl_gui_column_tree=>node_sel_mode_single
          no_html_header      = 'X'
          item_selection      = 'X'.
      DATA lt_fieldcat TYPE lvc_t_fcat.
      DATA ls_head TYPE treev_hhdr.
      PERFORM get_tree_head USING ls_head.
      PERFORM get_tree_fieldcat TABLES lt_fieldcat.
      CALL METHOD p_tree->set_table_for_first_display
        EXPORTING
          is_hierarchy_header = ls_head
          i_background_id     = 'ALV_BACKGROUND'
        CHANGING
          it_outtab           = gt_template
          it_fieldcatalog     = lt_fieldcat.
      PERFORM add_node USING p_tree.
      PERFORM register_tree_events USING p_tree.
      SET HANDLER lcl_event_receiver=>on_link_click FOR p_tree.
      CALL METHOD g_container2->set_focus
        EXPORTING
          control = p_tree.
    I just want refresh only output table( gt_template) without create object.
    method FRONTEND_UPDATE can't solve this problem.
    Please,
    If you know the solution about this problem,
    give me an answer.
    Thank you so much,
    From Juhee Bhang.
    Edited by: Ju-hee Bhang on Jun 2, 2009 10:48 AM

    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
         EXPORTING
           i_callback_program                = sy-cprog
           i_callback_pf_status_set          = 'PF_STATUS'
           i_callback_user_command           = 'CALLBACK_USER_COMMAND' "----->is the form name in
           i_callback_top_of_page            = 'TOP_OF_PAGE'                             which we write the code
           is_layout                         = s_layout
           it_fieldcat                       = t_fieldcat
           it_sort                           = t_sort
        I_DEFAULT                         = 'X'
           i_save                            = 'A'
           is_variant                        = s_variant
          TABLES
            t_outtab                          = t_output[]
         EXCEPTIONS
           program_error                     = 1
           OTHERS                            = 2.
    FORM callback_user_command USING i_ucomm       LIKE sy-ucomm
                                     i_wa_selfield TYPE slis_selfield.
      i_wa_selfield-refresh = 'X'.
    Endform

  • Error in ALV : Field Does not exists in Output table .

    Hi All,
    In my ALV report, program get dumped and showing error when i tried to put a col named Distribution channel ion the alv.
    I have put the Distribution cannel field in the IT_FInal table , but still getting folwong errors :
    Error : Field Symbol is not been assigned.
    As Instructed i have passed            I_INTERFACE_CHECK              = 'X'.
    By this i am getting detail error that :
    Field Distribution channel does not exists in Output table & Heading for List is missing .
    But i have maintained the distribition channel in IT_Final table
    Please suggest wheather we have to define dis channel in any other place.
    Thanks in advance.
    Can any one help me regrarding this.
    Thanks in advance.

    Hello,
    You have to populate the same in the fieldcatalog as well, i think you have not maintained this field there.
    BR,
    Suhas
    PS: Also make it a point to follow-up on your previous post: [Error in ALV : Field Symbol not been assigned.|Error in ALV : Field Symbol not been assigned.]

  • How to select from multiple output tables in the SAP Data Source

    Hi,
    We're using the SAP Data Source to display SAP data in our portal from the Bapi: BAPI_INFORECORD_GETLIST. When defining the Bapi Meta Data we can select data from one of the two output tables (INFORECORD_GENERAL and INFORECORD_PURCHORG). But we want to select data from both tables (some columns we want to show are in INFORECORD_GENERAL and some are in INFORECORD_PURCHORG) .
    How can we do this ?
    With regards,
    Ramon van der Weiden

    You can query multiple TimesTen databases, but your original question was about joining tables from two databases, which is not supported.
    Using Cache Connect to Oracle to query an Oracle database is not distributed. It's still one single Oracle database you are querying. You cannot join a table in the TimesTen database with a table in the Oracle database, this is not allowed.
    If you are willing to share your business requiremens, we can take a look and see what solution might work for you. Would you like to discuss this offline?
    Susan

  • Set the records in ALV output table

    Dear Experts,
    How to set the number of records in the ALV output as 10..i.e .. When user executes WD application the output
    of the ALV output table should contains only 10 records in every page.
    Thanks in advance.

    Hi Venkat
    Use the method SET_VISIBLE_ROW_COUNT of interface IF_SALV_WD_TABLE_SETTINGS.
    the following code may help you.
    DATA: l_ref_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
      DATA : lr_table_settings TYPE REF TO if_salv_wd_table_settings.
      l_ref_cmp_usage =   wd_This->wd_CpUse_Appr( ).
      if l_ref_cmp_usage->has_active_component( ) is initial.
        l_ref_cmp_usage->create_component( ).
      endif.
      l_ref_INTERFACECONTROLLER =   wd_This->wd_CpIfc_Appr( ).
      data:
        l_VALUE type ref to Cl_Salv_Wd_Config_Table.
      l_VALUE = l_ref_INTERFACECONTROLLER->Get_Model(
    lr_table_settings = l_value.
    lr_table_settings->set_visible_row_count( 10).
    Regards
    Naresh
    Edited by: Naresh Kumar Malik on Jun 20, 2008 11:46 AM

  • Column width in output table cannot be changed

    Hi All,
    I have a visual composer model with an input form used to display variables to call a BW query. The query result is displayed in an output table.
    Multiple fields are displayed in the output table.
    On the layout tab of the visual composer model, I have changed the column width of the different output fields.
    After initial execution, the column widths of the different columns correspond to the settings in the layout tab. When I submit the query, example after entering the selection variables in the input screen and pressing submit, all columns widths change to 1 width. All columns now have the same width.
    We installed the latest VC version and hotpackages but this does not help.
    How can I change the column width of an output table?
    Best Regards,
    Filip

    Hi All,
    this column problem I know really good and there is a solution:
    Click on the Output-Port of your Query and then click on Configure. You will see on the right side the property "Dynamic Port". Uncheck that and you will see that the column width is like in the layout tab.
    This is only in Queries. In Function Modules you dont have to do this.
    Best Regards,
    Murat Yurtoglu

  • How to add additional field into output table for RFIDYYWT(Generic Withholding Tax Reporting)

    Hi Experts,
    How to add additional field into output table VENDORS/WH TAX TYPES AND CODES in RFIDYYWT(Generic Withholding Tax Reporting).
    I have no idea how to start with, please give some advice.
    Thanks!
    Ice

    Dear Ice,
    Use Append structure, see given link:
    https://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eb61446011d189700000e8322d00/content.htm
    Regards,
    Abbas.

  • Excel ( VB ) to ABAP RFC WEB SERVICE Call - No Errors - Blank Output Table

    Trying to get Excel talk to ABAP RFC Web Service.
    -  Excel - 2007 ( Since it is Excel 2007, I didn't had to add any Office Web Services Toolkit or any add on )
    -  ECC 6.0
    Excel (VB) not throwing any error, but is not giving any output ( expecting a table output ).
    ABAP RFC WebService with Uid Pwd Authentication.
    Activated binding for ABAP RFC via SOAMANAGER for clnt 600.
    Using WSDL of WS of Clnt 600 in Excel via VB
    Basic ABAP RFC -
    1 optional import param ( Input Param )
    1 table output  ( Tables Param )
    Basic VB Call Code  -
    Call projHoursWS.wsm_YProjHours("", arProjHours)
    To test if VB and WebService are talking to each other, when i temperorarily change the Authentication method ( uid/pwd ) of Webservice in Sicf it throws "NO MATCHING AUTH" .. So VB and ABAP WS are talking to each other.
    Debugged VB in Excel, not throwing any error , but is always returning the output table (arProjHours) Empty.
    Missing anything?

    Hi,
    Try turning on the ICF Recorder in TCode SICF (check SAP Help for usage details) to establish that the request is reaching SAP successfuly.
    You'll also be able to catch the response that's being generated by SAP this way. Then turn off the ICF recorder.
    Best Regards, Trevor

  • Join multiple output tables of BAPI into new table

    Hi,
    In my model (VC 7.0), I have a BAPI which outputs two different tables. Tables have many multiple records. Each table has several fields and a common field also. I want to combine these tables into one table form. I used the following methods and result are :
    1. I tried to connect output tables to one table form but no success. Because table form allows only one table input.
    2. I put a combine operator for output tables. No success. Although they're common field and multiple records but table form shows only one record? Where are the other record ?
    3. I put a union operator  for output tables. No success. Because union operator output only the common field. But I need the other fields from output tables in my table form.
    Will you please suggest what are the options available with me for joing output of both tables. I think combine operator should solve.
    Regards,
    Yiğit

    Hi,
    use this link to get your answer:
    Join two Table output to new table
    Otherwise you can try with this:
    1. Drag signal out from the first table. Select all the fields which you want to be pass in the final table.Make the first table as multiple selection one.
    2. Create one button in toolbar for the first table and give some proper name in action property.
    3. mentioned the same action name in the link between the signal out and the first table.
    4. follow the same steps for the second table also.
    5. then from compose choose two signal ins and drag them on the story board. Then give the same name as you have given the signal outs name.
    6. Mention all the fields as you have mentioned in the siganl outs.
    7. Add a combine operator with both the signal ins and combine a table with the outport of the combine operator.
    Save and deploy. I hope it will help you.
    Here, you have to select the rows which you want to visualize in the final output table.
    Regards,
    Nutan
    regards,
    Nutan

  • Refreshing the Output Table in ALV

    Hi All,
    Please let me know how to refresh the output table using refresh button in ALV.
    Thanks & Regards,
    Priya.
    Edited by: SathyaPriya Neelagaru on Jun 26, 2008 7:00 AM

    Hi,
    We can refresh the output table for ALV by below code :
    CLEAR  : g_wa_outtab.
    REFRESH: g_t_outtab.
    When we append something to output table of ALV we need to clear the workarea for that table.
    APPEND g_wa_outtab TO g_t_outtab.
    CLEAR g_wa_outtab.
    If you are using object oreinted concept we have
    CALL METHOD g_alv_grid_9001->refresh_table_display.
    In case you have to use your own PF Status - Always copy the standard GUI status
    (Program : SAPLSLVC_FULLSCREEN,
    Status : STANDARD_FULLSCREEN )
    For REFRESH - Include parameter for "USER_COMMAND" in the Function module interface.
    Inside the User command subroutine - set
    "RS_SELFIELD-REFRESH" = "X".
    It will automatically refresh the ALV and there is no requirement to call ALV again.
    Or else if u have a Refresh button on screen.
    we can have
    WHEN 'REFRESH'.
          CLEAR : g_wa_outtab.         
          REFRESH : g_t_outtab.
    Hope this helps you.
    Plz reward if useful.
    Thanks,
    Dhanashri
    Edited by: Dhanashri Pawar on Jun 26, 2008 7:08 AM
    Edited by: Dhanashri Pawar on Jun 26, 2008 7:14 AM
    Edited by: Dhanashri Pawar on Jun 26, 2008 7:15 AM

  • Groupby condition in output table

    Hello,
    I have to implement a groupby condition and remove the duplicate records from output table. I could do that in sql and my query looks like this:
    select col1,col2,col3, COUNT(col3) from TARGET_TABLE group by col1, col2, col3 having count(col3) >=2
    I get 99 records when i run this query in sql. I need that 99 records to go in as error table output in DI and remaining records to TARGET_TABLE.
    Where can i insert the sql and get two outputs (final output) and (error table).
    Appreciate your ideas.
    Arun

    Built-in transforms inside DS will let you achieve this. Connect the source table to a Query transform - say Query1
    Inside Query1:
    Map all the source columns col1,col2,col3 to target as it is. Add a column - say CNT_COL3 with datatype int.
    In the mapping tab, use Count (col3). Add col1,col2 and col3 to the Group By tab of Query1
    Connect a validation transform next to Query1.
    Inside Validation transform:
    Enable validation for CNT_COL3. Provide the condition as < 2 (Since this your the pass condition)
    In the Action on Failure tab, check 'Send to Fail'
    Connect the Pass path from Validation to Target table and Fail path to Error table. Values will be populated as required.
    Regards,
    Suneer

  • Additional column for output table

    Hi,
    I have created an ABAP function wherein I am reading table to output in a table. Code as follows
    SELECT * FROM <source_table>
    INTO CORRESPONDING FIELDS OF TABLE <t_output_table>
    WHERE <conditions>
    Import tab has two import parameters.
    Export tab has none.
    Changing has none.
    Table tab has
    PARAMETER NAME as t_output_table,
    TYPING as LIKE,
    ASSOCIATED TYPE as source table
    What I want to do next is to add another field to the output which will be substring of one of the field of source table. For example if FieldA of source table has value "abcdefgh", I want to return "defgh" as additional column of the output table.
    Appreciate any help !!
    IMS

    Hi,
    You would need to create a structure that includes your extra column. Use this structure as the reference in your tables tab.
    Now when you have selected the data in the table.
    loop at the table.
    populate the new column according to your logic.
    Modify the new column.
    endloop.
    Hope this solves the problem.
    Regards,
    Anju

  • Three different output tables

    Hi Experts,
    what has to be done if you have three different output tables which you would like
    display by the ALV.  How can you change between those three  tables .
    If possible I wold like to use the same alv reference.
    data ref_alv TYPE REF TO cl_gui_alv_grid.
    If this is not possible
    please tell me the other way ?
    Regards
    sas

    hi,
    maybe it helps to understand me better!
    <outtab2>
    <outtab3>
    might be also dislayed as like as  <outtab>
    PROCESS BEFORE OUTPUT.
      MODULE alvgrid_out.
    PROCESS AFTER INPUT.
      MODULE user_command_0600.
    MODULE alvgrid_out OUTPUT.
      PERFORM init.
    ENDMODULE.                 " ALVGRID_OUT  OUTPUT
    FORM init.
      IF NOT r_nsize IS INITIAL AND NOT r_normes IS INITIAL AND gv_flag IS INITIAL.
        PERFORM alv_size.
        gv_flag = 'X'.
      ENDIF.
      IF NOT r_slim IS INITIAL AND NOT r_slimes IS INITIAL AND gv_flag IS INITIAL.
        PERFORM alv_slimsize.
        gv_flag = 'X'.
      ENDIF.
      IF NOT r_stocky IS INITIAL AND NOT r_stomes IS INITIAL AND gv_flag IS INITIAL.
        PERFORM alv_stockysize.
        gv_flag = 'X'.
      ENDIF.
      IF NOT r_nsize IS INITIAL AND NOT r_normes IS INITIAL AND gv_paiflag EQ 'NO'.
        PERFORM alv_size.
      ENDIF.
      IF NOT r_slim IS INITIAL AND NOT r_slimes IS INITIAL AND    gv_paiflag EQ 'SL'.
        PERFORM alv_slimsize.
      ENDIF.
      IF NOT r_stocky IS INITIAL AND NOT r_stomes IS INITIAL AND   gv_paiflag EQ 'ST'.
        PERFORM alv_stockysize.
      ENDIF.
    ENDFORM.                    "init
    MODULE user_command_0600 INPUT.
      IF NOT r_nsize IS INITIAL AND NOT r_normes IS INITIAL AND sy-ucomm EQ 'NO'.
        gv_paiflag = 'NO'.
      ENDIF.
      IF NOT r_slim IS INITIAL AND NOT r_slimes IS INITIAL AND sy-ucomm EQ 'SL'.
        gv_paiflag = 'SL'.
      ENDIF.
      IF NOT r_stocky IS INITIAL AND NOT r_stomes IS INITIAL AND sy-ucomm EQ 'ST'.
        gv_paiflag = 'ST'.
      ENDIF.
      FREE: ref_alv, ref_container.
    ENDMODULE.                 " USER_COMMAND_0600  INPUT
    FORM alv_size .
      CHECK ref_alv IS INITIAL.
      CREATE OBJECT ref_container
        EXPORTING
          container_name = 'ALV'.
      gv_layout-no_toolbar = 'X'.
      CLEAR: gs_fcat, gs_zpd.
      READ TABLE lt_sgroup INTO ls_sgr INDEX 1.
      gs_fcat-fieldname = 'ORG_SIGN'.
      gs_fcat-coltext = ''.
      gs_fcat-outputlen = 2.
      APPEND gs_fcat TO gt_fcat.
      CLEAR gs_fcat.
      gs_fcat-fieldname = 'DESCRIPTION'.
      gs_fcat-coltext =   ls_sgr-sizegroup_name.
      gs_fcat-outputlen = 30.
      APPEND gs_fcat TO gt_fcat.
      CLEAR gs_fcat.
      SORT r_nsize BY low.
      DELETE ADJACENT DUPLICATES FROM r_nsize.
      LOOP AT r_nsize.
        CONDENSE r_nsize-low NO-GAPS.
        gs_fcat-fieldname =  r_nsize-low.
        gs_fcat-coltext   =  r_nsize-low.
        gs_fcat-outputlen = 5.
        APPEND gs_fcat TO gt_fcat.
      ENDLOOP.
      CLEAR gs_fcat.
      LOOP AT gt_fcat INTO gs_fcat WHERE  fieldname NE refer.
        gs_fcat-edit = 'X'.
        MODIFY gt_fcat FROM gs_fcat TRANSPORTING edit.
      ENDLOOP.
      CLEAR gs_fcat.
      LOOP AT gt_fcat INTO gs_fcat WHERE  fieldname EQ 'DESCRIPTION'.
        gs_fcat-edit = ' '.
        MODIFY gt_fcat FROM gs_fcat TRANSPORTING edit.
      ENDLOOP.
      CLEAR gs_fcat.
      LOOP AT gt_fcat INTO gs_fcat WHERE  fieldname EQ 'ORG_SIGN'.
        gs_fcat-edit = ' '.
        MODIFY gt_fcat FROM gs_fcat TRANSPORTING edit.
      ENDLOOP.
      FIELD-SYMBOLS: <lt_ss> TYPE table,
      <test> TYPE ANY.
      CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = gt_fcat
        IMPORTING
          ep_table        = new_table.
      ASSIGN new_table->* TO <outtab>.
      CREATE DATA new_line LIKE LINE OF <outtab>.
      ASSIGN new_line->* TO <l_line> .
      SORT r_normes BY low.
      DELETE ADJACENT DUPLICATES FROM r_normes.
      LOOP AT r_normes.
        ASSIGN COMPONENT 2 OF STRUCTURE <l_line> TO <test>.
        <test> = r_normes-low.
        APPEND <l_line> TO <outtab>.
      ENDLOOP.
      CLEAR gs_cpmpon.
      REFRESH: gt_compon, gv_comp
      PERFORM read_comp
        TABLES gv_comp
         USING
            'zpd'
            <l_line>.
      CREATE OBJECT ref_alv
        EXPORTING
          i_parent      = ref_container
          i_appl_events = 'X'
        EXCEPTIONS
          OTHERS        = 5.
      CALL METHOD ref_alv->register_edit_event
        EXPORTING
          i_event_id = cl_gui_alv_grid=>mc_evt_enter.
      CREATE OBJECT ref_alv_events.
      SET HANDLER ref_alv_events->handle_data_changed FOR ref_alv.
    * <outtab2>
    * <outtab3>
    * might be also dislayed
      CALL METHOD ref_alv->set_table_for_first_display
        EXPORTING
          is_layout            = gv_layout
          it_toolbar_excluding = it_toolbar_excluding  " TYPE UI_FUNCTIONS
        CHANGING
          it_fieldcatalog      = gt_fcat
          it_outtab            = <outtab>
        EXCEPTIONS
          OTHERS               = 4.
      CALL METHOD cl_gui_cfw=>flush.
    ENDFORM.                    " ALV_SIZE

  • How to export from VC a bapi output table to a PDF file

    Hello,
    How can I export a output table results from a BAPI (not BI Query) to a PDF file?
    Regards

    Hi
    There is very simple way of exporting the data to PDF. Follow the steps -
    1. Download PDF convertor on your machine.
    2. Create one button 'Convert to PDF' in your VC model.
    3. IN this button assign system command as 'Print'
    4. Save & Execute the model.
    After execution when you will click on this button, it will open normal print pop up window. Here you will find PDF convertor. Select this & Convert to PDF.
    Regards
    Sandeep

  • Use 'convert_otf', but the output table of lines is empty, why?

    Hello experts,
    I am trying to use the function 'convert_otf' to convert smartforms into pdf. But the output table of lines is empty´.
    *   Convert OTF into PDF
    CALL FUNCTION 'CONVERT_OTF'
      EXPORTING
        format                = 'PDF'
    *    max_linewidth         = 132
      IMPORTING
        bin_filesize          = lv_bytes
        bin_file              = bin_file
      TABLES
        otf                   = gt_otfdata
        lines                 = gt_pdfdata
      EXCEPTIONS
        err_max_linewidth     = 1
        err_format            = 2
        err_conv_not_possible = 3
        OTHERS                = 4.
    Before calling this function the parameter value are like following:
    LV_BYTES: 0
    BIN_FILE:
    GT_OTFDATA: Standard Table[15x2(144)
    GT_PDFDATA: Standard Table[0x2(268)]
    After this function is called, the parameter value are like this:
    LV_BYTES: 1774
    BIN_FILE:  255044462D312E330D0A2...
    GT_OTFDATA: Standard Table[15x2(144)
    GT_PDFDATA: Standard Table[0x2(268)]
    It looks that there is output for table lines. For download this pdf I have to get a table of pdf data.
    What could be the reason for this?
    Thank you.
    Rujing

    See if the below code I did some time back is helpful :
    call the FM to return the Smartform function module
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = 'ZOL_WATER_PLANT_WEEKLY'
        IMPORTING
          fm_name            = lf_formname
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
    pass data to the smartform
      IF sy-subrc = 0.
        ls_ctrlop-getotf = 'X'.
        ls_ctrlop-no_dialog = 'X'.
        ls_compop-tddest = 'LP01'.
       ls_compop-tdnoprev = 'X'.
        CALL FUNCTION lf_formname
          EXPORTING
            control_parameters = ls_ctrlop
            output_options     = ls_compop
            user_settings      = ' '
            gf_date_fr         = lf_date_fr
            gf_date_to         = lf_date_to
            gf_datum           = lf_datum
          IMPORTING
            job_output_info    = ls_return
          TABLES
            gt_finaldata       = gt_finaldata
            gt_event           = gt_fin_evnt
          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.
        ELSE.
          LOOP AT ls_return-otfdata INTO wa_otf.
            APPEND wa_otf TO int_otf.
          ENDLOOP.
          CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
            EXPORTING
              format_src      = 'OTF'
              format_dst      = 'PDF'
              devtype         = 'PDF1'
            CHANGING
              transfer_bin    = int_bin
              content_txt     = int_otf
              content_bin     = int_pdfx
              objhead         = int_header
              len             = wf_len
            EXCEPTIONS
              err_conv_failed = 1
              OTHERS          = 2.
    Mathews

Maybe you are looking for

  • K7T Turbo-R Limited Edition

    Ok fellas, here's my question. I'll try to include as much info as possible here. I have the K7T Turbo-R Limited Edition version 3.0A (at least that's what the users manual says). It's a  Red Motherboard  and has 2 IDE Controllers. I simply want to k

  • Problem in App purchase

    Hi, I have the problem about the App purchase as I have bought Longman Dictionary v.3.0.2 since 2010 (Order ID: M3NSMDGKVF). So, now I have bought new iPad mini but why I have to pay again (Order ID: M3NWXKWXX) ? Can I refund this ? Thank you.

  • OS X says  D-Link DSM g-600 network drive needs a username and password.

    Can connect my macbook to my wireless network, surf the net and detect network printer and shared files on my XP Home Desktop. The LAN portion consistists of a network printer, Linksys router, XPHome desktop and 500 GB external storage device. The st

  • Installing Acrobat on Mac

    Hi I am new to mac, so this might be a dumb question, but I cannot figure it out. I just installed Acrobat, the latest from my CC subscription on my new mac. I wanted to print a PDF from Illustrator, but I got no PDF-printer... On windows I automatic

  • Preset Options Missing.......

    When I first installed Lightroom there was a great set of preset options already installed into the program when making adjustments to the photo individually. For example I could tint the photo or make it black and white with the click of a mouse. Th