Skip to Content
author's profile photo Former Member
Former Member

validate default value

HI FRIENDS,

PLX HELP ME HOW THE LOGIC FOR BELOW CONTENT

1. “Control Class”: Write “Ctr Vault” if MAEX-ALNUM(export control class) = ("CNTROL2" or "CNTROL2N") and Write “Ctrl Cage” if MAEX-ALNUM = ("CNTROL3" or "CNTROL3N" or "CNTROL4" or "CNTROL5") else Write “NonCtrl” where MATNR=VBAP-MATNR and match with the user-specified input in selection criteria

#times excess qty Default value: If “control class-ABOVE NO 1" = "NonCtrl” then value = 3 Else value = 2. User able to change the default value.

regards,

divya

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 05, 2006 at 09:56 AM

    CASE MAEX-ALNUM.

    WHEN 'CNTROL2' or 'CNTROL2N'.

    Write 'Ctr Vault'.

    WHEN 'CNTROL3' or 'CNTROL3N' or 'CNTROL4' or 'CNTROL5'.

    write 'Ctrl Cage'.

    WHEN OTHERS.

    Write 'NonCtrl'

    ENDCASE.

    max

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 05, 2006 at 09:58 AM

    for 1.

    Ans:

    if MAEX-ALNUM = "CNTROL2" or MAEX-ALNUM = "CNTROL2N".

    Write “Ctr Vault”

    elseif MAEX-ALNUM = "CNTROL3" or MAEX-ALNUM = "CNTROL3N" or MAEX-ALNUM = "CNTROL4" or MAEX-ALNUM = "CNTROL5".

    Write “Ctrl Cage”.

    elseif.

    Write “NonCtrl”

    endif.

    Ramesh.

    or

    CASE MAEX-ALNUM.

    WHEN 'CNTROL2' or 'CNTROL2N'.

    Write 'Ctr Vault'.

    WHEN 'CNTROL3' or 'CNTROL3N' or 'CNTROL4' or 'CNTROL5'.

    write 'Ctrl Cage'.

    WHEN OTHERS.

    Write 'NonCtrl'

    ENDCASE.

    Ramesh.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 05, 2006 at 10:00 AM

    for 2.

    Ans:

    If “control class-ABOVE NO 1" = "NonCtrl” .

    value = 3

    Else.

    value = 2.

    endif.

    Ramesh.

    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.