2012 Sep 13 9:50 PM
Question: Programmatic variant manipulation
Program SAPF100
Phony logical database in attributes: D$S
The code changes the company entries in a variant monthly based on a ZTABLE.
1) Pulling the contents of a variant using FM RS_VARIANT_CONTENTS
a. Be careful and use M rather than W to prevent conversion exits.
2) Deleting the BUKRS entries from TABLE VALUETAB.
3) Adding new entries BUKRS entries to the TABLE VALUETAB.
4) Writing the variant back with new table using FM 'RS_CHANGE_CREATED_VARIANT'
Works well, except some of the variants have FREE selections. FM RS_VARIANT_CONTENTS doesn’t seem to pull them correctly, possible because of the weird logical database attached to the program.
I need the FREE selections to be written back to the variant, currently they are being lost.
Any help or suggestions are welcome.
2013 Mar 22 2:52 PM
2013 Mar 22 2:52 PM