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
I just experienced another reason why I hate the bubble instead of the drawer/panel, besides the whole data entry thing. I had the calendar on my smaller 20" monitor on my right - I use my 30" monitor for the nuts and bolts of my work. The calen [More]
I have an old Canon A540 camera that takes Secure Digital cards. The card I bought many years ago is not seen in the SD slot of my MBPro (latest version). If anyone has experience with that camera and the Mac's card slot I would love to know which ma [More]
The actual error I get is PLS-00386: type mismatch found at 'EMP_REC' between FETCH cursor and INTO variables I have copied the code in below (taken some logic out to make example easier). I think the problem is with the EMP_REC CHILDKNOWDES declarat [More]
I can find nowhere the list of countries included in the Unlimited World Calling offer and nowhere do I find the rates for when my "free month" expires. ?Help" Solved! Go to Solution.RickysSkype wrote: I can find nowhere the list of countri [More]
Finding this forum here on the Bea Portal is quite hard... For example, here http://dev2dev.bea.com/workshop/ there should be a link to the Workshop forum... (this forum, and the M7 old forum). Thanks for putting some more links!Thanks for the sugges [More]
We have this DCM report in SCCM 2007 and we want to migrate it to SCCM 2012. In SCCM 2007, this report is working when you run it in the sccm console, but does not work when you run it in sql management studio. The error that I am encountering in sql [More]
My iphone 4s doesn't appear in iTunes when i a plug it into my computer. I have just been to the apple store today and received this phone to replace one that had a wifi problem after the iOS 7 update. This phone now has iOS 7.0.2. Any suggestions?He [More]
I turned the LED notification on within the iOS software, but for some reason it's not working... How can I switch it on??YOur phone has to be locked.  Then you receive a text or call, your phone will flash.Read other 2 answers [More]
Yes, I am new & Yes I have trawled through TFM and FAQs and am lost in info overload! I need advice on setting up Premiere ready to import the sequence and once the movie is ready, the best export settings for uploading to Vimeo I have made several t [More]
When I launch my flex application in Google Crome it does not fit properly. It falls short of the full height . On clicking 'restore down' button at top right corner followed by 'maximize' , then the application fully fits within the browser window. [More]