GOS on custom program not saving links

Hi all, I've just implemented GOS to a Z program following the instructions of a SDN contribution document called "How to attach documents to any custom program using GOS". I simply want to add GOS to the selection screen of the program in order to locat and store documentation regarding this Z program.
I run the program and the GOS button is displayed, I add some link or document and then I display the list of attachments and everything seems to be working ok. So when I leave the program and run it again no list of attachments is available as this is greyed out. Anyone could help please.
Steps I performed:
I created the Business object saved and released to implemented with the following:
Key -> programName (TRDIR-NAME)
and redefined the GOSAddObjects method like this:
BEGIN_METHOD GOSADDOBJECTS CHANGING CONTAINER.
DATA:
      SERVICE(255),
      BUSIDENTIFS LIKE BORIDENT OCCURS 0,
      LS_BORIDENT Type BORIDENT.
    CLEAR LS_BORIDENT.
    LS_BORIDENT-LOGSYS = SPACE.
    LS_BORIDENT-OBJTYPE = 'ZGOS'.
    LS_BORIDENT-OBJKEY  = OBJECT-KEY.
    APPEND LS_BORIDENT TO BUSIDENTIFS.
  SWC_GET_ELEMENT CONTAINER 'Service' SERVICE.
  SWC_SET_TABLE CONTAINER 'BusIdentifs' BUSIDENTIFS.
END_METHOD.
Z program:
REPORT  Z_RUBS_TEST_GOS.
CONSTANTS: OBJTYPE TYPE BORIDENT-OBJTYPE VALUE 'ZGOS'.
DATA: MANAGER TYPE REF TO CL_GOS_MANAGER,
OBJ TYPE BORIDENT.
PARAMETERS: MATNR TYPE MARA-MATNR.
AT SELECTION-SCREEN OUTPUT.
CLEAR OBJ.
* SET OBJECT TYPE TO 'ZGOS'
OBJ-OBJTYPE = OBJTYPE.
OBJ-LOGSYS  = 'OP1CLNT200'.
* SET OBJECT KEY = REPORT NAME
SELECT SINGLE NAME FROM TRDIR INTO OBJ-OBJKEY
WHERE NAME = SY-REPID.
* CALL GOS MANAGER WITHOUT CONTAINER (WILL BE DISPLAYED IN THE TOOLBAR)
CREATE OBJECT MANAGER EXPORTING
IS_OBJECT = OBJ EXCEPTIONS
OTHERS = 1.

