Sitemap

Amicuk Programming Answers

Business objects link

-0001-11-30   Views:4

Advertisement

Hi Friends, I am new to the Business objects. I got one requirement on business object. My SAP version is ECC 5.0. Here is the situation: I am attaching customer and claim documents through OAOR transaction (Business Document Navigator) . Attaching f

Hi Friends,
I am new to the Business objects. I got one requirement on business object.
My SAP version is ECC 5.0.
Here is the situation:
I am attaching customer and claim documents through OAOR transaction (Business Document Navigator) .
Attaching files are working fine in both customer and claim objects. i mean I can able to see those attached documentsin "Business Document Navigator).
There is a standard transaction to see claim documents. i.e WTYSE.
and we are using custom transaction to see customer documents.
I can able to see claim documents in WTYSE. But I am not able to see customer documents in ztransaction.
Could you pls help me ... some where we are missing link between business objects and object key number.
Is there any way to maintain link?
Hope you understood my issue. pls help me .
This is very urgent.
Thanks in advance

The replay answer
Advertisement
Hello
Have a look at the guide How to Attach Documents to Any Custom Program Using Generic Object Services
In the standard transaction like CLM3 (Display Claim) the GOS manager is defined in include LIQS0TPQ
* Objektdefinition generische Objektdienste
DATA: GO_NOTOBJECT TYPE REF TO CL_GOS_MANAGER.
DATA: G_OBJECT_GOS TYPE BORIDENT.
DATA: GV_CALL_BY_GOS(1)   type c value ' '.                  "818559
* note 881166
DATA: BEGIN OF GS_GOS,
        QMNUM LIKE VIQMEL-QMNUM,
        GO_NOTOBJECT TYPE REF TO CL_GOS_MANAGER,
        G_OBJECT_GOS TYPE BORIDENT,
      END   OF GS_GOS.
DATA: GT_GOS like GS_GOS occurs 0.
and instantiated in FORM routine OBJECT_PUBLISH_F70 (include LIQS0F70 ):
*&      Form  OBJECT_PUBLISH_F70
* Objekte bekanntmachen zur Nutzung der Generischen Dienste
FORM OBJECT_PUBLISH_F70.
  DATA: L_OBJECT   LIKE TOAOM-SAP_OBJECT.
  DATA: L_QMNUM    LIKE QMEL-QMNUM.
  DATA: L_QMNUM_H  LIKE QMEL-QMNUM.
  DATA: L_MANUM    LIKE QMSM-MANUM.
  DATA: L_MANUM_H  LIKE QMSM-MANUM.
  DATA: L_OBJKEY   LIKE SWEINSTCOU-OBJKEY.
  DATA: L_OBJID    LIKE SY-MSGV1.
  DATA: L_DIA_STAT LIKE QMEL-KZLOESCH.
*--- Funktion nicht prozessieren im BAPI-Modus
  CALL FUNCTION 'DIALOG_GET_STATUS'
    IMPORTING
      DIALOG_STATUS = L_DIA_STAT.
  IF L_DIA_STAT = YX.
    EXIT.
  ENDIF.
*--- Meldungskopf
  CASE TQ8T-QMTYP.
    WHEN YPM_01.
      L_OBJECT = C_BUS2038.
    WHEN YQM_02.
      L_OBJECT = C_BUS2078.
    WHEN YSM_03.
      L_OBJECT = C_BUS2080.
    WHEN YNM_05.
      L_OBJECT = C_BUS7051.
      INCLUDE CLAIM_025.
  ENDCASE.
  if t365-aktyp = YAKTYPH                                  "818559
  and ( TQ8T-QMTYP = YSM_03                                "881166
     or TQ8T-QMTYP = YQM_02 and SFBCALL-XDEFREC = YX ).    "881166
    gv_call_by_gos = 'X'.                                  "818559
  endif.                                                   "818559
*-- Unterscheidung ob Anlegen/ Ändern/ Hinzufügen
* IF T365-AKTYP = YAKTYPV OR T365-AKTYP = YAKTYPA.         "note777981
  IF T365-AKTYP = YAKTYPV OR T365-AKTYP = YAKTYPA           "note777981
   OR ( T365-AKTYP = YAKTYPH AND TQ80-EARLY_NUM = YX        "note777981
        AND SFBCALL-XDEFREC = SPACE                        "note881166
        AND ( TQ8T-QMTYP = YPM_01                          "note917479
           OR TQ8T-QMTYP = YSM_03 ) ).                     "note917479
    CALL FUNCTION 'SWU_OBJECT_PUBLISH'
      EXPORTING
        OBJTYPE = L_OBJECT
        OBJKEY  = VIQMEL-QMNUM.
