VA02 partner function

Hai all,
             We have a requirement, in VA02 : at Partner functions, when user changes ship-to-party, then automatically
bill-to-party and payer should be filled with ship-to-party's customer code in redetermine screen.
Pls, suggest us for any enhancements/exits/BADI's.
Thanks in advance.

Hi All,
This is resolved by self.
I didn't found any exits suitable to this req .
i did enhancement for this req  details are given below.
FM: SD_PARTNER_DATA_GET
code: ENHANCEMENT 1  ZEN_SHIPTOPARTY.    "active version
   DATA : SHPART  TYPE VBPA-KUNNR , " ship to party
        SOLDPARt TYPE VBPA-KUNNR , " sold to party
        PAYPART TYPE VBPA-KUNNR ,  " payer
        BILLPART TYPE VBPA-KUNNR , " bill to party
        ADDRESSNO TYPE VBPA-ADRNR,
        TABIX TYPE INDEX.
    IF ( sy-tcode = 'VA01' OR  sy-tcode = 'VA02' ).
      IF screen-name = 'MESSTXT8'.
        READ TABLE  fet_xvbpa WITH KEY parvw = 'AG'.
           IF SY-SUBRC = 0.
            soldpart = fet_xvbpa-kunnr .
           ENDIF.
         READ TABLE  fet_xvbpa WITH KEY parvw = 'RE'.
            IF SY-SUBRC = 0.
              billpart = fet_xvbpa-kunnr.
            ENDIF.
         READ TABLE fet_XVBPA WITH KEY PARVW = 'RG'.
            IF SY-SUBRC = 0.
              paypart = fet_xvbpa-kunnr.
            ENDIF.
         READ TABLE fet_XVBPA WITH KEY PARVW = 'WE'.
            IF SY-SUBRC = 0.
              shpart = fet_xvbpa-kunnr.
              addressno =  fet_xvbpa-adrnr.
            ENDIF.
IF shpart NE soldpart.
  LOOP AT fet_xvbpa.
    IF  fet_xvbpa-parvw = 'RE'.
      fet_xvbpa-kunnr = shpart.
      fet_xvbpa-adrnr =   addressno.
          MODIFY  fet_xvbpa INDEX sy-tabix.
    ENDIF.
    IF fet_xvbpa-parvw  = 'RG'.
      fet_xvbpa-kunnr = shpart.
      fet_xvbpa-adrnr =   addressno.
        MODIFY  fet_xvbpa INDEX sy-tabix.
    ENDIF.
  ENDLOOP.
  GVT_LOCAL_MEMORY-XVBPA[] = FET_XVBPA[].
  MODIFY  GVT_LOCAL_MEMORY index 1.
ENDIF.
ENDIF.
ENDIF.
ENDENHANCEMENT.
Thanks,

