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

problem in code (condition)

former_member630092
Participant
0 Likes
475

Hi all

for cheque entries i have developed a code

Is there any more Mandatory condition in given below part of code

{ select * from bseg into table ibseg

where belnr = REGUH-VBLNR

and SHKZG = 'S'. }

reguh-vblnr Has only one record for vblnr and it is picking more

tahn one records from bseg (belnr and shkzg = 'S')

{ select * from bsik into table ibsik

for all entries in ibseg

where belnr = ibseg-REBZG. )

please rectify or give me info (conditions)

Thanks

3 REPLIES 3
Read only

Former Member
0 Likes
437

Hi,

Try passing company code & fiscal year also in BSEG.

Regards,

Amit

Read only

Former Member
0 Likes
437

ravi,

there can be same document number for different company code and different fiscal year

so you have include BUKRS (company code) and GJAHR(fiscal year) in your query.

goto se11->BSEG table. check the fields there.

Read only

former_member630092
Participant
0 Likes
437

Answered