Remove blank lines in dataport

Aravindh_NavisionAravindh_Navision Member Posts: 258
Hi Friends,

Please find the below dataitem structure in dataport.
DataItem	                 Name
-----------------------------------------------
Sales Invoice Header	<Sales Invoice Header>
Sales Invoice Line	         SIL_Tax_1
Sales Invoice Line	         SIL_Tax_2
Sales Invoice Line	         SIL_Tax_3
Sales Invoice Line	         SIL_Tax_4
Sales Invoice Line	         SIL_Other
I am using SIL_Tax_1, SIL_Tax_2, SIL_Tax_3, SIL_Tax_4 for calculating the VAT Amount Totals of 4 different VAT percentages say 0%, 10.50%, 21%, 27% respectively. I need to show only the totals of the available percentages in Sales Invoice Line in the text file.

For example,

In Sales Invoice Line, I am having..
1st record: 0%
2nd record: 21%
3rd record: 0%
4th record: 21%
5th record: 0%
6th record: 0%
I need to add the VAT Amount of 0% and 21 % and show only those 2 lines in the text file and not for 10.5% and 27%. Currently I am getting a blank line for 10.5 % and 27% and those blank lines should be removed in the text file.

Can anyone help in doing this?

Thanks,
Aravindh

Answers

Sign In or Register to comment.