Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV display

Former Member
0 Likes
1,357

Hello Sirs,

I have generated an ALV grid report which has a double click functionality as show below

part of double click code.

CLASS lcl_event_handler IMPLEMENTATION.

METHOD handle_double_click.

DATA: ls_pcct LIKE LINE OF GT_PCCT.

READ TABLE GT_PCCT INDEX e_row-index INTO ls_pcct.

MOVE ls_pcct-csrepid to archiv_id.

MOVE ls_pcct-docid to archiv_doc_id.

CALL FUNCTION 'ARCHIVOBJECT_DISPLAY'

EXPORTING

archiv_doc_id = archiv_doc_id

archiv_id = archiv_id

doc_type = 'FAX'.

ENDMETHOD.

ENDCLASS.

On double click on a row in the alv the archive data(scanned data) is opened in a separate screen(non SAP application) using built in function 'ARCHIVOBJECT_DISPLAY'. But i want this screen to be displayed in the same area where the ALV grid is displayed.

Can any 1 help me out..

Thankz

Yogi

Hi Yogi,

I'm not sure you can specify the container with your function. But, if yes, you could create to container managed with a split-container. In the split container you specify that the first container use 100% of space.

In this first container you display the ALV.

In the second you will display the fax, and when you specify to display the fax you invert the two size of container. The first container will have 0% of space and the second will have 100% of space.

So use will show the Fax when double-click, and when he leave the Fax screen you change again the space used by container.

Hope it's clear to understand

Regards

Frédéric

8 REPLIES 8
Read only

Former Member
0 Likes
1,107

HI Yogi,

I am not sure about this, but try passing the WINDOW_ID (In exporting parameters) also.

Thanks,

ravi

Read only

FredericGirod
Active Contributor
0 Likes
1,107

Hi Yogi,

I'm not sure you can specify the container with your function. But, if yes, you could create to container managed with a split-container. In the split container you specify that the first container use 100% of space.

In this first container you display the ALV.

In the second you will display the fax, and when you specify to display the fax you invert the two size of container. The first container will have 0% of space and the second will have 100% of space.

So use will show the Fax when double-click, and when he leave the Fax screen you change again the space used by container.

Hope it's clear to understand

Regards

Frédéric

Read only

rainer_hbenthal
Active Contributor
0 Likes
1,107

You cant customize this FM in such a way.

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
1,107

Hi,

Just create a splitter and try to make the event[window opening] in that splitted window.Then you can see both the windows at the same time.

Have a look at these parameters in the FM.

WINDOW_ID

POSITIONINALFFILE

Kindly reward points by clicking the star on the left of reply,if it helps.

Read only

0 Likes
1,107

Hello Miss Jayanthi,

Could you please tell me as an example what values can i pass to FM parameters

WINDOW_ID

POSITIONINALFFILE

thnkz

yogi

Read only

0 Likes
1,107

Hello yogi,

This is an example of what values are to be passed to window ID.

data: retcode type i.

data: winid like sapb-sapwinid.

data: wintitle like sapb-sapwintitl.

winid = arcid.

wintitle = docid.

call function 'ARCHIVOBJECT_DISPLAY'

exporting

archiv_doc_id = docid

archiv_id = arcid

doc_type = doctype

window_id = winid

window_title = wintitle

importing

returncode = retcode

exceptions

error_archiv = 1

error_communicationtable = 2

error_kernel = 3

others = 4.

Thanks,

Ravi

Read only

0 Likes
1,107

Hi Ravi,

I specified the way u gave me in the example but the result is the same with or with out specifying the parameters u suggested. The scanned document opens in a different application(Microsoft image viewer default), but i want to load this particular image in the same dynpro where i control the input data from the user.

Thnkz again

Yogi

Read only

Former Member
0 Likes
1,107

Hi Yogi Srini,

Did u solve this issue. I have a similar requirement where i need to display the archive data(scanned data) in a subscreen. Could anyone pls help. I am using the function module

DATA: lp_docclass    TYPE toaom-doc_type,

          gs_connection TYPE toa01.

   DATA: lv_window_id  LIKE  sapb-sapwinid.

   lv_window_id = 'G_CONTAINER5'.

   MOVE s_pernr TO objid.           " Anwendungsschlüssel für alle

   MOVE s_reinr TO objid+08(10).    " Dokumente zur aktuellen

   SELECT SINGLE *

            FROM toa01

            INTO gs_connection WHERE sap_object = 'BUS2089' AND

                                     object_id  = objid.

   lp_docclass = gs_connection-reserve(20).

   CALL FUNCTION 'ARCHIVOBJECT_DISPLAY'

    EXPORTING

      archiv_doc_id                 = gs_connection-arc_doc_id

*     ARCHIV_DOC_INDEX   = ' '

      archiv_id                        = gs_connection-archiv_id

      objecttype                     = gs_connection-sap_object

      object_id                       = gs_connection-object_id

      ar_object                       = gs_connection-ar_object

*     LANGUAGE                 = ' '

*     SIGN                           = ' '

*     WINDOW_ID                =

*     WINDOW_TITLE           = ' '

      doc_type                       = lp_docclass

*     POSITIONINALFFILE    = ' '

*     NOGET                       = ' '

*     PATHOFFILE              = ' '

    EXCEPTIONS

      error_archiv                       = 1

      error_communicationtable  = 2

      error_kernel                      = 3

      OTHERS                          = 4

             .

   IF sy-subrc <> 0.

     MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno

         WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4

         DISPLAY LIKE 'E'.

   ENDIF.

Which are the other parameters that i should pass to display it on a tabstrip subscreen.?

Regards,

Jonas