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

Automatic variant update

Former Member
0 Likes
2,081

We have a report with variant created for it. This variant contains all the plants for the client. Now if a new store/plant is recognized they update a z table with new store information.

My object is to update this variant automatically if a new store is created and also i need to schedule a weekly job to update this variant. can anyone help me out?

regards.

7 REPLIES 7
Read only

Former Member
0 Likes
1,252

If the Z-table is updated through table maintenance generator, in the PAI of the table maintenance generator screen you can write code to update the variant that you are talking about.

If your report program has stores on the selection screen and you want the variant of this report to be automatically changed, follow these steps.

1. Create a variant and in that for stores field choose the checkbox

"Save field without values".

2. In the INITIALIZATION of your report program, get the values from Z-table and

populate the select-options for stores.

Hope this helps. <REMOVED BY MODERATOR>

Thanks,

Balaji

Edited by: Alvaro Tejada Galindo on Mar 18, 2008 5:49 PM

Read only

0 Likes
1,252

balaji,

in the report itself i need to create automatic variant. they are storing variants as zplantXXXX, so lets say plant number is 1000. A variant zplant1000 will be created.

now i have to check if any plant is missing in the variant list, if it is i need to create that variant.

Read only

santhosh_patil
Contributor
0 Likes
1,252

Hi,

Check the below FM's, it will be usefull

RS_CHANGE_CREATED_VARIANT

RS_VARIANT_CONTENTS

RS_VARIANT_CHANGE

---

Patil

Read only

0 Likes
1,252

Patil,

these fms are just giving me the variant information, if suppose the variant is not created it has to be created automatically. Once the variant is created automatically it gets stored in table VARID.

Read only

0 Likes
1,252

Hi,

Check this

RS_VARIANT_EXISTS

RS_CREATE_VARIANT

RS_VARIANT_VALUE_SAVE

.....

Patil

Read only

Former Member
0 Likes
1,252

solved

Read only

0 Likes
1,252

The "comment" field is not mandatory.

Besides, if you ask a subsequent question after such a "lazy close" then it had better be a good one....

Feeding forum trolls too lazy to search for themselves is not tollerated!

Cheers,

Julius