05-12-2006 6:18 PM
Hello,
Iam using BAPI
BAPI_INB_DELIVERY_SAVEREPLICA
which distributes inbound deliveries from ERP to WM system
but iam getting an error saying
Error in document "" & item ""
(Quantity Consistency Check)
Message class VLBAPI message '004'
what might be the problem...?
Can any one help...
Thanks
Larry
05-12-2006 7:36 PM
Checkout OSS note # 409144
Symptom
LES scenario using a decentralized WM system.
An outbound delivery is created in the central system.
The delivery item category is changed manually.
The delivery is saved and distributed to the decentralized WM system.
The delivery is created in the local system with a different delivery item category.
Additional key words
BAPI_OUTB_DELIVERY_SAVEREPLICA, BAPI_INB_DELIVERY_SAVEREPLICA
Cause and prerequisites
The delivery types and item categories are redetermined when the delivery is created in the local system.
The delivery types and delivery item categories in the centralized and decentralized delivery can be different from each other. This approach is required in order to guarantee a stand-alone, flexible control of deliveries in the local system. If you change the delivery item category, this change is not transferred in the local system.
Solution
The following program changes force a transfer of the delivery item category.
You should use transaction SE11 to add the field ZPSTYV to the data structure KOMDLGN.
The manual item category in the delivery in the central system must be an allowed item category for the delivery type in the local system. The following program changes must be transferred.
This note represents a modification and will not be delivered in a support package.
Source code corrections
Hope thisll give you idea!!
<b>P.S award the points.</b>
Good luck
Thanks
Saquib Khan
"Some are wise and some are otherwise"
05-12-2006 6:55 PM
This Bapi in turn calls this function: SHP_QUANTITY_CONSISTENCY_CHECK
TRy to debug by placing a break point in the fm.
Regards,
Ravi
05-12-2006 7:36 PM
Checkout OSS note # 409144
Symptom
LES scenario using a decentralized WM system.
An outbound delivery is created in the central system.
The delivery item category is changed manually.
The delivery is saved and distributed to the decentralized WM system.
The delivery is created in the local system with a different delivery item category.
Additional key words
BAPI_OUTB_DELIVERY_SAVEREPLICA, BAPI_INB_DELIVERY_SAVEREPLICA
Cause and prerequisites
The delivery types and item categories are redetermined when the delivery is created in the local system.
The delivery types and delivery item categories in the centralized and decentralized delivery can be different from each other. This approach is required in order to guarantee a stand-alone, flexible control of deliveries in the local system. If you change the delivery item category, this change is not transferred in the local system.
Solution
The following program changes force a transfer of the delivery item category.
You should use transaction SE11 to add the field ZPSTYV to the data structure KOMDLGN.
The manual item category in the delivery in the central system must be an allowed item category for the delivery type in the local system. The following program changes must be transferred.
This note represents a modification and will not be delivered in a support package.
Source code corrections
Hope thisll give you idea!!
<b>P.S award the points.</b>
Good luck
Thanks
Saquib Khan
"Some are wise and some are otherwise"
05-12-2006 7:44 PM
Check the long text for the error message. It should give you more information.
Rob
05-12-2006 9:28 PM
Thanks guys...
I shall check it out if you find any more details keep updating...
BTW..Long text does not exit for that message...
Larry
05-12-2006 9:44 PM
Yes you Must Debug it , set break point in <b>Include :LV50IF01</b> and
call function 'SHP_QUANTITY_CONSISTENCY_CHECK'
exporting
if_lfimg = if_lfimg
if_lgmng = if_lgmng
if_lfimg_flo = if_lfimg_flo
if_lgmng_flo = if_lgmng_flo
if_umvkz = if_umvkz
if_umvkn = if_umvkn
if_umrev = if_umrev
exceptions
conversion_overflow = 1
zero_quantity = 2
better_fraction_possible = 3
<b> quantity_inconsist_to_fraction = 4
factor___inconsist_to_fraction = 5
zero_fraction = 6
essential_data_missing = 7
others = 8</b>.
if sy-subrc > 3.
clear ct_return.
ct_return-number = '004'.
ct_return-type = 'E'.
ct_return-id = 'VLBAPI'.
ct_return-message_v1 = if_vbeln.
ct_return-message_v2 = if_posnr.
ct_return-message_v3 = space.
ct_return-message_v4 = space.
append ct_return.
clear ct_return.
ct_return-number = sy-msgno.
ct_return-type = sy-msgty.
ct_return-id = sy-msgid.
ct_return-message_v1 = sy-msgv1.
ct_return-message_v2 = sy-msgv2.
ct_return-message_v3 = sy-msgv3.
ct_return-message_v4 = sy-msgv4.
append ct_return.
gf_flag-rollback = gc_true.
endif.
Thanks
SK
05-12-2006 10:21 PM
It sounds like an error in your input parameters. Could you post your code please?
Rob
05-13-2006 8:35 AM
Hay Larry Ber
go through the SAP Standard Program 'LV50IU10' it will help you more
CALL FUNCTION 'BAPI_INB_DELIVERY_SAVEREPLICA'
EXPORTING
HEADER_DATA = HEADER_DATA
HEADER_ORG = HEADER_ORG
SENDER_SYSTEM = SENDER_SYSTEM
TECHN_CONTROL = TECHN_CONTROL
IMPORTING
DELIVERY = DELIVERY
TABLES
HEADER_PARTNER = HEADER_PARTNER
HEADER_PARTNER_ADDR = HEADER_PARTNER_ADDR
HEADER_DEADLINES = HEADER_DEADLINES
ITEM_DATA = ITEM_DATA
ITEM_ORG = ITEM_ORG
ITEM_STOCK_TRANS = ITEM_STOCK_TRANS
ITEM_CODING_BLOCK = ITEM_CODING_BLOCK
ITEM_REF_PURCHASE_ORDER = ITEM_REF_PURCHASE_ORDER
ITEM_SERIAL_NO = ITEM_SERIAL_NO
TEXT_HEADER = TEXT_HEADER
TEXT_LINES = TEXT_LINES
HANDLING_UNIT_HEADER = HANDLING_UNIT_HEADER
HANDLING_UNIT_ITEM = HANDLING_UNIT_ITEM
HANDLING_UNIT_SERNO = HANDLING_UNIT_SERNO
EXTENSION1 = EXTENSION1
EXTENSION2 = EXTENSION2
RETURN = RETURN
TOKENREFERENCE = TOKENREFERENCE
EXCEPTIONS
OTHERS = 1.
Thanks & Regards
Sreenivasulu P