‎2008 Mar 18 1:42 PM
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.
‎2008 Mar 18 1:48 PM
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
‎2008 Mar 18 3:09 PM
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.
‎2008 Mar 18 3:14 PM
Hi,
Check the below FM's, it will be usefull
RS_CHANGE_CREATED_VARIANT
RS_VARIANT_CONTENTS
RS_VARIANT_CHANGE
---
Patil
‎2008 Mar 18 3:23 PM
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.
‎2008 Mar 18 3:28 PM
Hi,
Check this
RS_VARIANT_EXISTS
RS_CREATE_VARIANT
RS_VARIANT_VALUE_SAVE
.....
Patil
‎2010 Jan 25 8:39 PM
‎2010 Jan 25 8:44 PM
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