Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

bapi to read 'customer master'

0 Kudos

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

7 REPLIES 7

former_member181962
Active Contributor
0 Kudos

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

former_member188685
Active Contributor
0 Kudos

Hi,

Check this FM <b>CUSTOMER_PARTNERFS_GET</b>,

this is not bapi,it is RFC enabled.

this might help you..

regards

vijay

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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