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

GOS Toolbar

Former Member
0 Likes
810

Hi All,

I using the following method for view attachments in an ALV program .


          CREATE OBJECT go_myobject
            EXPORTING
              is_object    = ls_object
              ip_no_commit = 'X'
            EXCEPTIONS
              OTHERS       = 1.

          CALL METHOD go_myobject->start_service_direct
            EXPORTING
              ip_service   = 'VIEW_ATTA'
              is_object    = ls_object
              io_container = lo_container.

But I do not want to appear menu (in toolbar: create, change etc...) Is there a method you can view the attachmet list only.

Can you help me please, BR.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
719

Example:


DATA: st_object0 TYPE sibflporb.
DATA: i_belnr0 TYPE LFA1-LIFNR.
CLEAR: st_object0, i_belnr0.

st_object0-instid = '0000100000'.   "CUST CODE

st_object0-typeid = 'KNA1'.
st_object0-catid = 'BO'.

CALL FUNCTION 'GOS_ATTACHMENT_LIST_POPUP'
EXPORTING
is_object = st_object0
ip_mode = 'D'.      ----->display mode

Example:


DATA: st_object0 TYPE sibflporb.
DATA: i_belnr0 TYPE LFA1-LIFNR.
CLEAR: st_object0, i_belnr0.

st_object0-instid = '0000100000'.   "CUST CODE

st_object0-typeid = 'KNA1'.
st_object0-catid = 'BO'.

CALL FUNCTION 'GOS_ATTACHMENT_LIST_POPUP'
EXPORTING
is_object = st_object0
ip_mode = 'D'.      ----->display mode

4 REPLIES 4
Read only

GauthamV
Active Contributor
0 Likes
719

Check this Blog, Naimesh has explained very well about GOS objects.

[GOS Objects|http://help-abap.blogspot.com/2008/09/tutorials.html#GOS]

Read only

Former Member
0 Likes
719

Hi Gautham Vangaveti.

I have known the blog. I made this development with reference of the blog. First of all, I searched the blog but could not reach this conclusion.

Thanks.

Read only

Former Member
0 Likes
720

Example:


DATA: st_object0 TYPE sibflporb.
DATA: i_belnr0 TYPE LFA1-LIFNR.
CLEAR: st_object0, i_belnr0.

st_object0-instid = '0000100000'.   "CUST CODE

st_object0-typeid = 'KNA1'.
st_object0-catid = 'BO'.

CALL FUNCTION 'GOS_ATTACHMENT_LIST_POPUP'
EXPORTING
is_object = st_object0
ip_mode = 'D'.      ----->display mode

Read only

0 Likes
719

Hi Krupaji,

Thank you very much. Solved