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


Hi, I´m new creating infosets, the transactions and tools as sqvi are new to me but I have some knowledge about the tables in CRM, the thing is that I need I need to know the partner from but000 related to the orders, know I get this design and it retrieves me some data so it´s pefect.



I get all the bp´s related in the orders, the thing is that I want to link CRMD_PARTNER through PARTNER_NO to BUT000-PARTNER_GUID but it marks that something is incorrect, I think the type is not equal but the data related, and the guids makes a perfect mach if I check it manually in se11, is there any way to link the CRMD_PARTNER-PARTNER_NO to the BUT000-PARTNER_GUID. !!?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Apr 01, 2011 at 05:48 AM

    CRMD_PARTNER-PARTNER_NO is of type CRMT_PARTNER_NO that is defined as CHAR 32.

    On other hand BUT000-PARTNER_GUID is of type BU_PARTNER_GUID which is defined as RAW 16.

    On sql you can't make selection id datatypes are not equal. Sou in your case you must make one additional step to convert the guid to correct format. Something like...



    And then ZGUID to select from BUT000.


    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 15, 2016 at 10:34 AM


    This join IS possible using the SQL HEX command.

    The HEX function returns the hex value of a character string.

    so something like this works.

    select a.partner_no,a.partner_guid,b.partner_guid from sapccd.crmd_partner a,sapccd.but000 b where a.partner_no = hex(b.partner_guid)

    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.