cancel
Showing results for 
Search instead for 
Did you mean: 

Account Statement issue

Former Member
0 Kudos

Hi,

I'm having a bit of an issue with an Account Statement. Here is the scenario:

Print Program: RFKORD10

Form: Z Copy of standard F140_ACC_STAT_02

*The problem only occurs when I run the statement for <b>past periods</b> in <b>Production</b>.

In Q/A, each line item begins with a document number (BELNR) and they are all correct. However, in Production, the lines are the same except many document numbers are repeating. Example:

In Q/A

doc number...........amount

111111...................10.00

222222...................20.00

333333...................30.00

444444...................40.00

In Production

doc number...........amount

111111...................10.00

222222...................20.00

222222...................30.00

222222...................40.00

I have compare the form and the standard print program & variant, and they are all the same.

I have noticed that when I debug the program for a past period...

1) in Q/A: Each document number (BELNR) being passed into the sapscipt form is correct and corresponds to its amount.

2) in Prod: Amounts are being passed though correclty but the document numbers are not matching, and are repetative.

Any help would be greatly appreciated.

Thanks.

Warren

Accepted Solutions (0)

Answers (1)

Answers (1)

naimesh_patel
Active Contributor
0 Kudos

It could happen when you have more than one line items for one customer in the document.

In real enviroment it is quite possible. As you have mentioned in your Production you get multiple line items for document 222222. Check out that document in FB03. You will find more than one line item for perticular customer.

You can also find it out by going to BSEG.

BELNR = 22222

GJAHR = your_year

BUKRS = your_comp_code

KOART = 'D'.

Regards,

Naimesh Patel