Application Development and Automation 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: 
Read only

Customer mastre change document

Former Member
0 Likes
773

Hi Experts,

I have the problem in the customer change document.

In program we are passing the customer to

customer to function module

CHANGEDOCUMENT_READ_HEADERS

and it is giving the change document table

   i_cdhdr

Problem  i am facing is if customer is exists in 2 Sales organisatio such as SO1 and SO2.

If user make the changes for customer in the Sales organisation SO1 and

in the selection parameter if user enter sales organisation S02,

it is displaying irrespective of sales organsation.

I want to validate the customer changes for particular customer.

Example if user make changes in S01 and in selection parameter if he enter sales organisation S02,

change record shouldnot displayed.

If user changes in S01 and in the selection parameter if he enter SO1, than only it should display.

any one have any idea other than function module CHANGEDOCUMENT_READ_HEADERS for resolving issue.

Regards,

Udupi

Hi Experts,

I have the problem in the customer change document.

In program we are passing the customer to

customer to function module

CHANGEDOCUMENT_READ_HEADERS

and it is giving the change document table

   i_cdhdr

Problem  i am facing is if customer is exists in 2 Sales organisatio such as SO1 and SO2.

If user make the changes for customer in the Sales organisation SO1 and

in the selection parameter if user enter sales organisation S02,

it is displaying irrespective of sales organsation.

I want to validate the customer changes for particular customer.

Example if user make changes in S01 and in selection parameter if he enter sales organisation S02,

change record shouldnot displayed.

If user changes in S01 and in the selection parameter if he enter SO1, than only it should display.

any one have any idea other than function module CHANGEDOCUMENT_READ_HEADERS for resolving issue.

Regards,

Udupi

5 REPLIES 5
Read only

Former Member
0 Likes
737

hello,

you could always filter the data after the function module returns the data.

best regards,

swanand

Read only

0 Likes
737

I can filter the data after function module returing data. But in the return table i_cdhdr we dont have sales organisation.

In input parameter also we can give only the customer number. I want to validate the change document header for only those sales organisation which i am given in the input parameter.

Read only

0 Likes
737

You cannot select so without reading the details (CHANGEDOCUMENT_READ_POSITIONS), as only the key of the master table/business object is used in header (CDHDR).

Regards,

Raymond

Read only

Former Member
0 Likes
737

Why would your customer master data have different data because of the sales org?  A customer is a customer, so far as his master data is concerned?  That fact that the customer has been extended to different sales orgs seems to be irrelevant to me.

Read only

Former Member
0 Likes
737

Thanks for all reply.

Probelm solvd.

I will get sales area details in CDPOS table