We have one requirement wherein we need to attach document links (URLs) from external server as GoS Link attachment in SAP.
We are trying to develop this functionality for Profit Center (KE53).
in KE53, the GoS button is not present originally, we have added it using enhancements.
Refer the foll code for how we added the GoS button to profit center
ENHANCEMENT 1 ZGOS_PROFIT_CENTER.
DATA: LR_GOS_MANAGER TYPE REF TO CL_GOS_MANAGER,
LS_BORIDENT TYPE BORIDENT.
LS_BORIDENT-OBJTYPE = 'BUS0015'.
LS_BORIDENT-OBJKEY = '12345678902011'.
CREATE OBJECT LR_GOS_MANAGER
IS_OBJECT = LS_BORIDENT
IP_NO_COMMIT = ' '
OBJECT_INVALID = 1.
While doing this enhancement we have used OBJTYPE as BUS0015 which is the business object for profit center and OBJKEY as 12345678902011 which is simply a random string. But GoS button has appeared in KE53 transaction and it is working fine.
But when I try to update GoS using my custom program, using same value for OBJTYPE i.e., BUS0015, and for OBJKEY I have tried various combinations but none of them work.
Can anyone help me with this OBJKEY part.