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

Activating dynamic date calculation in variant

Former Member
0 Likes
5,029

Per the link below, I used to be able to activate "dynamic date calculation" in variant.

<link to blocked site removed by moderator>

Our system has been upgraded to 6.0 and now we do not the same variant attribues screen where I can activate the "D" variable. It brings me to program/screen SA38/281.

Any suggestion how I may activate the "D" dynamic date calculation variable in a variant?

Edited by: Thomas Zloch on Oct 14, 2011 11:34 AM

1 ACCEPTED SOLUTION
Read only

former_member209703
Active Contributor
0 Likes
3,116

Hi Stacy.

Keep in mind that you can only apply the 'D Variable' to fields of type D (Dates), for other data types like character, decimal or integer you can not apply it.

That may be your case?

Regards.

Per the link below, I used to be able to activate "dynamic date calculation" in variant.

<link to blocked site removed by moderator>

Our system has been upgraded to 6.0 and now we do not the same variant attribues screen where I can activate the "D" variable. It brings me to program/screen SA38/281.

Any suggestion how I may activate the "D" dynamic date calculation variable in a variant?

Edited by: Thomas Zloch on Oct 14, 2011 11:34 AM

12 REPLIES 12
Read only

former_member209703
Active Contributor
0 Likes
3,116

Hi Stacy

Actually in 6.0 you do have this option in the new variant Attributes screen.

Check this image: http://img834.imageshack.us/img834/2180/testgmb.jpg

Regards

Read only

0 Likes
3,116

Thanks Jose Maria for your response. The attached link does not work. It "Connecting..." for long time and finally times out. Please check your link.

Read only

0 Likes
3,116

I think your company, firewall/ASA server is blocking the imageshack.us domain name.

In the column "Selection Variable" corresponding to the date row click match code or select that cell and press F4 in the pop up window the double click on D. Do the same thing for the column "Name of the variable".

Edited by: Jeevan Sagar on Oct 13, 2011 5:24 PM

Read only

Former Member
0 Likes
3,116

In ECC 6.0, In the Variant Attributes screen, F4 Selection variable and select 'D' and in the Name of Variable select the function needed.

Read only

Former Member
0 Likes
3,116

Hi you can follow the below steps for Dynamic date selection

1>> Execute the report

2> Click on save button ( as variant )

3> Goto "Objects for selection screen" , select the date field -> set selection variable as 'D' and select select the name of variable ( Dynamic date )

4> Save the variant

Read only

0 Likes
3,116

Thank you for all your responses.

For some reports, the "T" (table TVARVC) and "D" (dynamic date calculation) are visible in the Selection Variable" column. But some reports only have "T" variable type. For those reports the "D" variable type not visible, how we may activiate to make "D" visible?

Read only

former_member209703
Active Contributor
0 Likes
3,117

Hi Stacy.

Keep in mind that you can only apply the 'D Variable' to fields of type D (Dates), for other data types like character, decimal or integer you can not apply it.

That may be your case?

Regards.

Read only

0 Likes
3,116

I have two reports side by side, both are custom built, use the same data field, and both are type "P". One has the "D" varible (possibly activated prior to upgrade) and the other one doesn't. Strange!

Read only

0 Likes
3,116

That's really strange indeed. Which data type is using if i may ask?

Could you paste here the relevant selection screen code?

Read only

0 Likes
3,116

Jose Maria:

Thanks for taking your time in helping on this. Both reports are using the same field P_DATEHG (to-date), prgram screen SAPLSVAR, and screen #281.

Program (GUI) - SAPLSVAR

GUI status - ALV_ATTR

Stacy

Read only

0 Likes
3,116

Actually I meant the relevant code of your custom report, you just provided me with the info of the standard variant screen.

You can go to SE38, enter your custom report name, display the code, and paste the definition of that parameter. (It would be something like


PARAMETERS: P_DATEHG TYPE XXX_TYPE.

What I am interested in is to know which data type is being used, since this functionaliy will only apply to date type fields. So, bottom line: this field must definitely be a date, which makes me think that either something has changed in the custom report or after the upgrade to ECC 6.0 this data type might have changed as well.

Best regards.

Edited by: Jose Maria Otero on Oct 14, 2011 5:26 PM

Read only

0 Likes
3,116

Hi Jose Maria:

You are right about the data type of the date field. We have reset it to be DATS, now It works properly and the "D" Dynamic Date Calculation visible. Thank you for taking your time in helping me.

Regards,

Stacy