cancel
Showing results for 
Search instead for 
Did you mean: 

s_alr_87012341-Invoice Number allocated twice

Former Member
0 Kudos

Hi,

The T code s_alr_87012341is used to display duplicate Invoices, I have to make code change, so that when the dulicate Invoice is reversed it should not be picked(displayed), can any one help me what changes I have to make in the program(RFBNUM10). Iam coping this program to zprog.

Answers are highly rewarded.

Thanks in advance

Raj

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

When selecting from BKPF, only take records where BKPF-STBLG (reversing document number) is blank.

Rob

Former Member
0 Kudos

Hi, Thanks for the info.

In the program

SELECT single * FROM BKPF

WHERE BUKRS = bsad-bukrs

AND BELNR = bsad-belnr

AND GJAHR = bsad-gjahr.

check bkpf-stblg is initial.

already exists but it is still taking duplicate values.

Could you explain what exactly is happening in program

Thanks

Raj

andreas_mann3
Active Contributor
0 Kudos

Hi Raj,

try to analyse these items.

(but bkpf-stblg = space or isn't it?)

-> so you've dupl. items or not ?

regards Andreas

Answers (0)