‎2011 Dec 15 5:40 AM
Hi,
I have to create a hyperlink for DMS document No. How can I do this.
I was told this can be done by calling transaction CV03N, but not sure to do this. Please help.
‎2011 Dec 15 8:08 AM
Hi,
Since you want to create a hyperlink I assume you want to create a web-application? You could try and check out the BSP application CVAW_VIEW_DOCFILE and see how the http-links to the documents are built.
An alternative might be to retrieve the document directly from the content server using http commands to get it.
Regards
Martin
‎2011 Dec 15 8:08 AM
Hi,
Since you want to create a hyperlink I assume you want to create a web-application? You could try and check out the BSP application CVAW_VIEW_DOCFILE and see how the http-links to the documents are built.
An alternative might be to retrieve the document directly from the content server using http commands to get it.
Regards
Martin
‎2011 Dec 15 12:40 PM
Hi,
I have been asked to use the below code:
set parameter id 'CV1' field '<value>'.
call transaction cv03n and skip first screen.
I have an ALV to display, how can I implement this, should I use it as below:
SET PARAMETER ID 'CV1' FIELD 'DOC_NO'.
CALL TRANSACTION 'CV03N' AND SKIP FIRST SCREEN.
PERFORM MAKE_COL3 USING 'DOC_NO' TEXT-028 '19' '20' 'T_DATA3'.
Please help
‎2011 Dec 15 1:24 PM
Hi,
Ok, so basically you want to show the document info record.
You can do it like you suggest, but I think you need to set the document type as well. That is you need to set parameter 'CV2'.
Best Regards,
Martin
‎2011 Dec 16 5:42 AM
Hi Martin,
Thanks for the help. I have also handled the CV2 parameter.
Will I have to use the SY-UCOMM to handle the user command or only the above code is sufficient?
‎2011 Dec 17 5:21 AM
I have used the following code to implement this:
CLASS LCL_EVENT_RECEIVER DEFINITION.
PUBLIC SECTION.
METHODS: HANDLE_HOTSPOT_CLICK
FOR EVENT HOTSPOT_CLICK OF CL_GUI_ALV_GRID IMPORTING E_COLUMN_ID.
ENDCLASS.
CLASS LCL_EVENT_RECEIVER IMPLEMENTATION.
METHOD HANDLE_HOTSPOT_CLICK.
PERFORM MOUSE_CLICK USING E_COLUMN_ID.
ENDMETHOD.
ENDCLASS.
FORM MOUSE_CLICK USING E_COLUMN_ID TYPE LVC_S_COL.
SELECT SINGLE DOKAR FROM DRAW INTO T_DOKAR WHERE DOKNR = E_COLUMN_ID.
SET PARAMETER ID : 'CV1' FIELD E_COLUMN_ID,
'CV2' FIELD T_DOKAR.
call transaction 'CV03N' AND skip first screen.
ENDFORM.
I get the field name instead of the value in "E_COLUMN_ID", and therefore the "CALL TRANSACTION" fails.
what am I doing wrong, please help...
‎2011 Dec 19 7:10 AM
Hi,
You should use the E_ROW_ID instead of the column id. Then you get the index of the selected row and with this you can get the DOKNR from the internal table you are using for your ALV list.
Regards,
Martin
‎2012 Jan 07 8:56 PM
‎2012 Jan 11 5:14 AM
Hi Martin,
I solved this problem. Thanks a lot for your support.