Territory managemet -- Display relationship

CRM 7.0
In Territory management, when we slect a rule in a territory and click on the display relationship button, it shows a blank page. what could be the reason ?

Thnx Dilek,
ur reply was helpful. I have actually maintain this in the evaluation path but its not displaying the dotted line relationship. The situation is - i have created a org structure which has 2 managers - one in USA & the other in Mexico. The situation is the the executive in Mexico reports directly to the manager in Mexico & indirectly (dotted line) to the manager in USA. What i am looking for is a report which displays the solid line as well as dotted line relationship. In ECC 6.0 we dont have 088 which is the dotted line relationship. The alternative i believe is 742. So i have used this for dotted line relationship. The evaluatoion path i maintained to get the solid & dotted line report is as
Evaluaiton PAth :- ZA742
Obj Type     Relationship     Priority     Rel.Obj Type
     S              A008                 *                   P
              A002                 *                   *
              A742                 *                   *
what more do i need to do to get the solid & dotted line report. Am Using the standard report - Report Strcuture with Persons. Am stuck here. Any help is highly appreciated.
rgds,

Similar Messages

  • Display relationships by contact persons

    Hello,
    if you display the master data from a company, you have an info block for relations where you can see the connected contact person to the company. at this positions its also possible to delete the relationship between the company and the contact person.
    If you display the master data from a contact person, the info block relations are not filled.
    Its possible to see the businessadress of the related companies, but its not possible to delete the connection between the contact person and the company from the master data of the contact person.
    So, somebody have a tip how we can make this possible?
    why i cant see the relationship to the company in the info block relations at the contact persons?
    Thanks a lot for your help!
    kind regards - Helmut

    Hi
    Please check the following note it should resolve your issue:
    Note 1238913 - Account: how to display contacts in AB "Relationships"
    Also see the following notes:
    Note 1175899 - CRMWebUI:Is Contact Person Rel.ship not displayed in Account
    Note 1331704 - CRM Web UI Account / contact / employee search: corrections
    Note 1310163 - CRM WEBUI: Standard contact in search result
    Note 1117424 - Contact Person-role not created for Contact Persons
    Hope this helps
    Rupesh

  • Display relationships between objects

    I've been tasked/ proposed to deliver a new project involving
    two displayObjects... say 2 squares. Between those squares, I need
    to show a connecting relationship of hierarchy. So, I need to have
    a visual line connecting the 2 objects.
    Does anyone know if there is already a class for this in Flex
    or what I might use to demo this quickly. Never done this sort of
    data visualization before, but the math can't be to hard.

    "jwoozy" <[email protected]> wrote in
    message
    news:g96kmn$80o$[email protected]..
    > I've been tasked/ proposed to deliver a new project
    involving two
    > displayObjects... say 2 squares. Between those squares,
    I need to show a
    > connecting relationship of hierarchy. So, I need to have
    a visual line
    > connecting the 2 objects.
    >
    > Does anyone know if there is already a class for this in
    Flex or what I
    > might
    > use to demo this quickly. Never done this sort of data
    visualization
    > before,
    > but the math can't be to hard.
    >
    I think there is something here
    http://flexbox.mrinalwadhwa.com/,
    but I
    don't have time to search through it for you.
    HTH;
    Amy

  • Territory MGMT Rule

    Hi Gurus,
    in CRM 7.0 web ui
    i created territory with three levels(continent, country, geographic area ) but only using first level (continent) and assigned "Rule" for Accounts.
    i created rule as per best practice document , i set rule parameters to country and region and conditions in action i passed value for this parameters and then released and finally saved.
    no employee responsible assigned.
    now when to see what all accounts this territory is assigned to by using "display relationship" tab on rule box.
    i donot get any result.
    and even while creating an opportunity with the BP account which has values which i passed in rule conditions, i donot get territory in field "Territory ID" in general data ... where actually it should be filled up from BP address data...
    i am not talking about territory id from employee responsible ...that is working fine..
    problem is with "Account " based rule.
    am i missing something..or do i need to run any report...any other clue.. why it is not happening..?
    Thanks,
    g

    Hi,
    Basically, In order for the territory assignment to work through customer you have to see the relationship at the "Display relationships" button or at the assignment block "Territories" at the customer's main view.
    If you don't see the relationships there then it's not working.
    Second, after assigning the BP's to the territory you have to ran the report at the customing IMG>CRM>Master data> Territory management>Update Territory Relationships. first initial then schedule it with delta changes. (See documentation)
    Hope it helps
    Michalis

  • Territory management in CRM 7.0

    Hi,
    I created a territory and assigned rules and employees for it. And in Display relationships views I can find the business partners account which I need.
    But when I try to created I opportunity and entered the prospect, The territory Id showes "BTAdminH NOT bound".
    I deleted batch sequence 20 "Business Partner Assigned to the user" in access sequences. And I want batch sequence 15 "business Partner From Territory Management" be effective. Please tell me how to do. thanks.
    Best regard.
    Rohn

    Hi Ron,
    I am new to CRM 7.0. Can you tell the steps to create a rule, territory and then assign them to form a hierarchy.
    Thanks n regards,
    Vinu

  • No Territory Data on Account Overview Page

    Hi,
    I am working on a requirement of Territory Management. I have completed all the basic configuration. Now, when I am creating a rule for a Territory in WebUI, I am able to see all the accounts which have been assigned to this territory when i click on 'Display Relationship'. But, when i go to Account overview page(of any of these assigned account), I am not able to see territory data under assign Block 'Territory'.
    E.g.- Suppose if I create a territory Rule with postal code range between 40000 & 50000. I am able to see all the accounts which have this postal code range. But suppose, if i go to account overview page of nay of these displayed Account, No territory data is present under Territory Assignment block.
    What steps should i implement to achieve this?
    Regards,
    Amit

    Hi Amit,
    Can you please check that the Navigation Bar Profile you are using has Generic OP Mapping for MD110_TMGMT set.
    You can check/maintain this in the IMG customizing path: SAP Implementation Guide                                                               
      Customer Relationship Management                                                     
        UI Framework                                                                       
          Technical Role Definition                                                        
            Define Navigation Bar Profile
    If you are using a non-standard nav bar profile, please check it against the SAP standard one.
    You can also check note 1467393
    I hope this helps.
    Thanks,
    Ita

  • Territory ID is not determining under Partners tab in Opportunity

    Dear all,
    I have created Territory hierarchy and assigned employees through positions in the Organization structure.
    create partner determination procedure with Sales Prospect, Contact Person and Employee responsible as partner functions.
    Maintained 0030 resource for Employee responsible partner function.
    assigned Partner determination procedure to the Opportunity transaction type.
    But in Opportunity transaction, Territories are not getting determined.
    In Territory, as per the given rule I can see the customer in display results.
    The same customer is used in Opportunity but none of the territories and employees are getting determined.
    Kindly help me in resolving the issue.
    Your help will be highly appreciated
    Best regards
    Raghu ram

    Hi Arun
    I did all the steps except running CRM_TERR_PROC_REL report, I executed option Delta, but system didn't show any confirmation message and went back SAP Easy Access screen.
    I have defined territory hierarchy and assigned rules and Employee responsible to the lowest level of the territory.
    I have assigned partner function to assigned partner category in customization
    I have given Employee responsible partner function to the Employee record assigned to the territory.
    I can see all customers in Rule->Display Relationships.
    I created Y030 (by copying from 0030) and assigned to Employee responsible partner function->Details->Access Sequence
    Still the problem persist
    Kindly suggest
    Best regards
    Raghu ram

  • Macbook Pro no longer support Apple Cinema Display after graphic update 1.0

    I recently updated my system to ver. 10.5.2 and after that I updated to graphic system 1.0. After that my macbook pro began to have several problems dealing with my 23" Apple Cinema Display.
    1- if started in 'closed lid' mode it gives me a kernel panic (shaded screen) error during start up
    2- if started in 'open lid' mode it boots fine but whether i decide to close the lid it fails to wake from sleep mode. It starts for one or two seconds and then it gets back to sleep.
    So, I made a long time taking test during the weekend and after several "archive and install" I found that this issue is related to the leopard graphic system update 1.0. Somehow this update mess up the way that macbook pro deals with my Apple Cinema Display.
    I hope that someone at Apple will address this issue toward a solution in a short time.
    I appreciate any other experience in this sense by anybody.
    Thank you for any reply.

    DGarrett wrote:
    Virgin,
    Check out the 'Apple Displays' forum and you'll find that you are not alone. MBP/Cinema Display relationship broken since graphics updater. Hopefully an Apple patch soon, or it's time for an Archive and Install w/o updating the graphics.
    Best,
    DG
    Here is the direct link to the Cinema Display forum:
    http://discussions.apple.com/forum.jspa?forumID=981

  • Accounting document relationship to find intermediate document in FI-SL

    Hi all,
    I'm working in FI-SL and specially, on Drill-down from FI-SL document.
    My customer has a distributed system by ALE transfer with many other SAP Sytem.
    But I have one problem, when I try to drill-down these documents created by ALE, I have an error message "Original document is not in local system ".
    it's normal because, I only have the original document number but I haven't an intermediate document (My accounting document).
    So I would like to know if you know the function module's name used by SAP in Document relationship ?
    Thank you for any help.
    Gilles.

    Thank's Vikas.
    But I could tell you, It's normal behaviour of FI-SL. When you have one document which was created in another System, in FI-SL standard field, you only have the original document informations.
    Thus, you could not use the drill-down by GD13, for example, because it's not the right system. The original document was not created in the local system.
    Anyway, I just would like to know the name of function module,"Display Relationship" used by SAP in FB03. Because, it's only object which works with all documents created, from original document to last object.
    Thank you.
    Best regards,
    Gilles.

  • "relationship types and lag" on activity network

    Hi,
    on activity network diagram , how can I indicate the relationship types and lag time on relationship lines ?
    and instead of indicating each relationship line , how it could be drafted in groupped and branchs ?
    thanks ,
    h.e.

    without being nostalgic, since I'm not a huge fan of PERT anyway, the P3 feel and look of the PERT view that you are looking for in P6... is just not there anymore.
    no more direct/shared/branched display options for relationships. if it's a huge PERT printout you are interested in maybe (just maybe) it is worth manually positioning activity boxes to better display relationships. quite time consuming and even if you can save the positions in a file it still needs manual adjusting to accomodate changes. reorganising automatically doesn't always help (or rather creates the same mess in P6 as it did in P3 :)
    no more labelling relationship lines. although you should get the type from the relationship line itself, they are not always easy to trace (which pretty much defeats the purpose of a PERT chart). also, no way to display relationship lag/lead time.
    as I said, I do not use PERT much. I don't find it very practical in terms of overall look on fairly small screens/ print formats for most real-life projects.
    sure, it looks great for really straightforward logic (?), low complexity projects (?) or very detailed WBS analysed one at a time. but then, whats's the point..
    I suggest you try Table + Gantt + Trace logic instead. the combination of network logic and schedule info sharing the screen much more efficiently is a better compromise for a working layout, if you ask me.
    best of luck,

  • Determining Partners

    Dear Guru's
    Requirement
    A For each Ship-to party there will be parent Ship-to Party, in sales order, when ship-to party is entered, parent ship-to party should be copied. and
    B when ship-to party is changed then parent ship-to party should get changed.
    I am able to get A, by VOPA, so in partner function for ship-to party there is parent ship-to, and customer master for ship-to parent ship-to is entered. and it is getting copied to sales contract/order
    But problem is B, when in sales order ship-to party is changed then parent ship-to is not redetermined.
    Is there any way to redetermine partner procedure when ship-to party is changed??
    Regards
    Jitesh

    Hi Arun
    I did all the steps except running CRM_TERR_PROC_REL report, I executed option Delta, but system didn't show any confirmation message and went back SAP Easy Access screen.
    I have defined territory hierarchy and assigned rules and Employee responsible to the lowest level of the territory.
    I have assigned partner function to assigned partner category in customization
    I have given Employee responsible partner function to the Employee record assigned to the territory.
    I can see all customers in Rule->Display Relationships.
    I created Y030 (by copying from 0030) and assigned to Employee responsible partner function->Details->Access Sequence
    Still the problem persist
    Kindly suggest
    Best regards
    Raghu ram

  • Problem with attaching file to Sales Order

    Hello,
    In my company we have the possibility to attach files to sales orders, e.g. pdf files with the printing details.
    These files are added by the GUI user, this works fine.
    Now we have an extra order creation stream in which a pdf file has to be added to the SO without user interaction.
    I found a helpful link ( /people/rammanohar.tiwari/blog/2005/10/10/generic-object-services-gos--in-background )
    This program creates URL links with no problem, but the file generation is not implemented yet.
    I tried to add the file functions to his sample report but still have one problem. The file is uploaded, but not reported as a PDF file in sap. If I select the created attachment SAP allows only the saving of the attachment. After saving the created file is a good PDF file, it opens with PDF-viewers.
    Why does SAP not know this is a PDF file and report it as such (and open the pdf viewer when selected).
    Thanks, Frank.
    source-code:
    REPORT  zzfb_brc                                .
    * Report  Z_RMTIWARI_ATTACH_DOC_TO_BO
    * Written By : Ram Manohar Tiwari
    * Function   : We need to maintain links between Business Object and
    *              the attachment.Attachment document is basiclally a
    *              business object of type 'MESSAGE'.In order to maintain
    *              links, first the attachment will be crated as Business
    *              Object of type 'MESSAGE' using Message.Create method.
    *              Need to check if we can also use FM
    *              'SO_DOC_INSERT_WITH_ORIG_API1' or SO_OBJECT_INSERT rather
    *              than using Message.Create method.
    * I took this program and removed all the parts for adding URL's and
    * notes.
    * Include for BO macros
    INCLUDE : <cntn01>.
    * Load class.
    CLASS cl_binary_relation DEFINITION LOAD.
    CLASS cl_obl_object      DEFINITION LOAD.
    PARAMETERS:
    *  Object_a
       p_botype LIKE obl_s_pbor-typeid DEFAULT 'BUS2032',    "SO
       p_bo_id  LIKE obl_s_pbor-instid DEFAULT '0000757830', "example number
    *  Object_b
       p_docty  LIKE obl_s_pbor-typeid DEFAULT 'MESSAGE' NO-DISPLAY,
       p_msgtyp LIKE sofm-doctp        DEFAULT 'EXT'     NO-DISPLAY,
    *  Relationship
       p_reltyp  LIKE mdoblrel-reltype DEFAULT 'ATTA'.
    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.
    DATA : lv_message_key TYPE ty_message_key.
    DATA : lo_message TYPE swc_object.
    DATA : lt_doc_content TYPE STANDARD TABLE OF soli-line,
           ls_doc_content TYPE soli-line.
    * Create an initial instance of BO 'MESSAGE' - to call the
    * instance-independent method 'Create'.
    swc_create_object lo_message 'MESSAGE' lv_message_key.
    * Upload the pdf file, for now from the frontend, in the future from
    * the server.
    DATA:
    *  dsn(40) TYPE C VALUE '/usr/sap/trans/convert/1.pdf', "server location
    l_lines TYPE i. "filelenght
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename   = 'c:t1.pdf'
        filetype   = 'BIN'
      IMPORTING
        filelength = l_lines
      TABLES
        data_tab   = lt_doc_content.
    * no exceptions, the file is there in this example
    break brouwersf.
    ** the coding for the server input, for later
    *OPEN DATASET dsn FOR INPUT IN BINARY MODE.
    *IF sy-subrc <> 0.
    *  EXIT.
    *ENDIF.
    *READ DATASET dsn INTO ls_doc_content.
    *WHILE sy-subrc EQ 0.
    *  APPEND ls_doc_content TO lt_doc_content.
    *  READ DATASET dsn INTO ls_doc_content.
    *ENDWHILE.
    *CLEAR ls_doc_content.
    *CLOSE DATASET dsn.
    * define container to pass the parameter values to the method call
    * in next step.
    swc_container lt_message_container.
    * Populate container with parameters for method
    swc_set_element lt_message_container 'DOCUMENTTITLE' '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' p_docty.
    swc_set_element lt_message_container 'DOCUMENTTYPE' p_msgtyp.
    swc_set_element lt_message_container 'DocumentSize'    l_lines.
    swc_set_element lt_message_container 'DocumentContent' lt_doc_content.
    swc_call_method lo_message 'CREATE' lt_message_container.
    * Refresh to get the reference of create 'MESSAGE' object for attachment
    swc_refresh_object lo_message.
    * Get Key of new object
    swc_get_object_key lo_message lv_message_key.
    * Now we have attachment as a business object instance. We can now
    * attach it to our main business object instance.
    * Create main BO object_a
    DATA: lo_is_object_a TYPE sibflporb.
    lo_is_object_a-instid = p_bo_id.
    lo_is_object_a-typeid = p_botype.
    lo_is_object_a-catid  = 'BO'.
    * Create attachment BO object_b
    DATA: lo_is_object_b TYPE sibflporb.
    lo_is_object_b-instid = lv_message_key.
    lo_is_object_b-typeid = p_docty.
    lo_is_object_b-catid  = 'BO'.
    *TRY.
    CALL METHOD cl_binary_relation=>create_link
      EXPORTING
        is_object_a = lo_is_object_a
        is_object_b = lo_is_object_b
        ip_reltype  = p_reltyp.
    * Check if everything OK...who cares!!
    COMMIT WORK.

    Hi,
    Welcome to the SDN Forums!!!
    You need to supply the PC file extension in the container element 'DOCUMENTTYPE'.
    swc_set_element lt_message_container 'DOCUMENTTYPE' p_msgtyp.
    In your case change the above statement as below:
    swc_set_element lt_message_container 'DOCUMENTTYPE' 'pdf'.
    <b>OR</b> change the default value of p_msgtyp to 'PDF'.
    Cheers,
    Ramki Maley.
    Please reward points if the answer is helpful.
    For info on awarding points click on this link: https://www.sdn.sap.com/sdn/index.sdn?page=crp_help.htm
    Message was edited by: Ramki Maley

  • Upload file and link to sales order in SAP via rfc (C#)

    Hello all,
    In my company we have the possibility to attach files to sales orders, e.g. pdf files with the printing details.
    These files are added by the GUI user, this works fine.
    Now we have an extra order creation stream in which a pdf file has to be added to the SO without user interaction.
    In a previous question I had a little question about the linking, that has been solved, I will post the test program later.
    I now can link front end files (pdf's in this case) to the sales orders and it works fine.
    Now we are developing a frontend in C# (build by a third party) which creates a sales order via a RFC. We also want that RFC to include the PDF file and link it to the created order.
    In the interface of the RFC I included a table with 255 char lines. That is the same as in the example program. the problem is that our partner is yet unable to fill the interface in exact the same way as the example program does, so the linked pdf file is corrupted.
    Does anyone have hints how C# should fill the interface table, or how I can change the interface?
    code snippid table declaration for pdf table:
    IT_PDF     LIKE     ZETEX_TAB_PDF
    and
    structure ZETEX_TAB_PDF consists of
    LINE     CHAR255
    the sample program (see other topic on where I got it)
    REPORT  zzfb_brc LINE-SIZE 260.
    * Report  Z_RMTIWARI_ATTACH_DOC_TO_BO
    * Written By : Ram Manohar Tiwari
    * Function   : We need to maintain links between Business Object and
    *              the attachment.Attachment document is basiclally a
    *              business object of type 'MESSAGE'.In order to maintain
    *              links, first the attachment will be crated as Business
    *              Object of type 'MESSAGE' using Message.Create method.
    *              Need to check if we can also use FM
    *              'SO_DOC_INSERT_WITH_ORIG_API1' or SO_OBJECT_INSERT rather
    *              than using Message.Create method.
    * I took this program and removed all the parts for adding URL's and
    * notes.
    * Include for BO macros
    INCLUDE : <cntn01>.
    * Load class.
    CLASS cl_binary_relation DEFINITION LOAD.
    CLASS cl_obl_object      DEFINITION LOAD.
    PARAMETERS:
    *  Object_a
       p_botype LIKE obl_s_pbor-typeid DEFAULT 'BUS2032',    "SO
       p_bo_id  LIKE obl_s_pbor-instid DEFAULT '0000757830', "example number
    *  Object_b
       p_docty  LIKE obl_s_pbor-typeid DEFAULT 'MESSAGE' NO-DISPLAY,
       p_msgtyp LIKE sofm-doctp        DEFAULT 'EXT'     NO-DISPLAY,
    *  Relationship
       p_reltyp  LIKE mdoblrel-reltype DEFAULT 'ATTA'.
    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.
    DATA : lv_message_key TYPE ty_message_key.
    DATA : lo_message TYPE swc_object.
    DATA : lt_doc_content TYPE STANDARD TABLE OF soli-line,
           ls_doc_content TYPE soli-line.
    * Create an initial instance of BO 'MESSAGE' - to call the
    * instance-independent method 'Create'.
    swc_create_object lo_message 'MESSAGE' lv_message_key.
    * Upload the pdf file, for now from the frontend, in the future from
    * the server.
    DATA:
    *  dsn(40) TYPE C VALUE '/usr/sap/trans/convert/1.pdf', "server location
    l_lines TYPE i. "filelenght
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename   = 'c:tsimple.pdf'
        filetype   = 'BIN'
      IMPORTING
        filelength = l_lines
      TABLES
        data_tab   = lt_doc_content.
    * no exceptions, the file is there in this example
    clear l_lines.
    loop at lt_doc_content into ls_doc_content.
    l_lines = l_lines + 255.
    endloop.
    compute l_lines =   l_lines
                      + STRLEN( ls_doc_content ).
    ** the coding for the server input, for later
    *OPEN DATASET dsn FOR INPUT IN BINARY MODE.
    *IF sy-subrc <> 0.
    *  EXIT.
    *ENDIF.
    *READ DATASET dsn INTO ls_doc_content.
    *WHILE sy-subrc EQ 0.
    *  APPEND ls_doc_content TO lt_doc_content.
    *  READ DATASET dsn INTO ls_doc_content.
    *ENDWHILE.
    *CLEAR ls_doc_content.
    *CLOSE DATASET dsn.
    * define container to pass the parameter values to the method call
    * in next step.
    swc_container lt_message_container.
    * Populate container with parameters for method
    swc_set_element lt_message_container 'DOCUMENTTITLE' 'Some 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' p_docty.
    swc_set_element lt_message_container 'DOCUMENTTYPE' 'PDF'.
    swc_set_element lt_message_container 'DocumentSize'    l_lines.
    swc_set_element lt_message_container 'DocumentContent' lt_doc_content.
    swc_call_method lo_message 'CREATE' lt_message_container.
    * Refresh to get the reference of create 'MESSAGE' object for attachment
    swc_refresh_object lo_message.
    * Get Key of new object
    swc_get_object_key lo_message lv_message_key.
    * Now we have attachment as a business object instance. We can now
    * attach it to our main business object instance.
    * Create main BO object_a
    DATA: lo_is_object_a TYPE sibflporb.
    lo_is_object_a-instid = p_bo_id.
    lo_is_object_a-typeid = p_botype.
    lo_is_object_a-catid  = 'BO'.
    * Create attachment BO object_b
    DATA: lo_is_object_b TYPE sibflporb.
    lo_is_object_b-instid = lv_message_key.
    lo_is_object_b-typeid = p_docty.
    lo_is_object_b-catid  = 'BO'.
    *TRY.
    CALL METHOD cl_binary_relation=>create_link
      EXPORTING
        is_object_a = lo_is_object_a
        is_object_b = lo_is_object_b
        ip_reltype  = p_reltyp.
    * Check if everything OK...who cares!!
    COMMIT WORK.

    I woudl suggest you check ORDERS05 IDOC type (ORDCHG message type).
    FM - idoc_input_ordchg

  • GOS: Generic Object Services (BC-SRV-GBT)

    Hi All,
    I have a requirement to implement GOS for our Netting document - object type OIA_BUS001, we need to link a url to our document. And I managed to get the toolbox to appear besides the gui title, using both the FM SWU_OBJECT_PUBLISH and the OO codes that was provided in the SAP help.
    But the results is not quite right - in both cases, when I click on the toolbox -> create, all the functions listed, 'Create attachement, 'create note', etc, are greyed out.
    Is there something that I'm missing here?
    That's not the least of my problems. When (being optimistic here) this ok, I need to find a way on how to update the url in the background....
    Appreciate if anybody have some pointers here.
    Regards,
    Nik

    Try the following code.
    /people/rammanohar.tiwari/blog/2005/10/10/generic-object-services-gos--in-background
    Report  Z_RMTIWARI_ATTACH_DOC_TO_BO
    Written By : Ram Manohar Tiwari
    Function   : We need to maintain links between Business Object and
                 the attachment.Attachment document is basiclally a
                 business object of type 'MESSAGE'.In order to maintain
                 links, first the attachment will be crated as Business
                 Object of type 'MESSAGE' using Message.Create method.
                 Need to check if we can also use FM
                 'SO_DOC_INSERT_WITH_ORIG_API1' or SO_OBJECT_INSERT rather
                 than using Message.Create method.
    REPORT  Z_RMTIWARI_ATTACH_DOC_TO_BO             .
    Include for BO macros
      INCLUDE : <CNTN01>.
    Load class.
      CLASS CL_BINARY_RELATION definition load.
      CLASS CL_OBL_OBJECT      definition load.
    PARAMETERS:
    Object_a
       P_BOTYPE LIKE obl_s_pbor-typeid DEFAULT 'BUS2012', " e.g. 'BUS2012'
       P_BO_ID  LIKE OBL_S_PBOR-INSTID DEFAULT '4700000368',  " Key  PO No.
    Object_b
       P_DOCTY  LIKE obl_s_pbor-typeid DEFAULT 'MESSAGE' NO-DISPLAY,
       P_MSGTYP LIKE SOFM-DOCTP        DEFAULT 'URL'     NO-DISPLAY,
    Relationship
       P_RELTYP  LIKE mdoblrel-reltype DEFAULT 'URL'.
      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.
      DATA : LV_MESSAGE_KEY type TY_MESSAGE_KEY.
      DATA : LO_MESSAGE type SWC_OBJECT.
      DATA : LT_DOC_CONTENT type standard table of SOLI-LINE with header
    line.
    First derive the Attachment's ( MESSAGE )document type.
      P_DOCTY = 'MESSAGE'.
      CASE P_RELTYP.
      In case of URls
        WHEN 'URL'.
           P_MSGTYP = 'URL'.
      In case of Notes / Private Notes
        WHEN 'NOTE' OR 'PNOT'.
           P_MSGTYP = 'RAW'.
        WHEN 'ATTA'.
           P_MSGTYP = 'EXT'.
      Not implemented as yet...exit
         EXIT.
        WHEN OTHERS.
       ....exit
         EXIT.
        ENDCASE.
    Create an initial instance of BO 'MESSAGE' - to call the
    instance-independent method 'Create'.
      swc_create_object LO_MESSAGE 'MESSAGE' LV_MESSAGE_KEY.
    define container to pass the parameter values to the method call
    in next step.
      swc_container LT_MESSAGE_CONTAINER.
    Populate container with parameters for method
      swc_set_element LT_MESSAGE_CONTAINER 'DOCUMENTTITLE'
                 'Title, created programatically'.
      swc_set_element LT_MESSAGE_CONTAINER 'DOCUMENTLANGU' 'E'.
      swc_set_element LT_MESSAGE_CONTAINER 'NO_DIALOG'     'X'.
      swc_set_element LT_MESSAGE_CONTAINER 'DOCUMENTNAME' P_DOCTY.
      swc_set_element LT_MESSAGE_CONTAINER 'DOCUMENTTYPE'   P_MSGTYP.
    'DocumentContent' is a multi-line element ( itab ).
    In case of URLs..it should be concatenated with &KEY& in the begining.
      CASE P_MSGTYP.
        WHEN 'URL'.
          LT_DOC_CONTENT = '&KEY&http://www.gtservicing.com' .
          append LT_DOC_CONTENT.
    In case of Notes or Private Notes, get the data from files on appl
    server or from wherever(? - remember background).
         WHEN 'RAW'.
           LT_DOC_CONTENT = 'Hi How r u?' .
           append LT_DOC_CONTENT.
    In case of File attachments
         WHEN 'EXT'.
          Upload the file contents using open dataset in lt_doc_content .
          Some conversion ( Compress ) might be required.
          Not sure at this point
      ENDCASE.
      swc_set_element LT_MESSAGE_CONTAINER 'DocumentContent' LT_DOC_CONTENT.
      swc_call_method LO_MESSAGE 'CREATE' LT_MESSAGE_CONTAINER.
    Refresh to get the reference of create 'MESSAGE' object for attachment
      swc_refresh_object LO_MESSAGE.
    Get Key of new object
      swc_get_object_key LO_MESSAGE LV_MESSAGE_KEY.
    Now we have attachment as a business object instance. We can now
    attach it to our main business object instance.
    Create main BO object_a
      data: LO_IS_OBJECT_A type SIBFLPORB.
      LO_IS_OBJECT_A-INSTID = P_BO_ID.
      LO_IS_OBJECT_A-TYPEID = P_BOTYPE.
      LO_IS_OBJECT_A-CATID  = 'BO'.
    Create attachment BO object_b
      data: LO_IS_OBJECT_B type SIBFLPORB.
      LO_IS_OBJECT_B-INSTID = LV_MESSAGE_KEY.
      LO_IS_OBJECT_B-TYPEID = P_DOCTY.
      LO_IS_OBJECT_B-CATID  = 'BO'.
    *TRY.
    CALL METHOD CL_BINARY_RELATION=>CREATE_LINK
      EXPORTING
        IS_OBJECT_A            = LO_IS_OBJECT_A
       IP_LOGSYS_A            =
        IS_OBJECT_B            = LO_IS_OBJECT_B
       IP_LOGSYS_B            =
        IP_RELTYPE             = P_RELTYP
       IP_PROPNAM             =
       I_PROPERTY             =
    IMPORTING
       EP_LINK_ID             =
       EO_PROPERTY            =
    *CATCH CX_OBL_PARAMETER_ERROR .
    *CATCH CX_OBL_MODEL_ERROR .
    *CATCH CX_OBL_INTERNAL_ERROR .
    *ENDTRY.
    Check if everything OK...who cares!!
      commit work.

  • Attaching URL using GOS with 2 key fields

    I found a program to attach URL using GOS. I tried the program using his sample Business object (BUS2012) and supplied a valid PO and the program works.
    When I use the program using business object BUS1505 (Real Estate Contract) and put a valid contract number, the program didn't attached the URL. When I check the business object, I found out that the key fields are 2, Company Code and Contract Number. With this, how can attach it to the program.
    Please help me on this. Thanks in advance.
    Report  Z_RMTIWARI_ATTACH_DOC_TO_BO
    Written By : Ram Manohar Tiwari
    Function   : We need to maintain links between Business Object and
                 the attachment.Attachment document is basiclally a
                 business object of type 'MESSAGE'.In order to maintain
                 links, first the attachment will be crated as Business
                 Object of type 'MESSAGE' using Message.Create method.
                 Need to check if we can also use FM
                 'SO_DOC_INSERT_WITH_ORIG_API1' or SO_OBJECT_INSERT rather
                 than using Message.Create method.
    REPORT  Z_RMTIWARI_ATTACH_DOC_TO_BO             .
    Include for BO macros
      INCLUDE : <cntn01>.
    Load class.
      CLASS CL_BINARY_RELATION definition load.
      CLASS CL_OBL_OBJECT      definition load.
    PARAMETERS:
    Object_a
       P_BOTYPE LIKE obl_s_pbor-typeid DEFAULT 'BUS1505', " e.g. 'BUS2012'
       P_BO_ID  LIKE OBL_S_PBOR-INSTID DEFAULT '0000010000273',    " Key e.g. PO No.
    Object_b
       P_DOCTY  LIKE obl_s_pbor-typeid DEFAULT 'MESSAGE' NO-DISPLAY,
       P_MSGTYP LIKE SOFM-DOCTP        DEFAULT 'URL'     NO-DISPLAY,
    Relationship
       P_RELTYP  LIKE mdoblrel-reltype DEFAULT 'URL'.
      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.
      DATA : LV_MESSAGE_KEY type TY_MESSAGE_KEY.
      DATA : LO_MESSAGE type SWC_OBJECT.
      DATA : LT_DOC_CONTENT type standard table of SOLI-LINE with header
    line.
    First derive the Attachment's ( MESSAGE )document type.
      P_DOCTY = 'MESSAGE'.
      CASE P_RELTYP.
      In case of URls
        WHEN 'URL'.
           P_MSGTYP = 'URL'.
      In case of Notes / Private Notes
        WHEN 'NOTE' OR 'PNOT'.
           P_MSGTYP = 'RAW'.
        WHEN 'ATTA'.
           P_MSGTYP = 'EXT'.
      Not implemented as yet...exit
         EXIT.
        WHEN OTHERS.
       ....exit
         EXIT.
        ENDCASE.
    Create an initial instance of BO 'MESSAGE' - to call the
    instance-independent method 'Create'.
      swc_create_object LO_MESSAGE 'MESSAGE' LV_MESSAGE_KEY.
    define container to pass the parameter values to the method call
    in next step.
      swc_container LT_MESSAGE_CONTAINER.
    Populate container with parameters for method
      swc_set_element LT_MESSAGE_CONTAINER 'DOCUMENTTITLE' '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' P_DOCTY.
      swc_set_element LT_MESSAGE_CONTAINER 'DOCUMENTTYPE'   P_MSGTYP.
    'DocumentContent' is a multi-line element ( itab ).
    In case of URLs..it should be concatenated with &KEY& in the begining.
      CASE P_MSGTYP.
        WHEN 'URL'.
          LT_DOC_CONTENT = '&KEY&http://intranet.corpoff' .
          append LT_DOC_CONTENT.
    In case of Notes or Private Notes, get the data from files on appl
    server or from wherever(? - remember background).
         WHEN 'RAW'.
           LT_DOC_CONTENT = 'Hi How r u?' .
           append LT_DOC_CONTENT.
    In case of File attachments
         WHEN 'EXT'.
          Upload the file contents using open dataset in lt_doc_content .
          Some conversion ( Compress ) might be required.
          Not sure at this point
      ENDCASE.
      swc_set_element LT_MESSAGE_CONTAINER 'DocumentContent' LT_DOC_CONTENT.
      swc_call_method LO_MESSAGE 'CREATE' LT_MESSAGE_CONTAINER.
    Refresh to get the reference of create 'MESSAGE' object for attachment
      swc_refresh_object LO_MESSAGE.
    Get Key of new object
      swc_get_object_key LO_MESSAGE LV_MESSAGE_KEY.
    Now we have attachment as a business object instance. We can now
    attach it to our main business object instance.
    Create main BO object_a
      data: LO_IS_OBJECT_A type SIBFLPORB.
      LO_IS_OBJECT_A-INSTID = P_BO_ID.
      LO_IS_OBJECT_A-TYPEID = P_BOTYPE.
      LO_IS_OBJECT_A-CATID  = 'BO'.
    Create attachment BO object_b
      data: LO_IS_OBJECT_B type SIBFLPORB.
      LO_IS_OBJECT_B-INSTID = LV_MESSAGE_KEY.
      LO_IS_OBJECT_B-TYPEID = P_DOCTY.
      LO_IS_OBJECT_B-CATID  = 'BO'.
    *TRY.
    CALL METHOD CL_BINARY_RELATION=>CREATE_LINK
      EXPORTING
        IS_OBJECT_A            = LO_IS_OBJECT_A
       IP_LOGSYS_A            =
        IS_OBJECT_B            = LO_IS_OBJECT_B
       IP_LOGSYS_B            =
        IP_RELTYPE             = P_RELTYP
       IP_PROPNAM             =
       I_PROPERTY             =
    IMPORTING
       EP_LINK_ID             =
       EO_PROPERTY            =
    *CATCH CX_OBL_PARAMETER_ERROR .
    *CATCH CX_OBL_MODEL_ERROR .
    *CATCH CX_OBL_INTERNAL_ERROR .
    *ENDTRY.
    Check if everything OK...who cares!!
      commit work.

    HI
    You can look at object VBAP as an example.  It'sthe sales order item and has two keys - sales order number and item number. 
    the key was created:
    BEGIN OF KEY,
         SALESDOCUMENTNO LIKE VBAP-VBELN,
         ITEMNO LIKE VBAP-POSNR,
    END OF KEY,
         MATERIAL TYPE SWC_OBJECT,
         SALESDOCUMENT TYPE SWC_OBJECT,
         _VBAP LIKE VBAP.
    ND_DATA OBJECT. " Do not change.. DATA is generated
    Here is a object instantiation - just build the key with the two fields - then when you call the macro - you pass the one field that already has both keys in it.
    GET_PROPERTY SALESDOCUMENT CHANGING CONTAINER.
      SWC_CREATE_OBJECT
        OBJECT-SALESDOCUMENT 'VBAK' OBJECT-KEY-SALESDOCUMENTNO.
      SWC_SET_ELEMENT CONTAINER 'SalesDocument' OBJECT-SALESDOCUMENT.
    END_PROPERTY.

Maybe you are looking for

  • XML failing with Rosettanet DTD

    Hi, We are using a PIP5D5 xml message for an interface. This message is structurally defined as per the DTD provided in the Rosettanet standards. But for some segments where multiples are allowed, we are trying to use an attribute to distinguish each

  • T420 Audio Jack

    [Edit] Never mind... should have waited just a few minutes more before posting. I solved the problem... Hi, all! I recently became a very happy person when I came into ownership of a Thinkpad T420. However, I just last night became a very unhappy per

  • Question about Director Flash Components's TextInput

    Hello,everybody! I used the Flash Components's TextInput in  Director 11.5,but there was a problem that when the TextInput in edit status the cursor is missing. And the TextInput still can be edited !  I want  when the TextInput in edit status the cu

  • Damaged file type

    I was working on a Captivate 3 file on my desktop earlier this week, but when I try to open it now, I get a message that i can not open it either because it is not a supported file type or the file has been damaged. I had published it to a standalone

  • Reinstalar aplicacion de you tube

    Como puedo reinstalar la app de you tube, ignoro como la borraron pero ya no esta