cancel
Showing results for 
Search instead for 
Did you mean: 

SAPScript /: INCLUDE statement, no new line

glen_spalding
Participant
0 Kudos

dear all, i am sure there is a way of doing this, just cannot see how.

quite simply, i wish to have a description before the

/:INCLUDE &T166P-TXNAM& OBJECT &T166...

gets displayed, but on the same line !

currently this,

/E ITEM_TEXT

D1 Material Description

/: INCLUDE &T166P-TXNAM& OB...

throws a new line, which i know, but dont want

thanks in advanced

ps. print program must stay the same, also, no shelling out to other zprogram. want to do this in SAPScript

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member196280
Active Contributor
0 Kudos

Usually for variable and text it works out like this..

&'Your order acknowlegment 'EKPO-Labnr&

I am not sure for INCLUDE, you can have a try.

Regards,

SaiRam

glen_spalding
Participant
0 Kudos

.

former_member585060
Active Contributor
0 Kudos

Use a subroutine program to get the Include text value. With this you can get your requirement.

Refer this link

http://help.sap.com/saphelp_40b/helpdata/en/d1/803279454211d189710000e8322d00/content.htm

http://www.sap-img.com/abap/use-fm--read-text-to-read-the-various-text.htm

http://www.sapdevelopment.co.uk/fmodules/fms_readtext.htm

Edited by: Bala Krishna on Sep 12, 2008 8:36 AM

glen_spalding
Participant
0 Kudos

hello, thanks for response, but i did say i want to do this without shelling out to another program, and i wanted to do this is all in SAPscript.

ta

former_member585060
Active Contributor
0 Kudos

Try this

General syntax

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

/E ITEM_TEXT

D1 Material Description

/:INCLUDE &T166P-TXNAM& OBJECT &T166& PARAGRAPH 'D1'

glen_spalding
Participant
0 Kudos

hello,

i do not appear to be making myself clear.

it needs to be on the same line

thanks

former_member585060
Active Contributor
0 Kudos

Hi,

Identify your Object and Text Id,

You can get the value by debugging the script,

Goto Tcode SO10,

Give the Object name and Object Id,

See for the Format option of the Text, i mean in which paragraph format it is using. If it is /: change it to =. Save and come out. ( You can use different options here according to this the text will appear in SAPScript)

Now check the output. It will be in same line.

By default all the standard texts created in SO10 are with /:, we can change according to our requirment by Menubar> Format>Line.

Hope this will solve your requirment.

Regards

Bala Krishna

glen_spalding
Participant
0 Kudos

hello bala

i am not exactly using a standard text, moreso a text from MM. The ID is not ST, it is BEST.

anyway, you gave me an idea, so i went to look into the MM text editor, and sure enough, the formatting column was '*'. so i changed it to '=' and it worked.

thank you

glen