Report on partner function

Dear All,
How we wll be able to see the receipt report on the basis of Goods Supplier where vendor is different from goods supplier and on the same way where invoiving part was different from vendor/goods supplier.(parter function).
Is there any report on the partner function.
Regards
Nitin

Hi Senthil,
ME2L is not meeting my requirement , is there any standard report by which I can get  material doc /PO , by giving vendor where it is being used as the partner function.
Thanks & Regards
Nitin

Similar Messages

  • Sold-To Party determination using Reported-By partner function in SolMan 4

    Hi,
    I'm trying to populate the Sold-To party field via Reported-By partner function in Solution Manager 4.0.
    That means in the Organizational model the Sold-To-Party is a Organization Business Partner, and the person who create the Support Message or Service Order is a person (Person BP) who works for the Sold to Party Org. Unit, then I request that when a Support Message is reported by a person that belong to The Org, Model, the system fulfill Sold-To-Party automatically.
    Example:
    Org. Unit: 10000 (BP Organzation) <----
    Sold to Party
    Employee: 10001 (BP: Person) <----
    Reported by
    Any hints how I could acheive this?
    Will award points.

    Hi,
    Just to clrify few things.... In terms of Solution Manager, the sold to party gets populated from the BP that is assigned to the Install Base Component. It is not required to have the BP maintained as a Sold-To to populate the Sold-To party field.
    I know that is confusing. But that is how it works. So in very general terms I'm looking a way to bypass the BP assignment to Install base and get the BP number of the Org unit that the user(employee) is been assigned to populate the Sold-To party field. Pls note that the Org Units are not maintained as Sold To parties.
    Thanks

  • Partner function wise reports

    hi sap gurus,
    i would like to partner function wise reports.For ex i am creating Vendor with three type of partner function .
    VN       Vendor                 Partner schema: purchasing organization level
    Z1       Organizer              Partner schema at vendor sub-range level
    Z3         owner                  Partner schema: plant level.
    i would like to all transaction reports through partner function wise

    Create a Query using tables
    LFA1--> Main vendor
    LFB1--> Company code vendor
    LFM1 --> Purchase vendor details
    WYT3--> Partner functions
    You might use LFM1 & WYT3 for this purpose as link is between purchase vendor and Partner function you will get there.
    Hope this helps.

  • Any report or Table to see orders with BP partner functions  in SAP CRM?

    Hello All,
    Could anyone help me  in getting  the table or any report  for orders with BP partner functions in SAP CRM?
    Would appreciate replying at the earliest.
    Cheers
    Sreedhar

    Hello Bruno,
    Thanks very much.
    It is somehow helpful for my need but  not completly. This is ok when the orders are less in number.
    My requirement is how to check the first name , last name and number for  contact persons in a list of  CRM orders(simply who is the contact person for a list of orders).Let me know for any additional info.
    I would apprecaite if you could help me in getting any other way.
    Cheers
    Sreedhar
    Edited by: sreedharhazari2 on Jun 8, 2010 9:18 AM

  • It is related to the partner functions - Reporting

    My client is using the Partner functions for vendors
    Where Vendor A is ordering vendor, Vendor B is Goods Carrier and Vendor C is the Invoicing party
    I want to get such a report; in which there will be
    Purchase order number
    Ordering vendor
    Quantity ordered
    Value of the quantity ordered,
    Goods Carrier Vendor
    Quantity of goods delivered
    Value of the goods delivered
    Invoicing Vendor
    Invoiced Quantity
    Invoiced Value
    In short the report will show the partner functions & their respective activities
    Is there any standard report exist for the same

    does this link help you?
    https://discussions.apple.com/thread/3329575?start=15&tstart=0
    they had and solved a similar problem. but icloud is not in beta anymore...

  • Partner function report

    Hi,
    We have one requirement to take the list of customers in all the sales areas who have all the defined partner functions except Group customer, Master customer and Owner IBU (Z functions). 
    Any pointers on this will be of great help.
    Thanks and Regards,
    P Gomatheeswaran.

    Hi Raja,
    Thanks for your response.  But the solution is not fulfilling.
    Hope, I have not clearly described my case.  Let me explain.  Pl take a customer, for example 200000043.  This has been extended to all sales areas.   This customer has payment terms SP, SH, BP, PY except GC, MC, OI in some sales areas.  The GC, MC, OI functions are common irrespective of sales area.  So, I need to identify in which sales area this data is missing and fill it.  In other terms, I need the data which is not in KNVP table
    From the solution provided I can get the data of SP, SH, BP, PY for all customers and all sales area.  That is not required in my case.
    Thanks & Regards,
    P Gomatheeswaran

  • Equipment partner function report

    Hi,
    The users maintain the partner function using Personnel no from HCM module and assign it to the equipment master.
    Whenever the equipment/Fleet is transferred to different location, its FL is dismantlled and new FL is Installed and correspondingly the Partner function is changed. Over a period of such transfer, business wants to view the period of the employee(partner) who operated it and the dates range indicating "From date" to "To date"....I checked in Equipment usage list, Multiple equipment selection  using T-code IE07 and IH08, but I am not getting the total record of all the partner who were driving this vehicle with the range of the period...
    Please explain and guide me. how to achieve this business need...

    Thanks Riyaj,
    I tried. It seems to work....The only query remains is the Changed date in the table IHPA against the respective Equipment Object Number...The Created date and the change date/Time remains same in the table against a particular record of Equipment object number and Partner combination. When we change the partner record, the change date field has to get changed and the date of change should be updated...Can you explain me the reason ?
    Also I see the deletion mark in the table against few records...If we just change the partner without deleting, wil the record not get updated..Could you give me the reason behind so...
    I use table PA0001 for partner details since we use the Employee data record which is flowing from HCM module.....
    I am planning to writea  query combining 3 tables EQUI, IHPA and PA0001...
    IE000000000002120051     PE          IEQ     2239          26.10.2010     15:37:02     SPL-03     26.10.2010     15:37:02     SPL-03     X          
    IE000000000002120051     PE     2     IEQ     7778          04.01.2011     09:50:54     MU-PMM-01     04.01.2011     09:50:54     MU-PMM-01               
    IE000000000002120081     PE          IEQ     3          26.10.2010     15:55:09     SPL-03     26.10.2010     15:55:09     SPL-03               
    IE000000000002120185     PE          IEQ     2239          29.11.2010     15:39:38     MU-PMM-01     29.11.2010     15:39:38     MU-PMM-01     X          
    IE000000000002120185     PE     1     IEQ     7778          04.01.2011     09:49:34     MU-PMM-01     04.01.2011     09:49:34     MU-PMM-01     X          
    IE000000000002120185     PE     2     IEQ     2239          04.01.2011     09:51:35     MU-PMM-01     04.01.2011     09:51:35     MU-PMM-01               
    IE000000000002120186     PE          IEQ     3          27.11.2010     15:30:16     MU-PMM-01     27.11.2010     15:30:16     MU-PMM-01

  • New Partner Function in CRM (Solution Manager Service Desk)

    Hi CRM Gurus!,
      Even if this problem is present in my Solution Manager Service Desk I'm creating this thread here in CRM Forum because I thin'k I need the experience of one CRM Expert. Í´ve created this question in Solution Manager Forum also but I hadn´t solved my problem yet.
    We add the partner function called "Additional Partner", but I don't know why in the tab "Partners" in the CRM transaction we want to add a new partner but in the partners combo the new one does not appear in the list.
    The procedure that I did was: I created a new business partner function and I added this new function to my partner determination procedure, then in SPRO: "Define Partner Determination Procedures" -> I set the option "Only Functions Assigned in Procedure". 
    These are the values. fro my new function:
    Function: ZSLFN004
    Text: Additional Processor
    Abbrev.: ZAMS
    Function Cat.: 0008 Person Responsible
    Usage: CRM Customer Relationship Managem.
    Relatshp Cat: CRMH06 Is Responsible BP For
    The partner functions in my procedure are:
    00000001 Sold-To Party (CRM)
    00000046 Approved by (CRM)
    SLFN0001 System Administrator (CRM)
    SLFN0002 Reported by (CRM)
    SLFN0003 Support Team (CRM)
    SLFN0004 Message Processor (CRM)
    ZSLFN004 Additional Processor (CRM)
    But in the transactions when I try to add a new partner in the partners tab only the follow functions appears in the combo:
    00000001 Sold-To Party (CRM)
    00000046 Approved by (CRM)
    SLFN0001 System Administrator (CRM)
    SLFN0002 Reported by (CRM)
    SLFN0003 Support Team (CRM)
    SLFN0004 Message Processor (CRM)
    I don't know why my ZSLFN004 is not listed in the combo.
    By the way, my function was created as a copy of SLFN0004.
    Any help would be appreciated.
    Regards
    Gustavo Balboa

    Hi Vishant,
      Thanks for your answer, but some one in the Solution Manager forum gave me the answer few minutes ago :). The problem was that in some transaction types (I don't know wich ones or if it aplies to all) the category 0008 - Person Responsible can only appear once, my partner function was a copy of the function SLFN0004 - Message Processor and that function is defined with the category 0008, so I had 2 partner functions defined in the category 0008.
    To solve the problem I just adjust my Z function and put the category 0016 - Service Team and let the relationship empty. Then the partner function is now showing in the combo at partners tab.
    Again, thanks anyway for the time that you take to answer my question.
    Regards
    Gustavo Balboa

  • How to include a new Z Partner Function in Sales order header drop down lis

    Hello SAP experts,
    We have come up with a new requirement to include a custom Partner Function-ZI  in dropdown of SO header-Partners field.
    Current scenario- Presently we are maintaining this partner function  ( Say ZI-  Institute ) in customer master data-Sales area tab.There could be more than one partners under this PF in master data. While entering sales Order, all partners associated are displayed in Header- partners tab, where only SP, SH, BP, PY partner functions are displayed.
    Requirement- 1. Is to  provide Drop down of this ZI-Institute partner function (which I did not find presently) in SO header-partners field and user should be able to provide one of partner function as available in Customer master ( as there are more than one partners that can be set in Customer master data but user need to be able to provide ONE of this ZI partner fucntion in DROPDOWN of PF tab in SO header ).
    2. In addition, How can I link this new partner function in related sales reports against that particulat order and invoice?
    Kindly suggest your valuable inputs as what should be the procedure to get this.
    Many thanks in advance.

    Hi,
    Go to partner determination by VOPA
    OR
    IMG >> SD >> Basic function >> Set up partner functions >> set up partner function for sales document header
    click on partner function and Maintain partner function ZI  and back
    Then select your existing partner determination procedure (Standard is TA) and click on PARTNER FUNCTIONS IN PROCEDURE and add partner function. and make it mandatory so even user forget to mention then at the time of saving system can remind user 
    Then double click on PARTNER DETERMINATION PROCEDURE ASSIGNMENT
    Assign partner procedure to sales document
    Now when you creating sales order go to header partner tab and enter you institute partner number
    For sales order and invoice report
    Execute this report by selecting partner function ZI in VA05N and VF05 respectively
    kapil

  • Multiple Partner Functions for a Sales document Item

    Hi,
    Can you please advise on modeling scenario for showing multiple partner functions for a given sales document in BI Report ..
    Because Key figure values should not be distributed for multiple records just becos of multiple partner functions but users want to see them in the reports along with sales doc and key figure
    I am explaining bit more clearly...
    I can achieve above requirement by having below model ..
    SDOC     ITEM  PF1  PF2  PF3  AMOUNT
    1000       10      AB    CD   EF    50000
    PF : Partner Function
    but as I feel it is a complicated task  to add more and more columns fro partner functions as and when new partner functions have been added or requested to show by users at sales doc level...
    So Can you please advise a better solution to meet the same requirement.
    Thanks & Regards,
    BRK
    Please advise me on this scenario
    Thanks & Regards,
    BRK
    Edited by: BRK on Jul 22, 2008 9:19 AM
    Edited by: BRK on Jul 22, 2008 9:29 AM

    SalesDoc______Item_______PartnerFunction________Amount
    80000_________10_____________A1_______________$1000
    80000_________10_____________A2_______________$1000
    80000_________10_____________A3_______________$1000
    This will be the normal display in the cube if there is only one Partner Function.
    But what we need is
    SalesDoc______Item_______PartnerFunction________Amount
    80000_________10_____________A1_______________$1000
    80000_________10_____________A2_________________' '
    80000_________10_____________A3_________________' '
    The Amount (KF) should be populated only for the first record for a SalesDoc / Item combo.
    You load data from source to the ODS, say delta.
    Suppose that the below record is already available in the ODS.
    SalesDoc______Item_______PartnerFunction________Amount
    80000_________10_____________A1_______________$1000
    And you get the following data as DELTA in the Data_Package from the source.
    SalesDoc______Item_______PartnerFunction________Amount
    80000_________10_____________A2_______________$1000
    80000_________10_____________A3_______________$1000
    If you populate the Amount again for these 2 records, then the total would sum to $3000, which is wrong.
    So what we do is,
    Write a Select stmt for ALL ENTRIES in Data_Package and fetch the records from the target ODS. Have it in an Internal table, say t_ODS1
    Take the SalesDoc / Item from the Data_Package and chk if it is present in the internal table t_ODS1.
    If it is present, then populate the Amount as ' ' (Blank)
    Else populate the Amount as $1000.
    Say, you are getting 3 new records, which is not present in the ODS1.
    In that case, your internal table t_ODS1 will be blank.
    Now again, we need to populate the Amount only for the first record among the 3 records.
    So, here comes the "Flag".
    Set the Flag as X, when we populate the Amount.
    Everytime chk the Flag <> X.
    Only if it is <> X, populate the Amount.
    Else Leave it Balnk.
    Hope I have explained in detail
    Regards,
    Balaji V

  • How to get the partner function code by partner function?

    For example, I need to know the partner function code for 'Reported By' and it's 'SLFN0002', How can I get this information by abap code?
    Best regards,

    Hey Blake,
    You can look up CRMC_PARTNER_FT( Db table ) which is used in the above  maintainance view...
    Use select stmt to populate an internal table.. then use Read Table( which key DESCRIPTION = < Sold to party > and so on...
    Just Get an Abaper and things would be easy..
    Reward points for usefull posts..
    Regards,
    Anand

  • Multiple Partner Function in a sales Order

    Hi
    I have created a partner function  ZR Referred By ( Type Customer) but not able to enter multiple ZR in a sales Order
    Error .VPD012. Partner Function can occur only 1  in ..
    The requirement is to attach the referred customers for reporting purpose and there can be more than one customer referring this new Customer / Order.

    Hi
    Thanks for the input but  the solutions suggested by you all does not work.
    The Unique button is only relevant for Customer Master and not the Order. In the Order you can have only one.
    The Button Modifiable is only for allowing you to change a Partner and not adding another partner with the same partner function.
    Any way I figured a way out,  we can use the system provided AA ( Partner Function) and able to use multiple AAs in a Service Contract./Scheduling agreements.
    But if you need to have multiple partner in a sales Order ...Only way seems to be to have Z1, Z2 Etc ...
    Thanks

  • Partner function update using CRM_PARTNER_MAINTAIN_SINGLE_OW

    Hi Experts,
    Can some one pls help me with some working code/sample to update a partner function value in CRM Order. I tried the below code but it doesnt seems to be working.
    Appreciate your help on this.
        call function 'CRM_ORDER_READ'
          exporting
            it_header_guid       = lt_guid
            iv_mode              = 'C'
          importing
            et_orderadm_h        = it_orderadm_h
          et_sales             = it_sales
          et_orderadm_i        = it_orderadm_i
          et_orgman            = it_orgman
          et_shipping          = it_shipping
          et_partner           = it_partner
          exceptions
            document_not_found   = 1
            error_occurred       = 2
            document_locked      = 3
            no_change_authority  = 4
            no_display_authority = 5
            no_change_allowed    = 6
            others               = 7.
        if sy-subrc <> 0.
    Implement suitable error handling here
        endif.
          clear wa_orderadm_h.
          read table it_orderadm_h into wa_orderadm_h index 1.
         lv_ref_guid = it_orderadm_h-guid.
          call function 'CRM_PARTNER_GET_CONTROL_INF_OW'
            exporting
              iv_ref_guid          = wa_orderadm_h-guid
              iv_ref_kind          = 'A'
            importing
              es_partner_control   = ls_partner_control
            exceptions
              determination_failed = 1
              others               = 2.
          if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          endif.
          move-corresponding ls_partner_control to es_partner_control.
    Common fields for both create and change *****
          import lv_qplant to lv_werks2 from memory id 'QUOTA_PLANT'.
          select single partner_no
            from crmm_locmap
            into w_partner
           where ext_locno = lv_werks2. "wa_quota_so_items_return-werks2.
    Partner_com parameter
          ls_partner_com-ref_guid = wa_orderadm_h-guid.
          ls_partner_com-ref_kind = 'A'.
          ls_partner_com-partner_no = w_partner.
          ls_partner_com-display_type = 'BP'.
          ls_partner_com-no_type = 'BP'.
    Find whether create or change is required
          read table gt_partner into wa_partner with key partner_fct = '00000035' ref_kind ='A'.
          if sy-subrc eq 0.
            ls_partner_com-kind_of_entry = 'C'.
            ls_partner_com-partner_fct = '00000035'.
            ls_ip_fields-fieldname = 'DISPLAY_TYPE'.
            append ls_ip_fields to lt_ip_fields.
            ls_ip_fields-fieldname = 'KIND_OF_ENTRY'.
            append ls_ip_fields to lt_ip_fields.
            ls_ip_fields-fieldname = 'NO_TYPE'.
            append ls_ip_fields to lt_ip_fields.
            ls_ip_fields-fieldname = 'PARTNER_FCT'.
            append ls_ip_fields to lt_ip_fields.
            ls_ip_fields-fieldname = 'PARTNER_NO'.
            append ls_ip_fields to lt_ip_fields.
            call function 'CRM_PARTNER_MAINTAIN_SINGLE_OW'
              exporting
                iv_ref_guid           = wa_orderadm_h-guid
                iv_ref_kind           = 'A'
                is_partner_com        = ls_partner_com
                iv_populate_mode      = 'X'
                iv_check_partner_only = ' '
                is_partner_control    = es_partner_control
                iv_external_call      = 'X'
              changing
                ct_input_field_names  = lt_ip_fields
              exceptions
                error_occurred        = 1
                others                = 2.
            if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
            endif.

    Reply to an old post but still can be helpful to someone in need
    *& Report  ZUPDATE_TRANSACTION_PF
    REPORT  zupdate_transaction_pf.
    *======================================================================*
    *  Variable declaration for ALV                                        *
    *======================================================================*
    TYPE-POOLS: slis.     " Type pool required for ALV
    TYPES: BEGIN OF gs_output,
              extid             TYPE ib_extid,
              prodid            TYPE comt_product_id,
              msg_type          TYPE bapi_mtype,
              message           TYPE bapi_msg,
              layout            TYPE slis_t_specialcol_alv,
           END OF gs_output.
    DATA: gt_output             TYPE TABLE OF gs_output,
          gs_output             TYPE gs_output,
          gt_fieldcat           TYPE slis_t_fieldcat_alv,
          gt_color_green        TYPE slis_t_specialcol_alv,
          gt_color_red          TYPE slis_t_specialcol_alv,
          gt_color_yellow       TYPE slis_t_specialcol_alv,
          gt_layout             TYPE slis_layout_alv,
          lt_header_guid        TYPE crmt_object_guid_tab,
          ls_header_guid        TYPE crmt_object_guid,
          lt_partner            TYPE crmt_partner_external_wrkt,
          ls_partner            TYPE crmt_partner_external_wrk,
          lt_guid               TYPE crmt_object_guid_tab,
          lt_guid_single        TYPE crmt_object_guid_tab,
          lt_req_obj            TYPE crmt_object_name_tab,
          ls_req_obj            TYPE crmt_object_name,
          lt_partner_update     TYPE crmt_partner_comt,
          lt_partner_com        TYPE crmt_partner_comt,
          ls_partner_com        TYPE crmt_partner_com,
          lt_input_fields       TYPE crmt_input_field_names_tab,
          ls_input_fields       TYPE crmt_input_field_names,
          lv_partner_fct        TYPE crmt_partner_fct,
          lv_partner_no         TYPE bu_partner,
          lv_trans_no           TYPE crmt_object_id_db,
          lt_return             TYPE STANDARD TABLE OF ddshretval,
          ls_return             LIKE LINE OF lt_return,
          lv_guid               TYPE crmt_object_guid.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE block1.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (36) forpf.
    PARAMETERS: p_pf TYPE comt_partner_fct OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (36) frombp.
    PARAMETERS: p_frombp TYPE but000-partner  OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (36) tobp.
    PARAMETERS: p_tobp TYPE but000-partner OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (36) fortrans.
    SELECT-OPTIONS: p_trans FOR lv_trans_no MATCHCODE OBJECT crm_order_object_id.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE block2.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (36) fortest.
    PARAMETERS: p_test AS CHECKBOX.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b2.
    INITIALIZATION.
      fortrans = 'Transaction Number'.
      forpf = 'Partner Function'.
      frombp = 'From Business Partner'.
      tobp = 'To Business Partner'.
      fortest = 'Test Run, Check Only'.
    *======================================================================*
    *  AT SELECTION-SCREEN                                                 *
    *======================================================================*
    AT SELECTION-SCREEN.
      FIELD-SYMBOLS:
        <sscrfields> TYPE sscrfields.
      DATA:
      lv_answer   TYPE char1,
      lt_options  TYPE TABLE OF rfc_db_opt,
      lt_fields   TYPE TABLE OF rfc_db_fld,
      lt_func_det TYPE TABLE OF tab512.
      CHECK sy-ucomm EQ 'ONLI'.
    AT SELECTION-SCREEN ON p_trans.
      CHECK sy-ucomm EQ 'ONLI' OR sy-ucomm EQ 'SJOB'.
      IF p_trans IS INITIAL.
        MESSAGE e398(00) WITH 'Please enter the transaction numbers'.
      ENDIF.
    AT SELECTION-SCREEN ON p_pf.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_pf.
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
        EXPORTING
          tabname           = 'CRMC_PARTNER_FT'
          fieldname         = 'PARTNER_FCT'
        TABLES
          return_tab        = lt_return[]
        EXCEPTIONS
          field_not_found   = 1
          no_help_for_field = 2
          inconsistent_help = 3
          no_values_found   = 4
          OTHERS            = 5.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      IF lt_return[] IS NOT INITIAL.
        READ TABLE lt_return[] INTO ls_return INDEX 1.
        p_pf = ls_return-fieldval.
      ENDIF.
      CHECK sy-ucomm EQ 'ONLI' OR sy-ucomm EQ 'SJOB'.
      IF p_pf IS INITIAL.
        MESSAGE e398(00) WITH 'Please enter the partner function'.
      ENDIF.
    AT SELECTION-SCREEN ON p_frombp.
      CHECK sy-ucomm EQ 'ONLI' OR sy-ucomm EQ 'SJOB'.
      IF p_frombp IS INITIAL.
        MESSAGE e398(00) WITH 'Please enter the business partner id to be changed'.
      ENDIF.
    AT SELECTION-SCREEN ON p_tobp.
      CHECK sy-ucomm EQ 'ONLI' OR sy-ucomm EQ 'SJOB'.
      IF p_tobp IS INITIAL.
        MESSAGE e398(00) WITH 'Please enter the new business partner id'.
      ENDIF.
    *======================================================================*
    *  START-OF-SELECTION                                                  *
    *======================================================================*
    START-OF-SELECTION.
      PERFORM init_alv_col_color.
      PERFORM update_transactions.
    END-OF-SELECTION.
      PERFORM create_report.
    *&      Form  create_fieldcat
    *       text
    FORM create_fieldcat.
      PERFORM add_fld USING: 'EXTID'     'Order ID'        '20' 1,
                             'PRODID'    'Product ID'         '20' 2,
                             'MSG_TYPE'  'MSG Type'            '8'  9,
                             'MESSAGE'   'Message Description' '100' 10.
    ENDFORM.                    "CREATE_FIELDCAT
    *&      Form  add_fld
    *       text
    *      -->P_FIELDNAME  text
    *      -->P_SELTEXT_M  text
    *      -->P_OUTPUTLEN  text
    *      -->P_COL_POS    text
    FORM add_fld USING p_fieldname
                       p_seltext_m
                       p_outputlen
                       p_col_pos.
      DATA: ls_fieldcat TYPE slis_fieldcat_alv.
      CLEAR ls_fieldcat.
      ls_fieldcat-fieldname     = p_fieldname.
      ls_fieldcat-ref_fieldname = p_fieldname.
      ls_fieldcat-seltext_m     = p_seltext_m.
      ls_fieldcat-outputlen     = p_outputlen.
      ls_fieldcat-col_pos       = p_col_pos.
      APPEND ls_fieldcat TO gt_fieldcat.
    ENDFORM.                    "add_fld
    *&      Form  create_report
    *       text
    FORM create_report.
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
        EXPORTING
          text = 'Creating output ...'.
    * Get the field headers into an internal table
      PERFORM create_fieldcat.
      gt_layout-coltab_fieldname = 'LAYOUT'.
      gt_layout-colwidth_optimize = 'X'.
      gt_layout-zebra = ' '.
    * Call ABAP/4 Grid Viewer
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_top_of_page = 'TOP-OF-PAGE'
          i_callback_program     = sy-repid
          it_fieldcat            = gt_fieldcat[]
          is_layout              = gt_layout
        TABLES
          t_outtab               = gt_output  " it_sort = gt_sort
        EXCEPTIONS
          program_error          = 1
          OTHERS                 = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " create_report
    *&      Form  init_alv_col_color
    *       text
    FORM init_alv_col_color.
    * Red ALV column
      PERFORM add_field_color USING gt_color_red 'MSG_TYPE' '6' '1' '1'.
      PERFORM add_field_color USING gt_color_red 'MESSAGE' '6' '1' '1'.
    * Green ALV column
      PERFORM add_field_color USING gt_color_green 'MSG_TYPE' '5' '1' '1'.
      PERFORM add_field_color USING gt_color_green 'MESSAGE' '5' '1' '1'.
    * Yellow ALV column
      PERFORM add_field_color USING gt_color_yellow 'MSG_TYPE' '3' '1' '1'.
      PERFORM add_field_color USING gt_color_yellow 'MESSAGE' '3' '1' '1'.
    ENDFORM.                    "init_alv_col_color
    *&      Form  add_field_color
    *       text
    *      -->PT_COLOR   text
    *      -->FIELDNAME  text
    *      -->COL        text
    *      -->INT        text
    *      -->INV        text
    FORM add_field_color USING pt_color TYPE slis_t_specialcol_alv
                               fieldname col int inv.
      DATA: ls_color TYPE slis_specialcol_alv.
      ls_color-fieldname = fieldname.
      ls_color-color-col = col.
      ls_color-color-int = int.
      ls_color-color-inv = inv.
      APPEND ls_color TO pt_color.
    ENDFORM.                    "add_field_color
    * Form  TOP-OF-PAGE                                                 *
    * ALV Report Header                                                 *
    FORM top-of-page.
    *ALV Header declarations
      DATA: t_header TYPE slis_t_listheader,
            wa_header TYPE slis_listheader,
            t_line LIKE wa_header-info,
            ld_lines TYPE i,
            ld_linesc(10) TYPE c.
    * Title
      wa_header-typ  = 'H'.
      wa_header-info = 'Data Migration'.
      APPEND wa_header TO t_header.
      CLEAR wa_header.
    * Date
      wa_header-typ  = 'S'.
      wa_header-key = 'Date: '.
      CONCATENATE  sy-datum+6(2) '.'
                   sy-datum+4(2) '.'
                   sy-datum(4) INTO wa_header-info.   "todays date
      APPEND wa_header TO t_header.
      CLEAR: wa_header.
    * Time
      wa_header-typ  = 'S'.
      wa_header-key  = 'Time: '.
      CONCATENATE  sy-uzeit(2) ':'
                   sy-uzeit+2(2) ':'
                   sy-uzeit+4(2) INTO wa_header-info.   "time
      APPEND wa_header TO t_header.
      CLEAR: wa_header.
    * File Path
      wa_header-typ  = 'S'.
      wa_header-key  = 'File Path: '.
      wa_header-info = ''.
      APPEND wa_header TO t_header.
      CLEAR: wa_header.
    * Test Mode
      wa_header-typ  = 'S'.
      wa_header-key  = 'Test Mode: '.
      IF p_test = 'X'.
        wa_header-info = 'Yes'.
      ENDIF.
      APPEND wa_header TO t_header.
      CLEAR: wa_header.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = t_header.
    ENDFORM.                    "top-of-page
    *&      Form  UPDATE_TRANSACTIONS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM update_transactions .
      SELECT guid INTO TABLE lt_header_guid FROM crmd_orderadm_h WHERE object_id IN p_trans.
      IF sy-subrc EQ 0.
        LOOP AT lt_header_guid INTO ls_header_guid.
          CLEAR: lt_guid, lt_req_obj, lt_partner, lt_input_fields.
          ls_req_obj = 'PARTNER'.
          APPEND ls_req_obj TO lt_req_obj.
          APPEND ls_header_guid TO lt_guid.
          CALL FUNCTION 'CRM_ORDER_READ'
            EXPORTING
              it_header_guid       = lt_guid
              it_requested_objects = lt_req_obj
            IMPORTING
              et_partner           = lt_partner
            EXCEPTIONS
              document_not_found   = 1
              error_occurred       = 2
              document_locked      = 3
              no_change_authority  = 4
              no_display_authority = 5
              no_change_allowed    = 6
              OTHERS               = 7.
          lv_partner_fct = p_pf.
          lv_partner_no = p_frombp.
          SHIFT p_frombp LEFT DELETING LEADING '0'.
          READ TABLE lt_partner INTO ls_partner WITH KEY partner_fct = p_pf partner_no = p_frombp.
          IF sy-subrc EQ 0.
            LOOP AT lt_partner INTO ls_partner WHERE partner_fct = p_pf AND partner_no = p_frombp.
              lv_partner_no = p_tobp.
              CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
                EXPORTING
                  input  = lv_partner_no
                IMPORTING
                  output = lv_partner_no.
              REFRESH lt_input_fields.
              CLEAR   ls_partner_com.
              ls_partner_com-ref_guid     = ls_partner-ref_guid.
              ls_partner_com-ref_kind     = ls_partner-ref_kind.
              ls_partner_com-ref_partner_handle = ls_partner-ref_partner_handle.
              ls_partner_com-kind_of_entry = 'C'.
              ls_partner_com-partner_fct  = ls_partner-partner_fct.
              ls_partner_com-partner_no   = lv_partner_no.
              ls_partner_com-display_type = 'BP'.
              ls_partner_com-no_type      = 'BP'.
              ls_partner_com-ref_partner_no = ls_partner-ref_partner_no.
              ls_partner_com-ref_partner_fct = ls_partner-ref_partner_fct.
              ls_partner_com-ref_no_type     

  • Setting a private flag on an activity for a specific Partner Function

    Hi. I have this requirement. Display on private flag "My activities". Display just the Activities for a specific Function partner ej. Parner Responsible. Actually the system displays on "my activities" the activities not just for person responsible but also the activities for the created by or agent partner function
    Report: Activity Monitor
    Does anybody knows if there is a way to modify this to display the activities for a specific Function partner on the Biz Activity?

    Max,
    I tried to find any exits in this program but couldnt find any.
    But I have following idea in mind:
    1. I dont think you need to make this change on 'my activities'. Instead use of the third 'My ...activities' where you can give partner function & BP number as your own number. I hope it works.
    2. Create a new program by copying the Actvity Monitor program and make the small change you are looking for somewhere in that program (I dont know where).
    Sorry, I dont have any concrete solution for you.
    Best Regards,
    Vivek

  • List of service orders including partner functions assigned

    Hi gurus,
    We were trying to get from IW39 report a list of service orders with partners assigned in partner functions, but doesn´t seem to be possible.
    Do you know how to get such a list?
    Best regards,
    VL

    Hi,
    You can use the multi-level list IW40. Use the 'filters' to choose which objects you want to see including partners.
    -Paul

Maybe you are looking for