cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Restriction in Receipt from Production quantity

dlar0005
Discoverer
0 Kudos
855

Hello Guys,

How I can develop a transaction notification in SAP b1 HANA whenever the qty in Receipt from Production is not equal to Production Order?

Accepted Solutions (0)

Answers (2)

Answers (2)

narayanis
Active Contributor
0 Kudos

Hi,

Try This Out Please

IF ((:transaction_type = 'A' ) AND :object_type = '59' and error = 0) THEN

Declare Count1 int;

SELECT IfNull(COUNT (p."Type"),0) Into Count1 From OIGN b inner join IGN1 bs On b."DocEntry"=bs."DocEntry" and bs."LineNum"=0

inner join OWOR p On p."DocEntry"=bs."BaseEntry"

where b."DocEntry" = list_of_cols_val_tab_del

and p."Type"='S'

and bs."BaseType"='202'

and p."PlannedQty" <> bs."Quantity";

IF IfNull(COUNT1,0) > 0 THEN

error := -29043;

error_message := 'You can not Complete more than planned!';

END IF;

END IF;

Regards
SonTran
Active Contributor
0 Kudos

Hi,

You can refer this Transaction Notification for the same.

Hope this helps,

Son Tran

dlar0005
Discoverer

Thanks..

Also it seems you made forum to help us SAP user. I probably join you there..

SonTran
Active Contributor
0 Kudos

Glad to hear that.

If my answer is helpful, you can mark it as correct/helpful.