piersharding / RSAP

SAP NW RFC connector for R
21 stars 16 forks source link

Use different delimiter than semicolon in RSAPReadTable #4

Closed gllrt closed 6 years ago

gllrt commented 6 years ago

In a table I whose data I need to access semicolons are contained in string fields and the current version of RSAPReadTable yields a wrong output.

Having looked into the code of RSAPReadTable the problem seems to be the choice of semicolon as the delimiter. If I understand the RFC_READ_TABLE correctly, there is no option to have the field content enquoted.

As a workaround one could use a more obscure character such as "‡" as the delimiter.

piersharding commented 6 years ago

Hi -please see the latest commit, I have added the optional 'delimiter' parameter which defaults to ';'. Let me know if it works for you.

gllrt commented 6 years ago

Hi, indeed your latest commit solves the issue nicely.