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

reg information about Object Type

Former Member
0 Likes
512

hi all,

i need the functionality of the object type CL_GOS_SRV_URL_CREATE

plz do the needful as soon as possible.

regards,

sathish

hi all,

i need the functionality of the object type CL_GOS_SRV_URL_CREATE

plz do the needful as soon as possible.

regards,

sathish

3 REPLIES 3
Read only

Former Member
0 Likes
474

Hi,

Here is the sample code for you

DATA :init,

container TYPE REF TO cl_gui_custom_container,

editor TYPE REF TO cl_gui_textedit,

picture TYPE REF TO cl_gui_picture,

pict_tab TYPE TABLE OF pict_line,

document_viewer TYPE REF TO i_oi_document_viewer.

 

 

PARAMETERS: URL(60) OBLIGATORY DEFAULT 'www.sap.ag'.

 

 

* In Screen 100, create container with name "PICTURE_CONTAINER"

 

CALL SCREEN 100.

 

* Dialog modules......................................

MODULE status_0100 OUTPUT.

SET PF-STATUS 'SCREEN100'. 

IF init is initial.

init = 'X'.

 

CREATE OBJECT:

container EXPORTING container_name = 'PICTURE_CONTAINER'.

 

CALL METHOD C_OI_CONTAINER_CONTROL_CREATOR=>GET_DOCUMENT_VIEWER

IMPORTING viewer = document_viewer.

 

CALL METHOD document_viewer->init_viewer

EXPORTING parent = container.

 

ENDIF.

 

 

CALL METHOD document_viewer->view_document_from_url

EXPORTING document_url = url

show_inplace = 'X'.

 

 

CALL METHOD document_viewer->destroy_viewer.

 

CALL METHOD container->free.

 

FREE: document_viewer, container.

 

ENDMODULE.

 

MODULE cancel INPUT.

LEAVE TO SCREEN 0.

ENDMODULE.

 

Regards

Sudheer

Read only

Former Member
0 Likes
474

Hi sudheer,

thanx for ur immediate response.

Actually, I have created one custom function module. I want to call this class CL_GOS_SRV_URL_CREATE in to my FM.

Now from my FM i want to pass one URL as my import parameter. In such a way that the URL has to be inserted into the database.

This is my requirement.

Does this class satisfies my requirement and can i use this class.

else is there any solution, plz let me know.

Finally whatever URL iam passing from my FM, has to be inserted into the database.

Read only

Former Member
0 Likes
474

Check this thread:

Regards,

Ravi