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

Former Member
0 Likes
440

can anyone please help me

In the select statement i have to fetch zuonr field from the table RBKP.

Where this needs to be compared with bkpf-awkey value with rbkp-belnr and fetch zuonr field. but bkpf-awkey field length is 14 digits and rbkp-belnr field length is 10 digits.

so i have to use offset in select statement,

can anyone help me how to use offset in select statement.

please urgent.

thanks in advance.

3 REPLIES 3
Read only

andreas_mann3
Active Contributor
0 Likes
405

hi,

try this:

bkpf-awkey =

01-10 = belnr

11-14 = Bukrs

15-18 = Gjahr

A.

Read only

Former Member
0 Likes
405

SELECT *

FROM BKPF

into TABLE tb_bkpf

where <some condition>.

Select *

from RBKP

INTO TABLE tb_RBKp

FOR ALL ENTRIES in tb_bkpf

where belnr = tb_bkpf-awkey+0(10).

Regards

Nishant

Read only

Former Member
0 Likes
405

Hi Hema,

small doubt..

when BELNR is available in BKPF why do you want to compare with awkey?

Satish