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

Urgent / SAP script

Former Member
0 Likes
474

hi all ,

can anybody tell me how can i give the condition in windows or page windows?

i have to print text that....'u r not authorised to print this document no' .

i have given it in windows as well as in page window...

but problem is that i have to print this msg only for fiew document type ...LFKART.

means IF LFKART <> 'ZMNM' or LFKART <> 'ZMNV' .

'u r not authorised to print this document no'

ENDIF .

i m also using a program accordingly .

but in o/p, msg is coming for 'zmnm' n 'zmnv' also which i don't want..

can anybody help me its urgent.....

thanks in advance.

saurabh srivastava.

3 REPLIES 3
Read only

former_member784222
Active Participant
0 Likes
438

Hi,

I assume LFKART is a variable in SAPscript.

So try using:

IF &LFKART& <> 'ZMNM' OR

&LFKART& <> 'ZMNV'.

'Your message'

ENDIF.

Reward if helpful.

Thanks and regards,

Mouli.

Read only

0 Likes
438

hi sir ....

i did it in form pagewindow with command line . but still in output msg is coming...

sir any other idea ???

saurabh.

Read only

former_member784222
Active Participant
0 Likes
438

Hi,

Please try this: it will print the message for all other document types except ZMNM and ZMNV.

/: IF &LFKART& = 'ZMNM' or &LFKART& = 'ZMNV'.

/: ELSE

  • Your message

/: ENDIF.

Or you can try the following.

/: IF &LFKART& <> 'ZMNM' AND &LFKART& <> 'ZMNV'.

  • Your message

/: ENDIF.

Thanks and regards,

Mouli.