cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass condtions in Footer window ???

Former Member
0 Kudos

Hi all,

I have to display text in footer window only when the condition is true, How can I get it ?

I have to display some terms and condition only when the

perticular material number ends with the letter "RF".

We are having some records ending with "RF", Now how to give condition as to display those terms and condition only

when the material number ends with "RF".

I tried by writing code in Footer window in this way:

IF &mara-matnr& LIKE '%RF'.

INCLUDE sd_terms OBJECT TEXT ID ST

ENDIF.

Will this works out ???

Accepted Solutions (0)

Answers (1)

Answers (1)

messier31
Active Contributor
0 Kudos

I doubt if LIKE works in script code.

Get last 2 char of your matnr in your driver program in some variable say WL_MAT_RF..

and the check

IF &WL_MATRF& = 'RF'.

..........

ENDIF.

Enjoy SAP.

Pankaj Singh.