Dear all
Our Customer has copied program SAPF124(TCode F13E) to Z version ZSAPF124( TCode Z13E).
Customer has maintained some additional Z fields(through coding blocks) in the BSEG.
So the Source difference in the Program has additional:
SELECT statement(from BSEG) and UPDATE BSEG with the Values for the Z fields as shown below:
* update assignment and other data in clearing documents on BSEG
SELECT * FROM bseg INTO ls_bseg WHERE bukrs = lv_bukrs
AND belnr = lv_augbl.
UPDATE bseg SET valut = ls-valut
zuonr = lv-zuonr
z1 = ls-z1
zz2 = ls-zz2
zz3 = ls-zz3
zz4 = ls-zz4
zz5 = ls-zz5
zz6 = ls-zz6
zz7 = ls-zz7
zz8 = ls-zz8
zz8 = ls-zz8
WHERE bukrs = ls_bseg-bukrs
AND belnr = ls_bseg-belnr
AND gjahr = ls_bseg-gjahr
AND buzei = ls_bseg-buzei.
ENDSELECT.
The program works very well in the Development System but in Quality this SELECT and UPDATE does not works as expected. SELECT raises sy-subrc = 4. But I can see the same document being present in the SE16->BSEG->belnr.
Please advice as this issue is very critical for us.
Cheers
RJ