I found this very useful macro to add rows to a table (while defining the rows externally from the table): Command to continually add to table with a command/macro
In my case the macro has only some changes, it works fine:
\documentclass{article}
\usepackage{longtable}
\newcommand\PutLongtableRows{}
\makeatletter
\newcommand\AddLongtableRow[1]{%
\g@addto@macro\PutLongtableRows{\@gobble}%
\@for\tmp:=#1\do{%
\expandafter\g@addto@macro\expandafter\PutLongtableRows
\expandafter{\expandafter&\tmp}%
}%
\g@addto@macro\PutLongtableRows{\\*\nobreakhline}%
}
\makeatother
\begin{document}
\AddLongtableRow{5.9,5.8,R2C3,R2,3C}
\AddLongtableRow{R2C1,RCC2C2,R2C3,R2,3C}
\begin{longtable}{p{2cm}|p{3cm}|p{3cm}|p{2.5cm}|p{2.5cm}}
\caption{Blabla}
\\*\nobreakhline\nobreakhline
\PutLongTableRows
\nobreakhline
\end{longtable}
\end{document}
Now I face the problem of the comma separation. I need to change the separator since numbers in our report have a comma. So the following will definitely lead to a wrong table:
\AddLongtableRow{5,9,5,8,R2C3,R2,3C}
If i could change the separator i. e. to semicolon ; it could work like this:
\AddLongtableRow{5,9;5,8;R2C3;R2;3C}
How to change the comma separator to another one? If I leave the & in the macro it will not work either even after removing the for loop... Appreciate your help (if possible without additional packages).


