Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Automatic serial no. generation in smartforms

Former Member
0 Likes
2,739

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.

1 ACCEPTED SOLUTION
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
2,531

Can you please paste a screen shot of how you want it to be...? what does these numbers signify

Nabheet

14 REPLIES 14
Read only

Former Member
0 Likes
2,531

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

Read only

former_member186413
Participant
0 Likes
2,531

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"

Read only

Former Member
0 Likes
2,531

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.

Read only

former_member187748
Active Contributor
0 Likes
2,531

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.

Read only

Former Member
0 Likes
2,531

Hi Shweta,

I am not exactly getting your question! I believe you want to print the text as priority sequence? please elaborate!

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
2,532

Can you please paste a screen shot of how you want it to be...? what does these numbers signify

Nabheet

Read only

0 Likes
2,531

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.

Read only

0 Likes
2,531

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

Read only

0 Likes
2,531

Where these texts should be displayed, are they part of a single text node ? How do you display it?

BR.

Read only

0 Likes
2,531

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.

Read only

0 Likes
2,531

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.

Read only

0 Likes
2,531

Hi Sweta,

in new release you can change your editor as in MS WORD,

and in this way , you can achieve this.

Read only

0 Likes
2,531

Sorry Shweta, this seems a feature you are looking in MS word in Smartforms....no experience.

Do Hit and trial.

BR.

Read only

0 Likes
2,531

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