I am still relatively new to ABAP but trying my best to learn! I am a PI Developer trying to extend my skillset.
I have written a Synchronous Proxy to retrieve a list of active executed campaigns within CRM, but i need to populate an extra field and am running into difficulties!
I have an issue with a link/join that i am reading that two fields are not compatible (despite holding an identical value! ).
SELECT * FROM CRMD_PARTNER
INTO TABLE GT_CRMD_PARTNER_TABLE
FOR ALL ENTRIES IN GT_MARKETING_PARTNER_SET
WHERE GUID = GT_MARKETING_PARTNER_SET-PARSET_GUID
AND PARTNER_FCT = GC_PARTNER_FUNCTION.
IF NOT GT_CRMD_PARTNER_TABLE[] IS INITIAL.
SELECT * FROM BUT000
INTO TABLE GT_BUSINESS_PARTNERS
FOR ALL ENTRIES IN GT_CRMD_PARTNER_TABLE
WHERE PARTNER_GUID = GT_CRMD_PARTNER_TABLE-PARTNER_NO.
ENDIF.
I am reading the table CRMD_PARTNER-PARTNER_NO and linking to BUT000-PARTNER_GUID, but get the following error:
When you use the addition "FOR ALL ENTRIES IN itab", the fields
"PARTNER_GUID" and "GT_CRMD_PARTNER_TABLE-PARTNER_NO" must have the
same type and the same length.
The CRMD_PARTNER field is a CHAR32 whereas the BUT000 is a RAW16 field! But I can copy and paste the value from SE11 from one to get the other!!! ARGH!!!!
I have found a FM RSAB_CONVERT_RAW_TO_CHAR - but i want to convert CHAR to RAW! (I tried and it doesn't work!:
What would be the best method to convert the field??
Can anyone point me in the right direction of how I can achieve this???