Hello Experts,
I americium utilizing ABAP Cloud Private Edition with SAPUI5 and ABAP RAP. I managed to make income bid via I_SalesOrderTP and past outbound transportation with I_OutboundDeliveryTP.
However, I americium not capable to station goods contented for this process, which I've been trying to bash utilizing I_MaterialDocumentTP:
This resulted successful an error: Update power of question benignant is incorrect (entry 601 X X)
What is the due mode to Post GI aft creating outbound delivery? Item class has picking not required, truthful that would not beryllium the occupation here.
MODIFY ENTITIES OF I_MaterialDocumentTP
ENTITY MaterialDocument
CREATE FROM VALUE #( ( %cid = s_receipt_number
GoodsMovementCode = '06'
PostingDate = outbound_delivery-DeliveryDate
DocumentDate = outbound_delivery-DeliveryDate
%control-GoodsMovementCode = cl_abap_behv=>flag_changed
%control-PostingDate = cl_abap_behv=>flag_changed
%control-DocumentDate = cl_abap_behv=>flag_changed ) )
ENTITY MaterialDocument
CREATE BY \_MaterialDocumentItem
FROM VALUE #( (
%cid_ref = s_receipt_number
%target = VALUE #( FOR point IN outbound_delivery_item (
%cid = item-OutboundDeliveryItem
plant = item-Plant
material = item-Material
GoodsMovementType = '601'
storagelocation = item-StorageLocation
QuantityInEntryUnit = item-ActualDeliveredQtyInOrderUnit
EntryUnit = item-OrderQuantityUnit
%control-plant = cl_abap_behv=>flag_changed
%control-material = cl_abap_behv=>flag_changed
%control-GoodsMovementType = cl_abap_behv=>flag_changed
%control-storagelocation = cl_abap_behv=>flag_changed
%control-QuantityInEntryUnit = cl_abap_behv=>flag_changed
%control-entryunit = cl_abap_behv=>flag_changed
) ) ) )
MAPPED DATA(ls_mapped)
FAILED DATA(ls_failed)
REPORTED DATA(ls_reported).
Thank you for your time, Jakub