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

select statement help

Former Member
0 Likes
388

hello abapers,

i need to extract data frpm table bkpf for the entered as parameter

p_period

where p_period has format yyyymm( yearmonth)

this period entered must match the

GJAHR + MONAT fields in the BKPF table.

GJAHR is the fiscal year

MONAT is the fiscal period in the BKPF table.

how do i do this, am i clear.

it is just extracting data from dbtable where

two fields must be combined to match the input parameter.

thankyou.

1 ACCEPTED SOLUTION
Read only

suresh_datti
Active Contributor
0 Likes
371

select * from bkpf into itab

where gjahr eq p_period+0(4)

and monat eq p_period+4(2).

~Suresh

2 REPLIES 2
Read only

suresh_datti
Active Contributor
0 Likes
372

select * from bkpf into itab

where gjahr eq p_period+0(4)

and monat eq p_period+4(2).

~Suresh

Read only

0 Likes
371

thank you so much