You must add COMMIT WORK (AND WAIT or not) somewhere in your application (add a button that the user), or use CREATE OBJECT manager EXPORTING ... IP_NO_COMMIT = space or 'R' ... so that the COMMIT WORK will be done automatically by the GOS manager. Note: IP_NO_COMMIT = 'R' means that the service will start in its own LUW (using synchronous RFC).
For more information, read the [SAP Library - GOS - Publishing unique object|http://help.sap.com/saphelp_nw2004s/helpdata/EN/7e/4dbeb62c8e11d4a39e00a0c943858e/frameset.htm] (well, it doesn't talk about 'R'...)

Similar Messages

  • Logical database sdf in custom program not triggering selection screen?

    I added logical Database SDF (screen 905) to a custom program - but the selection screen is not getting triggered.
    Do I have to associate these somewhere?
    Thanks,
    Ven

    HI,
    Declare this statement after the Report Statement in the program.
    TABLES : SKA1, SKB1.
    You will get the selection screen now.

  • Custom genres not saved

    Hi,
    I decided to replace the default "Classical" Genre by something more specific in my iTunes music collection but find that the changes are not saved in the database for existing titles. A number of new entries added since and assigned to the new custom genres are correct, and all custom genres added are also in the list; it is only with the older titles that the change of genres is not saved but always reset to "Classical" when I close the menu.
    Apart from that I would have expected that I can also search the database by genre, but this is not the case.
    I consider both of these issues, especially the first one, a bug. Is that the case or am I doing something wrong? I'm using iTunes 10.1 (54).

    First thing:
    Are you saying that if you modify a song's info and change the Genre it does not accept the change?

  • SRM 7.0 customer fields not saved in shopping cart

    Dear experts,
    I have created 2 fields using the fields extension in the customizing and set the metadata for them to be displayed. The fields are visible on screen. However when data enteres, this data is not being saved in the Shopping cart document.
    Any clues?
    Another question, which is a bit techno, is when i have extended the SC screen using the enhancement framework instead of using the standard extension options. i would have thought that by binding these fields to the standard header node with the custom fields as structure would have saved me the job of throwing data and fetching data from the table/bapi. This isn't working either. I reckon the problem will be related to issue #1 above.
    Regards
    Ali

    >
    Muhammad Ali Mahmood wrote:
    > Dear experts,
    >
    > I have created 2 fields using the fields extension in the customizing and set the metadata for them to be displayed. The fields are visible on screen. However when data enteres, this data is not being saved in the Shopping cart document.
    > Any clues?
    Hello Ali,
    did you extend both the structure INCL_EEW_PD_ITEM_CSF_SC and INCL_EEW_PD_ITEM_CSF? It should be useful to define a custom structure that contains your fields and append it to both the structure named above. Then re-check if the metadata structure has been enhanced properly (in your case, view /SAPSRM/V_MDF_IC).
    Hope this helps,
    Matteo
    EDIT: I was assuming you were intended to add new fields at item level. If your task is to add fields @ header level, simply substitute HEADER to ITEM in the structure's name.
    Edited by: Matteo Montalto on Dec 7, 2009 12:14 PM

  • Custom Instruments Not Saving

    I'm having an issue with GarageBand/Logic that just doesn't make sense to me.  I have several aiff files that I want to use as samples for a custom instrument.  I have followed the steps found here to the letter: http://www.macprovideo.com/hub/logic-pro/quick-and-easy-sampler-instruments-in-l ogic-pro-x, and just to make sure I wasn't doing something that can't be done I found this in the support docs: http://support.apple.com/kb/PH12947, which basically says the same thing as the macprovideo article... Everything seems right.  I can play the new custom instrument from the Musical Typing Keyboard, I can even play the instrument through my MIDI keyboard.  Perfect.
    However...
    When I save the instrument everything looks the same way as discribed (everything to correct folders, etc.) if I close the project and exit the program, when I go back to use the"User Patch" in a new project, the patch has "magically" reverted back to the original sounds and all my sample assignments are gone.
    Am I missing something...  Doesn't this article say that once you've saved a custom instrument you can use it in other projects? 

    been having the exact same problem for 6 months now since getting my brand new garbage mac computer.
    bought a mac for garageband.. they ruined garageband with the new updates.
    cant use it anymore
    Had to get logic
    on useless glitch filled logic, none of my instruments save.. ever. Ohh its wonderful. I save the instrument itself. Save the the project. It crashes, reopen, the custom instrument is there in user patches. but none of the sounds are on the keys.. Oooooh great.
    the "genius" at the "genius" bar were less than %0 helpful. They could hardly find where the folder the instruments were being saved to let alone address the actual problem.

  • How to attach a customer program during saving in tcode qm02

    hi,
    i have written a abap program which will send emails after saving data in qm02 . but i do not know how to attach this program so that it executes upon saving data in qm02 . can any one help me out .
    thanks in advance.
    Kallol.

    Hi Kallol,
    Check with this user exit QQMA0014  QM/PM/SM: Checks before saving a notification.
    Close the thread if this solves your query.
    Regards
    Abhii

  • Program not saving changes other than "Autosave"

    I recently began a new music project. I have worked on the project for several days and regularly saved the changes. Until yesterday, whenever I would open up the FCE software, the project would automatically open (displaying the timeline, viewer, and canvas windows, etc.) and the cursor would be at the last place I'd done work.
    I began a new interview project yesterday, and now it doesn't seem to "save" the changes that I make. I noticed that the last editing work that I had done on the music project hadn't been saved, in spite of the fact that I "manually" saved it (by doing either File>Save Project or File>Save all). I am able to recover recent versions through the "Autosave Vault."
    In the "Autosave Vault," I can locate a version of the work--which is saved every 1/2 hour, but I cannot locate the sequence (or "project file" or "timeline") showing any changes which occurred after the hour (or 1/2 hour) that the autosave kept. Under preferences, I've put the captured footage and other items related to the project on an external firewire-connected hard drive.
    Did I mess things up by not putting the project file in the "Documents" folder, or is there some other explanation?
    I seem to be able to go back an manipulate and edit those files from the "Autosave" folder, but it is a tedious process unless I've finished working near the hour (or 1/2 hour time) "Autosave" time.
    Any info/advice will be appreciated.
    Thanks in advance,
    Gary

    Repairing permissions might solve the problem. It might: it is just an attempt that should never have any bad effect, and indeed often removes obstacles that prevent the application from working correctly. So you can try that at any time, even in the middle of a project.
    The same applies to trashing preferences (not permissions); in this case the only side effect is that you must set your preferences again (scratch disk, easy setup, and any setting you changed in the User Preferences or System Settings).
    But, see my previous answer, the first thing I suggest you to try (no side effects, very easy and fast) is "Save As" to a different volume. If that works, than clearly the problem is the health of the volume where you usually save your project files.
    Piero

  • Safari 8.0 preferences such as homepage or customized view not saved or maintained.

    Cannot seem to maintain Safari 8.0 preferences such as homepage or customized view between sessions.

    Back up all data before proceeding.
    This procedure will unlock all your user files (not system files) and reset their ownership, permissions, and access controls to the default. If you've intentionally set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it, but you do need to follow the instructions below.
    Step 1
    If you have more than one user, and the one in question is not an administrator, then go to Step 2.
    Triple-click anywhere in the following line on this page to select it:
    sudo find ~ $TMPDIR.. -exec chflags -h nouchg,nouappnd,noschg,nosappnd {} + -exec chown -h $UID {} + -exec chmod +rw {} + -exec chmod -h -N {} + -type d -exec chmod -h +x {} + 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    Paste into the Terminal window by pressing command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    You'll be prompted for your login password, which won't be displayed when you type it. Type carefully and then press return. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command may take several minutes to run, depending on how many files you have. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1, if you prefer not to take it, or if it doesn't solve the problem.
    Start up in Recovery mode. When the OS X Utilities screen appears, select
              Utilities ▹ Terminal
    from the menu bar. A Terminal window will open. In that window, type this:
    resetp
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not going to reset a password.
    Select your startup volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
               ▹ Restart
    from the menu bar.

  • Default Programs not saving (DInc2)

    Evening folks.
    Let me start by saying that I love my phone. I really do, and its almost perfect, except for one problem. For whatever reason, default programs will no longer save as defaults, specifically home replacement apps. I've checked the box when the dialogue comes up to make the app a default, but the setting never sticks. I've gone to the settings menu and tried clearing defaults, and that didn't help. I even did a factory reset and that STILL did not resolve the issue.
    So, all you techies out there in the vast interwebs, help?

    > "seek support"...is this related?
    Hard to say but I don't think so, you need to call Apple and tell them that hardware test result though it probably means a component/motherboard replacement.
    I think that error is Temperature sensor related, has it been overheating ?
    Have you applied the SMC and Firmware updates yet ?

  • PS CC 2014: Custom Workspaces Not Saving Palette Positions

    I generally have two Custom Workspaces: one for when I am working on a single monitor, and one when working with dual monitors. Unfortunately, when I create the second Custom Workspace, it saves the palette position to both of the workspaces. If I try to reset the first one, it saves that position to both. It kind of defeats the purpose of having them
    Details:
    Mac OS X 10.9.3
    Photoshop CC 2014 (20140508.r.58 x64)
    Everything is up to date.

    UPDATE:
    Fixed a very similar issue by deleting manually the custom workspace from my "workspaces" preferences folder,  but leaving in "workspaces (modified). See if this works for you

  • Enhancement spot is not triggered in Custom Program.

    Dear Experts,
    After saving the sales order i would like to view the print preview.
    For this I found one implicit enhancement spot and i called the print Program for sales order. Then i am able to view the Sales order print preview in VA01 Transaction code. I wrote my logic in the Below mentioned Enhancement implementation.
    Main Program : SAPMV45A
    Include : MV45AF0B_BELEG_SICHERN
    Form : beleg_sichern
    At the endform I am calling the Print program of Sales order so that after saving the sales order i am able to view the print preview of the Sales order.
    The requirement is i have created the Custom program in that i am using the "CALL TRANSACTION 'VA01'". In the custom program i am not able to view the Sales order print preview. The Enhancement spot is not getting triggered.
    Could you please help me to solve this issue.
    Thanks & Regards,
    Ashok.

    Like I said, you must use the parameter RA_COMMIT from BDC_OPTIONS. Like this:
    DATA: bdc_options TYPE ctu_params.
    bdc_options-ra_commit = ' X' .
    bdc_options-dismode = ' N'.
    CALL TRANSACTION 'VA01' OPTIONS FROM bdc_options.
    Everytime you use a CALL TRANSACTION, the called transaction will stop when a COMMIT WORK is found, and you have to pass the parameter RA_COMMIT with 'X' to make the transaction execute any code after COMMIT WORK. This only happens when you call a transaction via CALL TRANSACTION, it will not happen if the user access a transaction directly.
    For further explanation you can use the link from documentation that I posted on my first reply.
    Regards,
    Mauricio

  • Transfer GOS Attachment (Single/Multiple) from custom program to XK01

    Hi,
    GOS - Generic Object Service is a way one can attach single / multiple attachment. I have a custom program where there is a GOS with some attachment (used CL_GOS_MANAGER class).
    Next I need to send / transfer this GOS attachment from my custom program to say a standard transaction , eg XK01.
    Whether we can achieve this functionality, ie. we are able to create/save attachment but is there a way to send attachment (not via email) such that the same attach itself to the GOS of the standard transaction. I don't see any method in the CL_GOS_MANAGER class by which we can achieve this!
    Any suggestion/solution will be highly appreciated!
    Thanks,
    Deb

    Hi,
    I am trying to send attachment linked to a custom BO to standard BO eg, LFA1 using 'GOS_SERV_TOOLS_TEST' (copy_linked_objects).
    Surprisingly, I am able to copy/send attachment list within same BO (LFA1) from one LIFNR to another LIFNR. But the same method does not work when I try to copy attachment between diff BO example from VENDOR BO to MATERIAL BO. Why is it so?
    Also it does not work between a custom BO & standard BO. Please suggest in case I am missing on anything!
    Thank,
    Deb

  • GOS(Generic Object Services) for Custom program ?

    Hi All,
    My requirement is to have GOS option to attach document for Custom program against each record.
    Do anybody have faced the same kind of requirement,please let me know how to do.
    Bharathi.J

    Hi Bharathi
    i to got the same requirement
    through manually im attaching the files,notes and URL's
    but how to attach through any class
    i use CL_GOS_DOCUMENT_SERVICE in that
    CREATE_ATTACHMENT method
    but it is not attaching the files to my GOS menu
    can u  help me
    Thanks
    Surendra

  • In an eMail message, when I attempt to save two photos by clicking the 'Save 2 Images' link, not the 'Save Image' link, the images are not saved. (I use I I apologize for the late notice, butOS7 on IPhone5). Is this feature broken?

    In an eMail message, when I attempt to save two photos by clicking the 'Save 2 Images' link, not the 'Save Image' link, the images are not saved. (I use I I apologize for the late notice, butOS7 on IPhone5). Is this feature broken?

    Please don't post the same question multiple times!

  • Object Custom Program Name of class RE and language EN does not exist

    Hi All,
             We are getting this bbelow error while running a custome program ,
    Object <Custom Program Name> of class RE and language EN does not exist
    Do any one has faced this similar issue earlier.
    Regards,
    Sen

    Hi,
    How did you resolve this problem ?
    Re: Object <Custom Program Name> of class RE and language EN does not exist.
    I am also encountering the same issue when I am executing the report.
    Regards,
    SSR.

Maybe you are looking for