Adding Comment Text from Sage ERP X3 to Crystal Report

SOLVED

Good Morning, Sage Community!

I hope you all are doing well.

I'd like to add the text clob "comments" from X3 into a Crystal Report.  I know the process is significantly more involved then just pulling fields from a table listing.  

To be clear, this is where the comments are coming from:  File > Comments (any screen)
Any help would be greatly appreciated.  Thank you!
  • 0

    Bring in the ACLOB table into you report and join your transaction ID (order #, return #....) to the IDENT1_0 column.

    Then you need to filter the CODBLB_0 field based on the transaction. For Sales Orders you’ll filter CODBLB_0='CO_SOH' , Purchase Orders = CO_POH, Sales Quotes = CO_SQH, Sales Returns = CO_SRH, Deliveries = CO_SDH….

    The CLOB_0 field has the actual comment.

    In SQL you would write something like this

    SELECT SOHNUM_0, CLOB_0

    FROM SORDER

    JOIN ACLOB

       ON SORDER.SOHNUM_0 = ACLOB.IDENT1_0

       AND ACLOB.CODBLB_0 = 'CO_SOH'

  • 0 in reply to Israel Braunfeld
    verified answer

    Israel Braunfeld said:

    Bring in the ACLOB table into you report and join your transaction ID (order #, return #....) to the IDENT1_0 column.

    Then you need to filter the CODBLB_0 field based on the transaction. For Sales Orders you’ll filter CODBLB_0='CO_SOH' , Purchase Orders = CO_POH, Sales Quotes = CO_SQH, Sales Returns = CO_SRH, Deliveries = CO_SDH….

    The CLOB_0 field has the actual comment.

    In SQL you would write something like this

    SELECT SOHNUM_0, CLOB_0

    FROM SORDER

    JOIN ACLOB

       ON SORDER.SOHNUM_0 = ACLOB.IDENT1_0

       AND ACLOB.CODBLB_0 = 'CO_SOH'

    Israel -

    Thank you.  Your suggestion pointed me to the correct data.  This is the first half of the process.

    Just for Community notes:  if the CLOB type is RTF (Rich Text), you'll have to instruct Crystal Reports to translate the field from RTF to something legible.  You can do this by right clicking the field added to the report (CLOB_0), select "Format Field", and then selecting the Paragraph tab.  See screenshot below.

  • 0

    I have a Sage HTG on this if you would like me to email it to you.  I cannot find a way to upload a PDF to this post.

  • 0 in reply to Erin Morphis

    Thanks to you both for uplifting the community. I wish I could give you guys points!

    Bob

  • 0 in reply to Erin Morphis

    Do you have the HTG? Is it on the support site, im looking for a copy.....