BADI_LE_SHIPMENT creating Partner function record?

Hi All,
When creating a shipment from VT01N  I am trying to update the partner function field values
PARTNER TYPE (PARVW) and PARTNER under the Partner tab from BADI -  BADI_LE_SHIPMENT in SAVE method.
So I am passing
        ls_new_vbpa-kunnr = partner
        ls_new_vbpa-parvw = partner type
and updating/entering new record with these values to into   CHA_SHIPMENTS_AT_SAVE-NEW_VBPA.
But some reason BADI is not updating values in the table (not creating record in table VTPA)
Can anyone tell me the reason? Thanks for your time.
Thanks.

Hi Murali, the solution is when you fill the data in the structure cha_shipments_at_save-new_vbpa[].
Make sure to fill the field UPDKZ  with an 'I' or 'U' before appending the information.
                                                             "insert or update flag
w_vbpa-mandt = sy-mandt.            " Client
w_vbpa-vbeln = fp_w_vttk-tknum. " Shipment
w_vbpa-parvw = l_c_char_sp.       " Partner
w_vbpa-lifnr = fp_w_vttk-tdlnr.      " Fordwaring Agent      (in my case)
w_vbpa-updkz = l_c_i.                 " Insert entry in table.
APPEND w_vbpa TO cha_shipments_at_save-new_vbpa[].
Best regards.
Nicolas.

