cancel
Showing results for 
Search instead for 
Did you mean: 

SAPSCRIPT: Hard-Coded Value with Include Text on Same Line?

Former Member
0 Kudos

I want Form output to look like:

Port of Loading: Oakland, CA.

My syntax in my form so far using IL Para Format is:

IL <H>Port of Loading:</>,,

= INCLUDE &VBDKA-TDNAME& OBJECT VBBK ID Z102 PARAGRAPH L.

But the output is incorrect and looks like this:

Port of Loading: INCLUDE &VBDKA-TDNAME& OBJECT VBBK ID Z102 PARAGRAPH L.

How do I code this in the form so it comes out on one line in the form, AND, how do I code it all on one line so the Include text displays? Usually Include text needs a command (/:), but how would I do this to include it on one line with the hard-coded text of "Port of Loading"?

Thank-You.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi TMM,

Use a subroutine pool and concatenate the hard code text and the standard text into one string and display it.

I don't think there is any other way apart from this.

Thanks,

Vamshi

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

use READ_TEXT FM in program (instead of INCLUDE in Script) to READ the text.

now concatenate 'Port of Loading:' to text read from the FM into one variable.

Print this variable in script using 'WRITE_FORM' FM.

Hope it helps!!

Rgds,

Pavan