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

Date format

Former Member
0 Likes
433

Hi Experts,

I have to selection scren parameter as p_gjhar like mkpf-gjhar.

I wanna reduce the fiscal year by one year in the select stmt.

select * from mkpf

into i_mkpf

where gjhar = p_gjhar - 1( one year less than the selection screen input)

plz let me know how to solve the issue.

regards

alson.

1 ACCEPTED SOLUTION
Read only

learnsap
Active Participant
0 Likes
410

Hi Alson,

Before the select statement...

p_gjahr = p_gjahr - 1.

will solve the problem.

Regards,

Ramesh S

*Award points if reply is helpful

3 REPLIES 3
Read only

Former Member
0 Likes
410

p_gjhar = p_gjhar - 1.< or take it in another variable and pass that to select statement>

select * from mkpf

into i_mkpf

where gjhar = p_gjhar.

regards

shiba dutta

Message was edited by:

SHIBA DUTTA

Read only

Former Member
0 Likes
410

Hi Alson,

In the program, before select statement, use the following code:

p_gjhar = p_gjhar - 1.

select * from mkpf

into i_mkpf

where gjhar = p_gjhar.

Best regards,

Prashant

Read only

learnsap
Active Participant
0 Likes
411

Hi Alson,

Before the select statement...

p_gjahr = p_gjahr - 1.

will solve the problem.

Regards,

Ramesh S

*Award points if reply is helpful