You are on page 1of 2

1

Fernandes, Gustavo M.
Subject: GOS
Today, we will see how to get the GOS toolbar in the custom Report.

GOS toolbar works on the Business Object. To be able get GOS toolbar, we need to have a Business Object and Business Object Key.
For example, to get the GOS toolbar for the customer, we need Business object KNA1 and customer number as the key. So, if we want
to have a GOS toolbar in our custom transaction than we need to have a key before generating that. This is the reason; we dont have
the GOS toolbar option in the standard SAP Create transactions like: XD01, VA01, MM01 and so on.

This test program will provide us the GOS toolbar for the Customer in our custom program (Z program). This will provide us all the
functionality of the GOS toolbar which are available in the XD02, XD03 transaction.
Code Snippet to Add GOS toolbar to Custom program

*&--------------------------------------------------------------------
-*
*& Report ZTEST_NP_GOS
*&
*& To Generate GOS toolbar in the Custom Transaction
*&--------------------------------------------------------------------
-*
*
REPORT ztest_np_os!
*
"#T#$ lo_manaer T%PE RE& TO cl_os_manaer'
la_ob( T%PE bori)ent!
*
P#R#*ETERS$ p_+unnr T%PE +na,-+unnr!
*
*
ST#RT-O&-SE-ECT.ON!
*
* Set ob(ect /e0
la_ob(-ob(t0pe 1 2/N#,2!
la_ob(-ob(+e0 1 p_+unnr!
*
* GOS toolbar
CRE#TE O34ECT lo_manaer
E5PORT.NG
is_ob(ect 1 la_ob(
ip_no_commit 1 space
E5CEPT.ONS
OT6ERS 1 ,!
*
* To enerate output
7R.TE$ 2GOS test 8or Customer2!


2
Now, we will get the GOS toolbar which will look like this:

Last Updated (Tuesday, 10 January 2012 17:23)


Gustavo Martins Fernandes
Accenture (BRDC)
Alphaville - So Paulo, Brazil
gustavo.m.ernan!es"accenture.com

You might also like