Create View same as involved parties , sales team and contacts

Dear All,
We have been working on a Custom Business Object but we have a requirement to create functionality to add partner function i.e ( Custom and standard Partner function).
Now I was thinking to create association to party but how can i ahieve as same as standard?
I hope this might be a commmon requirment as every BO has to have Parties involved!
Regards,
Dhruvin

import AP.Common.GDT as apCommonGDT;
import AP.FO.BusinessPartner.Global;
import AP.CRM.Global;
import AP.FO.Party.Global;
import AP.FO.Address.Global;
import AP.Common.Global as Global;
businessobject Sy_Bau_Trade {
  [Label("Building Name")] element buildingidname : LANGUAGEINDEPENDENT_EXTENDED_Text;
  [Label("Building ID")] element buildingid : BusinessPartnerInternalID;
  [Label("Tender ID")] element tenderid :  LANGUAGEINDEPENDENT_EXTENDED_Text;
  [Label("Reference Flag")] element ReferenceFlag : Indicator;
  node ExternalParty [0,n] {
  element RoleCode : PartyRoleCode;
  element RoleCategoryCode : PartyRoleCategoryCode;
    element PartyUUID : UUID;
  element PartyKey : PartyKey;
  node PartyContactParty [0,n] {
  element MainIndicator : Indicator;
  element PartyUUID : UUID;
  element PartyKey : PartyKey;
  association AddressSnapshot[0,1] to AddressSnapshot;
  association Party[0,1] to Party;
  association MainPartyContactParty[0,1] to PartyContactParty;
  association AddressSnapshot[0,1] to AddressSnapshot;
  association Party[0,1] to Party;
  // association ToCustomer[0,1] to Customer;
Is above a right way?

Similar Messages

  • I wish to create a fixture book for a sports team and print it using Duplex. It will consist of 19 pages

    I wish to create a fixture book for a sports team and print it using Duplex. It will consist of 19 pages

    Can't see what you are looking at.
    You will need to describe what exactly you are talking about.
    Meanwhile see Imposing Booklets or Duplex printing:
    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=181&highlight=imposi tion&mforum=iworktipsntrick
    Imposed Booklets have pages in multiples of 4, Duplex documents of course in multiples of 2.
    Peter

  • Is it possible to migrate salesreps, sales team and territories?

    Hi,
    I want to know, if Is it possible to migrate salesreps, sales team and
    territories from one test instance to another?
    Cprada

    I don't think there is an open interface kind of facility to do this.
    You may have to write your own scripts to migrate.
    Thanks

  • Need to Create delivery on the basis of sales order and schedule line

    Hi,
    I need to create delivery on for sales order which is splitted in schedule line number (ETENR).
    I am using FM RV_DELIVERY_CREATE and passing sales order number with single line item at a time for different (schedule line) VBEP-ETENR. but it is creating the delivery for all schedule line  items in first time only and in second loop it is not returing any thing even error. can any one please suggest me  urgently what can I do for it.

    Hi Ankit,
    You will have to create your own program to do this.
    There is no standard way todo this.
    Best regards,
    Ramki

  • FM to read Sales Rep and contact person name

    Is there a function module that gets the corresponding name for the following:
    1. Sales Rep, obtained from VBPA-PERNR with PARVW = 'PE'.
    2. Sales Contact person, obtained from VBPA-PARNR with PARVW = 'CP'.
    If no function module exists, at least where to get the required text?
    Thanks in advance.

    Hi
    Get the Name of the Contact person and the sales rep from the KNA1 or ADRC tables
    first get the Partner Number from the VBPA table with the respective Partner function and fetch name from KNA1
    or try/use the fun modules
    <b>EBPP_GET_PARTNER_TEXT
    ISU_GET_PARTNER_ADDRESS</b>
    Reward points for useful Answers
    Regards
    Anji
    Message was edited by:
            Anji Reddy Vangala

  • Reporting / Sales Stages and Sales Processus

    Hello,
    I have 2 Sales Processus.
    In each Sales Processus I have the same name for the Sales Stage ("Closed/Won").
    When I created a simple report showing the Sales Stage and the Name of the opportunity,I have 2 blocks with the 2 items "Closed/Won".
    How could I manage to have only 1 block "Closed/Won" ?
    Thanks for your help.
    ML

    ML, in addition to Sales Stage and Opportunity Name bring in Sales Process Name. Now you should be able to filter on the correct sales process.

  • Comparing Account Team to Contact Team

    Hello,
    I have some account teams and contact teams that are not matching up. What I would like to do is run a report to compare these and display the Account Team members that don't appear on a Contact Team to the corresponding account. Is this possible?
    Thanks,
    Z

    If you are the owner of the pertinent Account, then for the other users on the Account Team, the Default Access Profile would be applicable, which you should change.
    For the Account record type, the access level can be kept as anything (read only, read/edit or read/edit/delete). In the related information for the Account record type, have the access levels of Completed and Open Activities as View.
    So, if you add the account team members in the Users section in the Account activities, the activities (appointments/task) would appear in each of the user’s calendars and tasks section.
    Aditya

  • Unable to create the sales team record using api AS_ACCESS_PUB.create sales

    Hi all,
    Please help with any sample code to create the sales team using AS_ACCESS_PUB.create sales team.
    When i am initialising,i am getting AS_SALES_MEMBER_PVT USing Fn error
    If i am not initialising,i am getting cannot read the value for profile option user_id;
    Regards,
    Raj

    Hi Ankitha,
    Your scenario is very vague.
    You have got the PO in the client 130 system and you wanted to created a SO in the same client 130 system.
    Usually we don't create a SO using the PO from the same system. Instead of using an IDOC concept, Call the BAPI BAPI_SALESORDER_CREATEFROMDAT1 or BAPI_SALESORDER_CREATEFROMDAT2.
    You can use any of the 2 BAPI's to create the sales order.
    Write a custom program to call the BAPI and assign that custom program as a driver program to your output type which is being triggered in the PO document, then as soon as that output type is triggered it creates the sales order for you.
    My sincere suggestion just counter check your requirement with the concerned persons as we don't generally create a sales order by referencing the po in the same system, but we create a po by referencing a so in the same system for Third party sales orders.
    Thanks,
    Mahesh.

  • Problem with embeding the same view in dynamically created view container

    Hello Experts,
                  I am getiing a dump when i try to embed the same view inside the dynamically created view container of
    dynamically created tabs of a tabstrip
    The requirement go like this, i have 2 views in which i have have to embed the 2nd view to view1 where i have an empty
    tabstrip without tabs. During runtime i create tabs as well as view containers accordingly and then try to embed view2 in tabs.
    I have put the below mentioned code in HANDLEIN,
      DATA: lref_vcntlr  TYPE REF TO if_wd_view_controller,
            lref_comp    TYPE REF TO if_wd_component_usage,
            lv_embed_pos TYPE string.
      lref_vcntlr = wd_this->wd_get_api( ).
      lv_embed_pos = 'FILE_PERS_EDIT/VC_GENERAL'.
      TRY.
          CALL METHOD lref_vcntlr->do_dynamic_navigation
            EXPORTING
              source_window_name        = 'FILE_PERSISTENCE_WND'          " Window
              source_vusage_name        = 'FILE_PERS_EDIT_USAGE_1'       " Source View usage
              source_plug_name          = 'TO_EDIT_LAYOUT'                       " Outbound plug
              target_view_name          = 'PERS_EDIT_LAYOUT'                  " Second view to be embedded
              target_plug_name          = 'IN'                                                  " Second view inboun plug
              target_embedding_position = lv_embed_pos
            RECEIVING
              component_usage           = lref_comp.
        CATCH cx_wd_runtime_repository .
      ENDTRY.
      wd_this->fire_to_edit_layout_plg( ).
    This works fine for the first time.
    However onaction tab select i change the embeding position( 'FILE_PERS_EDIT/view container name of different tab') of the view2 an try to embed view2 in a different tab.
    At this point i get a dump stating View2 already present in the window 'FILE_PERSISTENCE_WND' of component.
    I think, the view2 embediing has to be removed before i add the view2 in a different tab
    Kindly let me know how to remove view2 embedding from tab1 before i add a view2 to a different tab or is there any other
    means to handle this problem?
    Thanks & Best Regards,
    Srini.

    Hello Srini,
    I found a solution to your problem, because I had a similar task.
    In WDDOINIT I changed the method do_dynamic_navigation to if_wd_navigation_services_new~prepare_dynamic_navigation:
    DATA:
        l_view_controller_api TYPE REF TO if_wd_view_controller.
      l_view_controller_api = wd_this->wd_get_api( ).
      TRY.
          CALL METHOD l_view_controller_api->if_wd_navigation_services_new~prepare_dynamic_navigation
            EXPORTING
              source_window_name        = 'WDW_MAIN'
              source_vusage_name        = 'VW_SUB_USAGE_1'
              source_plug_name          = 'TO_VW_CONTENT'
              target_component_name     = 'ZTEST_DYNAMIC'
              target_view_name          = 'VW_CONTENT'
              target_plug_name          = 'DEFAULT'
              target_embedding_position = 'VW_MAIN/VC_TAB.VW_SUB/TAB1_VC'
            RECEIVING
              repository_handle         = wd_this->g_rep_handle.
        CATCH cx_wd_runtime_repository .
      ENDTRY.
      wd_this->fire_to_vw_content_plg( param1 = 'TAB1' ).
    In the action I first deleted the navigation targets, then navigated to the empty-view and last I called my target view:
      DATA:
        lv_position           TYPE string,
        l_view_controller_api TYPE REF TO if_wd_view_controller,
        lr_view_usage         TYPE REF TO if_wd_rr_view_usage,
        lr_view_***_t         TYPE wdrr_vca_objects,
        lr_view_***           LIKE LINE OF lr_view_***_t.
      l_view_controller_api = wd_this->wd_get_api( ).
      lr_view_usage = wd_this->g_view->get_view_usage( ).
      lr_view_usage->delete_all_navigation_targets( plug_name = 'TO_VW_CONTENT' ).
      CLEAR lv_position.
      CONCATENATE 'VW_MAIN/VC_TAB.VW_SUB/' old_tab '_VC' INTO lv_position.
      TRY.
          l_view_controller_api->if_wd_navigation_services_new~do_dynamic_navigation(
          source_window_name = 'WDW_MAIN'
          source_vusage_name = 'VW_SUB_USAGE_1'
          source_plug_name   = 'TO_EMPTYVIEW'
          target_component_name = 'ZTEST_DYNAMIC'
          target_view_name   = 'EMPTYVIEW'
          target_plug_name   = 'DEFAULT'
          target_embedding_position = lv_position ).
        CATCH cx_wd_runtime_repository.
      ENDTRY.
      CLEAR lv_position.
      CONCATENATE 'VW_MAIN/VC_TAB.VW_SUB/' tab '_VC' INTO lv_position.
      TRY.
          wd_this->g_rep_handle = l_view_controller_api->if_wd_navigation_services_new~prepare_dynamic_navigation(
            source_window_name = 'WDW_MAIN'
            source_vusage_name = 'VW_SUB_USAGE_1'
            source_plug_name   = 'TO_VW_CONTENT'
            target_component_name = 'ZTEST_DYNAMIC'
            target_view_name   = 'VW_CONTENT'
            target_plug_name   = 'DEFAULT'
            target_embedding_position = lv_position ).
        CATCH cx_wd_runtime_repository.
      ENDTRY.
      wd_this->fire_to_vw_content_plg( param1 = tab ).
    Ann.: I my example, I had 3 views: VW_MAIN which embedds VW_SUB. VW_SUB has the tabs in it and VW_SUB embedds VW_CONTENT.
    BR,
    Roland

  • HT1349 I just purchased an Iphone and love it except I'm surprised and annoyed that there is no way to create a group within contacts.  I coach a youth basketball team and routinely want to fire off a mass email or text to the same group. Am I missing som

    I just purchased an Iphone and love it except I'm surprised and annoyed that there is no way to create a group within contacts.  I coach a youth basketball team and routinely want to fire off a mass email or text to the same group. Am I missing something?

    When I click on my contacts icon on my phone there is a Groups choice in the upper left hand corner. Make sure you are in All Contacts and not a specific person.

  • Merge PR (same sales order) and Create PO using BADI

    Hi,
    How to merge PR (of same sales order) and create PO using Tcode ME59n.
    Is this possible using BADI?
    pls reply.
    A Rahim.

    Hello Deepak
    This kind of issue is probably related to your rescheduling settings. The PO is probably excluded from the rescheduling settings on customizing or it is outside the rescheduling horizon.
    Please take a look on the following WIKI that explains the rescheduling and the related settings in detail:
    What is rescheduling and how does it work - ERP Manufacturing (PP) - SCN Wiki
    BR
    Caetano

  • Create DB view  to hold all header sales document data

    hi dear
    i want Create DB view  to hold all header sales document data on the following tables:
    VBAK, VBKD, VBUK, KNA1 as follow:
    FROM VBAK:
    Sales Document
    Created on
    Time
    Created by
    Doc. Currency
    Division
    Sales Group
    Sales Office
    FROM VBKD:
    Price group
    Customer group
    Sales district
    Price List
    Incoterms
    Payt Terms
    FROM VBUK:
    Overall status
    Totals status
    Pricing
    Document cat.
    Document object
    FROM KNA1:
    Name
    Name 2
    City
    Postal Code
    Govern.Code
    Search term
    Street
    Telephone 1
    Fax Number
    One-time acct
    Address
    2. i want also Select and display all data from that view  from program code, sales order will be the only parameter.
    Any pointers in this regard are very much helpful.
    Regards
    Waseem Hesham

    Hello
    SE11 -> View -> Create -> Database view
    In column TABLES:
    VBAK
    VBKD
    VBUK
    KNA1
    Join conditions:
    VBUK-MANDT = VBAK-MANDT
    VBUK-VBELN = VBAK-VBELN
    VBAK-MANDT = VBKD-MANDT
    VBAK-VBELN = VBKD-VBELN
    KNA1-MANDT = VBAK-MANDT
    KNA1-KUNNR = VBAK-KUNNR
    View fields:
    MANDT VBAK MANDT
    VBELN VBAK VBELN
    ERDAT VBAK ERDAT
    ERZET VBAK ERZET
    ERNAM VBAK ERNAM
    ... ENUMERATE HERE ALL FIELDS YOU NEED
    Save and activate.
    Then in programm:
    tables: z_your_view.
    data: itable like z_your_view occurs 0.
    parameters: p_vbeln like vbak-vbeln.
    select * from z_your_view into table itable where vbeln eq p_vbeln.
    anything do with data .....

  • Creating a new database containing part of an existing database,same server

    Hi All Experts,
    I have a problem. I am trying to create a new database on a server which already has a database (named qadb10g) running on it. I want the new database to contain only a few tablspaces of the "qadb10g" database. I tried this approach.
    1. Take an RMAN backup of the desired tablespaces from the source database (qadb10g), including system and undo tablespaces as well.
    2. Use "SET NEWNAME FOR DATAFILE ..." RMAN commands to restore all the data files in the new disk location on the same server.
    3. Run "ALTER DATABASE BACKUP CONTROLFILE TO TRACE" command in the "qadb10g" database to generate a "create controlfile...." script.
    4. Edit the resulting file (from step 3) to change file locations and database name, instance name, etc.
    5. Create a new init.ora file for the new database.
    6. From an sql*plus session, with "ORACLE_SID" already set to new database name, run the "create controlfile ..." script which we generated and changed above.
    I performed steps 1-5 successfully, But when I ran the step 6 command, I got an error saying "Datafile Header contains database name 'qadb10g' which is not maching the <newdb name> .....".
    This means, the database datafiles which were backed up and restored from the 'qadb10g' database still contain the same db name in their header and this is preventing new control file from being created. So, the new datbase cannot be created. Can anbody help me how to resolve this problem???
    Any urgent help would be greatly appreciated. Thanks in advance.

    At Step 4, did you use the SET <newdbname> in the create controlfile script ?
    At Step 5, did you change the db_name in the pfile ?
    nid is the new and easier way to change the database name.

  • Can we create a view involving a standard table and a ZTable ?

    Hi,
    I created a view based on 2 tables : EKKO and a Ztable having EBELN field in common.
    Now, when i try to create a PO in ME21N , this view should get updated.But,It doesn't happen so.
    So i want to confirm that is it not possible to create a view on a Ztable...
    Also can anyone suggest any other option to do so...

    Hi,
       Yes you can create a view using a standard view using a standard Data base table and a custom data base table. But this getting updated would not be done by the standard program of Tcode ME21N, I reckon you need to write the logic of updation in an enhancement.
    Regards,
    Murthy.

  • Quick create account and auto assign to opportunity involved parties

    Hi gurus,
    I have a requirement to be able to quick create a new account from within an opportunity and to have this account automatically assigned to the opportunity with a certain party role.
    How do we go about this?
    Br,
    Anders

    PS. Forgot to mention that we are working in Cloud for Sales.

Maybe you are looking for

  • How do I get Facebook to show the image and text I want displayed?

    Hi all, When I want to post a link to one of my sites on Facebook it automatically picks up image and text to display. My question is how do I control which image and text are displayed? I have had a look around the web and there is a lot of infomati

  • U00AE is not displayed correctly when executing in Web Browser/Portal

    All, We have symbols like ®, ™ in our data. This is stored and displayed correctly in BI and Bex, When we execute the same in a graph in Web template using WAD it doesnt display properly. Shows some weird characters. Any idea on where and what the se

  • What can be done with my connection?

    Morning helpers, My BB line isn't very good. We live at the end of long line and the connection has never been stable long enough to to get the stats off the box with any meaning. I know my line is actually connected to a cab that has a new fibre ena

  • 10.4 Server Firewall prevents printing to HP Laserjet 4250n

    Howdy Folks! I've been trying to print to a Laserjet 4250n from my PowerMac G4/733 running 10.4.9 Server, but the server's firewall causes the print jobs to stop and never reach the printer. Temporarily turning off the firewall allows the print jobs

  • How to check oss notes

    Hi , I have very basic clarification. Please give me some idea on oss notes. Like currently i am fworking on first implimentaion project. Here my role is testing some specific scnarios. Actually i got some errors while testing. So i have mailed to se