Skip to Content
Former Member
May 03, 2012 at 06:44 AM

How can we change filepath dynamically in Variant which is used in standard SAP program and based on this program and variant details, a job will run on daily basis.


Hi Experts,

I have a question as menyioned below:

Scenario is : Application server file path consists of filename which will dynamically change daily based on current system date,

Now i need to use this updated filepath in existing job variant of standard SAP program , Please let me know how to achieve this functionality.

I went through below link but it is mentioned for custom program but not for standard program.

I tried to get variant details using Function Module " RS_VARIANT_CONTENTS" and "RS_CHANGE_CREATED_VARIANT"

but this VALUTAB/VARI_CONTENTS parameters of these function modules is capable of holding 45 characters itself where as my file name is morethan 45 characters hence i am not able to change the file path using these function modules.