cancel
Showing results for 
Search instead for 
Did you mean: 

Acces dynamic configuration variable (e.g. filename) in ABAP mapping class

Markus7
Participant
0 Kudos

Hi experts

I am searching for a possibility to acces a dynamic configuration variable (DCV) in an ABAP mapping class. Since I could not find a solution in SDN and other sources, I hope somebody in this forum can help me.

What I already found is the following code which can be used to set a DCV, but what I would be interested in is how to read a DCV.

Any help is appreciated.

Markus

METHOD if_mapping~execute.
 
DATA l_record type mpp_dynamic.
 
* copy payload
result = source.
 
* add an adapter specific attribute
l_record-namespace = 'http://sap.com/xi/XI/System/File'.
l_record-name = 'FileName'.
l_record-value = 'test.xml'.
dynamic_configuration->add_record( l_record ).
 
ENDMETHOD.

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi Markus,

you can find everything in my blogs

/people/michal.krawczyk2/blog/2007/04/26/xipi-throwing-generic-exceptions-from-any-type-of-mapping

Regards,

michal

Markus7
Participant
0 Kudos

Hi Michal

That is exactly what I needed! I was rather close to this solution, but was not able to implement it correctly.

Thanks a lot for your help!

Regards

Markus

Answers (0)