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: 
Read only

Programmatic variant manipulation

FelixOrtiz
Explorer
0 Likes
466

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.

1 ACCEPTED SOLUTION
Read only

FelixOrtiz
Explorer
0 Likes
407

No solution found.

1 REPLY 1
Read only

FelixOrtiz
Explorer
0 Likes
408

No solution found.