Processing History for Services for Object

Hello Together,
I created documents attachment in CJ20N Transaction code using the button "services for the object ," for one WBS Element. Some one have deleted some documents from the list, I did not see who deleted this, it there a processing history. Please advise the steps to see the processing history for services for object.
Regards
Rahul Tyagi

I tried to replicate scenario with  tick on change doc. in proejct profile but system is not writing cahgne log in CN60. I understand this writing history for service for object is not wirting chagne log.
WIth Regards
Nitin P.

Similar Messages

  • Making Process Chains for Objects - 3.5 DataSources

    Hi. I'm trying to configure all my process chains to load every object in my model.
    I need to delete the PSA, only to mantain data for the last week for Master Data and Transactional Data.
    The problem is when I make the chain for my Hierarchy, which is in 3.5 version.
    I think I can't have my hierarchy in 7.0 version so, the question would be:
    Do you suggest to configure the deletion of the PSA in the chain for the hierarchy?
    I don't know how to do it because I couldn't find the PSA table for the hierarchy.
    Which would be the best way to control the loading of data in 3.5 DataSources using the process chain?
    Thanks a lot in advance.
    Fede

    Hi,
    I think I can't have my hierarchy in 7.0 version so, the question would be:
    Do you suggest to configure the deletion of the PSA in the chain for the hierarchy?
    Yes, you can't have hierarchy DS in BI 7.0 version, Hierarchy is loaded using 3.x DS. I think you can go ahead for PSA request deletion in hierarchy.
    I don't know how to do it because I couldn't find the PSA table for the hierarchy.
    Which would be the best way to control the loading of data in 3.5 DataSources using the process chain?
    Double click on the Data source and from tool bar select the PSA icon in the next popup you will see the name of PSA on top left corner. Or in the PSA request deletion process you can directly use the Infopackage technical name.
    Regards,
    Durgesh.

  • Services for Object in creation mode

    Hi colleagues,
    I am facing one problem and I would appreciate your help and ideas. I want to enable user to use a functionality of "Services for object" in creation mode (in my case transaction IW31). In change or display mode this functionality is enabled, so creating new BOR object and such things are not necessary.
    I understand that services for object are disabled by default in creation mode, because it is not meaningful to assign some documents to object which does not yet exist. But in theoretical way, it should be possible to implement some "tricky" solution. Probably some temporary object could be created at the start of IW31 and attachments could be assigned to this object. And in some user exit executed during processing of save statement (after all checks and such things), attachments could be re-assigned to a real (persistent) object. For unsaved orders it would be necessary to delete temporary object and also attached documents.
    Have someone implemented something similar? Or any helpful ideas?
    Thank you all in advance.
    Regards,
    Adrian

    Hi,
    We have implemented exactly the same in a Ztransaction. Not sure to what extent this will help you. Check below code
      CREATE OBJECT w_gosman
      EXPORTING
    *     io_container     = io_container
    *     is_bc_object     = is_bc_object
        is_object        =  wa_object            "BOR object
    *    it_service_selection =
    *     io_callback      = io_callback
    *     ip_start_direct  = space
        ip_no_instance   = l_inst             "Pass SPACE in your case
        ip_no_commit     = l_commit        "Pass SPACE in your case
        ip_mode          = c_e
      EXCEPTIONS
        object_invalid   = 1
        callback_invalid = 2
        OTHERS           = 3
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    "Here just we are creating a reference by publishing the object.
    "During the transaction commit call below method.
      wa_object-objkey = "Pass your object ID.
    wa_object-objtyp = "Pass your business object
        CALL METHOD w_gosman->set_id_of_published_object
        EXPORTING
    *      is_bc_object   = is_object
          is_object      = wa_object
        EXCEPTIONS
          no_publication = 1
          OTHERS         = 2
        COMMIT WORK.
    Thanks,
    Vinod.

  • Idoc info in 'Services for Objects' when a sales order is created

    Hi Guys
    Could one of you remind me how to turn on the Idoc info in the 'Services for Objects' > workflow option.
    I know how to turn on the services for objects using the user profile and entering parameter id:SD_SWU_ACTIVE , parameter value: X.
    I am not able to see the Idoc number/info that was used to create the sales order. I can see all the information in WE05 but the sales order does not show me any history of having used the Idoc.
    When i go to sales order and select the services for objects option followed by workflow the system should show the IDOC number/info used to create this order.
    Your help will be appreciated.
    Thanks
    Manish
    Edited by: Comes Naturally on Feb 23, 2009 3:46 PM

    Hi,
    1. Configure the IDoc with message type ORDERS and basic IDoc type as ORDERS05 (You have to follow common step-by-step approach)
    2. Configure Message Control to automatically generate IDoc whenever a Sales Order is created. (I mean output type)
    So whenever a Sales Order is created, output type will generate an IDoc.
    Hope this information is useful.
    Regards,
    AK

  • Services for Object - Store Business Documents (issue with XLSX files)

    Hi,
    We are using the Services for Object > Store Business Document to be able to drag and drop files into (for example) Sales Inquiry, Sales Order, Sales Quotations etc.
    Within OAC2 we have set up the global document types and these have been linked to the relevant Object Types and Content Repositories in OAC3.  We have also set up the Content Repository as Document Area 'ARCHLINK'.
    The ArhciveLink Basic Settings in OAG1 have the 'Always Copy Document Class from Document Type' set under Storage Settings.
    The issue we are having is with XLSX document types.  When we drag and drop the XLSX documen type using the Store Business Document the file is stored against the Sales Order but when you come to view the attachments MS Excel opens but an error message appears saying 'Excel cannot open the file '******' because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file'?
    We have reviewed SAP notes 1925897, 1739026 and 1145885 however non appear to give me a clear answer as to why this is happening?
    I have found that if we unselect the option 'Always Copy Document Class from Document Type' in OAG1 then we can open the XLSX files.
    As we have a significant amount of documents attached to various objects, what would be the implications of making this change agianst existing records and new records?
    Any advice on this issue would be greatly appreciated.
    Gary B

    Hi David,
    No joy I'm afraid!!
    I added entry 'xlslx' with the relevant MIME Type, Application and Description into table TOADD for the ArchiveLink settings and also this entry was already in tables SDOKMIME and SDOKFEXT for KPro.
    I then following the process via the Services for Object within VA12 (Change Inquiry) to then Create > Store Business document > Select the relevant Document Type > Drag and Drop the XLSX file into the empty box.
    I then saved the record and tried to view the attachement but I am still getting the same message  'Excel cannot open the file '******' because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file'?
    Our client is on componet SAP_BASIS release 701 Support Level 0014 and Support Package SAPKB70114 and I can see that note 1237688 is for SAPKB70112?
    Regards
    Gary

  • Content server for Document attachment through "services for object" Icon.

    Guys,
    I have typical problem in installation of Content server for storing external documents.
    We all know that we can attach the document in SAP using the icon “SERVICES FOR OBJECT”. By this we can attach the document to the specific object we want.
    -Since my client wants only document attachment method not to completely implement SAP DMS, I proposed this method of attaching documents through services for object method.
    -If documents are stored though services for object ,The attached document will directly get stored in sap database(correct me if I am wrong) while  in  DMS it ask you to select the storage location while u check in for any document
    -By storing the doc thru "services for object " For long run when we store the documents in sap database our system will drastically get slow down.
    -In this regard I have a plan to incorporate external storage server.
    -Now I should know that how I should customize content server configuration so that the attachment through services for object will store into this content server I need to know how to define Client, Content Category, Content Repository, Document Area, Physical Machine, IP Address, Port. (OACT & OAC0)
    I appreciate for immediate solution and <u><b>Points will be rewarded for sure.</b></u>
    Regards,
    Murali.S

    Hi Murali,
    Don't Worry, its possible,
    All attachments can be stored in SAP Content Server also, but through archiving process.
    Set up a database storage system.
    Preparation
    Make sure that the HTTP plugin is active.
    Transaction <b>SMICM,</b> "Display Services" function key (shift F1)). The list of services must contain a port other than 0 for HTTP.If not, you must adjust the relevant profile parameter.
    <u>Typical entry:</u>
    icm/server_port_0         PROT=HTTP, PORT=1080, TIMEOUT=900
    <b>Make sure that the /sap/bc/contentserver service is active.</b>
    If no user is defined, then use transaction SU01 to create a new user. Use the "System" user type.Assign
    the SAP_ALL and SAP_NEW profiles to the user. (Eg: HRUSER/PLMUSER/PPUSER etc)
    Transaction <b>SICF,</b> select: default_host - sap - bc -contentserver. Select the function to display/change the service. Make sure that a user is defined.
    Using the relevant data from the newly created user, maintain the anonymous logon data for the
    /default_host/sap/bc/ service and save & activate the changes in transaction <b>SICF</b>.  Double click on content server and give the user name which has been created (HRUSER/PLMUSER/PPUSER/MMUSER etc)
    Check the system PSE.
    Start transaction <b>STRUST</b>. Expand the system PSE. The system PSE must be "green" for each application
    server.
    Determine a suitable exchange directory.
    The exchange directory must be accessible from each application server. If all application servers are running on the same platform (for example, Windows), one network directory that is accessible on all application server (for example,
    server\share) is sufficient. You can generally use the global directory
    (profile parameter DIR_GLOBAL).You can use the RSPARAM report to determine the profile parameters.
    Setting up the storage
    Create a table for storing the data. Using transaction <b>SE11</b>, create a copy of the SDOKCONT1
    table. If you want to create the repository database, you can name the table ZCONT_DB, for example. Save the
    table as a local object. Activate the table.
    Create a repository.
    Use transaction <b>OAC0</b> to create a new repository.
    Use the following parameters:
    Repository Max. two characters, for example,” Z1”
    DocArea: ARCHLINK
    Storage type: R/3 database
    Storage subtype: normal
    Version no. : 0046 
    Contents table <table name> for example: ZCONT_DB
    Exchange directory <directory name> for example:
    server\share\
    Make sure that the exchange list ends with a \ (or /on Unix).If you are using a variety of platforms, you must use transaction FILE to define a suitable logical file name and use this name. Save the settings.
    1. Maintain view table <b>TOAAR_C</b>, via SM31
       Cross client table displayed as information, forget it
    2. In field 'StSytm' you must entered 'Z1' as your system need, or anything that you need but you must configure HR Archive link too.
    3. In field 'Arch.path' (direct above Spoolpath), entered path in your system, this real path in your operating system. May be you should confirm to your Basis consultant where exactly you could store picture files. So if you enter '/', your file exists at root directory at your UNIX system.
    4. Choose 'File store' radio button
    5. Save.
    First
    <b>1. You have to create a number range for SAP ArchiveLink.
        IMG: Basis Components-> Basis Services -> SAP ArchiveLink -> Basic Settings-> Maintain number ranges   
        (Trxn <b>OANR).</b> Create number range 01 from 0000000001 to 9999999999 without the external number flag. 
    2. Document type <b>HRICOLFOTO</b> must exist with document class JPG.
        IMG: Basis Components->Basis Services->SAP ArchiveLink->System Settings->Maintain document types
        (Table<b> TOAVE, Trxn OAC2).</b>
    3. Document type <b>HRICOLFOTO</b> must be linked to object type PREL and Infotype PA0002.
        IMG: Personnel Management->Personnel Administration->Tools->Optical archiving->Set up Optical Archiving
        in HR.  (View V_T585O, no Trxn). In the first two columns there are minuses, the third (Date) has
       a plus - don't put a flag in the check box.
    4. Check which content repository (Archive) is linked to document type HRICOLFOTO and object type  
        PREL. IMG: <b>Basis Components->Basis Services->SAP ArchiveLink->Basic Settings->Maintain Links (Table 
       TOAOM_C, Trxn).</b></b>
    Test
    • Test the repository.
    Use transaction SE38 to start the RSCMSTH0 report. Specify your repository (i.e. Z1) and start the test.
    The report must run without errors. If no problems occurred, you can use the new repository with Archive Link after you carry out the Archive Link Customizing. If problems do occur, check whether one of the related
    notes helps.
    For More Details :
    http://service.sap.com/archivelink.
    <u><b>
    NOTE:- Screen Shots are missing, i was not able to paste here, One more thing is we did this for uploading a PHOTOS into Content Server, Similarly you have to create a REPOSITORY and Z-TABLE to bring all the Attachments from all the selected Objects and then route them to the CONTENT REPOSITORY.</b></u>
    Your Senior ABAP guy would help you in this, if not i may try to help you more by monday.
    Regards
    Rehman
    <b>Reward Your Points if Satisfied.</b>

  • Change log of attachment in Services for object in PO

    Dear All,
    I am unable to find the history of changes made to a file attached in a PO in the services for object button. Like other changes in header and items of a PO is available is this also available and if so how to get the details of changes of the attachment . The problem is one user had created the attachment in a PO and now finds that the attachment has been deleted as the same is no more there .The document is a word document . I do not find any table where such change record is available .
    Will anybody explain the above?
    Dhruba

    You'll need an ABAPer to look for the table and if their is a history associated with changes.
    What the User could do is subscribe to their objects so that if changed or deleted they receive a message
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/e6/767b44a0fc11d389c60000e8216438/frameset.htm
    Add a function module to include the id name of the person changing the object and/or write the event detail to a table and create a display transaction.
    Regards,
    Nick

  • Services for object

    Hi,
    I am uploading the Documents in the Services for object.( tcode ME22N.).
    When the PO is released , then also i am able to change or delete the attachment.
    I dont want to delete or edit the document after the PO is released.
    How to contol this?. .
    Regards,
    Chetan

    Hi Chetan,
                     That is not the correct way of generatin the document because you doc needs to go to the SAP server and it should not be accessed by any one it should be in the read only format.
    please.
    and one more technical reason is that it takes a lot of space in the server if you upload it directly by the above told path, please go as per the process.
    In DMS you have to define the Document Type for the Document that will be uploaded and there relevent document where your uploaded document will be used. like justification notes will be used by the PR and PO.
    Please follow this path.
    Regards,
    Yawar khan
    Edited by: 1234_abcd on May 23, 2011 12:57 PM

  • Add attachment to services for object

    Hi All,
    What is the meaning of Add Attachment to services for object, is it the only providing the services like
    Private note,
    send object with note,
    Display relation ship,
    work flow,
    My objects etc.
    can any one suggest me on this.
    Thanks&regds,
    Srinivas.

    Hi Srinivas,
    I have seen you asking a lot of questions all about the same scenario in my understanding. It seems you like to send a picture or an attachment from/to the mobile device, is this correct? I get this impression because your questions are mostly around the MAM30_080 syncbo.
    Could you specify the exact problem you have a little more in detail?
    Sending notes,..... either you enhance a SyncBO. This is not to difficult and you do not have to do the complete basic ABAP development for your own. You still have to do some coding on the R3 side, but the SBUILDER stuff in the middleware is not necessary.
    On the other hand, you can easily develop your own SyncBO. This is perhaps the best solution in your case.
    Relation ships in SyncBOs are done with the cascading. See in SBUILDER for MAM30_001 - it has a relationship to MAM30_010 fo example. This is a process you do at design time. Here the MDK helps with some instructions about it. If you have an oject with a short text, just fill in the short t.ext, the long text is a splittedt structure inside the BO. If you want to see that, it is really simple:
    Create a notification on the device. Enter a long text with more then 500chars. Then save.
    You need to check the data structure on the device then. When yu open MAM from the MI home screen, the URL usually ends with /start. Change this to /start,jsp - in MAM30 this name has changed to /start_.....jsp,have a look into the project, you will find it - and you select the syncBO MAM30_010 on thqt screen. Then you see the complete data structure on your device. Search for your new created entry. Then you see that the long text is saved as a child structure and it has an index so ther backend can put it back to one long text in the correct order.
    The same way you have to go if you want to send some data that is longer then 250 Byte.
    Hope this helps to switch on some lights.
    Regards,
    Oliver

  • Advantage of DMS over "Services for object" functionality

    Hi Experts,
    I have got very basic doubt about advantages of DMS Over existing standard functionality of SAP.
    We can attach documents or files to SAP Objects using "services for object" push button ( Next to title bar).
    So please answer for my below queries
    1. What is the disadvantage of using Services for Object??
    2. If I use services for object, then file is stored in SAP Data base or in my local drive??
    Thanks and Regards,
    Kiran T

    Hello ,
    DMS Vs GOS
    DMS- Document Management System
    The Document Management System (DMS) in SAP R/3 offers the following distinct advantages over the current procedures and systems.
    u2022     It avoids data redundancy, maintains consistency of data and minimizes the workload involved in entering and updating data.
    u2022     In order to use large databases to the full, it is required to exchange data quickly and securely.  Data can be accessed directly using electronic search tools, or find documents using known parameters. 
    u2022     Document distribution functionality  (SAP-Workflow functionality is required)
    The SAP R/3 Document Management System meets all these demanding requirements.  In addition to managing documents, it also coordinates document processing.  It is possible to automate the entire life cycle of a document: from document creation to document storage, its access and its update.  Each document can be accessed immediately from any computer on the netwerk.
    GOS-
    All these DMS advantages are not available with GOS.
    The Detailed PPT of comparison is sent to your id.
    Regards
    fapreeth

  • Transfering Documents (mostly .jpg) from Services for Object to DMS

    Hi,
    We are presently in the process of finalizing document attachments via DMS system. We still have a high quantity of documents that were attached through the "Services for object" function (mostly .jpg ) and would like to transfer these to DMS without having to export them for every single object (mostly equipments). Is there any way to do this i.e. mass export of these attachments with their link (ex. at the top of the dialog box: AttachmentFor0000000...) so that they remain .jpg to be able to re-upload quickly in DMS system ?
    Thanks for your help !

    we have in the current system merger project a developer from SAP who is programming this feature for us, so I am pretty certain that there is nothing in standard that can do this job.

  • Attaching PDF files to PO in Services for Objects

    Hi Experts
    I have got a strange requirement. Upon creation of the Purchase order or after any changes done to the PO, I need print the form and store it into PDF format in the application server. Later I need to upload that file to Services for Objects , button which available on the top of PO, in the Left most one.
    Using that I need to attach the coverted PDF file to that. Everything should be done by the program in the background. Please advice is it possible, if it is possible please help me how to code for this requirement.
    Awaiting for your reply,
    Thanks
    Praveen
    Edited by: Praveen Kumar on Feb 4, 2010 4:25 AM
    Edited by: Praveen Kumar on Feb 4, 2010 5:43 AM

    FUNCTION z_mm_save_po_in_gos.
    *"*"Local Interface:
    *"  IMPORTING
    *"     REFERENCE(PONUMBER) TYPE  EBELN
    *"  EXCEPTIONS
    *"      ERROR_OPEN_FORM
    *"      ERROR_CLOSE_FORM
      TYPES: BEGIN OF ty_message_key,
             foltp TYPE so_fol_tp,
             folyr TYPE so_fol_yr,
             folno TYPE so_fol_no,
             doctp TYPE so_doc_tp,
             docyr TYPE so_doc_yr,
             docno TYPE so_doc_no,
             fortp TYPE so_for_tp,
             foryr TYPE so_for_yr,
             forno TYPE so_for_no,
             END OF ty_message_key.
      INCLUDE : <cntn01>.
    * TABLES: ekko,
    *         lfa1,
    *         t001,
    *         pekko.
    * Load class.
      CLASS cl_binary_relation DEFINITION LOAD.
      CLASS cl_obl_object DEFINITION LOAD.
    **data declarations
      DATA: l_fstr   TYPE xstring,
            l_fsize  TYPE i,
            l_bsize  TYPE i,
            l_botype LIKE obl_s_pbor-typeid VALUE 'BUS2012', " e.g. 'BUS2012'
            l_bo_id  LIKE obl_s_pbor-instid," VALUE '4610000000'
            l_docty  LIKE borident-objtype VALUE 'MESSAGE',
            l_reltyp LIKE breltyp-reltype VALUE 'ATTA',
            lt_bin TYPE STANDARD TABLE OF char255 WITH HEADER LINE,
            lt_pdf TYPE TABLE OF tline,
            lv_message_key TYPE ty_message_key,
            lo_message TYPE swc_object,
            l_title    TYPE char30,
            lo_is_object_a TYPE borident,
            lo_is_object_b TYPE borident,
    *        lt_nast TYPE TABLE OF nast,
    *        lw_nast LIKE nast,
    *        l_nast  LIKE nast,
    *        l_druvo LIKE t166k-druvo,
    *        l_from_memory,
    *        l_doc   TYPE meein_purchase_doc_print,
    *        l_retcode TYPE i,
            lt_cdpos TYPE TABLE OF cdpos,
            lw_cdpos TYPE cdpos,
            lt_cdhdr TYPE TABLE OF cdhdr,
            lw_cdhdr TYPE cdhdr,
            l_flg,
    *        w_opt  LIKE ITCPO,
            l_text TYPE text60,
            lw_gos   TYPE zmm_gos,
            lr_chno  TYPE RANGE OF text60,
            lw_chno  LIKE LINE OF lr_chno,
            otf      TYPE TABLE OF itcoo.
        DATA: w_full TYPE string.
    **program will check only these values in the change history,
      lw_chno-sign = 'I' . lw_chno-option = 'EQ' .
      lw_chno-low = 'EKKO-FRGKE'. APPEND lw_chno TO lr_chno."Release Indicator: Purchasing Document
      lw_chno-low = 'EKKO-FRGZU'. APPEND lw_chno TO lr_chno."Release status
      lw_chno-low = 'EKKO-RLWRT'. APPEND lw_chno TO lr_chno."Total value at time of release
      lw_chno-low = 'EKET-MENGE'. APPEND lw_chno TO lr_chno."Scheduled Quantity
      lw_chno-low = 'EKPO-NETWR'. APPEND lw_chno TO lr_chno."Net Order Value in PO Currency
      lw_chno-low = 'EKPO-NETPR'. APPEND lw_chno TO lr_chno."Net Price in Purchasing
    *                                                        Document (in Document Currency)
      lw_chno-low = 'EKPO-BRTWR'. APPEND lw_chno TO lr_chno."Gross order value in PO currency
      lw_chno-low = 'EKPO-MENGE'. APPEND lw_chno TO lr_chno."Purchase Order Quantity
      SELECT SINGLE * FROM zmm_gos INTO lw_gos WHERE objectclas = 'EINKBELEG'
                                                   AND objectid = ponumber.
      IF sy-subrc EQ 0.
        IF lw_gos-changenr NE '1000000000'.
          SELECT * FROM cdpos INTO TABLE lt_cdpos
                          WHERE objectclas = lw_gos-objectclas
                            AND objectid   = lw_gos-objectid
                            AND changenr   GT lw_gos-changenr.
          IF sy-subrc EQ 0.
            LOOP AT lt_cdpos INTO lw_cdpos.
              CONCATENATE lw_cdpos-tabname lw_cdpos-fname INTO l_text
                          SEPARATED BY '-'.
              IF l_text IN lr_chno.
                l_flg = 'X'.
                EXIT.
              ENDIF.
              CLEAR: lw_cdpos,
                     l_text.
            ENDLOOP.
            IF l_flg = 'X'.
              DESCRIBE TABLE lt_cdpos.
              READ TABLE lt_cdpos INTO lw_cdpos INDEX sy-tfill.
              lw_gos-changenr = lw_cdpos-changenr.
              MODIFY zmm_gos FROM lw_gos.
              IF sy-subrc EQ 0.
                COMMIT WORK.
              ENDIF.
            ENDIF.
          ELSE.
            l_flg = space.
          ENDIF.
        ELSE.
          SELECT * FROM cdhdr INTO TABLE lt_cdhdr WHERE objectclas = 'EINKBELEG'
                                                 AND objectid   = ponumber.
          IF sy-subrc EQ 0.
            DESCRIBE TABLE lt_cdhdr.
            READ TABLE lt_cdhdr INTO lw_cdhdr INDEX sy-tfill.
            l_flg = 'X'.
            lw_gos-objectclas = lw_cdhdr-objectclas.
            lw_gos-objectid = lw_cdhdr-objectid.
            lw_gos-changenr = lw_cdhdr-changenr.
            MODIFY zmm_gos FROM lw_gos.
            IF sy-subrc EQ 0.
              COMMIT WORK.
            ENDIF.
          ENDIF.
        ENDIF.
      ELSE.
        SELECT * FROM cdhdr INTO TABLE lt_cdhdr WHERE objectclas = 'EINKBELEG'
                                                  AND objectid   = ponumber.
        IF sy-subrc EQ 0.
          DESCRIBE TABLE lt_cdhdr.
          READ TABLE lt_cdhdr INTO lw_cdhdr INDEX sy-tfill.
          l_flg = 'X'.
          lw_gos-objectclas = lw_cdhdr-objectclas.
          lw_gos-objectid = lw_cdhdr-objectid.
          lw_gos-changenr = lw_cdhdr-changenr.
        ELSE.
          l_flg = 'X'.
          lw_gos-objectclas = 'EINKBELEG'.
          lw_gos-objectid = ponumber.
          lw_gos-changenr = '1000000000'.
        ENDIF.
        MODIFY zmm_gos FROM lw_gos.
        IF sy-subrc EQ 0.
          COMMIT WORK.
        ENDIF.
      ENDIF.
    *  IF l_flg EQ space.
    *    l_flg = 'X'.
    *  ENDIF.
      IF l_flg NE space.
        DATA: memkey(10),
              memkey1(10).
        memkey = 'POOTF'.
        memkey1 = 'PONO'.
        EXPORT ponumber TO MEMORY ID memkey1.
        SUBMIT zmmr086 AND RETURN.
        IMPORT otf FROM MEMORY ID memkey.
        CHECK otf[] IS NOT INITIAL.
          import w_full from MEMORY ID 'REV'.
    **convert the otf data into xstring
        CALL FUNCTION 'CONVERT_OTF'
          EXPORTING
            format                = 'PDF'
          IMPORTING
            bin_filesize          = l_bsize
            bin_file              = l_fstr
          TABLES
            otf                   = otf[]
            lines                 = lt_pdf[]
          EXCEPTIONS
            err_max_linewidth     = 1
            err_format            = 2
            err_conv_not_possible = 3
            err_bad_otf           = 4
            OTHERS                = 5.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    **create the object message retriveing the msg details
    *    swc_create_object lo_message 'MESSAGE' lv_message_key.
    ** define container to pass the parameter values to the method call
    *    swc_container lt_message_container.
    **creating the title for GOS
    *    WRITE sy-datum TO l_title.
    *    CONCATENATE ponumber l_title INTO l_title SEPARATED BY '_'.
    ** Populate container with parameters for method
    *    swc_set_element lt_message_container 'DOCUMENTTITLE' l_title.
    *    swc_set_element lt_message_container 'DOCUMENTLANGU' 'E'.
    *    swc_set_element lt_message_container 'NO_DIALOG' 'X'.
    *    swc_set_element lt_message_container 'DOCUMENTNAME' l_docty.
    *    swc_set_element lt_message_container 'DOCUMENTTYPE' 'PDF'.
    *    swc_set_element lt_message_container 'FILEEXTENSION' 'PDF'.
    **convert the file string into binary format
        CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
          EXPORTING
            buffer        = l_fstr
          IMPORTING
            output_length = l_fsize
          TABLES
            binary_tab    = lt_bin.
    *    swc_set_table lt_message_container 'DocumentContent' lt_bin.
    *    swc_set_element lt_message_container 'DOCUMENTSIZE' l_fsize.
    *    swc_refresh_object lo_message.
    *    swc_call_method lo_message 'CREATE' lt_message_container.
    *    swc_get_object_key lo_message lv_message_key.
    ***fill the object key details for purchase order
    *    lo_is_object_a-objkey = ponumber. "purchase order number
    *    lo_is_object_a-objtype = 'BUS2012'. "business object type
    ** Create attachment BO object_b
    *    lo_is_object_b-objkey = lv_message_key.
    *    lo_is_object_b-objtype = l_docty.
    *    CALL FUNCTION 'BINARY_RELATION_CREATE'
    *      EXPORTING
    *        obj_rolea      = lo_is_object_a
    *        obj_roleb      = lo_is_object_b
    *        relationtype   = l_reltyp
    *      EXCEPTIONS
    *        no_model       = 1
    *        internal_error = 2
    *        unknown        = 3
    *        OTHERS         = 4.
    *    IF sy-subrc <> 0.
    *      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    *              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    *    ENDIF.
    *    COMMIT WORK AND WAIT.
    *CONSTANTS: pc_file TYPE char128 VALUE '/usr/sap/DEV/DVEBMGS00/data/newdoc5.pdf'.
    *open DATASET pc_file for OUTPUT in BINARY MODE." IGNORING CONVERSION ERRORS.
    *IF sy-subrc eq 0.
    *  TRANSFER l_fstr to pc_file.
    *  IF sy-subrc eq 0.
    *    CLOSE DATASET pc_file.
    *  ENDIF.
    *ENDIF.
        CONCATENATE  ponumber sy-datum sy-uzeit w_full INTO w_full SEPARATED BY '_'.
        CONCATENATE 'C:\' w_full '.pdf' INTO w_full.
        CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
    *   BIN_FILESIZE                    =
            filename                        = w_full
            filetype                        = 'BIN'
    *   APPEND                          = ' '
    *   WRITE_FIELD_SEPARATOR           = ' '
    *   HEADER                          = '00'
    *   TRUNC_TRAILING_BLANKS           = ' '
    *   WRITE_LF                        = 'X'
    *   COL_SELECT                      = ' '
    *   COL_SELECT_MASK                 = ' '
    *   DAT_MODE                        = ' '
    *   CONFIRM_OVERWRITE               = ' '
    *   NO_AUTH_CHECK                   = ' '
    *   CODEPAGE                        = ' '
    *   IGNORE_CERR                     = ABAP_TRUE
    *   REPLACEMENT                     = '#'
    *   WRITE_BOM                       = ' '
    *   TRUNC_TRAILING_BLANKS_EOL       = 'X'
    *   WK1_N_FORMAT                    = ' '
    *   WK1_N_SIZE                      = ' '
    *   WK1_T_FORMAT                    = ' '
    *   WK1_T_SIZE                      = ' '
    *   WRITE_LF_AFTER_LAST_LINE        = ABAP_TRUE
    *   SHOW_TRANSFER_STATUS            = ABAP_TRUE
    * IMPORTING
    *   FILELENGTH                      =
          TABLES
            data_tab                        = lt_bin[]
    *   FIELDNAMES                      =
    * EXCEPTIONS
    *   FILE_WRITE_ERROR                = 1
    *   NO_BATCH                        = 2
    *   GUI_REFUSE_FILETRANSFER         = 3
    *   INVALID_TYPE                    = 4
    *   NO_AUTHORITY                    = 5
    *   UNKNOWN_ERROR                   = 6
    *   HEADER_NOT_ALLOWED              = 7
    *   SEPARATOR_NOT_ALLOWED           = 8
    *   FILESIZE_NOT_ALLOWED            = 9
    *   HEADER_TOO_LONG                 = 10
    *   DP_ERROR_CREATE                 = 11
    *   DP_ERROR_SEND                   = 12
    *   DP_ERROR_WRITE                  = 13
    *   UNKNOWN_DP_ERROR                = 14
    *   ACCESS_DENIED                   = 15
    *   DP_OUT_OF_MEMORY                = 16
    *   DISK_FULL                       = 17
    *   DP_TIMEOUT                      = 18
    *   FILE_NOT_FOUND                  = 19
    *   DATAPROVIDER_EXCEPTION          = 20
    *   CONTROL_FLUSH_ERROR             = 21
    *   OTHERS                          = 22
        IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ELSE.
          WRITE: 'File saved on PC'.
        ENDIF.
        FREE: l_fstr,
              l_fsize,
              l_bsize,
              l_botype,
              l_bo_id ,
              l_docty,
              l_reltyp,
              lt_bin,
              lt_pdf,
              lv_message_key,
              lo_message,
              l_title,
              lo_is_object_a,
              lo_is_object_b,
    *              l_doc,
    *              l_nast,
    *              lt_nast,
    *              lw_nast,
              lt_cdpos,
              lw_gos,
              lw_cdpos.
    *      ENDIF.
      ENDIF.
    *  ENDIF.
    ENDFUNCTION.
    plz chk and let me know if any issue.

  • Re: Services for Object Icon

    Hi,
    Is there a way i can configure the Service Object icon to be available durinng PR (ME51n) and PO (ME21N) creation to appear?
    At the moment, this icon can only be use during change/display mode of PR and PO...
    .the services for object icon is the one use when we want to attached document,link,sent notes etc..
    Pls.help. Thanks
    She

    Hi She,
    The object services require a unique identifier for the object        
    processed. And this unique identifier of the document                 
    is only created at the moment of save. Exist SAP Note 913251 to enable the 
    linkage of attachments in the enjoy transactions ME51N and ME21N,  but
    only from 4.7 onwards.   
    Regards,
    Mauro

  • Where does the Services for Object (GOS) store data?

    I have a requirement that I need to upload a Blocking Reason document for any blocked vendor.
    The normal process we follow for blocking is XK02->Extras-> Blocked Data or XK05.
    We want to check before the Vendor is saved with blocked data whether he/she (who is blocking the vendor) has uploaded the Blocking Reason Document .
    I found out that we have an option in Vendor screen for uploading a document under 'Services for Object' in XK02 as shown in the below (in the red box).
    After uploading the attachment it will show the uploaded document in the Attachment List as shown below.
    I don't know where this entry is stored. I checked in the table SOOD (SAPoffice: Object definition), but there is no entry in there.
    I would like to know on how to check whether the file has been uploaded at the time of saving the vendor.
    If anyone knows the table in which this data is stored, kindly point it out.
    Thank You,
    Sreejith Babu.

    Hi Sreehith,
    Please refer the following document: http://wiki.scn.sap.com/wiki/x/yIEEBQ
    These attachments can be downloaded using FM BDS_GOS_CONNECTIONS_GET
    Refer the following document: Printing or Downloading Service For Object Attachments to local desktop
    Regards,
    Vijay

  • In Attachement List Services for Objects White Screen when I Display a Note

    Hi Expert,
    Need your assistance.
    I am trying to view a note in Vendor Master data but no information provided and I can only see white screen. Below are the steps that I performed:
    1. Go to FK03
    2. Open a Vendor
    3. Click the Services for Objects
    4. Attachement List
    5. Select a Note
    4. Display it
    5. Pop up window appreared and no information occurred. Only White screen
    Is there's a missing configuration, plugin, or data in my SAP system/workstation?
    I tried to login to other PC and it worked.
    Just wondering what is missing on my computer.
    Your response will be helpful.

    Hey,
    I have the exact same problem as you have described. I also used my ipod as a watch but starting from today, whenever I unlock it the screen turns white until a reset is done. Even a factory reset through itunes didn't fix it.
    Have you found any solution?
    Bah, this is annoying.
    //Gubbar

Maybe you are looking for