‎2008 Mar 31 10:28 AM
Hi All,
Is there any way to create the text elements dynamically in the report program.
Is there any Function Module or class to create the text elements dynamically.
This is very urgent.Please anybody help me.
Thanks,
Swapna
‎2008 Mar 31 11:00 AM
use function EDIT_REPORT_TEXT to change texts
then
function SAVE_REPORT_TEXTS to save changes
‎2008 Mar 31 11:00 AM
use function EDIT_REPORT_TEXT to change texts
then
function SAVE_REPORT_TEXTS to save changes
‎2008 Mar 31 11:31 AM
‎2008 Mar 31 12:05 PM
Hi Franocis,
Thanks for u r reply.But these function Modules are for creating the text symbols.But i need to create the text elements.
Thanks,
Swapna.
‎2008 Mar 31 12:15 PM
OK then you do like this:
1) READ TEXTPOOL progname INTO itab.
2) modify your internal table itab (change, add, delete, entries as you need)
3) INSERT TEXTPOOL progname FROM itab.
You can also use addition LANGUAGE if you need to maintain texts in several languages.
‎2008 Mar 31 1:17 PM
‎2008 Mar 31 4:02 PM
DATA: gt_texts TYPE TABLE OF textpool,
gs_texts TYPE textpool.
READ TEXTPOOL 'YTESTFHE' INTO gt_texts.
gs_texts-id = 'I'. "I=Text symbols, S=Selection, R=Report title
gs_texts-key = 'MYT'.
gs_texts-entry = 'My text'.
gs_texts-length = 10.
APPEND gs_texts TO gt_texts.
INSERT TEXTPOOL 'YTESTFHE' FROM gt_texts.
if you ever want to learn something, try to find by yourself in documentation (at least F1 help on ABAP statements)