Skip to Content
author's profile photo Former Member
Former Member

Derivation of Business Partner as Customer

Hi,

I am an abap developer and I have made changes to a smartform wherein I need to get the values of business partner from table BUT000. I used the select statement as below:

Select SINGLE * from BUT000 into WA_FS_BUT000

where partner = v_partner.

v_partner has been declared in the global definition as v_partner type CRMT_PARTNER_NO. However to get the value from BUT00 I have used the following piece of code:

SELECT SINGLE sobid FROM hrp1001 INTO v_partner WHERE otjid = is_orgman_h-sales_org

AND subty = 'B207'.

This works except for one problem. The type of business partner is wrong. I need to get the Business partner who is a customer. Is there any HRP* table where I can give the otjid and get the customer?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Dec 07, 2011 at 10:22 AM

    Hi,

    Please check table CRMM_BUT_FRG0041, field IS_CUSTOMER.

    I hope the information could be helpful.

    Best regards,

    Maggie

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.