on 04-15-2008 8:15 PM
I am trying to make changes to a form in the Sapscript editor. These are just simple changes, such as:
<C2>My Company</><C2>,,,,,,,,,,,,</><C2>Date</>
When I exit the editor and go back in, it will have changed the above line to:
<C2>My Company</><C2>,,,,,,,,,,,</><C2>, Date</>
or
<C2>My Company</><C2>,,,,,,,,,,,<(>,<)></><C2>Date</>
Neither of which I want. It will do this whether I save the form or not. Activating it also has no effect on these changes.
How do I stop it from doing this?
Hi,
Before using this call your style
/: style style_name
<c2> Write something</>
It will work.
Regards
Sandipan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What seems to be a pattern here is that is will not let me put an odd number of commas on a line. The problem does not occur if I put 2,4,6,8, etc. commas on the line, but everytime I try to put 1,3,5,7, etc. it will always show one of the commas like this: ,,,,<(>,<)> and leave the others alone.
I went to SE72 and tried to create a style. I named it JSM and gave it a default paragraph. I didn't give it any other attributes because I am not familiar with how to use it. I saved it and activated it. Then back in SE71, I am trying to edit my form again using:
/: STYLE JSM
T4 <C2> Comany</>,,,<C2>Date</>
and when I leave and come back in, I still get:
/: STYLE JSM
T4 <C2> Comany</>,,<(>,<)><C2>Date</>
but if I use 4 commas it doesn't happen.
T4 <C2> Comany</>,,,,<C2>Date</>
hi.
For your confusion ,, means a tabspace in SAPScript.
4 commas means two tabspace like that.
here goes the step for creating style:--
Se72-->Give style name
Click on Paragraph Format
Press Icon for create element(Shift+F6)
Click on font and tab button to adjust font and tab space.
Click on Character format to create character format.
Then try again.
regards
Sandipan
Ok, but there is still something I don't understand. If I create a style, am I using that for my formatiing or am I still using my C2 character format?
If I want to use my C2 charater format, do I set up my style to be the same as C2 and then just use the style command?
Why do I need both a Style command and my C2 formatting command?
Can I just use this:
/: STYLE JSM
T4 Company name,,,,,Date
instead of:
/: STYLE JSM
T4 <C2>Company name</>,,,,<C2>Date</>
When creating the style, it asked for a package to create it in. Does it matter which package I choose?
Hi,
For your first question When style is called the default paragrapgh format style is called.
If u want to change some thing use charcter format for that. It will overwrite the style of paragraph format.
If I want to use my C2 charater format, do I set up my style to be the same as C2 and then just use the style command?
No u have to just call the style once.
/: STYLE JSM
Why do I need both a Style command and my C2 formatting command?
Lets take a example:
You have mentioned the font in paragraph format as Times New roman
and you want something in bold.
So create a character format for bold font.
and write
<c2> Bold it</c2>
When creating the style, it asked for a package to create it in. Does it matter which package I choose?
yes when u transport the object to other server if u assign it in package u can transport the style.
Hope this clears your doubt.
Reward if hlpful
regards
Sandipan
Well, I still have some questions about this whole style issue, but I learned something new today and that is worth the credit. Some lingering questions are:
What happens if I have the same style or charater format (C2) in both my current sapscript form and my style command, which one does it use?
Is there and ENDSTYLE command?
What happens if I make a reference to a character format that does not exist in my style. Will it look for it in the current form? or will it ignore my reference to something that does not exist?
Thanks for all the help.
I'd still like to see that old editor, though. I'm curious to see how it works (and how to get to it).
Hi,
What happens if I have the same style or charater format (C2) in both my current sapscript form and my style command, which one does it use?
Ans:- If u specify the style name then u can use the charcter format paragraph format in your sapscript.
If u don't mention the style u cant use your own character and paragraph format.
Your current sapscript form cant have any character format unless and until u use your style command.
If the paragraph format are same then also it will use the style paragraph format.
Is there and ENDSTYLE command?
No
What happens if I make a reference to a character format that does not exist in my style. Will it look for it in the current form? or will it ignore my reference to something that does not exist?
First it will look in the current style and if not available It will ignore and make the character format default.
Regards
Sandipan
Just change to the old editor...That happens to me also with the new editor...I change to old one and the problem got solved -;)
Greetings,
Blag.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.