Vendor Ppartner function used in PO

Dear Gurus,
I want to develop ABAP program for printing of PO where i used Vendor partner function.
For that I want to know the table name where information related to partner funcion stored.
Kindly let me know the flow of the data.
Thaking in advance
Regards
Soumen

partners to a vendor master are stored in table WYT3

Similar Messages

  • Benefits of using vendor partner function

    Hello Experts:
    I understand the general use of vendor partner function. But what are the benefits of using vendor partner function? Is it for ease of reporting? Is there a functionality down the line that will not be possible if a vendor partner function is not used?
    The reasoning for this question is, I am at a client that has the general association of vendor and remit to addresses. However, they also have a scenario where they have one main vendor, but there are 30+ remit to addresses. These remit to addresses are dependent on the plant that placed the order. As an example, the vendor is AT&T, but the plant that uses the service in Caifornia sends the check to a remit to address in Calif. The plant in Arizona, sends their check to another AT&T remit to address in AZ.
    My current solution is, for the client to create the partner function that are more straight forward, one main vendor and one remit to address. As for the vendors that have multiple remit to addresses, i am opting out not to create the partner function. Which is why I am asking if there is an issue not using vendor partner function.
    Thanks in advance for your help!!

    It is certainly possible to work without partner functions in SAP.
    It is almost impossible  to work without partner functions in SAP if you do business with global players and need some comfort for your processes.
    It is impossible to work without partner functions if oyu have to do Intrastat reporting with SAP and your goods supplier is located in a different EU country than your vendor.
    In your special case with AT&T without partner functions, you would enter the invoice to your main vendor, the payment run then creates a cheque to your main vendor (and you then use Microsoft word to create a lable with the remit to address that you stick over the SAP printed address on the cheque ..... how does Finance department know that it has to create this lable?.....how will you be able to trace who got the cheque? ..........this is not a good practice)
    Especially in this case the partner funtions gives the real benefit.
    partner funtions are not for ease of reporting, as You cannot run analyses for any of the other partner roles supplied in the standard system.
    if you use invoicing party, then  the invoicing partyu2019s account will be charged instead of the vendoru2019s.
    more can be found: http://help.sap.com/saphelp_erp60_sp/helpdata/en/a1/7b373944f7a97ce10000000a114084/content.htm

  • Error while creating vendor contact person using vmd_ei_api

    Hi,
    while craeting vendor contact person using maintain_bapi of vmd_ei_api class iam getting error like 'Specify address number or address handle'.
    code :
    CALL FUNCTION 'BAPI_PARTNEREMPLOYEE_GETINTNUM'
    EXPORTING
    quantity = 1
    IMPORTING
    * RETURN =
    contactid = lv_contactid
    * QUANTITY =
    * TABLES
    * CONTACT =
    ls_contacts1-task = 'I'.
    ls_contacts1-data_key-parnr = lv_contactid."ls_knvk-parnr.
    ls_contacts1-data-abtnr = '0002'."ls_knvk-abtnr.
    ls_contacts1-data-pafkt = '02'."ls_knvk-pafkt.
    ls_contacts1-data-parau = 'BNotes'."ls_knvk-parau.
    ls_contacts1-datax-abtnr = 'X'.
    ls_contacts1-datax-pafkt = 'X'.
    ls_contacts1-datax-parau = 'X'.
    * Inserting Phone ,Fax and email.
    ls_phone-contact-task = 'I'. "Phone
    ls_phone-contact-data-telephone = '89655696569'.
    ls_phone-contact-data-extension = '778548'.
    ls_phone-contact-datax-telephone = 'X'.
    ls_phone-contact-datax-extension = 'X'.
    APPEND ls_phone TO lt_phone.
    ls_phone-contact-task = 'I'.
    ls_phone-contact-data-r_3_user = 'X'.
    ls_phone-contact-data-telephone = '89845589369'.
    ls_phone-contact-data-extension = '858588'.
    ls_phone-contact-datax-updateflag = 'X'.
    ls_phone-contact-datax-telephone = 'X'.
    ls_phone-contact-datax-extension = 'X'.
    ls_phone-contact-datax-r_3_user = 'X'.
    APPEND ls_phone TO lt_phone.
    ls_fax-contact-task = 'I'.
    ls_fax-contact-data-fax = '8896589'.
    ls_fax-contact-data-extension ='44521'.
    ls_fax-contact-datax-fax = 'X'.
    ls_fax-contact-datax-extension ='X'.
    APPEND ls_fax TO lt_fax.
    ls_contacts1-address_type_3-communication-phone-current_state = ' '.
    ls_contacts1-address_type_3-communication-phone-phone = lt_phone.
    ls_contacts1-address_type_3-communication-fax-current_state = ' '.
    ls_contacts1-address_type_3-communication-fax-fax = lt_fax.
    ls_contacts1-address_type_3-communication-fax-current_state = ' '.
    ls_contacts1-address_type_3-communication-fax-fax = lt_fax.
    ls_contacts1-address_type_3-task = 'I'.
    ls_contacts1-address_type_3-POSTAL-data-FIRSTNAME = 'Roger'.
    ls_contacts1-address_type_3-postal-data-lastname = 'Fedrer'.
    ls_contacts1-address_type_3-POSTAL-datax-FIRSTNAME = 'X'.
    ls_contacts1-address_type_3-postal-datax-lastname = 'X'.
    APPEND ls_contacts1 TO lt_contacts1.
    ls_vendor1-header-object_instance = p_lifnr.
    ls_vendor1-header-object_task = 'M'.
    ls_vendor1-central_data-contact-contacts = lt_contacts1.
    ls_vendor1-central_data-contact-current_state = 'X'.
    ls_vendor1-central_data-central-data-adrnr = ls_adrnr.
    ls_vendor1-central_data-central-datax-adrnr = 'X' .
    APPEND ls_vendor1 TO lt_vendor1.
    gs_vmds_extern-vendors = lt_vendor1.
    DATA:gs_succ_messages TYPE cvis_message,
    gs_vmds_error TYPE vmds_ei_main,
    gs_err_messages TYPE cvis_message,
    gs_vmds_succ TYPE vmds_ei_main.
    * Call the Method for creation of Vendor.
    CALL METHOD vmd_ei_api=>maintain_bapi
    EXPORTING
    is_master_data = gs_vmds_extern
    IMPORTING
    es_master_data_correct = gs_vmds_succ
    es_message_correct = gs_succ_messages
    es_master_data_defective = gs_vmds_error
    es_message_defective = gs_err_messages.
    if sy-subrc  = 0.
    commit work.
    Please suggest which fields else i have to pass??

    Hi Abhijeet,
    here i am showing you some scn help to use maintain bapi of vmd_ei_api class, i think you are missing some data to be uploaded along with there are methods in lsmw, bdc too for this, please go through below links carefully , i hope you will able to solve your problem.
    Vendor Master Upload Program - ABAP Development - SCN Wiki
    unable to vendor master record update using class vmd_ei_api
    Creation of Vendor - VMD_EI_API

  • Access Sequence for Vendor Partner Function

    The business requirement is to display Vendor name for a specific product on UI. Approach till now: Partner function for Vendor can be defined. Relationship between vendor and product can be defined. The following query remains:
    Can someone help me which access sequence (if any existing) can be used for determination of Vendor Partner Function for a Product?
    Any guidance related to the same is welcome.
    Thanks.

    thanks.

  • Vendor invoice creation using BAPI BAPI_ACC_DOCUMENT_POST

    Hi,
    I am trying to create vendor invoice(FB60) using BAPI_ACC_DOCUMENT_POST.
    Could anyone please let me know what all mandatory fields we have to pass in vendor item and header to create this ?
    Regards,
    Anubhuti Pandey

    Hi,
    Please call the FM BAPI_ACC_DOCUMENT_POST and try with the following parameters:
    Function module to post the accounting document
          CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'           
    "      EXPORTING
              documentheader    = w_documentheader                                          
    "      TABLES
              accountgl               = i_accountgl
              accountreceivable = i_accountreceivable
              accountpayable     = i_accountpayable
              currencyamount    = i_currencyamount
              return                     = i_return
              contractitem           = i_contractitem.
    The required fields in the header document:
        w_documentheader-bus_act    
        w_documentheader-username    = sy-uname.                                             "Username
        w_documentheader-header_txt 
        w_documentheader-comp_code 
        w_documentheader-doc_date  
        w_documentheader-pstng_date  = sy-datum. 
        w_documentheader-trans_date                                 " Transaction date value as per document date
        w_documentheader-fisc_year   = sy-datum(4).      
        w_documentheader-doc_type      
    Pass the necessary information in the account GL and accounts payable.
    I hope this helps you in some way.

  • Vendor partner functions

    Hi SAP gurus,
    I have 3 scenarios of Vendor partner function.
    So please help me to configure this.
    In scenarios 1 & 2 procurement is made from overseas source and supplier, in scenario 1  source & suppliers are different; In scenario two source & supplier are same.  In scenario three material is procured locally with possibility of cash purchase or is done under barter  scheme.
    Waiting for reply.
    Points will be rewarded for helpful answer.
    Regards,
    Ravi.

    In scenario 1 source & suppliers are different
    How they are differnt if the ordering address is different then use "OA" partner function in the vendor master record
    If invoicing party is different then maintain "PI" partner function in the vendor master record.
    In scenario two source & supplier are same
    No need to maintain partner function.Since same vendor is playing all the roles.

  • Problem in update PO's partner function using BAPI_PO_CHANGE

    Hi All,
    I have some problem when i try to update PO partner function using BAPI_PO_CHANGE.
    If i update partner function where business partner number is vendor (eg. GS) , it run successfully. But when I try to update partner function where business partner number is personnel number (eg. CS, VW, etc) , it was failed. And BAPI return message is "Please enter a partner role".
    Please advice.
    Thanks

    Hi,
             are you executing BAPI_TRANSACTION_COMMIT after BAPI_PO_CHANGE?
    Check this code for PO update..
    PARAMETERS: p_ebeln LIKE ekko-ebeln.
    DATA: t_poitem LIKE bapimepoitem OCCURS 0 WITH HEADER LINE.
    DATA: t_poitemx LIKE bapimepoitemx OCCURS 0 WITH HEADER LINE.
    DATA: t_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
    t_poitem-po_item = '00010'.
    t_poitem-net_price = '17.00'.
    APPEND t_poitem.
    t_poitemx-po_item = '00010'.
    t_poitemx-net_price = 'X'.
    t_poitemx-po_itemx = 'X'.
    APPEND t_poitemx.
    CALL FUNCTION 'BAPI_PO_CHANGE'
    EXPORTING
    purchaseorder = p_ebeln
    TABLES
    return = t_return
    poitem = t_poitem
    poitemx = t_poitemx.
    COMMIT WORK.
    <b>Reward points</b>
    Regards

  • Does SRM support Vendor Partner Functionality from ECC?

    Does SRM support or sync up with Vendor Partner functions in ECC such as OA, VN, PI, etc.?
    Initial look at SRM does not suggest that SAP has made it easy to replicate partner functions in SRM.

    Hi,
    See these related threads:
    Partner function Payee in SRM
    Adding Partner Function to R/3 PO from SRM in Classic using BADI
    BR,
    Disha.
    <b>Pls reward points for useful answers.</b>

  • Vendor partner function

    Hi,
    I have 2 questions:
    1. for the partner roles like goods supplier, invocing party, order party, etc do all these need to have different account groups , example one account group for goods supplier, one account group for invoicing party, etc , etc.
    or these can be accomodated in one account group. i have 2 types of vendors domestic and foreign. thinking of having 2 account group ZDOM and ZIMP.
    can i have partner function of domestic vendors in ZDOM and partner functions of foreign vendors in ZIMP.
    2. if we have a partner function of invocing party (IP), while doing MIRO automatically the vendor assigned to the IP partner roles get defaulted.
    how the system understands this? I want to know where this logic is there.
    Regards

    Hi,
    It seems you have not picked the question correctly.
    If i am using the same account group where the vendor schema is mandatory, it will be required to be put in IP also.
    you cannot do away with it. the parameter what are there in a particluar account group,  all always applicable to all the vendor created in that account group.
    your comments:
    u will assign a pricing procedure to the IP only in case u need a certain type of conditions which are not avilable in the standard pricing procedure ......................and which ever conditions are selected in the po then these are used in MIRO
    becaues in miro you will be verifying the invoice with refer. to some documents and system picks the conditions from po
    please give a relook into your answer.
    *my comments:
    vendor partner function is at Header level where as conditions can be at header and item levels.
    the conditions will be applicable of VN vendor. how can you have different conditions for main vendor and some different for partner vendor.
    if it is possible let me know how can I give value for the conditions maintained  for partner function.
    Regards
    Edited by: Rashmi Mahajan on Feb 16, 2008 6:42 AM

  • How to CIF vendor partner function

    Hi All,
    Can someone explain how to CIF the vendor partner function into SNC ? Does the standard Integration model work for it ?
    Regards
    Vivek Jaju

    Hi Vivek,
    In ECC we have CIFLOC01 (EXIT_SAPLCLOC_002) user exit for CIF location enhancement but i don't think so this will help you.
    Also there is no field in SNC location master that we can use to stored this partner function data in SNC(may Z-field can be created but it is not good)
    What is the requirement for which you need partner function information in SNC?
    Regards,
    Nikhil

  • Configuration of Vendor Partner Function

    Dear All,
    Please provide the configuration steps for vendor partner functions.
    Regards,
    Venkat.

    Hi venkat
    Partner Function:
    In Purchasing, you have contact with various business partners (e.g. vendors or carriers).
    For each account group, you can define which roles the business partners may assume.
    Ex: You can specify that certain vendors may function as ordering addresses only - not as invoicing parties.
    You can use partner roles both within a corporate group and to define relationships between independent firms.
    Yes, when you assign partners for the main vendor. It will display all the partnering vendors for the Main vendor. Subsequently you will receive the invoices from the respective vendors.
    And for that you need to configure the partner determination
    in SPRO --> MM --> Purchasing -->
    --> Partner Roles
    Define partner roles
    Define permissible partner roles per account group
    --> Partner Settings in vendor master record
    Define partner schemas
    Assign partner schemas to account groups
    --> Partner Settings in Purchasing document
    Define partner schemas
    Assign partner schemas to document types
    Follow the steps to complete the partner determination configuration setup.
    And then create a vendor master record for the each account group (each vendor can have different vendor account group) and choose the respective partner account group and then create.
    And maintain, the partner vendors in the main vendor (which is created with account group : 0001, main vendor partner role is VN).
    and
    then you can see the partners in the Partner function in the Main Vendor Master record.
    Pls follow the steps accordingly, you will get it.
    Reward if useful
    Regards,
    Shawn

  • Extend vendor - partner function

    Hi,
    when we extend the vendor in XK01 using reference function from pur org A to pur org B, can the partner function such as the additional remit to will be copy to extended pur org as well?
    I try to do that, but it can't.
    Anyone has any idea?

    Dear Janice,
    check out u have config as per blw
    The procedure for setting partner functions:
    Step 1
    Vendor Account Group
    IMG->LOGISTICS GENERAL->BUSINESS PARTNER->VENDOR->CONTROL ->DEFINE
    ACCOUNT GROUPS AND FIELD SELECTION
    Step 2
    Defining Partner Schemas
    IMG->MATERIALS MANAGEMENT->PURCHASING->PARTNER -> DETERMINATION -
    PARNER SETTINGS IN VENDOR MASTER RECORD
    ->DEFINE PARTNER SCHEMAS
    Step 3
    Assign Partner Schema
    IMG->MATERIAL MANAGEMENT->PURCHASING->PARTNER DETERMINATION->PARTNER
    SETTINGS IN VENDOR MASTER RECORD->DEFINE PARTNER SCHEMA
    u201E« THEN ASSIGN PARTNER SCHEMA
    Step 4
    Define Permissible Partner Role Per Account Group
    IMG->MATERIAL MANAGEMENT->PURCHASING->PARTNER DETERMINATION -
    PARTNER ROLES ->DEFINE PERMISSION PARTNER ROLES
    If you want a partner schema for your own document type then define your partner schema and assign to document type using the below mentioned path.
    IMG->MATERIAL MANAGEMENT->PURCHASING->PARTNER ->DETERMINATION -
    PARTNER SETTINGS IN PURCHASING DOCUMENTS ->DEFINE PERMISSION
    PARTNER SCHEMAS
    And then
    ASSIGN PARTNER SCHEMAS TO DOCUMENT TYPE
    Once you have this configuration then you change your vendor in easy access menu (XK02-select partner function) define the partner roles
    rgds,
    nanthakumar

  • SQL report region source to call a pl/sql function using DB link

    Hi - I have a pl/sql function fn_dbtype(id NUMBER) defined in database X. The pl/sql function executes couple DML statements and returns a string (a SELECT query). I am able to call this function using SQL Plus (Connected to Database X) as below and it works fine:
    declare
    vSQL VARCHAR2(100);
    begin
    vSQL := fn_dbtype(1);
    end;
    The DML operations completed fine and vSQL contains the "Select" query now.
    In APEX:
    I am trying to create a SQL report in APEX using SQL query(PL/SQL function returning a sql statement) option. I am trying to figure out what to put in the region source so that the output of the "Select" query is displayed in the report.
    Moreover APEX is hosted in a different database instance. So I would need to call this pl/sql function using a DB Link.
    Please let me know what I need to put in the region source to execute the pl/sql function which returns the "Select" query thereby displaying the query output in the report. Thanks.
    Edited by: user709584 on Mar 19, 2009 2:32 PM
    Edited by: user709584 on Mar 19, 2009 2:34 PM

    try something like this:
    return fn_dbtype(1)@dblink;

  • How do I pass an array of structs to a C function using the dll flexible prototype adapter?

    What I want to do is pass into a C dll function a variably sized Array of structs of type TPS_Data. My Code compiles but when I run it in TestStand, I get an error -17001; Program Error. "Cannot allocate 0 size buffer Error in parameter 2, 'OpenFrdData'."
    I've allocated the Array of structs, and all of the information is there before I call my function, so is it my prototype? Or am I asking too much of the DLL Flexible Prototype Adapter to pass an Array of Structs?
    I can pass in a single struct of type TPS_Data and that works, but not an array.
    Here's the relevent code:
    typedef struct TPS_DATA
    char Report_Number[256];
    char System_Name[256];
    char Open_Date[256];
    char UUT_Part_Number[256];
    char UUT_Serial_Number[256];
    char UUT_Name[256];
    char Open_Employee_Name[256];
    char Open_Employee_Number[256];
    char Close_Employee_Name[256];
    char Close_Employee_Number[256];
    char Close_Date[256];
    } TPS_Data;
    typedef struct TPS_DATA_ARRAY
    TPS_Data DataRecord;
    } TPS_DataArray;
    long __declspec(dllexport) __stdcall OpenDialog (CAObjHandle Context, TPS_DataArray *TpsData[], const char *psFaultStr, char *sComments, const int nCount);

    OK,
    I can pass the data to the DLL function, using the following types:
    typedef struct StringArrayType
    char string[10][256];
    } StringArray;
    typedef struct MultiStringArrayType
    StringArray Record[10];
    } MultiStringArray;
    void __declspec(dllexport) __stdcall ATP_TestStructPassing(StringArray Strings)
    return;
    void __declspec(dllexport) __stdcall ATP_TestMultiStructPassing(MultiStringArray *Strings)
    return;
    But when the MultiStruct function Exits, TestStand reports an Error:
    -17501 "Unexpected Operating System Error" Source: 'TSAPI'
    There doesn't seem to be a way around this, and once the error occurs, I have to force quit TestStand. I've included the sequence file, and the dll code can be compiled from the fun
    ctions shown above.
    Any thoughts on how to get around this error would be greatly appreciated.
    Attachments:
    StructArrayPassing.seq ‏16 KB

  • How can i do the upload file function using tomcat library??

    how can i do the upload file function using tomcat library??

    Did you read the document for the library?
    If you can't figure it out, why don't you ask the people who provide the library?
    This has nothing to do with JavaMail.

Maybe you are looking for