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

Customer Exit Situation

Former Member
0 Likes
754

Dear All,

I have a scenario where the user wants to see the system date minus the 6 days in the variable screen  selection day interval variable.

Which means the user wants to see the one week date entries in the date interval variable selection.

If the report is run today then the date interval should show 6/11/2013 to 12/11/2013.

I searched for SAP exit variable for this scenario but I couldn't find any.

So thought of using Customer exit variable and call in I step 1.

Not sure what the code should be.

Please help.

Regards

Zabi

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
719

Hi.

is it a standard report or Z (custom) ??

The report should have a date field, ex: s_datum. So in ur program the logic must be sth like this.

s_datum-sign = 'I'.

s_datum-option = 'BT'.

s_datum-low = sy-datum - 6.

s_datum-high = sy-datum.

append s_datum.

Regards

Miguel

Dear All,

I have a scenario where the user wants to see the system date minus the 6 days in the variable screen  selection day interval variable.

Which means the user wants to see the one week date entries in the date interval variable selection.

If the report is run today then the date interval should show 6/11/2013 to 12/11/2013.

I searched for SAP exit variable for this scenario but I couldn't find any.

So thought of using Customer exit variable and call in I step 1.

Not sure what the code should be.

Please help.

Regards

Zabi

5 REPLIES 5
Read only

Former Member
0 Likes
719

Can you not use a screen variant?

Neal

Read only

Former Member
0 Likes
719

You want to show this date in the parameters of your report?

You can use funcion "RM_GO_BACK_N_DAYS".

Use START_DATE = sy-datum and N_DAYS the number os days you want to go back.

Put the code in INITIALIZATION event.

Read only

Former Member
0 Likes
719

Syed,

You can accomplish this using a Variant created for the Program.

1. Goto the Variant  Attributes in :Change Mode"

2. Choose the  Selection variable "D:Dynamic Date Option" for the  Select option  .

3. In the Column  Name of the Variable choose "Current date - xxx,current date + yyy"

4. In xxx enter 6 and yyy enter 0 .

Ram

Read only

0 Likes
719

That's the best solution in my eyes - no coding necessary. Best fit for jobs which have to run on a daily basis.

Read only

Former Member
0 Likes
720

Hi.

is it a standard report or Z (custom) ??

The report should have a date field, ex: s_datum. So in ur program the logic must be sth like this.

s_datum-sign = 'I'.

s_datum-option = 'BT'.

s_datum-low = sy-datum - 6.

s_datum-high = sy-datum.

append s_datum.

Regards

Miguel