Issue with WebDynPro ALV

Hi,
I have an ALV with all the cell editors of the columns are input fields.
But, the point is, the rows are not editable and it is not allowing me to do copy paste.
Is there any way to do this.
Best Regards
Sid

Hi Siddharth,
You can Make the Row edittable by following the below steps.
1.)You Need to call the get model method.
        DATA : lr_table_settings TYPE REF TO if_salv_wd_table_settings,
           lo_value TYPE REF TO cl_salv_wd_config_table,
           lr_column TYPE REF TO cl_salv_wd_column,
           lr_all TYPE REF TO salv_wd_t_column_ref,
           lr_column_settings TYPE REF TO if_salv_wd_column_settings,
           lr_input_field TYPE REF TO cl_salv_wd_uie_input_field.
    DATA:  lt_columns TYPE salv_wd_t_column_ref,
         ls_column TYPE salv_wd_s_column_ref,
         lo_column TYPE REF TO cl_salv_wd_column,
         lo_col_head TYPE REF TO cl_salv_wd_column_header.
        lo_value = lo_interfacecontroller->get_model(
2.)Then call the method get_column()
Here you need to mention the field name to make it editable.
lr_column_settings ?= lo_value.
      CALL METHOD lr_column_settings->get_column
        EXPORTING
          id    = 'Field name'
        RECEIVING
          value = lr_column.
      CREATE OBJECT lr_input_field
        EXPORTING
          value_fieldname = 'Field name'.
      lr_column->set_cell_editor( lr_input_field ).
This Will worek .Please let me know if it works out.
Thanks and regards,
Amita Gupta
      lr_table_settings ?= lo_value.
      lr_table_settings->set_read_only( abap_false ).

Similar Messages

  • F4 help issue with Webdynpro ABAP application

    Hi,
    I am facing a strange issue with the F4 help in my webdynpro abap application.
    I have few fields for Purchase Order and Line item on the screen and they have corresponding F4 helps associated with them.
    When i select for F4 help, sometimes the screen simply blanks out and a white screen is displayed. When i refresh the screen and try the same scenario again, i can see the value list correctly.
    This issue occurs very randomly with no specific pattern. If anyone else has faced this issue earlier, kindly let me know how to get rid of this issue.
    Any pointers to resolve this issue will be helpful.
    Note: I am using SAP version 702 SP09.
    Thanks,
    Ramanath

    Hi,
    we cannot help you from offline, you need to check the standard procedures like
    SICF->is your application node is active.
    FQDN->check fully qualified name is configured
    You can also try to execute standard SAP application, if sap application also has problem running then you may have to get the help of BASiS people to look into that and raise a support ticket.
    If sap applications are running and your custom developed applications are not running then look into this application if there is any URL parameters need to supply etc.

  • Issue with displaying ALV in a popup window

    Hi Experts,
    I am trying to create an popup window with an ALV in it. TO display the ALV i have defined the component usage for SALV_WD_TABLE component.When the ALV is displayed for the first time it shows up correctly with required data. When i try to display ALV popup again only the popup window frame gets displayed the ALV is missing from the popup window.
    If i refresh the main component by clicking browser refresh buttion and then click for ALV popup dsplay i get the correct popup display the first time and then agin the same issue.
    Has anyone else come across this issue before. All your suggestions, responses are welcome.
    Thanks,
    Vivek

    HI,
    My popup window has only one embedded view, the TABLE view of used component SALV_WD_TABLE hence i cannot modify the TABLE view.
    I tired putting the following code for context node initialization in both the the methods WDDOONOPEN and WDDOINIT of the window which has the embedded view. But it dosen't make any difference i face the same issue even with these changes.
    types: begin of  ty_belnr,
             belnr type vbkpf-belnr,
           end of  ty_belnr.
    data: lt_belnr type standard table of ty_belnr,
          lo_node type ref to if_wd_context_node,
          lo_element type ref to if_wd_context_element.
    select belnr
      from vbkpf
      into table lt_belnr
    where ausbk = 'UC'
       and bukrs = 'UC'
       and gjahr = '2011'
       and usnam = sy-uname.
    if sy-subrc eq 0.
       lo_node = wd_context->get_child_node( 'DOC_NUMBERS').
       lo_node->bind_elements( new_items = lt_belnr[] ).
    endif.
    Edited by: Vivek Priyadarshi on Sep 14, 2010 5:24 PM

  • Print Issue with Sorted ALV Grid

    Hi Team,
    I am using ALV display for my Program. Iam using REUSE_ALV_GRID_DISPLAY. Also i have a Sorting condition for my ALV grid. So iam filling the Sort table & passing it to the Function module. The data is displayed correctly with Sorting as required in the Output.
    Now the issue is with: Print from this ALV. When we try to print the data, The requirement is that the Print should be same as how it is displayed in the ALV. "Grouped Columns"..... But now, the Print is that all the data is filled in all the columns. But user wants the Print also to appear  same as it is shown in a Sorted ALV display.(With some similar column data missing in succeding sort columns until new entry starts)
    Please suggest a solution to acheive the same.
    Thanks & regards,
    Chaitanya

    Look at Q#19 in the note 1009650. Merging functionality is available only for ALV grid display.
    Related Note: 447055
    Work around would be to display the excel in the SAP window (Excel in Place)  and print it from Excel. Read the following thread to make the necessary settings to make it work. Download Report exactly same as seems with Layout set !!
    Edited by: Jeevan Sagar on Jan 19, 2012 12:38 AM

  • Blackberry issues with WebDynpro application

    We are testing a webdynpro application via a blackberry. The webdynpro application works fine from IE.  With the blackberry, we see the following:
    - User logs into the application. After user's first access attempt, they no longer have to log in. We even turn off the Blackberry and restart. The same issue occurs.
    - User executes a line item transaction in the Blackberry. This item executes fine.  However, we get a communication error on the next lineitem.
    Is there Blackberry Browser and/or Blackberry server settings that need to be applied to allow the sessions and WebDynpro communication to work properly?

    Hi Stephen,
    I'm working on creating Blackberry application for online Purchase requisition Approval process, using PR workflow.
    Workflow configurations have been done in ECC.
    can u guide me how to get "Approve/ Reject" option on the BB device?

  • Issue with Hierarchial ALV using class

    Hi,
    I am trying to create a report where when the user executes the selection screen he would get an output as a alv tree with the nodes expanded. I have not used the class cl_gui_alv_tree before. The alv is created but I need all the nodes to be expanded. There is a method expand_nodes, but I am unable to get the result as the output still is not in expanded form. All sales orders with list of material being used to be shown on the alv in expanded form.
    Please suggest.
    Thanks
    Sachin

    refer below link
    http://****************/Tutorials/ALV/ALVTreeDemo/interactive.htm
    http://****************/Tutorials/ALV/ALVTreeDemo/demo.htm

  • Issue with editable alv using  cl_gui_alv_grid

    Hello all,
    its a table update program . user can save create new entry and delete the entires . the screen should be avaiable for multiple time inputs by the user . i achived it by  method handle double click and i am refreshing the scrren and making the alv for ready for input . but user wants the screen shoukld get refreshed automatically once user clicks on save button .
    how can I achive plz advise .
    I am working on ALV by cl_gui_alv_grid , I am using the followingmethods of the class
    1)  METHODS:  handle_toolbar FOR EVENT toolbar OF cl_gui_alv_grid
                  IMPORTING e_object e_interactive.
    2)     METHODS:     handle_user_command FOR EVENT
                     user_command OF cl_gui_alv_grid
                     IMPORTING e_ucomm,
                     check_changed_data.
    3)     METHODS:      handle_double_click FOR EVENT
                      double_click  OF  cl_gui_alv_grid
                      IMPORTING e_row e_column.
    4)    METHODS: handle_data_changed
                  FOR EVENT data_changed OF cl_gui_alv_grid
                  IMPORTING er_data_changed.
    Thanks in advance .

    Hi Soumyaprakash,
    SAve is an user command . I want to have the values which are changed by the user and again the output should be ready for any actions like change the data , create new and delete any entry .
    basically  the alv output screen should be reday for inputs any number of times untill user clicks on back button .
    Thanks
    Basavaraj

  • Issue with WebDynpro DC's...

    I am importing Development Configurations for a DC in a track on NWDI .
    Once i make the project out of the imported DC , the underlying application within the WebDynpro Project isnt getting displayed in my NWDS.
    Please help.

    Hi,
    Just make sure that you are creating the project under inactive tab.
    -Ashutosh

  • Dropdown - issue with passing values to context

    Hi,
    After facing issue in:
    Webdynpro + alv + dynamic dropdown
    Now I've encountered another problem. Dropdown is created in alv, however once user select value from the list it shows selected value in the cell, however value in context remains unchanged.
    Here is the way I implemented dropdown:
    1) I added new field to the structure which is shown in the alv FIELD1 of WDR_CONTEXT_ATTR_VALUE_LIST type.
    2) I initialize the column, where dropdown is supposed to be:
    - first column
    l_col_name = 'COL1'.
    lr_column = lr_model->if_salv_wd_column_settings~get_column( l_col_name ).
    DATA: lr_drdn_by_idx_col1 TYPE REF TO cl_salv_wd_uie_dropdown_by_idx.
    CREATE OBJECT lr_drdn_by_idx_col1 EXPORTING selected_key_fieldname = l_col_name.
    lr_drdn_by_idx_col1->set_valueset_fieldname( value = 'FIELD1' ).
    lr_drdn_by_idx_col1->set_read_only( value = abap_false ).
    lr_drdn_by_idx_col1->set_type( if_salv_wd_c_uie_drdn_by_index=>type_key_value ).
    lr_column->set_cell_editor( lr_drdn_by_idx_col1 ).
    3) I load the data,
    Piece of code loading data into structure with dropdown:
    DATA:  ls_valueset     TYPE wdr_context_attr_value,
                lt_itab         LIKE TABLE OF ls_line.
          ls_valueset-value = 'KG'.
          ls_valueset-text = 'KG'.
          APPEND ls_valueset TO lt_itab[].
          ls_valueset-value = 'ST'.
          ls_valueset-text = 'ST'.
          APPEND ls_valueset TO lt_itab[].
    zstructure is type of the row show in the alv
    Data:
         ls_po_result TYPE zstructure.
         lt_po_result TYPE table of zstructure.
         ls_po_result-FIELD1[] = lt_itab[].
         APPEND ls_po_result TO lt_po_result[].
    Everything works so far good. The thing is that once I changed value from e.g. ST to KG, value in Attribute COL1 is still ST.
    I would appreciate your help,
    kind regards,
    Adam

    Hi Nithya,
    it could another issue with the SP, I will inform you if it's the case.
    Passing values comes up with function when I load data into alv.
    structure_name - alv columns structure
    DATA: l_name1        TYPE t001w-name1,
              ls_po_result   TYPE structure_name
              lt_po_result   TYPE table of structure_name,
    load data from DB into l_itab
      LOOP l_itab  AT ASSIGNING item.
    this method return value_set to field1
        CALL METHOD fill_single_dd
          EXPORTING
            i_id     = item-id
          IMPORTING
            rt_dd_table = ls_po_result-field1[].
        APPEND ls_po_result TO lt_po_result[].
      ENDLOOP.
    binding to node ....

  • Webdynpro ALV checkbox displays 'X'

    Hello Webdynpro Champions,
    I have an issue with displaying ALV output in Webdynpro.
    I have a checkbox as my first column.
    This checkbox is bound to a context node.
    When I check this checkbox, in the ALV output I get 'X' displayed in the output. I think this is unwanted in my case and hence will like to curb it and not display that X next to my checkbox in the ALV output.
    Any ideas how to disable that X from gettting displayed in the ALV output?

    Hello,
    This one can you can solve by removing this (or smilar) method call from the place where you setup your ALV layout:
    lrc_checkbox->set_text_fieldname( 'CBXCOLNAME' ).
    As you probably have this call in your coding (copy&paste from different cell editor example? ), you will see column's text (autoo-mapped to content) next to your checkbox.
    Best regards,
    Marcin

  • Problem with the ALV after sending the mail

    Good Morning Experts
    I have a small issue with the ALV. I have a program, which has to sent email. In My program initially I am displaying basic list in the alv and user can navigate to secondary list also, by clicking on a contract number in the basic list.
    I gave a tool button in the tool bar to the user in the basic list, to send the mail. When the user clicks on the I have to send the mail both the lists, basic list and seconday list in the mail as separate attachments.
    Mail is going fine and later if the user chooses to see any contract in detail(Secondary List), that time ALV giving dump with message type X. And it is stopping some where in the ALV code
    call method cl_gui_cfw=>get_subscriber_by_id
           exporting shellid = p_handle-shellid
           exceptions others = 1.
      if sy-subrc = 0.
        </B>message X007 with p_handle-clsid.<B>
      endif.
    If anybody having an Idea, how to resolve it, please tell me.
    Thanks in Advance
    Praveen

    Please find the code for user_command form and sending the mail. Please look into this advice me if anything wrongly I coded.
    *&      Form  user_command
    FORM user_command USING r_ucomm LIKE sy-ucomm
                                  rs_selfield TYPE slis_selfield.
      IF r_ucomm EQ '&IC1' OR r_ucomm EQ 'SHOW'.
        REFRESH: it_all[],
                 it_fcat1[],
                 it_sort[].
        LOOP AT it_final INTO wa_final WHERE select EQ 'X' OR xblnr EQ rs_selfield-value.
          LOOP AT it_bsid INTO wa_bsid WHERE xblnr EQ wa_final-xblnr AND zuonr IS INITIAL.
            wa_all = wa_bsid.
            wa_all = wa_bsid.
            wa_all-booked = wa_bsid-dmbtr.
            IF wa_bsid-augdt IS NOT INITIAL AND wa_bsid-augbl IS NOT INITIAL.
              wa_all-paid = wa_bsid-dmbtr.
            ENDIF.
            wa_all-amtr = wa_all-booked - wa_all-paid.
            APPEND wa_all TO it_all.
            CLEAR: wa_all,
                   wa_bsid.
          ENDLOOP.
          LOOP AT it_bsad INTO wa_bsad WHERE xblnr EQ wa_final-xblnr AND zuonr IS INITIAL.
            wa_all = wa_bsad.
            wa_all-booked = wa_bsad-dmbtr.
            IF wa_bsad-augdt IS NOT INITIAL AND wa_bsad-augbl IS NOT INITIAL.
              wa_all-paid = wa_bsad-dmbtr.
            ENDIF.
            wa_all-amtr = wa_all-booked - wa_all-paid.
            APPEND wa_all TO it_all.
            CLEAR: wa_all,
                   wa_bsad.
          ENDLOOP.
        ENDLOOP.
        SORT it_all BY xblnr.
        PERFORM fill_fcat2.
        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
         EXPORTING
            i_callback_program                = sy-repid
            i_callback_top_of_page            = 'TOP_OF_PAGE'
            i_grid_title                      = 'Report to display selected contracts'
            is_layout                         = wa_layout1
            it_fieldcat                       = it_fcat1[]
       I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'
            IT_SORT                           = it_sort[]
            i_default                         = 'X'
            i_save                            = 'A'
            is_variant                        = wa_variant
          TABLES
            t_outtab                          = it_all[]
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ENDIF.
      CASE r_ucomm.
        WHEN 'BACK1' OR 'EXT1'.
          PERFORM exit IN PROGRAM  saplslvc_fullscreen.
        WHEN '&F12' or 'CANCEL'.
          PERFORM exit IN PROGRAM  saplslvc_fullscreen.
        WHEN 'MAIL'.
           PERFORM prepare_mail.
      ENDCASE.
    ENDFORM.                    "user_command
    *&      Form  prepare_mail
          text
    -->  p1        text
    <--  p2        text
    FORM prepare_mail .
      DATA:
           l_lay    TYPE pri_params-paart,
           l_line  TYPE pri_params-linct,
           l_cols   TYPE pri_params-linsz,
           l_val    TYPE c,
           i_spno   TYPE tsp01-rqident,
           i_lines  TYPE i,
           i_bin    TYPE i,
           i_pack_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
           i_recivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
           i_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
           i_header    LIKE solisti1  OCCURS 0 WITH HEADER LINE,
           i_docdata   LIKE sodocchgi1,
           i_excel     LIKE solisti1 OCCURS 0 WITH HEADER LINE.
      i_pos    type i.
      TYPES:
         t_pripar TYPE pri_params,
         t_arcpar TYPE arc_params.
      "Work areas
      DATA:
         lw_pripar TYPE t_pripar,
         lw_arcpar TYPE t_arcpar,
         w_no_of_bytes TYPE i.
      l_lay   = 'X_65_255'.
      l_line  = 65.
      l_cols  = 255.
      "Read, determine, change spool print parameters and archive parameters
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          in_archive_parameters  = lw_arcpar
          in_parameters          = lw_pripar
          layout                 = l_lay
          line_count             = l_line
          line_size              = l_cols
          no_dialog              = 'X'
        IMPORTING
          out_archive_parameters = lw_arcpar
          out_parameters         = lw_pripar
          valid                  = l_val
        EXCEPTIONS
          archive_info_not_found = 1
          invalid_print_params   = 2
          invalid_archive_params = 3
          OTHERS                 = 4.
    *l_val eq space
      IF  sy-subrc = 0.
        lw_pripar-prrel = space.
        lw_pripar-primm = space.
        NEW-PAGE PRINT ON
          NEW-SECTION
          PARAMETERS lw_pripar
          ARCHIVE PARAMETERS lw_arcpar
          NO DIALOG.
      ENDIF.
      DATA: ls_prnt TYPE slis_print_alv.
      ls_prnt-print = ''.
      ls_prnt-prnt_title = 'X'.
      ls_prnt-no_coverpage = 'X'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
          i_callback_program                = sy-repid
          i_callback_top_of_page            = 'TOP_OF_PAGE'
          i_grid_title                      = 'Report to display collection pattern on Clearing Date'
          is_layout                         = wa_layout
          it_fieldcat                       = it_fcat[]
          i_callback_user_command           = 'USER_COMMAND'
          i_callback_pf_status_set          = 'PF_STATUS_SET'
       IT_SORT                           = it_sort[]
          i_default                         = 'X'
          i_save                            = 'A'
          is_variant                        = wa_variant
        TABLES
          t_outtab                          = it_final[]
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    WRITE 'Test program to generate and download as PDF'.
      NEW-PAGE PRINT OFF.
      CALL FUNCTION 'ABAP4_COMMIT_WORK'.
      i_spno = sy-spono.
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
        EXPORTING
          src_spoolid   = i_spno
          no_dialog     = 'X'
        IMPORTING
          pdf_bytecount = w_no_of_bytes
         pdf_spoolid   = w_pdf_spoolid
         btc_jobname   = w_jobname
         btc_jobcount  = w_jobcount
        TABLES
          pdf           = it_pdf.
      LOOP AT it_pdf INTO wa_pdf.
        IF w_pos = 34170.
          PERFORM attach.
        ENDIF.
        w_stuff+w_pos(134) = wa_pdf.
        ADD 134 TO w_pos.
      ENDLOOP.
      IF NOT ( w_stuff IS INITIAL ).
        PERFORM attach.
      ENDIF.
      CLEAR wa_pdf.
      PERFORM fill_receivers TABLES i_recivers.
      PERFORM fill_contents TABLES i_contents.
      DESCRIBE TABLE i_contents LINES i_lines.
      READ TABLE i_contents INDEX i_lines.
      CLEAR i_pack_list-transf_bin.
      i_pack_list-head_start = 1.
      i_pack_list-head_num = 1.
      i_pack_list-body_start = 2.
      i_pack_list-body_num = i_lines.
      i_pack_list-doc_type = 'RAW'.
      APPEND i_pack_list.
      CLEAR i_pack_list.
    *u2022  Attachment (pdf-Attachment)
    CONCATENATE p_date6(2) p_date4(2) p_date+0(4) INTO w_date1 SEPARATED BY '.'.
      DESCRIBE TABLE it_att LINES i_lines.
      READ TABLE it_att INTO wa_att INDEX i_lines.
      i_pack_list-transf_bin = 'X'.
      i_pack_list-head_start = '1'.
      i_pack_list-head_num = '0'.
      i_pack_list-body_start = '1'.
      i_pack_list-body_num = i_lines.
      i_pack_list-doc_type = 'PDF'.
      i_pack_list-obj_name = 'Renewal List'.
      CONCATENATE 'Report to display outstanding premium' 'Executed on' w_date1 INTO i_pack_list-obj_descr SEPARATED BY space.
    i_pack_list-obj_descr = 'Exchange Rates uploaded to the database'.
      i_pack_list-obj_langu = 'E'.
      i_pack_list-doc_size = i_lines * 255.
      APPEND i_pack_list.
      CLEAR i_pack_list.
      REFRESH: it_pdf[].
      CLEAR wa_pdf.
      REFRESH: it_all[],
                it_fcat1[],
                it_sort[].
      LOOP AT it_final INTO wa_final.
        LOOP AT it_bsid INTO wa_bsid WHERE xblnr EQ wa_final-xblnr AND zuonr IS INITIAL.
          wa_all = wa_bsid.
          wa_all-booked = wa_bsid-dmbtr.
          IF wa_bsid-augdt IS NOT INITIAL AND wa_bsid-augbl IS NOT INITIAL.
            wa_all-paid = wa_bsid-dmbtr.
          ENDIF.
          wa_all-amtr = wa_all-booked - wa_all-paid.
          APPEND wa_all TO it_all.
          CLEAR: wa_all,
                 wa_bsid.
        ENDLOOP.
        LOOP AT it_bsad INTO wa_bsad WHERE xblnr EQ wa_final-xblnr AND zuonr IS INITIAL.
          wa_all = wa_bsad.
          wa_all-booked = wa_bsad-dmbtr.
          IF wa_bsad-augdt IS NOT INITIAL AND wa_bsad-augbl IS NOT INITIAL.
            wa_all-paid = wa_bsad-dmbtr.
          ENDIF.
          wa_all-amtr = wa_all-booked - wa_all-paid.
          APPEND wa_all TO it_all.
          CLEAR: wa_all,
                 wa_bsad.
        ENDLOOP.
      ENDLOOP.
       NEW-PAGE PRINT ON
          NEW-SECTION
          PARAMETERS lw_pripar
          ARCHIVE PARAMETERS lw_arcpar
          NO DIALOG.
    ENDIF.
      SORT it_all BY xblnr.
      PERFORM fill_fcat2.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
          i_callback_program                = sy-repid
          i_callback_top_of_page            = 'TOP_OF_PAGE'
          i_grid_title                      = 'Report to display selected contracts'
          is_layout                         = wa_layout1
          it_fieldcat                       = it_fcat1[]
       I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'
          it_sort                           = it_sort[]
          i_default                         = 'X'
          i_save                            = 'A'
          is_variant                        = wa_variant
        TABLES
          t_outtab                          = it_all[]
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      NEW-PAGE PRINT OFF.
      CALL FUNCTION 'ABAP4_COMMIT_WORK'.
      i_spno = sy-spono.
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
        EXPORTING
          src_spoolid   = i_spno
          no_dialog     = 'X'
        IMPORTING
          pdf_bytecount = w_no_of_bytes
         pdf_spoolid   = w_pdf_spoolid
         btc_jobname   = w_jobname
         btc_jobcount  = w_jobcount
        TABLES
          pdf           = it_pdf.
    LOOP AT it_pdf INTO wa_pdf.
        IF w_pos = 34170.
          PERFORM attach1.
        ENDIF.
        w_stuff+w_pos(134) = wa_pdf.
        ADD 134 TO w_pos.
      ENDLOOP.
      IF NOT ( w_stuff IS INITIAL ).
        PERFORM attach1.
      ENDIF.
      CLEAR wa_pdf.
    DESCRIBE TABLE it_att LINES i_lines.
      ADD 1 TO i_lines.
      DESCRIBE TABLE it_att1 LINES i_bin.
      READ TABLE it_att1 INTO wa_att INDEX i_bin.
    DESCRIBE TABLE it_att LINES i_lines.
    READ TABLE it_att INTO wa_att INDEX i_lines.
      i_pack_list-transf_bin = 'X'.
      i_pack_list-head_start = '1'.
      i_pack_list-head_num = '0'.
      i_pack_list-body_start = i_lines.
      i_pack_list-body_num = i_bin.
      i_pack_list-doc_type = 'PDF'.
      i_pack_list-obj_name = 'Renewal List-Details'.
      CONCATENATE 'Outstanding Premium-Details' w_date1 INTO i_pack_list-obj_descr SEPARATED BY space.
    i_pack_list-obj_descr = 'Exchange Rates uploaded to the database'.
      i_pack_list-obj_langu = 'E'.
      i_pack_list-doc_size = i_bin * 255.
      APPEND i_pack_list.
      CLEAR i_pack_list.
      APPEND LINES OF it_att1 to it_att.
      i_docdata-obj_name = 'Renewal List'.
      CONCATENATE 'Oustanding Premium' 'as on' w_date1 INTO i_docdata-obj_descr SEPARATED BY space.
      CONDENSE i_docdata-obj_descr.
      i_docdata-obj_langu = 'E'.
      i_docdata-obj_prio = '1'.
      i_docdata-no_change = 'X'.
      i_docdata-sensitivty = 'F'.
      i_docdata-doc_size = ( i_lines - 1 ) * 255 + STRLEN( wa_att ).
    ***Data for Header
      i_header-line = 'Header'. APPEND i_header.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = i_docdata
          commit_work                = 'X'
        TABLES
          packing_list               = i_pack_list[]
          object_header              = i_header
          contents_bin               = it_att[]
          contents_txt               = i_contents[]
          receivers                  = i_recivers[]
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      IF sy-subrc <> 0.
      ELSE.
        MESSAGE 'Document Sent' TYPE 'S'.
      ENDIF.
    ENDFORM.                    " prepare_mail
    Thanks
    Praveen

  • Issue with ALV grid print preview/spool

    Hello everyone,
    I am working on a report and I am having some issues with ALV grid. Currently in our DEV and QA environments the user can run the report, view the ALV grid, and print the grid without any issues.
    However this isn't the case in the Prod environment. The user is able to run the report and view the grid without any issues. But when they click print preview or click print, the spool is incorrect. It shows the proper values from the grid, but the first field is reduced in length. Rather than showing a numeric field of length 10 it shows 99999999# or 99999999...
    The programs are identical through every environment, including user parameters, formats, and spool settings. I have been told printing grids may have some issues, does anyone have any advice or dealt with this issue before?
    I appreciate the help.
    Thanks,
    C

    I was waiting to hear from the functional team on the matter and no one has mentioned any more issues.  I am assuming the problem is solved.  I just noticed the thread was still un-answered and wanted to give an update. 
    Thank you for you help Vijay.
    Regards
    C

  • Issue with new abap webdynpro INBOX EHP5

    Hello Experts,
    I'm currently working on the configuration of ESS/MSS services in EHP5. We are using different services like Appraisal OSA, Learning solution,etc. I already configured the Launchpad ESS, it's working fine but now I have an issue with the new Abap webdynpro INBOX. The employee and manager see their workitem notifications correctly in their respective inbox.(I'm calling application: IBO_WDA_INBOX that I integrated in my launchpad).
    My problem is that when clicking on a workitem in order that it opens me the appraisal document (in edit or display mode), I got an error saying: "There is no iView available for system "": object "SWF_WIOBN". For more information, contact your administrator."
    I did some search on SAP help without any results. I'm wondering how should I register workflow tasks? I saw there is a table called IBO_C_WF_TAS (I added entries e.g:
    IBO_WDA_INBOX TS99700031   EXECUTEAPPRAISALDOCUMENT).
    I tried also to register all my custom tasks in transaction SWFVISU.
    example:
    TASK: TS99700013
    Visualization Type: ABAP Webdynpro
    APPLICATION:    HAP_MAIN_DOCUMENT
    DYNPARAM   :    sap-wd-configId=HAP_AC_MAIN_DOC
    NAMESPACE :    sap
    SYSTEM_ALIAS: SAP_Webdynpro_XSS (I did create a system in sap portal under System Administration with as AS property /webdynpro/dispatcher )
    Could you let me know what could be wrong, what I missed? Shall I create an iView, if yes which one? which properties?
    I would really appreciate any help.
    Thanks!

    Hello Siddharth,
    Thanks for you reply. Still the same issue. Following are the config I did till now:
    In the PCD I created a new business object (SWF_WIOBN), an operation linked to the object (NAVIGATE).
    I did create an iView (powl) in the custom folder, I integrated the operation within iView. I created a page that contains the iView.
    In the properties of the iView I gave:
    Application Name: HAP_MAIN_DOCUMENT.
    Launch in New Window: "Display in separate Headerless Portal Window".
    System: SAP_ECC_HumanResources
    I added the required entries in tables:
    IBO_C_WF_TTAS
    IBO_C_WF_ACS
    IBO_V_WF_TAC
    IBO_V_WF_TTAC
    etc...
    I saw in the code of linked feeder class: CL_IBO_INBOX_FEEDER_WI  that it's checking something called "Launch_Editor".. Is it a property that we can set somewhere?
    Following are the parameters retrieved by system:
    BO_NAME       =  SWF_WIOBN
    BO_OP_NAME = NAVIGATE
    LAUNCHER_PARAMETERS ->  empty.??
    BO_RESOLVE_MODE = USER_SET_OF_ROLES
    LAUNCH_EDITOR  empty where must be set?
    At the end I still get the error:
    There is no iView available for system "": object "SWF_WIOBN". For more information, contact your administrator.
    Any advice,
    Thanks in advance

  • Issue with custom toolbar button in alv and leave screen

    Hi,
    in one subscreen (say screen 100)i have an alv with custom ADD  toolbar button..so in the user_command event handler ,i call a antoher screen(dialogue)..like if i click on ADD button ,it should display dialogue screen(say 200) and after entering input in dialogue screen i click on CONINUE to retrun to screen 100..problem is for the first time i click on ADD button its working fine ,succesffyuly returned to screen 100...but for the second time i click on add button , i have to click on twice the CONTINUE button to retrun to screen 100..when debuggin i found the user_command event routin is executin twice ..any solution..
    Thanks,
    srini

    Apparently handler is set for every new ALV instance. This you get by executing CREATE OBJECT alv... every time PBO is raised. Ensure you are executing this statement only once duirng program lifetime. Then the system will match event handler only with one ALV instance (executing it once).
    if r_alv is not bound.
       CREATE OBJECT r_alv ...
       SET HANDLER ...
    endif.
    Regards
    Marcin

  • Issue with display of decimal places

    Hi,
    In our custom built components we are facing a strange issue with the display decimals  where the data type of an element is "QUAN - Quantity field, points to a unit field with format UNIT".
    If the element has a value of 3000.000 KG the value is displayed as 3000. Where as for an element which has a value 3000.123 KG the same is displayed as it is with the decimals. We tried to resolve the issue by using Text editor or Input field as read only but in vain. The display property in the context are set to default.
    If we change the element data type reference to "Dec - Counter or amount field with Comma and Sign" then all the values are displayed with the decimal places even if decimals are zero.
    As a result we are facing alignment issues for the various quantity related elements displayed on the screen.  To change the underlying data type of the element is a not a solution for us as the data type quan is required for conversion from one unit to another unit.
    Can someone please advise how we could resolve this issue.  We are on NW 7.0 + EHP4 + NW 7.01 SP4, kernel patch level 55 for 7.01
    Regards
    Rohit Chowdhary

    Jameel, Thanks for the answer but this is a not a solution for us. We have around 40-50 webdynpro components and with mutliple views referring to this data element / domain combination. More so the context are bound to database tables / structures . 
    I hope to get a reply from Thomas on possible solution for this. I am not sure if I can open an support ticket for this issue.
    Rohit Chowdhary

Maybe you are looking for

  • Where can I find OS 10.4.11 to install to my old PowerBook G4?

    Hello. I have an old Powerbook G4 on which I had installed OS 10.4.11, but I can't seem to find the cd to reinstall. It is running a bit slow as it has been many years, and I wanted to format the hard drive and reinstall the same OS. I also have Mac

  • Video freezes after a few seconds

    This is actually a continuation of a post I made almost a year and a half ago, trying to get video chat going so my mom can visit with her grandkids. The thread has been archived, so I can't post there but in case it helps here's the address: http://

  • Does ipod nano 7th gen download apps

    does ipod nano 7th gen download apps like running apps, exercise apps, etc

  • How can I stop my screen from turning to landscape?

    I am using my iPod touch in a sleeve while I am walking on the treadmill.  Everytime I put it in the sleeve it turns to landscape.  Is there anyway to make this stop turning and lock it into portrait?

  • Where can I find and download OS X Lion?

    I would like to upgrade to OS X Lion to have iCloud available but I can't find it to download it. Anyone know where I can find it?