on 08-27-2007 11:02 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use takle VBEP to see the confirmed quanitity and delivered quanitity.
reward if useful
rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please check Schedule Lines tab at line item level where you will find Delivered qty.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
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.