Similar Messages

  • What is the need of creating partner functions for sales document type.

    Hi SAP (SD-GURUS),
    Actually we create partner functions  before creating customer ex: sold to party, ship to party, bill to party, and payer.
    These partner functions are going to be copied into sales order while processing sales order.
    Again what is the need of creating partner functions for sales document type.
    Thanks&Regards
    sreenivas peruru

    There are some Partners you could enter at Sales ORder Level. E.g. Sales Person, Employee Responsible, Forwarding Agent, Broker, etc.
    Thus these partner Determination need to be carried out at Sales Order Level & not at Customer Master level.
    So we have to configure partner Determination for various levels e.g. Customer Master, Sales Order, Delivery level etc...
    Hope this helps...
    THanks,
    Jignesh Mehta

  • Cannot Unblock newly created Partner functions

    Hi All,
        I created a partner function with partner function category "End customer" and relationship category "Is End Customer of". However when I save the same the "Block" option is checked automatically and I am not able to uncheck this option (It reverts back to checked on save).
    Also, I am unable to assign this partner fucntion to a Partner determination procedure eventhough I am able to create an access sequence using this blocked partner function. Do you know of any particular reason for this happening?
    Can you please help me with this issue?
    Thanks in Advance,
    Reddy PN

    Great news, thanks!

  • New created Partner Function in BOL as Relation

    Hi all,
    I've created a new Partner Function Z0000033. Everything woks fine.
    But in the BOL Model Browser GENIL_MODEL_BROWSER my new partner function doesn't appear as relation.
    Some other Z-Relations are available but not mine.
    What do I have to do to get my new Partner function as relation in the BOL?
    br
    Jürgen

    There is a method to create such relations.
    You can maintain this relations in table CRMC_ORLSTA_BTIL.
    After that you can read this relations with:
    method get_ost_resp_id.
      data: lr_current type ref to if_bol_bo_property_access.
      lr_current ?=  me->get_partner_entity_pfct( ir_iterator    = iterator
                                                  iv_partner_fct = 'Z0000033' ).
      check lr_current is bound.
      value = lr_current->get_property_as_string( 'PARTNER_NO' ).
    endmethod.
    method get_partner_entity_pfct.
      data: lr_coll          type ref to if_bol_entity_col,
            lr_current       type ref to if_bol_bo_property_access,
            lr_entity        type ref to cl_crm_bol_entity,
            lv_relation_name type crmt_relation_name value 'BTPartner_________',
            lv_partner_fct   type crmt_partner_fct.
      constants:
           lc_main type char5 value '_MAIN'.
      if ir_iterator is bound.
        lr_entity ?= ir_iterator->get_current( ).
      else.
        lr_entity ?= collection_wrapper->get_current( ).
      endif.
      check lr_entity is bound.
      move iv_partner_fct to lv_relation_name+10(8).
      try.
      if iv_main eq abap_true.
        concatenate lv_relation_name lc_main into lv_relation_name.
        rr_entity ?= lr_entity->get_related_entity( iv_relation_name = lv_relation_name ).
      else.
        lr_coll = lr_entity->get_related_entities( iv_relation_name = lv_relation_name ).
        rr_entity = lr_coll->get_current( ).
      endif.
       catch cx_root.
      endtry.
      if rr_entity is not bound               and
         lr_entity->is_locked( ) eq abap_true and
         iv_create eq abap_true.
        rr_entity ?= lr_entity->create_related_entity( iv_relation_name = lv_relation_name ).
      endif.
    endmethod.

  • Create Partner function: VE Sales Employee / structural authorizations

    Hi,
    We are running SAP on ERP2005.
    We are using structural authorizations to limit managers access to HR data - only own employees.
    Now I want a department in our copany who maintain sales orders in VA02 to be able assign a Partner function: VE Sales Employee.
    The System read the employee name from HR infotypes.
    That is ok for the group members in the department if they are given access via authorisation object P_ORGIN.
    The problen is the Manager for the group who have structurel authorizations. She will only be able to assign persons form her own department
    Can anybody help me to sove this problem?
    Thanks,
    c¨,) Finn 

    Hello Finn,
    Did you find a solution or a workaroud on this problem ???
    I have got the same problem and I found nothing on SDN and Markeplace.
    Regards.
    Lionel

  • Creating records for Partner function ?

    Dear all,
    I am creating partner function as a sales partner, can i maintain record for the same?
    Bcoz in condition table there is no field for partner determination.
    Can u plz send me some details regarding the same.
    Thanks & Regards,
    PM

    hi,
       i have got the procedure for commission agent.. just transform the report to your sales partner requirement instead of comm agent requirement.
    hope it helps you.
    For creating commission agent, you have to follow below steps.
    1) Establish Partner Functions for the Commissionee(s)
    Menu Path: TOOLS ->; BUSINESS ENGINEER ->; CUSTOMIZING ->; SALES AND DISTRIBUTION ->; BASIC FUNCTIONS ->; PARTNER DETERMINATION ->; DEFINE PARTNER FUNCTIONS
    Transaction Code: VOPA
    2) Assign the Partner Functions to Partner Procedures
    Menu Path: TOOLS ->; BUSINESS ENGINEER ->; CUSTOMIZING ->; SALES AND DISTRIBUTION ->; BASIC FUNCTIONS ->; PARTNER DETERMINATION ->; DEFINE PARTNER FUNCTIONS
    Transaction Code: VOPA
    3) Create a Partner Procedure for the Commissionees
    Menu Path: TOOLS ->; BUSINESS ENGINEER ->; CUSTOMIZING ->; SALES AND DISTRIBUTION ->; BASIC FUNCTIONS ->; PARTNER DETERMINATION ->; DEFINE PARTNER FUNCTIONS
    Transaction Code: VOPA
    4) Create New Customer Account Group(s) for Commission Agents
    Menu Path: TOOLS ->; BUSINESS ENGINEER ->; CUSTOMIZING ->; LOGISTICS GENERAL ->; LOGISTICS BASIC DATA: BUSINESS PARTNERS ->; CUSTOMERS ->; CONTROL ->; DEFINE ACCOUNT GROUPS AND FIELD SELECTION FOR CUSTOMER
    Transaction Code: OVT0
    5) Assign the Partner Functions to the Customer Account Group(s)
    Menu Path: TOOLS ->; BUSINESS ENGINEER ->; CUSTOMIZING ->; SALES AND DISTRIBUTION ->; BASIC FUNCTIONS ->; PARTNER DETERMINATION ->; DEFINE PARTNER FUNCTIONS ->; GOTO ->; PARTNER FUNCTIONS ->; ENVIRONMENT ->; ACCOUNT GROUP ASSIGNMENT
    Transaction Code: VOPA
    6) Assign the Partner Functions to the Partner Procedure for the Sales Document Header
    Menu Path: Tools ->; Business Engineer ->; Customizing ->; Sales and Distribution ->; Basic Functions ->; Partner Determination ->; Define Partner Functions
    Transaction Code: VOPA
    7) Assign the Partner Functions to the Partner Procedure for the Sales Document Item (OPTIONAL)
    Menu Path: TOOLS ->; BUSINESS ENGINEER ->; CUSTOMIZING ->; SALES AND DISTRIBUTION ->; BASIC FUNCTIONS ->; PARTNER DETERMINATION ->; DEFINE PARTNER FUNCTIONS
    Transaction Code: VOPA
    8) Edit the Pricing Communication Structure (KOMKAZ) to Hold the New Functions (Client Independent)
    Menu Path: Menu Path: TOOLS ->; ABAP WORKBENCH ->; DEVELOPMENT ->; DICTIONARY
    Transaction Code: SE11
    9) Edit MV45AFZZ – userexit_pricing_prepare_tkomk (Client Independent)
    Menu Path: TOOLS ->; ABAP WORKBENCH ->; DEVELOPMENT ->; ABAP EDITOR
    Transaction Code: SE38
    10) Edit RV60AFZZ - userexit_pricing_prepare_tkomk (Client Independent)
    Menu Path: TOOLS ->; ABAP WORKBENCH ->; DEVELOPMENT ->; ABAP EDITOR
    Transaction Code: SE38
    11) Edit MV45AFZB - userexit_new_pricing_vbkd changing new_pricing (Client Independent)
    Menu Path: TOOLS ->; ABAP WORKBENCH ->; DEVELOPMENT ->; ABAP EDITOR
    Transaction Code: SE38
    The following code should be inserted into program MV45AFZZ to allow the system to re-execute pricing if the user makes a change to the relevant partner function (alteration, addition, deletion).
    13) Add the KOMKAZ Fields to the Pricing Field Catalog (Client Independent)
    Menu Path: TOOLS ->; BUSINESS ENGINEER ->; CUSTOMIZING ->; SALES AND DISTRIBUTION ->; BASIC FUNCTIONS ->; PRICING ->; PRICING CONTROL ->; DEFINE ACCESS SEQUENCES ->; MAINTAIN ACCESS SEQUENCES
    Transaction Code: OV24
    14) Create Condition Tables (Client Independent)
    Menu Path: TOOLS ->; BUSINESS ENGINEER ->; CUSTOMIZING ->; SALES AND DISTRIBUTION ->; BASIC FUNCTIONS ->; PRICING ->; PRICING CONTROL ->; DEFINE ACCESS SEQUENCES ->; MAINTAIN ACCESS SEQUENCES
    Transaction Code: V/03
    15) Create an access sequence containing the new tables (Client Independent)
    Menu Path: TOOLS ->; BUSINESS ENGINEER ->; CUSTOMIZING ->; SALES AND DISTRIBUTION ->; BASIC FUNCTIONS ->; PRICING ->; PRICING CONTROL ->; DEFINE ACCESS SEQUENCES ->; MAINTAIN ACCESS SEQUENCES
    Transaction Code: V/07
    16) Create a new condition type
    Menu Path: TOOLS ->; BUSINESS ENGINEER ->; CUSTOMIZING ->; SALES AND DISTRIBUTION ->; BASIC FUNCTIONS ->; PRICING ->; PRICING CONTROL ->; DEFINE CONDITION TYPES ->; MAINTAIN CONDITION TYPES
    Transaction Code: V/06
    17) Add the Condition Type to the Pricing Procedure
    Menu Path: TOOLS ->; BUSINESS ENGINEER ->; CUSTOMIZING ->; SALES AND DISTRIBUTION ->; BASIC FUNCTIONS ->; PRICING ->; PRICING CONTROL ->; DEFINE AND ASSIGN PRICING PROCEDURES ->; MAINTAIN PRICING PROCEDURES
    Transaction Code: V/08
    11) Create Commsission Report ZZCOMMISSION (Client Independent)
    Menu Path: TOOLS ->; ABAP WORKBENCH ->; DEVELOPMENT ->; ABAP EDITOR
    Transaction Code: SE38
    regards,
    Siddharth

  • Create Mass Partner Function (PI) in Vendor

    Hi Guys,
    Please let me know how to create Partner function (PI) to vendors in Mass Maintenance (XK99).
    When I'm creating manually (XK02) its allowing, but in XK99 Vendor Data records to be created I'm getting an error "Field PARZA doesn't have a foreign Key; as a result no intervals are allowed".
    Please suggest me the pocess.
    Thanks in Advance!!!!

    Example to copy all partners roles from a source purchasing org 0001 to a target purchasing org 0002 of a vendor master ABC
    go XK99
    select partner WYT3
    execute
    select "dont change existing data" in tab for changing records
    switch to tab "create new records"
    Enter target vendor number ABC
    enter target purchasing organisation 0002 and add the '='  in front by clicking the button for select options
    do not enter VSR but add the '='  in front by clicking the button for select options
    do not enter plant but add the '='  in front by clicking the button for select options
    enter a target partner role add the '='  in front by clicking the button for select options
    enter target partner counter 001 and add the '='  in front by clicking the button for select options
    section copy from data :
    enter source vendor number ABC
    enter source purchasing organisation 0001
    do not enter VSR
    do not enter plant
    do not enter partner role
    enter source partner counter 001
    Execute
    you get pop-up asking to display or process in background.
    click display.
    select the records to be created (already preselected)
    SAVE

  • Partner function create

    Dear All,
    Can anybody tell me how to create Partner function.
    I want to create :
    1.Sold-To-Party
    2.Ship-To-Party
    3.Bill-To-Party
    4.payer
    Thanks in advance
    Shuvankar

    Hi,
    The sold to party and ship to party etc are called as Customer account groups and you can create then at the path sprologistics generalbusiness partnercustomerdefine account groups and field selection.After creation of these account groups, respective customers need to be created with these account groups . at XD01 or VD01 ( CC level or sales org level).
    In the sales org data of customer you can select the respective partner role and give the number in that field so that the customer will get that role or the customer will have other as this role.
    The basis logic is same as vendor .except the creation of account group .
    the partner roles like CA carrier , shship to party,spsold to party etc can be created at the T CODE OMZ1.
    Regards,

  • How to create Customer Partner Function

    Hi all,
    How do we create Partner function for customer.
    Regards,
    Kishore Kumar Yerra.

    Hi Kishore,
    Have you looked this BAPI?
    <b>BAPI_BUS2001_PARTNER_CREATE_M</b>
    <b>BAPI_BUSINESS_PARTNER_CREATE</b>
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Programmatically delete the Sold-to partner function

    hello CRM experts,
    I am trying to add the Sold-To partner based on the sales organization selection. I am doing the same using CRMV_EVENT on ORGMAN where i am calling the function module which sets the sold-to partner using the FM "CRM_PARTNER_MAINTAIN_SINGLE_OW".
    The code works fine and we are able to see the Sold-to partner in Partners tab, but if the user again selects another organization it creates the another entry for the Sold-To.
    This we don't want. Instead it should delete any previous assigned entry. I tried that using the FM "CRM_PARTNER_DELETE_OB" but that is deleting all the Partner entries. Infact it doesn't give me option of setting the partner function.
    Any idea how we can change or delete the partner settings.
    Thanks in advance.
    Regards
    Rajeev

    Hi!
    Here is the solution how-to delete partner function
    (assume you are in order processing now, for example, in 'ORDER_SAVE' Badi):
    1. Call FM 'CRM_ORDER_READ' & get from ET_PARTNER records that you wish to delete.
    2. Call FM 'CRM_ORDER_MAINTAIN' passing in IT_PARTNER old mapped lines. For each deleted partner function record fill in CT_INPUT_FIELDS[] 1 line as follows:
    REF_HANDLE = <initial value>
    REF_GUID, REF_KIND = GUID & kind of corresponding order header/ item
    OBJECTNAME = 'PARTNER'
    LOGICAL_KEY = concatenated fields values from corresponding IT_PARTNER record:
    REF_PARTNER_HANDLE + REF_PARTNER_FCT + REF_PARTNER_NO + REF_NO_TYPE + REF_DISPLAY_TYPE.
    CT_INPUT_FIELDS[]-FIELD_NAMES must be filled with one record with value FIELDNAME = 'PARTNER_FCT'.
    P.S. You can also use FM ' CRM_PARTNER_TO_DISPLAY_OW' to populate partner fct logical keys.
    Good luck!
    Best regards,
    Alexander Kirillov
    Edited by: Alexander Kirillov on Nov 26, 2009 3:55 PM

  • Change partner function data in PO using EXIT_SAPMM06E_013(MM06E005)

    Hi all,
    I have an issue related to partner functions while creating purchase order.In the user exit MM06E005, we have EXIT_SAPMM06E_013 which is triggered when PO is created from Preq using tcode ME59. There is a table XEKPA in the fn mod EXIT_SAPMM06E_013 which holds the various partner function records corresponding to the PO.
        In our case we get two records in that table, the 2nd   record corresponding to partner function 'BA' (german) /'OA'(ENGLISH). ( U can find these in table 'WYT3' for partner functions where OA/BA is for ordering address of the vendor.) I am trying to modify this record corresponding to 'OA'. But when the PO is created and when I go to Partners tab in ME23N, I am not able to see the change I made in the internal table 'XEKPA' within the exit. Am I missing something while changing or should I go for a totally new exit/BADI for modifying this?
    Please help,
    Thanks,
    steve

    Hi Steve,
    Please try like this.
    DATA: WA_XEKPA LIKE UEKPA,
          WA_IDX   LIKE SY-TABIX.
    READ TABLE XEKPA INTO WA_XEKPA
                     WITH KEY PARVW = 'BA'.
    IF SY-SUBRC = 0.
      WA_IDX = SY-TABIX.
      WA_XEKPA-LIFN2 = '0000600100'.
      MODIFY XEKPA INDEX WA_IDX FROM WA_XEKPA
                   TRANSPORTING LIFN2.
    ENDIF.
    Regards,
    Ferry Lianto

  • Partner Function Determination

    Dear all,
    I want to create partner function for Sales Employee bcoz HR module is not implemented.
    How i can create it?
    is it possible to get any standard report with the help of Partner functon?
    I want sales report with reference to  sales employee, is it possible?
    Also without HR how i create Sales Employee?
    Plz send some solution for the same.
    Thanks & Regards,
    PM

    Hi PM,
    1)First check that u have determined the partner determination
    procedure.
    2)check u have assigned it to the Sales doc type.
    3)Then go to VA05,and enter the "SE" the code u gave
    to Sales Employee Partner functions.
    (For this the SE -customer master record SHOULD be present).
    4)Even after this if u do not get "SE" in the partner function
    field of the Selection criteria,then u need to do this:
    Goto ABAP dictationary(SE11),find out the field for
    "Sales Employees" in the Sales order Header or details  
    table.
    Note the field name and the table name for this field.
    Then ask the ABAPer to modify the input Screen
    for t-code VA05 ,so that it displays the this additional field
    "SE" along with "SP", "SH" ,etc..
    By this u can arrive at the List of Sales Orders by Sales
    Employee..
    For further queries or clarifications, please get to me.
    Thanks and Regards,
    Umesh Karane.
    Thanks ,
    Umesh.

  • Creation of partner functions for customer master with LSMW

    Hello,
    I try to create partner functions together with a customer via Batch Input in LSMW.
    Object: 0050, method: 0000, program name: RFBIDE00, program type: B.
    I use the structure BKNVP (Customer master partner functions) to create a new partner and set values for the fields KTONR and PARVW.
    When I start the batch input the fields are filled in correctly in a new dynpro. After the confirmation of these values the dynpro changes back to the partner functions sscreen, but the value for KTONR isn'n being transferred. So I get an error message.
    Is it only possible to update partner functions with that BI or what is going wrong ?
    Thanks in advance and regards
    Alex

    Hi Alex,
    Could you specify what error message you are getting?
    Thanks!
    Rudra

  • Partner functions in Customer master

    Hi,
    Can we maintain partner functions with out maitain customer sales area data, we need to maintain only general and company code data.
    Business scenario - 1. We have some certain customers like carrying only address purposses we dont need maintain company code and sales area, so is sytem creates partner functions once save this type of customers.
    2. same as said in point one some customers need general and company code data, dont need sales area, can system creates partner functions for this.
    regards
    Satish

    Hi Satish C,
                As already expressed by all other friends,
    Just would like to add,
    SAP has given 3 levels to maintain cusotmer relevant data ( General , Company Code & Sales area) & you are already aware of the same.
    But each level has its own importance & it can be based on how you would like to use the respective partners in specific transactions.
    for eg:
    in Billing- Bill to / Payer is required to have Company Code data & Ship to doesnt need to have Company Code data.
    In FI transactions- Customer doesnt need to have Sales area data.
    similarly, it all depends on how you want to use.
    NOte: if any partners using in Sales documents, should have General & Sales area data is mandatory. Company data is in billing.
    Just to maintain the address, if its ok with your client, you can go for different partner function ( if required in sales transactions) & add in sales area data.
    Regards,
    Reazuddin MD

  • Creation of new partner function through /AFS/BAPI_SALESORD_CHANGE

    Hi all,
    Can anybody help me to create partner functions through the bapi /AFS/BAPI_SALESORD_CHANGE ??
    In the selection-screen we will pass the vbeln, PARVW and kunnr values ??
    Any kind of little help is very much appreciated.

    thats all you need to pass to change the partner type like bill to or ship to.
    You dont create partner functions from this bapi. This is to change the sales order and the details in sales order. Creating partner function comes under SPRO.
    Ask you sales functional people to create new partner function

Maybe you are looking for