Skip to Content

Manual Document Number

Hi all

Is there any way to prevent user to select Manual Document Number?

Kedalene Chong

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 20, 2013 at 12:42 PM

    Hi,

    try below SPTN

    if (@object_type = '22') and (@transaction_type IN ( 'A'))

    BEGIN

    IF exists (select T1.DocEntry FROM OPOR T1

    where T1.DocEntry =@list_of_cols_val_tab_del and t1.Series=-1 and t1.UserSign=1)

    Begin

    SET @error = 30

    SET @error_message =N'You are not authorized to Use Manual Series'

    end

    END

    if (@object_type = '20') and (@transaction_type IN ( 'A'))

    BEGIN

    IF exists (select T1.DocEntry FROM OPDN T1

    where T1.DocEntry =@list_of_cols_val_tab_del and t1.Series=-1 and t1.UserSign=1)

    Begin

    SET @error = 30

    SET @error_message =N'You are not authorized to Use Manual Series'

    end

    END

    Above SP is for blocking PO & GRPO for manual series when user is manager

    you can make changes according to your requirement

    regards,

    raviraj

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 20, 2013 at 08:47 AM

    Hi,

    Yes possible by means Transaction Notification. Please advice required document/s, SAP version and PL.

    Thanks & Regards,

    Nagarajan

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 20, 2013 at 10:54 AM

    Hi,

    Check this SP

    IF @object_type='2' AND (@transaction_type='A' or @transaction_type='U')

    BEGIN

    if(Select Count(*) from OCRD T0

    where (T0.Series='1' or T0.Series='2') and T0.CardCode=@list_of_cols_val_tab_del)>0

    begin

    SET @error = 0201

    SET @error_message= 'Please Select Correct Series'

    GOTO EXITLINE

    end

    end

    Thanks,

    Nithi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 20, 2013 at 08:59 AM

    Hi,

    yes, you can prevent user to select Manual Document Number using Transaction Notification case of manual series.

    Other series can be blocked for some user by applying Authorization using groups in series set up.

    regards,

    Raviraj

    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.