Skip to Content
0
May 08, 2019 at 01:03 PM

F110 not showing Doc. attachements

152 Views Last edit Sep 05, 2019 at 04:09 PM 3 rev

Dear community,

We have had the request to make document attachments visible in the payment proposal phase of F110. The same attachments should be visible as in FB03. Now, if we open the relevant items in FB03 to view the attachment, it also works fine in F110. But, if we haven't reviewed the posting in FB03, no attachments are shown in F110.

Once the posting is opened in FB03, the attachements are also shown in F110!

The coding is below. Thanks for your support!

MODULE ZZ_ALIST OUTPUT.

data: go_myobject type ref to cl_gos_manager,

      ls_object type borident.

data: wa_xregue_alv like xregue_alv.


    CLEAR g_alv_row_id_0112.

    CALL METHOD gc_grid_0112->get_current_cell

      IMPORTING

        e_row     = g_alv_line_0112

        es_row_id = g_alv_row_id_0112

        es_col_id = g_alv_col_id_0112

          .

    crs_field = g_alv_field_0112.

    IF g_alv_row_id_0112-rowtype EQ space.

      crs_line  = g_alv_row_id_0112-index.

    ELSE.

      crs_line = 0.

    ENDIF.

if not crs_line is initial.

  read table xregue_alv with key index = crs_line

                             into wa_xregue_alv.

  if sy-subrc is initial.

    concatenate wa_xregue_alv-bukrs

                wa_xregue_alv-belnr

                wa_xregue_alv-gjahr

                into ls_object-OBJKEY.

     ls_object-OBJTYPE = 'BKPF'.

     ls_object-logsys  = 'ITAIS3'.  


     create object go_myobject

       exporting is_object = ls_object

                 ip_no_commit = ' '

       exceptions others = 1.





data: lo_container type ref to cl_gui_custom_container.





  endif.

endif.