Thursday, June 20, 2013

SAP PLM ABAP - Application Building Block

Every Webdynpro application you see on PLM is supported by some of the basic classes called Application Building Blocks.

If you want to debug a Webdynpro, the best place to start would be to place the break-points in the ABB classes.

The ABB has two types of classes - one is the Meta data provide and the other is the Service provider classes.

Use the below link in SPRO to see the list of ABBs for PLM Objects.

Cross-Application Components  Processes and Tools for Enterprise Applications  Settings for BO Framework and Navigation  Define Application Building Blocks

some examples
Engineering change Record- PLM_ECR - /PLMI/CL_ECR_MP /PLMI/CL_ECR_SP

Tuesday, June 18, 2013

Where are GOS Attachments saved?

Where are GOS Attachments saved?

Storing attachments using generic services
The generic object services offer a separate option via the 'Copy desktop document', 'Connect Internet address (URL)' and 'Create a note' services to add an attachment to a business document.As of Release 4.6C, these services are called 'Create attachment', 'Create an external document (URL)' and 'Create a note'.
These services should enable the end user to easily enter attachments without document characters (memos).Correspondingly, there is no archiving concept for this type of attachment.
Technically speaking, notes, PC attachments and URLs are treated as SAPoffice documents and result in corresponding entries in the SOOD and SOFM tables. The contents of the attachments are stored in the SOC3 table.As of Release 4.6B, the contents of PC attachments are stored using the Knowledge Provider (KPro).The KPro allows you to connect an external storage system so that the contents of the PC attachments no longer place a burden on the database. If an external storage system is not connected, the contents of the PC attachments are written to the SOFFCONT1 table as of Release 4.6B.The administrative information necessary to locate the document in the Kpro is in the SOC3 table.
The content of notes and URLs continues to be stored in the SOC3 table.As these documents are usually small, the additional effort involved in storing them in the KPro is not justified.
If the PC attachments are not to be stored in the SOFFCONT1 table, you must assign a category to the SOFFPHIO document class using transaction SKPR08. The category is created in transaction OACT and refers to a repository on a HTTP content server. If documents that have already been stored are to be moved to the content server, see note 389366.
For more information on connecting an external Content Server, see the online documentation for the SAP Knowledge Provider or the information available in the help portal under Basis -> Basis Services -> Business Workplace -> Administration of... -> Information on Documents... -> Configuring an HTTP Content Server for Documents.
The relationship between the attachments and the business documents is provided via the Object Relationship Service.

Note 530792 - Storing documents in the generic object services

Wednesday, June 12, 2013

SAP Content Server reference

1. Create a Content Repository OAC0
2. Create a Documnet Type - OAD5,
        BUS1022      Fixed asset
Get all attachments at once

Program OACONTA4, gives list of  Documents  for a Business Object
          Oject Type = BUS1022
          documenttype = ZAST
Table: toasp - ZAST Details
TOJTT- Table for BO details

Possible Connection tables


Debug points from Application
    Applications that use the technical infrastructure of the SAP Content Server include the SAP Business Workplace, SAP ArchiveLink, the Document Management System (DMS), and the Knowledge Warehouse.
ArchiveLink is a service integrated in the SAP Web Application Server for linking archived documents and the application documents entered in the SAP system.

Archive Link Help

What is retention period for ?
  Might be used in DART -
How to point GOS Attachments to Content Server
  Note 530792 - Storing documents in the generic object services
  Read  Note 668271 - The entry SOFFPHIO is not displayed in TR SKPR08
             so use SE16 to change the storage catgeory from SOFFDB to the new Content category.
Do we need to migrate the existing Attachments to the new server- no need to.
  If documents that have already been stored are to be moved to the content server, see note 389366.

Use transaction SE16 in the SDOKPHCL table to create or correct the entry for the key PH CLASS = SOFFPHIO. The fields must have the following values:

DocuClass               SOFFPHIO

Created by              SAP
Time Created            07/16/1998 12:10:00
Last changed by         SAP
Last Changed At
Version type            0
Header table            SOFFPHIO
Category                ZGOS

Where are GOS objects saved?
 Objects can be saved in KPro or not in Kpro.
  If stored on KPro -  they can be stored in local SAP db or external Content server
SOOD-EXTCT    Storage
    directly in table SOC3
   K    using the KPRO
   A    in an archive
 If not KPRO, contents are stored in SOC3.
 If KPRO and no external storage, contents are stored in SOFFCONT1.
 If KPRO and there is external storage, contents are stored on Content server
 If stored in KPRO, Table SOC3 as administrative information to identify the File on KPRO.

 Where are CRM Attachments saved?

 Generic Object Services gets attachments from 3 different storage locations
   -> SAPOFFICE - >Create Attachments
   -> BDS-Business Document Service- >Store Business Document - Refer to interfaces in package- SBDS
   -> Archivelink -  refer to interfaces in Package SAOP
   As per Note 530792 - Storing documents in the generic object services, SAPOFFICE documents are easy to use but no Archiving is possible
CRMORDERCONT table has Order attachments


Change content repository of Category "CRMORDER" from CRMORDER to ZCRM ***This works but the existing files would not open

The other option is Create a new Category and point to ZCRM

241     ENTRIES

V_SDOKPCAT - Document Class

SKPR08- tcode to change Category(SDOKSTCAE) for a Dcoument class(SDOKPHCL). This over ride information is saved in table -SDOKPHCL_C
 Note, it is not possible to change Category for all Document classes - only the Document class with attribute (SDOKPHCL-CAT_MAINT) is set.
  no idea- why this is not set for other object classes
What is Document class?- tcode to maintain a Document class?
   There is no view to maintain a Document clas, it can be maintained with SE16
 CRM order attachments are going into CRM_P_ORD class
 BP attachments are going into BDS_POC1

Where is the link between Business objects and Document classes

* -> get business object to determine phio class
*    in which the document should be stored in
          EV_PHIO_CLASS      = LV_PHIO_CLASS.