Similar Messages

  • Change default value of Partner Function in VA02

    Hi all,
    Can anyone please help me solve the following issues with Partner Functions in VA02:
    1. How do I change the screen property (make it modifiable) of the Partner in the Partners tab for an auto-generated Free goods line item?
    2. How can I change the default value (auto-pulled from KNVP) of the Partner Function Ship-To party for a Free Goods line item? Where do I apply the ABAP code?
    We tried to modify thru userexit USEREXIT_FIELD_MODIFICATION and USEREXIT_MOVE_FIELD_TO_VBAP in MV45AFZZ but we can't seem to make it work. Also, the table control of the partners tab exists in SAPLV09C and not SAPMV45A.
    Where do we apply the changes?
    Points will be rewarded.
    Thanks for any help in advance!
    Kat

    Hi !! KT,
    For your auto generated line of free goods item note down what is the item catergory determined. Next use t.code VOPAN, click on radio button 'Sales Document Item' and click on change tab.
    Now from the left hand margin options click on 'Partner determination Procedure Assignment', from 'position' go to the item catergory noted down, now note down the partner determination procedure assigned to it.(entry just next to your item category).
    Next, from the left hand margin double click on 'Partner determination procedures'. Select the partner determination procedure just noted down, from the left hand margin now click on 'Partner functions in procedure'. Scroll down exactly to the partner function you want to work upon, here unselect the tick under 'Non modifiable'. This way you can now modify the partner.
    For changing the default value after doing the above mentioned exercise you can overwrite default value.
    Provide your feedback.
    Regards,
    PATHIK

  • User exit to change the partner function in VA02

    Hi experts,
    I have a requirement to increment Volume field value everytime when the end customer ( partner function) is modified  at header and item level.
    Can you suggest some exits ?
    PLease suggest

    Hi
    Try with the following exits.
    EXIT_SAPLV46H_002
    EXIT_SAPLV46H_001
    Thank you,
    Sekhar.

  • Multiple bill to partner function in sales order

    How can a partner function be setup that it can appear more than once in a sales order ? 
    Need to make a sales orders with more than one "bill to partner".  When I add the same partner function with another customer in the header of the sales order I get error message VPD012  :  "partner function ZX can only occur 1 times in procedure ZEXP (sales document header) .
    I searched OSS,  and debugged for a while to try to find where that "1" is coming from. 
    In function SD_PCHECK_PARVW_COUNT_OK,  a counter is set to "1" based on the field TPAER-PAREI (line 86).  Allthough the flag "unique" is not set in partner function ZX, I get this error.
    Some further in the function, there is the comment :
    102     *     currently uniqueness of a partner is mandatory in sales docs, so
    103     *     if no CAS-Doc, partner has to be unique if not AA or AW
    Perhaps, in sales orders it is not at all possible to use multiple partners with the same partner function in sales orders ?
    Anyone having experience with this ?
    Thanks,

    Hi Dries,
    Even after you created your order you can maintain different bill to party.
    Go to VA02 screen
    Enter your order number.Enter.
    Goto item details Partners tab:
    Now all the details are in editable mode.enter your bill to party.Make sure your bill to party is in same sales area and company code as of sold to party.After entering the taxes will be redetermined message will come.
    Enter.
    Save.
    Now You do the same for all other items.
    Regards,
    Mohan.

  • Authorisation at sales order partner function

    Hello All,
    The scenario is that there are group of users who have the authorisation to change delivery and assign a changed vendor (in partner function) at item level.
    Now this group even requires the authorisation to do this at sales order line item level (in partner function), so that the data is alike in sales order as well as delivery.
    My problem is, how to restrict the authorisation to only sales order line item level for partner function tab in VA02.
    An early help would be appreciated.
    Thanks and regards,
    AK

    Are we allowed to challenge the requirement ?
    Why does it bother you that the partners are different on sales and delivery docs ? Assuming you have delivery-related billing the partners on the billing doc will be those from the delivery.
    I don't like these automatic updates in the backgrounds, you will run into exceptional cases where you specifically do not want it to happen.
    Your authorization is set up not to allow these users to change the sales order. That is for a reason. Can't you put a procedural solution in place, some way contact the persons who do have access ? Could do that even via workflow.
    regards
    Rad.

  • Partner function in header level of sales order

    Hi All,
    During the sales order create/change (VA01/va02).
    Depending upon the business unit i want to populate partner function.
    I have modified the user exit "MV45AFZZ - userexit_save_document_prepare " and userexit_save_document .
    i tried both the exit.
    During debugging its deleting from the XVBPA table but its not reflecting in the final screen.
    in final screen its showing the partner function from master data it is not updating from the exit.
    << Moderator message - Everyone's problem is important >>
    Thanks in Advance.
    Edited by: Rob Burbank on Nov 11, 2010 3:49 PM

    you can populate  XVBPA-UPDKZ = 'D' for the row you want to delete from XVBPA.
    I Hope it will work for you.
    Thanks
    Raj

  • Regarding finding out Partner function based on Sales Order/Output Type

    Hi All,
    <b>I have a issue in finding out Partner function[PARVW],  Message partner[PARNR], Message transmission medium[NACHA], Teletex number[TELTX], User name[USNAM], Message processed manually[MANUE], Country Key[TLAND] and some other fields all are related to NAST table.</b>
    Actually we have one script which is already working when we run from from <b>VA02/03</b> for single order.
    When we execute from <b>VA02/03</b> all <b>NAST</b> table entries are filled up and by using those entries we are fetching remaining entries and displaying them in Output.
    Now we are developing another program where we will have a selection screen with <b>Sales order, Output Type & Order Type</b> and execute the program and then we will get list of sales orders in <b>ALV list output</b> with check boxes before every record.
    Now if we select one (or) multiple records from there and click on Print Prevview button i am calling above <b>SAP Script Print Program</b> but now in that P.Program we will not have any <b>NAST</b> table entries other than Sales Order and Output Type those can be moved to [<b>NAST-OBJKY, NAST-KSCHL</b>].
    But here what about other fields in <b>NAST</b> table like <b>PARVW, PARNR, NACHA, TELTX, USNAM, MANUE, TLAND</b> etc.
    How can we get them as we are exclusively using those other <b>NAST</b> table entries in above <b>SCRIPT/Print Program</b>.
    Can anybody solve this issue!
    Thanks in advance.
    Thanks & Regards,
    Prasad.

    Check this FM
    WFMC_MESSAGES_SELECT
    example
    tables : nase.
    constants: appl     like nase-kappl value 'V2'.
    select-options:
      rg_nacha  for nase-nacha default '1',
      rg_kschl  for nase-kschl.
    ranges: rg_objky for nast-objky.
    data:
    msgs_1 like msg0   occurs 100 with header line.
    *-Fill Object Key
    *-Execute fm
    call function 'WFMC_MESSAGES_SELECT'
         exporting
              pi_application = appl
              pi_processing  = '1'
         tables
              ri_medium      = rg_nacha
              ri_type        = rg_kschl
              ri_object      = rg_objky
              tx_messages    = msgs_1.

  • Partner Function Address change at line item level - Item Partners checkbox

    Hi guru, we have a requirement that we need to change the address for partner function at line item level without changing the partner number. Currently the ship-to partner function address is automatically coming from the header although the number is modifiable but not the address (when double click into the partner number, the pop-up is grayed out). It is probably because the Item partner check box for the shipto partner is not checked (field name: SD_PARTNER_POSFLAG). However that field is not modifiable in VA02 either.
    If the shipto partner number is overwritten, then the item partner check-box is automatically checked and allows address chanage. Is there a way in the configuration that can default the 'item partners' checkbox for certain partner so the address can be changed without the need to overwrite the account?
    Any advice is appreciated.
    Thank you.

    If the item level ship-to party is derived from header partner function, but you want to change the address at item screen rather than header level.  On item screen, enter the same function, the same number again in a new line, "item partner SD_PARTNER_POSFLAG" is then ticked. Then proceed to the address change.
    No need to do modification.

  • Userexit  for partner function changed

    What is the userexit for partner function changes in VA01 or VA02.

    Hi,
    Please check this:
    EXIT_SAPLEINM_002
    Thanks and best Regards,
    Suresh

  • 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

  • Partner function search help

    Hi all,
    I have created a field(ZZ_XXX) on VA02 screen.
    I have created dataelement for this field using PARVW as domain.
    For this field i would like to have F4 search help, it should show all available partner functions (ex: sold-to-party, billing,etc....)
    Is there any search helps for this or do i need to create a new one, if so how to create it. I mean by using which table.
    Thanks in advance,
    regards,
    NarsiReddy.

    Please try this:
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR <field_name>
        SELECT partner_fct  FROM <config_tab>
      INTO TABLE SearcH_tab.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield     = 'PARTNER_fct'
          dynpprog     = sy-cprog
          dynpnr       = sy-dynnr
          dynprofield  = ' '
          window_title = text-006
          value_org    = 'S'
        TABLES
          value_tab    = <config_tab>
          return_tab   = ret_tab

  • 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

  • Automatic assignment of Partner Function (Dealer) based on Postal Code?

    Hi Experts,
    We are realizing a project in the Bathroom-Product Industry. Responsible for the service to the end-clients are authorized dealer. When creating a service ticket the responsible dealer has to be assigned automatically to the ticket on the basis of the postal code where the IBase (the product) is installed.
    The process is:
    1. The client is calling the Interaction Centre and first the IC Agent has to identify the account and the Installed Base (The     installed base contains the postal code where the product of the client is installed) of this account.
    2. An Interaction Record is created to record this inbound call.
    3. Afterwards a Service Ticket is created as a follow-up Document of the Interaction Record. In the moment of the creation of the Service Ticket the correct dealer has to be assigned automatically to the Service Ticket (as a Partner Function not as a Service Organization) on the basis of the postal code of the installed base.
    I have the following question! Which are the steps to assign automatically a Business Partner Function to a Service Ticket? We also need to create a Z-Table with the postal codes for which every dealer is responsible.
    Example:
    Dealer 1 is responsible for the postal codes: 08040 - 08045 and 08056 - 08059. If a client is calling and his product (Installed Base) is installed in Postal Code 08042 or 08054 the dealer 1 has to be assigned to the service ticket.
    I hope I could make myself clear ;-)? Anybody can give me a hint how to do that? What are the basic steps?

    Slightly similiar, originally being an R/3 customer before implementing CRM our dealer equated to sales office.
    In the CRM Org model (PPOMA_CRM) in the attributes of the sales office we entered the Regions & Postal codes for that dealer (pain in the arse to do) and in CRM the sales office in the org creates a BP.
    We used a org rule for the IR record based on country, region, postal code to determine the appropriate sales org, DC, div, and sales office based onthe zip code.  We created a custom partner function to represent the partner number of the  BP from the org model.  Then we configured a custom relationship "ZORG" "Is partner of sales office" and went into the BP master and assigned the actual dealer number as a partner to BP from the org model that = sales office.  From that we configured a custom access sequence to pull the actual dealer number from the org model office relationships.
    We looked at territory management, but our dealer is an "org BP" and territory management appeared to want to drive to a person BP number.

  • Problem in creation of partner function creation.

    Hi all,
        During customer Master upload using LSMW direct method, Iam getting this problem.
    while creating Sales view using XD01, three partner function VE (Sales Representative), SH (Ship-to party), ZI (Front Office) are getting displayed in the last tab of sales view creation.
    Because of some customizing,value for SH is getting populated automatically. But the values for VE & SH are not getting populated from the flat file.
    But the values are present in the respective field (KTONR) and able to see in the display convert data.
    If I enter the manual value during runtime in LSMW, it accepts the value. Since it involves huge amount of data, manual entry for records is not possible.
    Kindly provide the solution.
    Regards
    Narasingam.B

    This problem can be solved by proper customizing.
    Regards
    Narasingam

  • I can not see all "Divisions" in BP Rel.--Partner Function Assignment

    Hi,
    When I edit "Partner Function Assignment" in BP reliationship such like BUR011("Employee Responsible"),
    I can not see all "Divisions" in list which I can see in configuration via SPRO-->Customer Relationship Management->Master Data->Orgnizational Management->Division Setting->Define Divisions.
    E.g., in configuration, I can see 7 records of divisions from "001" to "007", but in "Partner Function Assignment" of BP relationship, I can only see "002" to "004".
    Do you know why? Thanks a lot!
    Best regards,
    Long

    hi
    that should not be happening,if they are visible in one client then should be there in another too
    do one things try run  this
    hrbc1_atributes_buffer_update
    it will refresh the buffers of your org structure and then you may be able to add this
    also check the check box where it is mentioned that"object determination should be permitted"
    remember it will run only for once after you run this the check box will be unchecked again
    i guess it may solve your probs
    also try to structure your org structure index
    use t code
    crmd_index_om
    and withtin the object type give O
    and execute
    best regards
    ashish

Maybe you are looking for

  • Excise Invoice Number through Purchase Order no. or Material Document no.

    Hi, Is there any report through which I can find Excise Invoice Number (J1IEX) with the help of either Purchase Order no. or Material Document no.? Can anyone provide some idea in this regard? Thanks in advance

  • Creating Partition in Mac Mini Hard Drive

    i Have buy a mac mini a week ago, but before three days ago, some file got corrupted, and it does not start, only the password screen appears, when i entered the password, the screen appears again. and it continues. Now i want to partition the mac mi

  • GB storing deleted data, files are too big!

    Hi All I recorded a full concert, 2-3 hours, 8 audio tracks. This came out to about 4GB. Now I want to edit down each song individually, so I cut everything out but the song, and "Save As..." its own file. After cutting down to one song, the file is

  • How to maximize the java applet?

    Dear all, I have an application & when ever i run it, the java applet never comes in a maximum size. so is there a way to make it run in a maximum size? best regards, Ashraf

  • How do i view size of webpage?

    I was wondering if there was a tab or something apart from the activity monitor where I can monitor how much each webpage is loading. For instance if I was to go to a webiste I would want to know the total amount it is going to load. I hope my explan