Application Development 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: 

Date format

Former Member
0 Kudos

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

learnsap
Active Participant
0 Kudos

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

Former Member
0 Kudos

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

former_member223537
Active Contributor
0 Kudos

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

learnsap
Active Participant
0 Kudos

Hi Alson,

Before the select statement...

p_gjahr = p_gjahr - 1.

will solve the problem.

Regards,

Ramesh S

*Award points if reply is helpful