Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

A question about sets

Hi guys!

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 '',

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


Former Member replied

Hello Ronaldo

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:


Luis Becker

1 View this answer in context
Not what you were looking for? View more on this topic or Ask a question