cancel
Showing results for 
Search instead for 
Did you mean: 

ISSUE for production-Blocking

Former Member
0 Kudos

Dear Experts,

In issue for production screen,dont allow to choose 21 & 26 warehouse rest of all warehouse allow to choose & issue the material.

Can you please provide SP_TN for this case.

I tried it but its not blocking.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You may check if you can have any results by running a simple query:

select n.DocEntry, n.DocDate  from IGE1 n

where n.WhsCode in ('21' ,'26')


Thanks,

Gordon

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi ,

Try this

IF @object_type= '60' AND @transaction_type in ('A')

BEGIN

IF EXISTS (select n.DocEntry  from IGE1 n

where n.WhsCode in ('21','26') and n.BaseType=202  AND n.DOCENTRY= @list_of_cols_val_tab_del)

BEGIN

SELECT @Error = 1, @error_message = 'Change Whscode'

END

END

Former Member
0 Kudos

Hai,

Above SP_TN not blocking its allowing to add.

Former Member
0 Kudos

Try this,

IF @object_type= '60' AND @transaction_type in ('A')

BEGIN

IF EXISTS (select n.DocEntry  from IGE1 n

where (n.WhsCode ='21' or n.WhsCode ='26')   AND n.DOCENTRY= @list_of_cols_val_tab_del)

BEGIN

SELECT @Error = 1, @error_message = 'Change Whscode'

END

END