on 10-17-2008 2:07 PM
Dear Gurus,
I have a case to combine hard code text and long text in the same line.
For example, i need to display following line:
'Project name:' <long_text>
How to do it in SAPScript?
Can we do it with following code?
/: 'Project name: ' INCLUDE Z_TEST OBJECT TEXT ID ST LANGUAGE &NAST-SPRAS&
Thanks & Regards,
Ari
Hi,
Sorry, I didn't pay enough attention... I've written about smartforms. (But it works there )
So, please forget my previous post.
Tamá
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can achieve that by this method,
Goto Tcode SO10
Give the Object Name 'Z_TEST' & Id
See the Paragraph format for the Text, you can do it from Menu
Format>Line . If it is /: change it to =. Save
Now in the SAPScript Text editor in which you want to print
P1 'Project Name :'
/: INCLUDE Z_TEST OBJECT TEXT ID ST LANGUAGE &NAST-SPRAS&
the output will be
Project name : Abc xyz
Regards
Bala Krishna.
Edited by: Bala Krishna on Oct 17, 2008 7:11 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try
AS Project Text:
/: INCLUDE Z_TEST OBJECT TEXT ID ST LANGUAGE &NAST-SPRAS& PARAGRAPH '= '
I think this will work as long as Z_TEST only uses the default formating '*'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try
AS Project Text:
/: INCLUDE Z_TEST OBJECT TEXT ID ST LANGUAGE &NAST-SPRAS& PARAGRAPH '= '
I think this will work as long as Z_TEST only uses the default formating '*'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Try this one:
Your text 'Project name' is in a text node.
When you define the next text node for include text set the start option to 'Append directly'. (tab 'General attributes')
Hope, it works.
Tamá
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No. It is not possible the way you are proposing.
One easiest way is, include "'Project name" in the Include text.
Other way, you can create a Subroutine in the Form, In the subroutine Read the Text using the READ_TEXT, than concatenate it in a new String and print the new string to the output.
Regards,
Naimesh Patel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.