‎2014 Jan 09 6:01 AM
Hi everyone,
i have to make some smartforms, in which there are so many texts appears,
no from 1,2 ,3,............................40.
Now sometimes i have to delete or add any of the texts, then to rearrange
the no. again in serial becomes a proble.
Let i have deleted text no. 20, now i have to change the numbering from
21 texts as 20 and so on, so i wants to know, is there anyway to
automate no. in texts in smartforms.
‎2014 Jan 09 7:25 AM
Can you please paste a screen shot of how you want it to be...? what does these numbers signify
Nabheet
‎2014 Jan 09 6:05 AM
No such option available in standard SAP. But for some easiness if you have to change same thing several times then you can download the smartform in text mode and then do search replace and upload it. ]
Cheers,
Prakash
‎2014 Jan 09 6:14 AM
Hi, Shweta Chouhan
first of all you need to create number range object (T-Code: SNRO),
for more detail about it please read this "How to Create you own Number Range SNRO - ABAP Development - SCN Wiki"
‎2014 Jan 09 7:01 AM
Hi Shweta,
The feature you are looking for is not available and it does not make much sense too. An advice would be to Name the texts suitably as per their usage such that deletion would not affect your development and require additional naming effort. Ex -
Name the text box used for 'Page Numbers' as shown instead of letting it be Text1 etc -
Hi Hai,
Shweta is not looking for what you have suggested. Please re read.
BR.
‎2014 Jan 09 7:12 AM
Hi Shweta,
i don't think we can do automatic numbering for texts in case of smartforms.
See if someone could help you in achieving your goal.
‎2014 Jan 09 7:22 AM
Hi Shweta,
I am not exactly getting your question! I believe you want to print the text as priority sequence? please elaborate!
‎2014 Jan 09 7:25 AM
Can you please paste a screen shot of how you want it to be...? what does these numbers signify
Nabheet
‎2014 Jan 09 7:40 AM
Hi Nabheet,
please see this screenshot, in which you can see that the texts are numbered , now if i will
delete any of the text , then for after texts i have to arrange it again.
So i wants to know about any other functionality for the same. Say i delete text no. 48,
then my 49th text will get automatic number as 48, and so on.
‎2014 Jan 09 8:07 AM
Its not that simple bit tricky. You will have to use READ_TEXT first. You will get all text. Then you loop at loop lt_LINES and read each line if it has number then modify it with whatever you want.
Nabheet
‎2014 Jan 09 8:13 AM
Where these texts should be displayed, are they part of a single text node ? How do you display it?
BR.
‎2014 Jan 09 8:36 AM
Hi Nabheet,
these are texts that i have written in text in smartforms, and are not called through any
function modules, i have so many texts in my smartforms, which i have used (already have written
in the text page).
So i wants to know, like we do in MS word, can i do it in smartforms too.
‎2014 Jan 09 8:39 AM
Hi Ankit,
these text are written in a text page in smartforms, are are shown mandatory, but the need is that
if any text should gets deleted, then can i use any options to renumber other texts in series
as we can perform in smartforms.
‎2014 Jan 09 8:42 AM
Hi Sweta,
in new release you can change your editor as in MS WORD,
and in this way , you can achieve this.
‎2014 Jan 09 8:42 AM
Sorry Shweta, this seems a feature you are looking in MS word in Smartforms....no experience.
Do Hit and trial.
BR.
‎2014 Jan 09 8:57 AM
One of the options can be if you dont have MS Word then create a SO10 text for the same and then read the text as mentioned in program and update.
Otherwise no direct method