Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Per Payment Document Expenses added not more than 5 lines

Hai Experts,

In outgoing payment Expenses added per document not more than 5 lines per document. Kindly provide SP_TN for this case..

Regards

Mohamed Yousuf Ali M I

Former Member
Former Member replied

Hi

Try This

if @object_type = '46' and @transaction_type in ('A','U')  

   begin

        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)

          begin

          

   SET @error = 1234

   SET @error_message = 'Outgoing Payment lines Not More than 5 lines'

 

       end

end

With Regards

Balaji Sampath

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question