Skip to Content

problem in code (condition)

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 20, 2009 at 06:01 AM

    Hi,

    Try passing company code & fiscal year also in BSEG.

    Regards,

    Amit

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 20, 2009 at 06:07 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 27, 2009 at 04:39 AM

    Answered

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.