A question about sets
I'm writing this post just to ask you something about sets.
I have a program with some constants and I would like to remove then and replace then for something more flexible... Those constants are storing data like :
c_user TYPE char30 VALUE 'SAP',
c_host TYPE char64 VALUE '188.8.131.52',
c_dest TYPE rfcdes-rfcdest VALUE 'SAPFTPA',
c_pwd TYPE char25 VALUE 'ZXDEP4T3C'.
I was thinking in create a table to store this data but a friend tell me about sets, but for me sets doesn't looks like a good choice for this specific case.
So I'm asking you guys a opinion. What's the better choice for something like that?
thanks in advance
Rather than using sets, built for other purposes like report systems in the SAP ERP, I'd suggest to use table TVARV. This was designed to provide variants for ABAP reports, but it can be easily used to store ranges and fixed values for programs.
Values can be set in transaction STVARV and a sample code to retrieve values can be found here: