Per Payment Document Expenses added not more than 5 lines
In outgoing payment Expenses added per document not more than 5 lines per document. Kindly provide SP_TN for this case..
Mohamed Yousuf Ali M I
Balaji Sampath replied
if @object_type = '46' and @transaction_type in ('A','U')
if exists(Select distinct 'Error'
from VPM4 T0 INNER JOIN OVPM T1 ON T0.DocNum = T1.DocEntry where T0.LineId > '5' and T1.DocEntry = @list_of_cols_val_tab_del)
SET @error = 1234
SET @error_message = 'Outgoing Payment lines Not More than 5 lines'