cancel
Showing results for 
Search instead for 
Did you mean: 

how to create dynamic variant in VA05N

Former Member
0 Kudos

Hi Champs,

My requirement is simple as follow.

I want to run VA05N with only document date in selection. Rest of the field will be blank.

And for the same I am trying to schedule the background job. I know SM36 and SM37 mapping. Only thing I am stucked up is to set document date in variant.

I want to set document date as follow.

From date: 01.09.2012 (always fixed)

To date: (Current date - 1)

How to set this variant ?....please help...

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Just sharing the following result which I found out.

I had found out that variant can not be saved with one value dynamic and other is fixed.

SAP has different option for the same as shown below.

My suggestion to SAP is to develop one more option like (fixed date, current date - xxx).

Answers (2)

Answers (2)

Lakshmipathi
Active Contributor
0 Kudos

There is no variant creation option in VA05N and hence you can try to hard code this in program SD_SALES_ORDERS_VIEW.   Alternatively, you can also try with Function Module SD_SELECT_SALES_DOCUMENTS

G. Lakshmipathi

Former Member
0 Kudos

Thanks Lakshmipathi,

Option to create variant in VA05N is available.

Just enter required values in VA05N input screen and save the selection. SAP will redirect you to variant save screen where you can manage variant.

Former Member
0 Kudos

Hi Tarpan,

The option to create variant is there in VA05N. But the requirement

From date: 01.09.2012 (always fixed)

To date: (Current date - 1)

that you are looking for is not fulfilled from it. You have various other options available there.

I think you will have to think the way Lakshmipathi has explained.

regards,

Sagar

Former Member
0 Kudos

Thanks Sagar,

I always prefer to get solution in standard SAP first....Otherwise with Z-program I can do any thing...

I had tried by myself to find out the solution is standard but not succeeded.

But now I think I will have to go with Z-program only to meet my requirement as its not possible to set variant as per my requirement.

Thanks guys...

Former Member
0 Kudos

Hello Experts,

Please response as this is really a challenging task...