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

Changing variant's values

Former Member
0 Likes
1,675

Hi,

I want to change the variant's values through my program.

The problem is: one field contents are 60 characters long and I can't use the FM 'RS_CHANGE_CREATED_VARIANT' because it has limitation of changing/creating field's content up to 45 characters.

Secondly, field CLUSTD of table VARI contains the field's value in some different format than CHAR.

It's urgent.

Hope to get some solution soon.

Regards,

Bobby

7 REPLIES 7
Read only

Former Member
0 Likes
994

hi Bobby,

chk this prog RS_CHANGE_VARIANT

Reward points if useful

Read only

Former Member
0 Likes
994

Check with <b>RS_CHANGE_CREATED_VARIANT_RFC</b> also.

Cheers,

TM

Read only

Former Member
0 Likes
994

FM 'RS_CHANGE_CREATED_VARIANT_RFC' also has limitation of changing/creating field's content up to 45 characters.

Program RS_CHANGE_VARIANT calls the selection-screen of the program. However, I want to pass the new values of variant from my program only.

Read only

0 Likes
994

Hi Bobby,

I have also the same situation what u have mentioned here.

i want to change the Varaint of a program thro a program which is scheduled in backgroung.Please inform me if u have got any function module to change the variant value thro program.

Thanks

Arun

Read only

Former Member
0 Likes
994

Hi

I recently saw this thread and thought of keeping my reply as well.

In order to update the variant thru the pgm,if the FM's has the constraints with the length,then you can try this.

In the selection screen,after selecting the variant, when you go with save,it takes you to the variant attributes.Here you can select the option 'Save field with out values' for the reqd field and can then populate the values to that field frm the pgm.

Hope this helps.

Read only

Former Member
0 Likes
994

Bobby,

Any luck with this. I am in same situation too.....Im trying to download variants to a flat file. But 45 char limit is a issue. I can download with IMPORT statement but when I try to EXPORT it I have issues again with 45 limit.

If you have got thru this issue, please update with what you have done to overcome.

thanks

Bhaskar