07-25-2007 4:16 AM
Please try the following step to figure out.
1) VA03
2) At header of report (on the left hand side of 'Display S/O SysB SDI xxxxxxxxx:Overview' ) has a button called 'Services for Object' (GOS)
3) Click on that then it will popup icon menu set. <--- Want this to be displayed when access VA03 by no need to click the button in 2)
My requirement is I want this popup to be displayed suddenly after I access VA03 (no need to click on the Services for Object button anymore).
<b>
Could you please provide me any solution, function, example, similar case, etc. (based on 4.6c)?</b>
Thank you all expert in advance.. I'll be here to provide you more information that need.
07-26-2007 6:11 AM
I found the solution yet. Let me drop a note to be a memorandum.
(1) Insert code into the last line of form <u>USEREXIT_READ_DOCUMENT</u> within report <u>MV45AFZZ</u>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
....
PERFORM UNITEXIT_READ_DOCUMENT.
<b>*{ INSERT
*[Display Attachment Service Automatically]
DATA: lo_myobject TYPE REF TO cl_gos_manager,
lo_container TYPE REF TO cl_gui_custom_container,
ls_object TYPE borident. "BOR Identifier
ls_object-objkey = vbak-vbeln.
ls_object-objtype = 'BUS2032'.
CREATE OBJECT lo_myobject.
CALL METHOD lo_myobject->start_service_direct
EXPORTING ip_service = 'VIEW_ATTA'
is_object = ls_object
io_container = lo_container
EXCEPTIONS OTHERS = 2.
*[Display Toolbox]
CALL METHOD lo_myobject->DISPLAY_TOOLBOX
EXPORTING is_object = ls_object
io_container = lo_container
EXCEPTIONS OTHERS = 2.
*} INSERT</b>
ENDFORM.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(2) Try open VA03 and insert attachment at Service for Object.
(3) Reopen VA03, attachment list displayed suddenly.
<i>Reference Source# SAP Library, search 'Starting Only One Service Directly'.</i>
<b>NOTE:</b> You can use another relevant object by SE24 -> CL_GOS_MANAGER