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

Include text in sap script..

Former Member
0 Likes
12,407

Hi Experts,

Currently I am using the command

/: INCLUDE &EKKO-EBELN& OBJECT EKKO ID F02 LANGUAGE &NAST-SPRAS&

Now the header text is comming in left corner..but I want to print the same in the middle of line..

Since I am using as a command line it is not able to use one paragraph format...

Please advice..

Regards,

Sreeja

11 REPLIES 11
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
4,172

Hello Sreeja,

I think you can use character formats & tabs )

Use tabs to position the text.

BR,

Suhas

Edited by: Suhas Saha on Jan 19, 2009 4:28 PM

Read only

Former Member
0 Likes
4,172

Hi ,

There is no alignment option for character format..also for this particular script , even in edit mode, create character format(edit->create element , edit->delete element and edit->copy element)is disabled.

Please suggest

Regards,

Sreeja

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
4,172

Hello Sreeja,

I just checked, you can use the following command to add the Paragraph format addition to incl. text )


/: INCLUDE &EKKO-EBELN& OBJECT EKKO ID F02 LANGUAGE &NAST-SPRAS& PARAGRAPH F

Use a paragraph format which is centred.

BR,

Suhas

Edited by: Suhas Saha on Jan 19, 2009 4:35 PM

Read only

former_member585060
Active Contributor
0 Likes
4,172

Hi,

Goto SO10 Tcode,

Give the Text Name"EKKO", Text Id "F02", Lang"EN"

Click on Change

Menu>Format>Paragraph

Select C(for Centre)

Save and activate

if it not allows u to change, create a ZEKKO and do as i said and use that one in your script

Now call the same object in SAPScript and see the output

Edited by: Bala Krishna on Jan 19, 2009 4:34 PM

Read only

Former Member
0 Likes
4,172

Hi ,

SO10 is the transaction code for creation of standard text,standard test is mainly used in script and smart form ,if some text is repeated in script r smart form no need to write every time in the layout ...

just create the standard text just call the in the layout... like

/:INCLUDE &GD_TEXT& OBJECT TEXT ID &GD_ID& LANGUAGE &GD_LANG&

GD_TEXT = Standard text name created within transaction SO10

GD_ID = Standard text ID set in transaction SO10

GD_LANG = Standard text language set in transaction SO10

if u want to print the text incenter choose below path

menu >format>paragraph --->choose type c -


for centre

Regards,

Madhu

Read only

Former Member
0 Likes
4,172

Hi Suhas,

Thanks for the answer..

But in this script , even in edit mode, create paragraph format(edit->create element , edit->delete element and edit->copy element)is disabled.So I am unable to create a new paragraph format..

Please suggest

Regards,

Sreeja

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
4,172

Hello Sreeja,

Talk to your basis/security team. I cannot beleive in the developement system you DONOT have authorization to create / change paragrapgh formats.

Are you able to change the coding in the Script?

BR,

Suhas

Read only

0 Likes
4,172

Ya..I can edit code here ...only for this script i am facing this problem..

Read only

0 Likes
4,172

Hi Sreeja

Plz code with the syntax below:

/: INCLUDE name [OBJECT o] [ID i] [LANGUAGE l] [PARAGRAPH p]

[NEW-PARAGRAPH np]

Complete text will be displayed in the Format P specified if you have PARAGRAPH addition.

If you have NEW-PARAGRAPH along with it, then the 1st line of the text will be displayed in the NP format specified & the rest of the lines will be displayed in P format. If PARAGRAPH is not mentioned then complete lines of text will be displayed in NP format.

Thanks,

Geetha

Read only

0 Likes
4,172

It looks like you are not editing the script in the original language.

The script might have been created in language 'DE'.

You will be able to create / change the paregraph formats and character formats only in the original language.

You will be able to edit the window contents only in any other language.

When you enter the form name in the script. there is a field for language.. you have to select the original language and go into edit mode..

Thanks,

Kalyan

Read only

0 Likes
4,172

Hi Sreeja,

did you find the solution for this?

i am facing the same problem.