In the information system that i am working with (SAP Business One), every document is represented in an SQL table.
Client order document : ORDR
Invoice document : OINV
Purchase Quotation : OPRQ
when the user clicks on one of the buttons, i need to use a exist function that checks in a part of the SQL tables, and checks if this client has documents in the system. the function returns a string message with the names of the tables that represent the documents this client has in the system.
i need to write a function that will replace the table names with the documents names.
eample:
"Client with ID:5634 has documents: OINV, ORDR"
needs to be replace with
"Client with ID:5634 has documents: Invoice, Client order"
I guess should use a string dictionary. How to do it?
thanks