01-18-2006 3:50 PM
Hi,
I have some kind of customer hierarchy defined in the 'Partner Functions' for a customer. Example: cust01 (the 'customer-master') is the sold-to, bill-to, payer, ship-to partner, and it has 3 more ship-to partners (cust11, cust12, cust13). It means that cust1x customers are under cust01 in the hierarchy, but this relation is only defined in the 'Partner Functions' of cust01.
My problem is to find a Bapi or an RFC enabled Function Module to look-up the customer-master for the ship-to customers.
I hope it's clear, and someone can help me.
Thanks,
Krisztian
01-18-2006 3:53 PM
Have a look at the following BAPIs
BAPI_BUS2001_PARTNER_GETDETAIL Get Detail Data for Partner Data
BAPI_BUS2001_PARTNER_GETLIST Get Overview List for Partner Data
pass the partner function for Ship to patner.
REgards,
Ravi
01-18-2006 3:54 PM
Hi,
Check this FM <b>CUSTOMER_PARTNERFS_GET</b>,
this is not bapi,it is RFC enabled.
this might help you..
regards
vijay
01-18-2006 3:56 PM
Hi,
If you want to look for customer details for Sales docs then use :
Functon :
SD_KNVP_READ
You have to enter Sales Org/Division/Dist.channel and Customer.
This function retrives the hirerchy of partners defined.
Lanka
01-18-2006 4:08 PM
Hi All,
Thanks for the quick answers, I but think those will not solve my problem.
The point is, that I know only the customer cust11 and I don't know about cust01. I have to look-up which other customers has cust11 as a ship-to partner (in this case cust01).
Krisztian
01-18-2006 4:17 PM
Hi,
Please check this may help you :
Please check tab KNVP with KUNN2 as CUST11 and PARVW as 'WE'.
This will fetch you the details .
Lanka
01-18-2006 4:29 PM
Hi Lanka,
I use the import parameters like this:
FIF_KORG 0001
FIF_VTWEG 01
FIF_SPART 01
FIF_KUNNR cust11
FIF_FILTER (WE or anything)
The result is cust11.
It's better to write this in detail:
The partner functions for cust01 are:
SP cust01
BP cust01
PY cust01
SH cust01
SH cust11
SH cust12
SH cust13
The partner functions for cust11 are:
SP cust11
BP cust11
PY cust11
SH cust11
(same for cust12 and cust13)
So, I need a function module that has the input parameter 'cust11' and gives the result that cust01 has him as a ship-to.
Krisztian
01-18-2006 4:35 PM
hi,
Use Function SD_KNVP_READ with your parameters
Sales Org/Division/Dist.Channel.
Please see the results in field KUNN2. This will give you the details.
You can filter by PARVW as 'WE' or 'SP'.
Lanka