*--- Maßnahmen
    LOOP AT IVIQMSM WHERE AEKNZ NE YDELT
                      AND AEKNZ NE YDELD.
*--- l_objkey fuellen
      CALL FUNCTION 'OBJECT_IDENTIFICATION_GET'
        EXPORTING
          OBJNR       = IVIQMSM-OBJNR
        IMPORTING
          IDENT_OBJID = L_OBJID
        EXCEPTIONS
          OTHERS      = 1.
      IF SY-SUBRC EQ 0.
* der FB OBJECT_IDENTIFICATION_GET liefert eine externe Darstellung für
* eine Objektnummer. Besitzt das Objekt mehrere Keyfelder, werden diese
* durch ein '/' getrennt.
        SPLIT L_OBJID AT '/' INTO L_QMNUM_H L_MANUM_H.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            INPUT  = L_QMNUM_H
          IMPORTING
            OUTPUT = L_QMNUM.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            INPUT  = L_MANUM_H
          IMPORTING
            OUTPUT = L_MANUM.
        CLEAR L_OBJID.
        MOVE L_QMNUM(12) TO L_OBJID(12).
        MOVE L_MANUM(4)  TO L_OBJID+12(4).
        MOVE L_OBJID TO L_OBJKEY.
        CALL FUNCTION 'SWU_OBJECT_PUBLISH'
          EXPORTING
            OBJTYPE = C_QMSM
            OBJKEY  = L_OBJKEY.
      ENDIF.
    ENDLOOP.
* ELSEIF T365-AKTYP = YAKTYPH.                              "note777981
  ELSEIF T365-AKTYP = YAKTYPH AND TQ8T-QMTYP <> YPM_01      "note777981
                              AND TQ8T-QMTYP <> YSM_03.     "note777981
*   note 881166
    READ TABLE GT_GOS WITH KEY QMNUM = VIQMEL-QMNUM INTO GS_GOS.
    IF SY-SUBRC NE 0.
      G_OBJECT_GOS-OBJTYPE = L_OBJECT.
*     When calling from defect recording, don't create a object to avoid
*     problems with other created notifications or the BOS object of the
*     inspection lot. Using SWU_OBJECT_PUBLISH you get then the
*     selection list and by deactivating the existence check like with
*     note 818559 you have also the same functionality
      IF SFBCALL-XFUNCCALL = YX AND SFBCALL-XDEFREC = YX.
        G_OBJECT_GOS-OBJKEY  = VIQMEL-QMNUM.
        CALL FUNCTION 'SWU_OBJECT_PUBLISH'
          EXPORTING
            OBJTYPE = L_OBJECT
            OBJKEY  = VIQMEL-QMNUM.
      ELSE.
*     do it like before with all possibilities, but here no selection
*     list is possible, so dangerous, if other objects are published too
        CREATE OBJECT GO_NOTOBJECT
                      EXPORTING  IS_OBJECT      = G_OBJECT_GOS
                                 IP_NO_INSTANCE = YX
*                                 IP_NO_COMMIT   = yx
                      EXCEPTIONS OTHERS         = 1.
      ENDIF.
      GS_GOS-QMNUM = VIQMEL-QMNUM.
      GS_GOS-GO_NOTOBJECT = GO_NOTOBJECT.
      GS_GOS-G_OBJECT_GOS = G_OBJECT_GOS.
      APPEND GS_GOS TO GT_GOS.
    ELSE.
      GO_NOTOBJECT = GS_GOS-GO_NOTOBJECT.
      G_OBJECT_GOS = GS_GOS-G_OBJECT_GOS.
    ENDIF.
  ENDIF.
ENDFORM.                               " OBJECT_PUBLISH_F70
Probably you have to make a similar logic known to your custom transaction.
Regards
  Uwe

Go to See the other 2 answers

Business Object linked to application document

Category:DefaultRelease time:-0001-11-30Views:130

hi All, Is there any standard tcode or way to find out a given business object is linked to what all application documents? Like for example i would like to know BO FIPP is linked or can be used for what all documents or tcodes?? How can find out?? T[More]

Business objects Links

Category:DefaultRelease time:-0001-11-30Views:130

Hi Friends, I am new to the Business objects. I got one requirement on business object. My SAP version is ECC 5.0. Here is the situation: I am attaching customer and claim documents through OAOR transaction (Business Document Navigator) . Attaching f[More]

Business objects link

Category:DefaultRelease time:-0001-11-30Views:130

Hi Friends, I am new to the Business objects. I got one requirement on business object. My SAP version is ECC 5.0. Here is the situation: I am attaching customer and claim documents through OAOR transaction (Business Document Navigator) . Attaching f[More]

Send mail with business object link

Category:DefaultRelease time:2015-10-11Views:130

