Determine partner role based on partner number/Guid.
I need to determine whether a partner (against a repair order) is a consumer (BP) or dealer (organisation). How can I determine this based on partner number/guid?. I'm sure there's a BAPI etc to show the role information.
Gary King
Many thanks for that. I suspect this FM to get the roles will work fine and will try it now.
I can also look at the marketing attributes and the account group will determine whether the partner is a consumer of Organisation (Dealer).
Regards
Gary King
Similar Messages
-
Determine Partner number based on IDoc Data Segments
Are there any user exits or BADI, which can be used to determine Control record parameters (Partner), based on IDoc Data segments? This is for an Inbound IDoc, into ECC.
I found EXIT_SAPLEDI1_001. But, this has only control record. It is used to determine control record parameters, by using control record only.
Thanks,
JuwinDear Juwin,
Could you please provide some info. about what you are trying to achieve by trying to determine the partner dynamically?
If the scenario is something like 'Partner A should get data related to only plant 1000 and Partner B should get data related to only plant 2000', you could use filters in the Distribution model to achieve this.
BR,
Aashrith -
Getting the Address Information based on the Partner Number & Partner Role
Hello,
I have a requirement where in I am populating the Address into a Custom Segment Z1E1ADRM1 where I am reading the Partner Data from E1ADRM1 Segment. It has the PARTNER_Q which contains the Partner Role (WE,AG,RE,RG etc...) and PARTNER_ID which contains the Partner Number. Now, using VBPA Table, I am populating the STREET4 and STREET5 manually by passing the Address Number got from VBPA Read.
Instead, is there any Function Module / BAPI which can be used to get the Address Number / Address Information based on the Partner Role and Partner Number as Input Parameters? Please Let me know.
Thanks and Regards,
Venkat Phani Prasad KonduriTry
/SPE/BUPA SPE Business Partners
/SPE/BP_STORE_ADDRESSES Business partners store addresses
BPAR_P_PARTNERS_WITH_ADDRESS
SD_ADDRESS_KEY_GET_FROM_VBPA
SD_ADDRESS_TYPE_GET
SD_PARTNER_ADDR_DIALOG_INTERN
VELO01_GET_PART_ADDR_FOR_VBELN get the partners and their address details
WS_LM_ADDRESS_READ
WS_LM_CONTACT_ADDRESS_DISPLAY
^Saquib -
Can we change the partner number based on the reason in CIC0 in CRM ?
Dear Experts,
Can we change the responsible partner number based on the reason in CIC0 in CRM ?
regards,
Abhijit G. Borkar
Edited by: Abhijit Borkar on Jul 10, 2009 6:46 AM
Can it be done by using 'Actions' ?Hi Abhijit,
Yes you can do this a number of ways:
action
badi - partner or order
event - custom function module
Remember that the partner determination must allow for this partner to be changed.
Cheers
Andrew -
Find partner number based on goods recipient and ship to address
Hi SRM Experts,
Can anybody please tell me that how i can get the partner details like partner number, partner guid etc based on ship to address and goods recipient?
I have seen some shopping carts in BBP_PD. In those shopping carts, i have seen that goods recipient's partner details are same as requestor partner details.
Can i consider that generally goods recipient partner details remains same as requestor partner details ?
Thanks & Regards,
AkashHi,
Other than shop on behalf functionality, always requester and goods receipient are same.
Thanks
Rajesh K -
How to create the partner number in partner determination procedure
Hai,
I am going to create a new partner number that should be assigned to partner functions in partner determination procedure.
Please help where to create.
KalyanHi,
First determine one account group ( Trans code OBD2 ) assign number range for acct group ( Trans code OBAR ).
Define partner determination procedure:
IMG -> SD -> Basic Functions -> Partner Determination -> Setup Partner Determination -> Partner Determination For Sales Doc Header
Click on Partner Type
Go To New Entries and Define Partner Types
Customer KU
Vendor LI
Contact Person AP
Sales Employ SE
Select Partner Type KU and Go To Details Icon and Maintain Partner Functions
SP Sold To Party
SH Ship To Party
BP Bill To Party
PY Payer
Come Back and Click On
Assign Partner Type To Sales Doc Header
KU To TA
Assign Partner Functions To Account Group
SP To ACC GROUP
SH
BP
PY Same.
For Sales Doc Header The Partner Functions Can Be Determined From Customer Master.
Regards -
FM to determine employee's Manager using Employee partner number 4m OrgUNIT
Hello All,
my requirement is, i have Employee responsible information with me like parnternumber and user name, now i want to determine who is his manager at Organisation Unit level.i need manager's partner number from Org unit.
I did following to achieve the same, but i could reach upto knowing the manager position but not the BP assigned to that position.
report 1.
*1. get Employee's position
data: objektid type objektid.
call function 'BBPU_GET_ORGSTRUCTURE_OF_USER'
exporting
username = sy-uname
importing
position_id = objektid
exceptions
no_org_data_found = 1
others = 2
*2.find leading position (pass Employee position)
*RH_GET_LEADING_POSITION (get leading position)
data: hrobject type table of hrobject,
wa_hrobject type hrobject,
sobid type hrsobid-sobid.
move objektid to sobid.
call function 'RH_GET_LEADING_POSITION'
exporting
plvar = '01'
otype = 'S'
sobid = sobid
tables
leading_pos = hrobject
exceptions
no_lead_pos_found = 1
others = 2
*3. get the manager number (pass leading position)
*RH_READ_INFTY_1001 (get manager number)
*data: lt_itab1001 type table of p1001.
*call function 'RH_READ_INFTY_1001'
exporting
authority = ' '
with_stru_auth = ' '
subty = 'A008'
begda = sy-datum
endda = sy-datum
tables
i1001 = lt_itab1001
objects = hrobject
exceptions
nothing_found = 1
wrong_condition = 2
wrong_parameters = 3
others = 4.
*if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*endif.
read table hrobject into wa_hrobject index 1.
DATA lt_result_tab TYPE TABLE OF swhactor.
CALL FUNCTION 'RH_STRUC_GET'
EXPORTING
act_otype = wa_hrobject-otype
act_objid = wa_hrobject-objid
act_wegid = 'SAP_TAGT'
TABLES
result_tab = lt_result_tab[]
EXCEPTIONS
no_plvar_found = 01
no_entry_found = 02
OTHERS = 99.
write 'hi'.
======================
I tried using FMs 'RH_READ_INFTY_1001 and 'RH_STRUC_GET'
both are retrieving some unrelated data which i dont understand like
1 CP 00305880
I dont understand what is 00305880,manager's partner number is 50145725
please help me how do i get manager partner number using his position, is there any FM or table to get this?
Thanks
seemaHi All,
I got the solution
report 1.
data: objektid type objektid.
call function 'BBPU_GET_ORGSTRUCTURE_OF_USER'
exporting
username = sy-uname
importing
position_id = objektid
exceptions
no_org_data_found = 1
others = 2
if sy-subrc <> 0.
endif.
data: hrobject type table of hrobject,
wa_hrobject type hrobject,
sobid type hrsobid-sobid.
move objektid to sobid.
call function 'RH_GET_LEADING_POSITION'
exporting
plvar = '01'
otype = 'S'
sobid = sobid
tables
leading_pos = hrobject
exceptions
no_lead_pos_found = 1
others = 2
if sy-subrc <> 0.
endif.
data: lt_itab1001 type table of p1001,
wa_p1001 type p1001.
CALL FUNCTION 'RH_READ_INFTY_1001'
EXPORTING
authority = 'DISP'
with_stru_auth = 'X'
plvar = '01'
OTYPE = wa_hrobject-otype
OBJID = wa_hrobject-objid
istat = ' '
extend = 'X'
subty = 'A008'
begda = sy-datum
endda = sy-datum
condition = '00000'
sort = 'X'
with_ev = ' '
adata = 'X'
auth_sobid = ' '
TABLES
i1001 = lt_itab1001
EXCEPTIONS
nothing_found = 1
wrong_condition = 2
wrong_parameters = 3
OTHERS = 4.
read table lt_itab1001 into wa_p1001 index 1.
clear: wa_p1001-otype, wa_p1001-objid.
move wa_p1001-SCLAS to wa_p1001-otype.
condense wa_p1001-SOBID.
move wa_p1001-SOBID to wa_p1001-objid.
clear lt_itab1001[].
CALL FUNCTION 'RH_READ_INFTY_1001'
EXPORTING
authority = 'DISP'
with_stru_auth = 'X'
plvar = '01'
OTYPE = wa_p1001-otype
OBJID = wa_p1001-objid
istat = ' '
extend = 'X'
subty = 'B207'
begda = sy-datum
endda = sy-datum
condition = '00000'
sort = 'X'
with_ev = ' '
adata = 'X'
auth_sobid = ' '
TABLES
i1001 = lt_itab1001
objects = hrobject
EXCEPTIONS
nothing_found = 1
wrong_condition = 2
wrong_parameters = 3
OTHERS = 4.
write 'hi'. -
How to find name of partner based on partner number
Hello All,
Can any one help me how to find name of partner based on partner number.
Regards,
LisaSELECT kunnr name1 erdat
FROM kna1
INTO TABLE i_kna1
WHERE erdat IN s_date.
SELECT kunnr kunn2 knref vkorg vtweg spart
FROM knvp
INTO TABLE i_knvp
FOR ALL ENTRIES IN i_kna1
WHERE kunnr = i_kna1-kunnr AND
vkorg IN s_vkorg AND
vtweg IN s_vtweg AND
spart IN s_spart AND
parvw = 'ZR'.
LOOP AT i_kna1.
READ TABLE i_knvp WITH KEY kunnr = i_kna1-kunnr.
IF sy-subrc = 0.
MOVE-CORRESPONDING i_kna1 TO i_cust2.
MOVE-CORRESPONDING i_knvp TO i_cust2.
APPENd i_cust2.
endif.
ENDLOOP.
*SELECT kunnr name1
FROM kna1
INTO TABLE i_kna1.
loop at i_cust2.
read table i_kna1 with key kunnr = i_cust2-kunn2.
IF sy-subrc = 0.
i_cust2-name2 = i_kna1-name1.
modify i_cust2.
endif.
endloop.*
icust2 will have partner number ,....partner name is in KNA1,..
so look in tat ..by above code.._ if this is wat u r luking for -
How to get Partner Number based on Vendor Number
Hi,
I have vendor number(LIFNR), I would like to find out the partner number(PARNR) for this vendor number. I tried a lot but unable to find it.
Any help will be appreciated.
Thanks,
IbrahimHi...
have u checked the table VBPA(table for Sales Document: Partner)..in this table you can get the PARNR(Number of contact person)..
Hope this solve your problem.
Thanks
shankar -
User exit -BADI for overriding Partner number in Purchase order output type
Hello All,
We have a requirement wherein the EDI message type will distribute the Idoc to the partner number determined in the output type of the purchase order. We are maintaining the condition record for a generic partner number in MN04 and we want this partner number with partner role SH from the condition record to be modified to the sales order sold to party partner number. We are using third party processing and hence sales order number can be fetched from account assignment (EKKN) table of the purchase order. Kindly do let me know the user exit /BADI that can be used for achieving this functionality.
Thanks in advance for your immediate response.
With regards,
Joseph Anand BHi,
check with below link,
fo this one you will find both user exit and badis
https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/find%252bapplication%252bclass%252bwith%252bexits%252band%252bbadis%252bfor%252ba%252btransaction
Regards,
Madhu -
Partner Number for Partner function in Vendor master definition
Dear Gurus,
I need to define a new vendor through Tcode: Xk01 / Mk01, but while defining particular screen know an partner functions, in this its asking partner number in lookup where no data ia avalibale to select and subsequently not able to save the vendor.
Please help.
Regards,
Prashanth PaiHi,
Before vendor creation, you have following configuration steps:
1. Create Vendor Account Group.OBD3
2. Maintain Number Ranges from Vendor account Group:XKN1,
3.Assignment of Number ranges to Account Group,OBAS
4.Partner Function: SPRO->MM->Purcahsing->Partner Determination-> partner roles->Permissible partner role sper account group
5.Partner Schema:
SPRO->MM->Purcahsing->Partner Determination->Partner setting in Vendor master record-> Define partner Schema
6.Assgin partner schema to accont Group
SPRO->MM->Purcahsing->Partner Determination->Partner setting in Vendor master record-> Assgin partner schema to account Group.
& then after above steps, you can create vendor with XK01 t.code by entering company Code,Vendor account group and purchase organisation.
Note:what is partner role:Generally during in your business transaction process we are specifying the roles involved by vendor i.e..... vendor act as a Goods Suplier, Ordering Address, Invoice Processing. Here all these functional activities by vendor we termed as partner functions (GS,IP, OA) in partner determination Process. SAP has standard Partner role and its 2 characters.
Example: A company supplying goods/material having plant in Hyderabad, south India branch office is in bangalore and head office is in Delhi.So hyderabad plant is your"GS",banglaore office is your"OA" and Delhi office is "IP"where you pay to Vendor. for the procurred material/goods.
Regards,
Biju K -
Change of businnes partner number in middleware
Hi,
we already have an exchange of R/3 customers with CRM business partners, but only for selected account groups. The internal number range of R/3 is mapped to a corresponding external number range in CRM. So far so good.
Now we decided to distribute another account group (with another number range), but the corresponding number range in CRM is already in use for other partners.
I found some hints in SDN how we could change the number range using OPEN FI modules. But this will only work, if we use an internal number range in CRM. Our purpose is to use an external number range and map the number by ourselves (e.g. number 653 in R/3 should be ZZ000653 in CRM).
Does anybody have a solution for that?
Kind regards
DanielDaniel,
I think your best bet is the CRM0_200 exit on ERP side. I actually used this exit to change the number range for plants being downloaded as business partners. I never used it for a real account group of customers but it should work.
You will have only one issue if you send data back from CRM to R/3. You will need to use one of the exits on the CRM side to remap the partner to the original value. The deltas from R/3 to CRM shoudl work okay, because it is based on the guid of the partner in CRM that maps back to the original R/3 partner number.
Look at note 865321 to view the solution that was created for plants.
You won't need an internal number range in CRM either for this exercise. The external number range should work fine. This is similar to rigging the system for vendor master deltas only less complicated.
Take care,
Stephen -
Partner number for WebIc Agent
Hi Experts
I need to get the partner number for the agent in the Web Ic.
e.g. system name = MrMan. I need to get bp number for MrMan.
When an agent creates an interaction or any type of business transaction, the system username is recorded in the partner number field of the business transaction partner structure. The agent is to only get visibility on transactions where they are on the person responsible list.
On our mobile sales application creates business transactions, but the person responsible field for the agent gets a bp number. This is the problem. I can't compare system username with the bp number.
any help would be greatly appreciated
ThanksUse function module 'CRM_CENTRALPERSON_GET' to get the BP GUID based on the user name.
After reading BP GUID ,get BP number .
Thanks,
Thirumala. -
Bapi_po_create1 - partner function and partner number problem
hello.
let me just first state that on ecc5 this problem doesn't exist.
we are in the middle of an ECC6 upgrade right now and i have a problem creating a PO through the BAPI on the ECC6 upgrade system, needless to say that all customization was copied from ECC5.
when trying to create the order i get an error MSG ME 350, "please enter partner number" .
i didn't get the error in ECC5. customization hasn't changed in ECC6. I've checked Ecc6 customization on MM->purchasing->partner determination. entering a partner function isn't mandatory and we've never entered a partner function before in the PO header besides the vendor number.
please help.
thanks,
Oren.
Edited by: Oren Wolk on May 2, 2010 11:17 AMhello.
the note suggested doesn't help my case.
can someone please suggest a different solution?
maybe in ECC6 the partner function is set by default to some value? and therefore expects a partner function?
thanks,
Oren. -
BADI/User Exit suggestion - for determining Partner in PO header
Hi All,
I want to be able to automatically populate and determine a manual partner function within the header of a purchase order creation.
Example, when PO is allocated against account assignment 'P' then go to the WBS element assigned and retrieve the specific partner number for partner function type XX. Then populate this into the relevant header partner function of the PO.
Any ideas of which BADI/User exit could be used in ME21N?
Thanks
SteveHi Steve
Before going to search the UserExit/BADI, please remember your account assignment will be at item level and the partner will be at Header level.If you have number of line items with different account asssginments or different WBS elements under account assignment P, it is difficult to determine the partner functional at Header level.Please think on how can you build logic? There are number of BADI/Exits available for Purchase order.
Regards
Ramakrishna
Maybe you are looking for
-
Focus Problem on Solaris with jdk 1.3.1
Hi all, We are having a focus problem on Solaris. The same code works fine on Windows without any problem. I am sending the test code and run steps below which you can compile and repeat the problem. NOTE: When we put a comment on the line "f1.reques
-
Hi, I am using jdk 1.3.1, forte ce 3.0 and j2me 1.0.3 beta. I wrote a midlet that should write and read strings to and from the serial port. Using the Emulator I have the reading working, but the writing freezes the execution. Any ideas? Debbie
-
Hi friends, We have the Requirement of taking customer data from Legacy to ECC through PI. The Client has 167 fields in his customer database . But ECC needs Only 25-30 fields . BI needs all fields. So my PI consultant has create on
-
I read that it was impossible to use RDA with C++, however, we must use Visual C++, and we must use TCP/IP to access to the PXI (MXI3 solution is not convenient due to its optic fiber). How can we do, which tools should be used and how to use them ?
-
Re-arranging a static tablespace using MOVE
I have a tablespace which holds historic, non moving data. There are in fact two tablespaces, one for tables and one for indexes. I would like to size the tables to their actual size so I get 0 extents. What is the correct way to do this? Thanks