2005 Oct 24 12:32 PM
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
2005 Oct 24 12:38 PM
HI Yogi,
I am not sure about this, but try passing the WINDOW_ID (In exporting parameters) also.
Thanks,
ravi
2005 Oct 24 12:39 PM
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
2005 Oct 24 12:40 PM
2005 Oct 24 12:41 PM
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.
2005 Oct 25 9:48 AM
Hello Miss Jayanthi,
Could you please tell me as an example what values can i pass to FM parameters
WINDOW_ID
POSITIONINALFFILE
thnkz
yogi
2005 Oct 25 9:56 AM
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
2005 Oct 25 10:21 AM
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
2012 Sep 28 3:32 PM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |