Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SECATT maintain data and read value with ABAP

ralfhs
Explorer
0 Kudos
467

I maintained in SECATT the following parameter:

Then I created a variant and filled the structure with some data.

In ABAP I wrote the snipped like:

data ls_ordim_o type /SCWM/S_ORDIM_O.
lo_tdc_api->get_value( exporting i_param_name = 'ORDIM_O'
                                   i_variant_name = 'Z_UNITTESTS'
                                   changing e_param_value = ls_ordim_o ).

Finally I get some data in ls_ordim_o, but not the data I maintained.

Therefore my questions:

  1. Is it correct to use the structure as a parameter in SECATT or should I use the table or the type? (Table did also not work)
  2. Is the code correct to read the data from SECATT?

I want to use the SECATT data in the unittest.

Thank you very much

Ralf

1 ACCEPTED SOLUTION

ralfhs
Explorer
0 Kudos
415

It's working. I just missed a typo.

2 REPLIES 2

ralfhs
Explorer
0 Kudos
416

It's working. I just missed a typo.

abo
Active Contributor
415

S_ORDIM_O vs ORDIM_O, I guess