Skip to Content

Urgent / SAP script

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 06:49 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 10:11 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.