cancel
Showing results for 
Search instead for 
Did you mean: 

Delivery Status at Schedule Line level.

Former Member
0 Kudos

Hi All,

I have to retrieve some data on the basis of Schedule line for which delivery is not complete. Please find below the requirement.

I am having one sales order with one line item which having two schedule line. For one schedule line confirmed qty is 1K and for other 2k. For first line item deliver qty is also 1k.

I want to know how to check the delivery status for schedule line counter so I will get the idea that for first schedule line qty is delivered and for second not.

Thanks

Piyush

Accepted Solutions (0)

Answers (3)

Answers (3)

jj
Active Contributor
0 Kudos

Use the function module

CALL FUNCTION 'RV_SCHEDULE_CHECK_DELIVERIES'

EXPORTING

fbeleg = wa_vbap-vbeln

fposnr = wa_vbap-posnr

  • FVERRECHNUNG = ' '

  • FS073_ALT = ' '

  • IF_NO_SORT = ' '

TABLES

fvbfa = fvbfa

fvbup = fvbup

fxvbep = it_vbepvb

  • FVBLB =

fvbap = fvbap

  • EXCEPTIONS

  • FEHLER_BEI_LESEN_FVBUP = 1

  • FEHLER_BEI_LESEN_FXVBEP = 2

  • OTHERS = 3

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

loop the internal table it_vbepvb.

get the open qty in that schedule line

MOVE wa_vbepvb-olfmng_flt TO wa_itab-openqty.

IF wa_vbepvb-bmeng EQ wa_itab-openqty.

check that with the schedule line confirmed qty wa_vbepvb-bmeng

If delivery is avaliable the open qty will not be equal to confirmed qty.

Former Member
0 Kudos

You can use takle VBEP to see the confirmed quanitity and delivered quanitity.

reward if useful

rajesh

vipul_shah
Explorer
0 Kudos

Please check Schedule Lines tab at line item level where you will find Delivered qty.

piyush_mathur
Active Participant
0 Kudos

Thanks Dude....

But i want to know where this value is stored in SAP.

Thanks

Piyush