As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
TABLE FILE HOLD_MAT_RT
PRINT LTEXT AS 'Long Text'
BY MATNR AS 'Material Number'
BY MAKTX AS 'Mat. Description'
ON TABLE PCHOLD FORMAT HTML
END
The output I got is like this:
Material Number Mat. Description Long Text
11111 AAAAA Text1Line1
Text1Line2
Text1Line3
22222 BBBBB Text2Line1
Text2Line2
Text2Line3
The issue is for material 11111 I have 3 lines of Long Text in 3 separate records. However, my customer want me to merge these 3 records to 1 record. I can display it as 3 lines but when I export them to excel file, it need to be merged into 1 cell. I am not sure is that possible to implement this feature or not. Anybody can give me idea ?
This message has been edited. Last edited by: hainguyen,
Can you ask your customer if column Long Text can be all in one column but broken up by commas.
Example:
TABLE FILE CAR
PRINT
BODYTYPE
BY COUNTRY
BY CAR
ON TABLE HOLD AS CAR1
END
DEFINE FILE CAR1
CONT/A1 = IF COUNTRY NE LAST COUNTRY THEN 'R' ELSE
IF CAR NE LAST CAR THEN 'R' ELSE
IF BODYTYPE EQ LAST BODYTYPE THEN 'Y' ELSE 'N';
SHOW/A300V = IF CONT EQ 'R' THEN BODYTYPE ELSE
IF CONT EQ 'Y' THEN SHOW ELSE SHOW | ', ' | BODYTYPE;
END
TABLE FILE CAR1
SUM
SHOW
BY COUNTRY
BY CAR
END
Thanks prodrigu, your solution is awesome. Thanks a lot. Thanks njsden, my issue is solved by prodrigu's solution.This message has been edited. Last edited by: hainguyen,