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

Read statement

Former Member
0 Likes
360

Hello friends, this read statement is giving me an syntax error,

Buzei is type NUMC.

READ TABLE it_bseg_sa WITH KEY belnr = it_bsis_sa-belnr

buzei = ( it_bsis_sa-buzei + 1 ).

It works without the addition.

Shejal,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
336

Hi,

You cannot use added value in the with key..

Instead try this..

DATA: V_BUZEI LIKE BSEG-BUZEI.

V_BUZEI = it_bsis_sa-buzei + 1.

READ TABLE it_bseg_sa WITH KEY belnr = it_bsis_sa-belnr

buzei = <b>V_BUZEI</b>.

Thanks,

Naren

2 REPLIES 2
Read only

Former Member
0 Likes
337

Hi,

You cannot use added value in the with key..

Instead try this..

DATA: V_BUZEI LIKE BSEG-BUZEI.

V_BUZEI = it_bsis_sa-buzei + 1.

READ TABLE it_bseg_sa WITH KEY belnr = it_bsis_sa-belnr

buzei = <b>V_BUZEI</b>.

Thanks,

Naren

Read only

0 Likes
336

Thanks Naren.

Shejal.