RE: [sap-dev] How to turn the Generic Object Services pushbutton into menu item
Posted by
Admin at
|
Share this post:
|
0 Comments
| | Posted by Ben Meijs Ctac (Product Manager SAP Developments) on Apr 27 at 10:43 AM | |
If I add this code to the LOAD-OF-PROGRAM event of my report or module pool, I get the GOS-services button you require. Hope this helps.
data: lwa_borident type borident,
lrf_object_service type ref to cl_gos_manager.
* --- Set object identification
lwa_borident-objkey = sy-repid.
lwa_borident-objtype = 'TRDIR'.
* lwa_borident-logsys = itp_sys.
* --- Create an instance of the class CL_GOS_MANAGER
create object lrf_object_service
exporting
is_object = lwa_borident
ip_no_commit = abap_false
exceptions
object_invalid = 1
callback_invalid = 2
others = 9
.
________________________________
Van: R. Neal Wilhite via sap-dev [sap-dev@Groups.ITtoolbox.com]
Verzonden: dinsdag 27 april 2010 14:32
Aan: Ben Meijs
Onderwerp: Re: [sap-dev] How to turn the Generic Object Services pushbutton into menu item
[http://userimages.toolbox.com/user/b_420467.jpg] Posted by R. Neal Wilhite (Senior Project Manager)
on Apr 27 at 8:30 AM [http://images.ittoolbox.com/vt/icons/vote.png] Mark as helpful<http://it.toolbox.com/api/ContentVote/3466196/1/1/>
Have you debugged to see what modules it is calling? I learned a lot about it doing that...
Neal
-----Original Message-----
From: gekko via sap-dev <sap-dev@Groups.ITtoolbox.com>
To: R. Neal Wilhite <wilhiten@aol.com>
Sent: Tue, Apr 27, 2010 6:55 am
Subject: [sap-dev] How to turn the Generic Object Services pushbutton into menu item
Posted by gekko
on Apr 27 at 6:57 AM
Dear All,
The pushbutton I am talking about is the one that invokes the pop-up window for objects to be linked to sales orders, purchase orders etc. If you press the left side of it, it pops up a window with icons, but by pushing on the right side of it, it comes up with a menu.
I have a 'homebrew' report. I want to add a menu item which in turn will bring up the menu part of the above mentioned pushbutton. Basically, no pushbutton at all.
Can you share your experience with me?
Thanx
__.____._ data: lwa_borident type borident,
lrf_object_service type ref to cl_gos_manager.
* --- Set object identification
lwa_borident-objkey = sy-repid.
lwa_borident-objtype = 'TRDIR'.
* lwa_borident-logsys = itp_sys.
* --- Create an instance of the class CL_GOS_MANAGER
create object lrf_object_service
exporting
is_object = lwa_borident
ip_no_commit = abap_false
exceptions
object_invalid = 1
callback_invalid = 2
others = 9
.
________________________________
Van: R. Neal Wilhite via sap-dev [sap-dev@Groups.ITtoolbox.com]
Verzonden: dinsdag 27 april 2010 14:32
Aan: Ben Meijs
Onderwerp: Re: [sap-dev] How to turn the Generic Object Services pushbutton into menu item
[http://userimages.toolbox.com/user/b_420467.jpg] Posted by R. Neal Wilhite (Senior Project Manager)
on Apr 27 at 8:30 AM [http://images.ittoolbox.com/vt/icons/vote.png] Mark as helpful<http://it.toolbox.com/api/ContentVote/3466196/1/1/>
Have you debugged to see what modules it is calling? I learned a lot about it doing that...
Neal
-----Original Message-----
From: gekko via sap-dev <sap-dev@Groups.ITtoolbox.com>
To: R. Neal Wilhite <wilhiten@aol.com>
Sent: Tue, Apr 27, 2010 6:55 am
Subject: [sap-dev] How to turn the Generic Object Services pushbutton into menu item
Posted by gekko
on Apr 27 at 6:57 AM
Dear All,
The pushbutton I am talking about is the one that invokes the pop-up window for objects to be linked to sales orders, purchase orders etc. If you press the left side of it, it pops up a window with icons, but by pushing on the right side of it, it comes up with a menu.
I have a 'homebrew' report. I want to add a menu item which in turn will bring up the menu part of the above mentioned pushbutton. Basically, no pushbutton at all.
Can you share your experience with me?
Thanx
Copyright © 2010 Toolbox.com and message author.
Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
SAP Development Helper
Posted helpful replies on 5 threads in a group to earn a Bronze Achievement
Related Content
In the Spotlight
White Papers
In the Spotlight
Toolbox.com for iPhone: Ask Questions & Get Answers Anywhere. Use the New iPhone App
View this thread online
Manage group e-mails
Create an FAQ on this topic
Tell us what you think
Unsubscribe from discussion
Manage group e-mails
Create an FAQ on this topic
Tell us what you think
Unsubscribe from discussion