Hi, can anyone please tell me, how can i send a mail with an business object as an attachement. when i clik on attachment, it should execute the method of business object which will display the document. it will be a great help,if any one can send th[More]

Link Between Business Object and Transaction

Category:DefaultRelease time:-0001-11-30Views:130

<b>How is Business Object linked to transactions?</b> For example, how is business object BUS2032 (Sales order) linked to transaction VA01 (Create sales order)?Hi Ben, I'm not sure that you link a business object and a transaction code explici[More]

SAP CRM Workflow , Associate Business Object column is Empty in Worklist WorkCenter

Category:DefaultRelease time:-0001-11-30Views:130

Hi Frds, I am new to workflow, I have created workflow, it working fine, but Order link is not coming in the Associated BUsiness Obejct colomn in Worklist Workcenter. Through Exsisting workflow we are getting Associated Business Object link but not f[More]

XRPM 2.0 - cProject Object Link

Category:DefaultRelease time:-0001-11-30Views:130

Hi all, I am using xRPM 2.0 SPRO Path: SAP xApp Resource and Portfolio Management (SAP xRPM) -> Base System Interfaces -> SAP cProjects Integration -> Define Business Object Links for SAP cProjects Within this the following object types do not ha[More]

BAPIs or Function Modules for Links between different Business Objects

Category:DefaultRelease time:2015-10-11Views:130

Hi experts, I am accessing an SAP CRM 5.0 system from outside via remote function calls. I have the GUID of a business partner and would like to find other business objects that are related to this business partner. For example: - Which activities ar[More]

Attaching link to business object using SO_NEW_DOCUMENT_ATT_SEND_API1

Category:DefaultRelease time:2015-10-11Views:130

Hi ABAP experts, I am trying to send a SAP mail with a link.  When the user clicks on the link they will jump to a transaction passing the parameters specified in the link. I have created the business object and want to know how to pass the parameter[More]

Object Types--Link to business object in SBWP

Category:DefaultRelease time:2015-10-11Views:130

Hi All, In SBWP, there is an option under path Document>Create Attachment>Link to business object, in this list there is no Purchase Order,Purchase Requisition, Maintenance work order. Need to know how to add these business objects to this list. Tha[More]

Object Link to CRM business object in Trex search result list

Category:DefaultRelease time:2015-10-11Views:130

Hello Everyone, has anybody sucessfully configured the functionality "Object Link Properties" which is described in the Document <a href="http://service.sap.com/~form/sapnet?_SHORTKEY=01100035870000647974&_SCENARIO=011000358700000001[More]

Hot
Hi all, Does SRM 7 supports the functionality of serial numbers at goods receipt? If a material in ECC has Serial number profile, then at the time of goods receipt in SRM, the system will ask to enter the serial number of each material? Thanks, Ezequ [More]
I have just purchased a new 2.8 Intel core 2 duo iMac and was wondering if I could somehow use the hard drive from my old iMac. What I have done is buy a case for the hard drive from my old iMac thus making it an external. The question that I have is [More]
Is there a feasible way to use effects from photo booth in imovie? I would like to have the background-effect and use my isight-camera. There is no effect to choose. Unfortunately the quality is too bad if I record directly from photo booth. I did no [More]
Hello Xcelsius Gurus, Is it possible to pass data parameter between SWF files? If possible, how to achieve it? Thank you. JustineHi, Thank you for the reference.  Little bit confused, please let me clarify.  I do not understand how the receiver SWF r [More]
Hi! Why Logic´s pan and volume don´t show post fader, only pre fader?? If I pan to the left, it doesn´t show it???Hi Perhaps you have "Pre-FaderMetering" turned on? Options:Audio:PreFader Metering CCTRead other 3 answers [More]
We have two Portal systems installed on the same host server.  The log viewer only identifies and displays the log files from one of the systems (A).  This is the case even though I started the log viewer while logged on as the <sid>adm for system ( [More]
Hi What authorization object to be used to give user only display access in CJ20N tcode under "User Fields" tab. Any suggestion would be appreciated. Rgds KamranHi Imran, The value of field TRTYP of object C_PROJ_TCD should be A for display and [More]
I would like to flag an email if it is important and may need it for future use.This is a support forum for Firefox. You will have to contact your e-mail provider for help.Read other 2 answers [More]
I want to calculate the area under a certain curve (data read from a spreadsheet file) by doing a numeric integration. The problem is that the interval between two adjacent points progressively changes from the start to end. I think I can get away wi [More]
Hello Experts: I have an existing Org Unit with associated Objects (Positions) and need to create an exact copy of the entire structure.  Is there a way to do this without copying each object one at a time? Thanks.Hi, With report RHMOVE30 is possible [More]