on 12-05-2016 6:37 PM
I've a sales order with two positions with a partial delivered quantity, when i run VL10C for delivery other quantity the systems give me the wrong open quantity of the second position.
I've found in debug this function RV_SCHEDULE_CHECK_DELIVERIES and the ABAP code could be wrong:
*---------------------------------------------------------------------*
* 1. Fall: Normaler Kundenauftrag oder Lieferplan *
*---------------------------------------------------------------------*
if da_abruf is initial.
* Lesen des ersten Satzes, der zu verarbeiten ist
loop at lt_fvbfa into da_vbfa where mandt = sy-mandt and vbelv = fbeleg.
* Aufhören wenn Ende oder erster Satz, der nicht benötigt wird
if not fposnr is initial and da_vbfa-posnv ne fposnr.
exit.
endif.
This ABAP code run only for first position, when the systems call function RV_SCHEDULE_CHECK_DELIVERIES for the second position, this condition is not satisfied "if not fposnr is initial and da_vbfa-posnv ne fposnr." and run EXIT instruction.
I've Checked in ECC and the ABAP code is different:
*---------------------------------------------------------------------*
* 1. Fall: Normaler Kundenauftrag oder Lieferplan *
*---------------------------------------------------------------------*
IF da_abruf IS INITIAL.
* Lesen des ersten Satzes, der zu verarbeiten ist
IF NOT fposnr IS INITIAL.
READ TABLE fvbfa INTO da_vbfa BINARY SEARCH
WITH KEY mandt = sy-mandt
vbelv = fbeleg
posnv = fposnr.
ELSE.
READ TABLE fvbfa INTO da_vbfa BINARY SEARCH
WITH KEY mandt = sy-mandt
vbelv = fbeleg.
ENDIF.
* Aufhören wenn Ende oder erster Satz, der nicht benötigt wird
WHILE sy-subrc EQ 0 AND da_vbfa-vbelv = fbeleg.
IF NOT fposnr IS INITIAL AND da_vbfa-posnv NE fposnr.
EXIT.
ENDIF.
Someone has the same problem? Any suggest?
Regards.
Note 2404036 has been created to solve this bug.
Regards,
Noel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've imported note 2404036 and now WORKS.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just Done.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've found and uploaded these notes:
2329634 VL10 - missing date values in deliveries issued f
2354250 - Runtime error ITAB_DUPLICATE_KEY during credit che
0002354103 Runtime error ITAB_DUPLICATE_KEY in Sales Order P
2363432 Wrong update of delivered quantities in sch
But I'have the same problem.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Once again - open an incident with SAP Support. Why are you not able / willing to do that?
SCN is a community of volunteers, it's not an official SAP support channel.
Please use SAP Support Portal for assistance with standard SAP programs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.