cancel
Showing results for 
Search instead for 
Did you mean: 

Swift Number not displayed in SAP Script

Former Member
0 Kudos

Hi,

In a SAP Script (SAP 4.7) I have the following code:

/: IF &ZZSWIFT& NE ' '

/: INCLUDE ZZABC_SWIFT OBJECT TEXT ID ST LANGUAGE &NAST-SPRAS& PARAGRAPH ZB

/: &ZZSWIFT&

/: ENDIF

The standard text ZZABC_SWIFT has the text "By Swift" in it.

The problem is that it does not show the Swift Number (&ZZSWIFT&) on the output print preview and the hard copy of the form.

I have tried using the following:

= &ZZSWIFT&

/= &ZZSWIFT&

  • &ZZSWIFT&

But the Swift No is not displayed (In print preview) or printed (printout). In debug mode, I can see that &ZZSWIFT& has a value.

Please help.

Thanks in advance.

Mick

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

Try


/: IF &ZZSWIFT& NE &SPACE&

Regards,

Michael

Former Member
0 Kudos

Thanks everyone.

I have tried increasing the width of the window, commenting out the line for the standard text, but still the swift number is not printed on the form.

What has helped is that I modified the code in the window as:

IF &ZZVKORG& NE 'SE49'

INCLUDE ZZMCG_SWIFT OBJECT TEXT ID ST LANGUAGE &NAST-SPRAS& PARAGRAPH ZB

ELSE

&'By Swift: 'ZZSWIFT&

END IF

Now the Swift No is getting printed. But the font is different from the font on the rest of the font.

How do I rectify this. Please help.

Regards,

Mick

Former Member
0 Kudos

The font is controlled by the paragraph (or possibly character) format.


/: IF &ZZVKORG& NE 'SE49'
/: INCLUDE ZZMCG_SWIFT OBJECT TEXT ID ST LANGUAGE &NAST-SPRAS& PARAGRAPH ZB
/: ELSE
ZB &'By Swift: 'ZZSWIFT&
/: ENDIF

Former Member
0 Kudos

Thanks Michael, this worked.

Thanks Sandra. Your suggestion helped. It was one line above the swift no, which was extending upto the next line due to which there wasnt enough space for the line displaying the swift number.

Points awarded.

Regards,

Mick

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Mick

The signs /: are for a command in script, if u need to print something u need to indictate a paragraph or asterics (for default paragraph), so:

/: IF &ZZSWIFT& NE ' '

/: INCLUDE ZZABC_SWIFT OBJECT TEXT ID ST LANGUAGE &NAST-SPRAS& PARAGRAPH ZB

  • &ZZSWIFT&

/: ENDIF

Max

Former Member
0 Kudos

Thanks Max.

I have already tried * &ZZSWIFT&, but its not printing.

Please help.

Mick

Former Member
0 Kudos

Hi

Try to delete the line for standard text and check if it'll be printed without it, probably the standard text overwrites it

Max

Sandra_Rossi
Active Contributor
0 Kudos

Make sure the window is large enough to display ZZSWIFT