cancel
Showing results for 
Search instead for 
Did you mean: 

S4HANA 1511 - RV_SCHEDULE_CHECK_DELIVERIES

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

former_member223981
Active Contributor

Note 2404036 has been created to solve this bug.

Regards,

Noel

Jelena
Active Contributor
0 Kudos

Great! Maybe now OP could mark this as answered?

JL23
Active Contributor
0 Kudos

I accepted the answer - as even with guidance the people seem not able to understand this UI

Answers (4)

Answers (4)

Former Member
0 Kudos

I've imported note 2404036 and now WORKS.

Regards

Former Member
0 Kudos

Just Done.

Former Member
0 Kudos

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.

Jelena
Active Contributor

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.

Jelena
Active Contributor
0 Kudos

Please use SAP Support Portal for assistance with standard SAP programs.