Hi, this post I will show how create an miscellaneous transaction with API
- Receipt
INSERT INTO mtl_transactions_interface ( source_code --01 , source_line_id --02 , source_header_id --03 , process_flag --04 , transaction_mode --05 , validation_required --06 , inventory_item_id --07 , organization_id --08 , subinventory_code --09 , transaction_quantity --10 , transaction_uom --11 , primary_quantity --12 , transaction_date --13 , transaction_type_id --16 , negative_req_flag --18 , last_update_date --19 , last_updated_by --20 , creation_date --21 , created_by --22 , transaction_source_type_id --23 , transaction_reference --24 , transaction_action_id --25 , distribution_account_id ) --26 VALUES ( 'EGR' --01 , -99 --02 , -99 --03 , 1 --04 , 3 --05 , 2 --06 , 4001 --07 , 102 --08 , 'MPE' --09 , 30 --10 , 'LT' --11 , 30 --12 , SYSDATE --13 , 42 --16 -- ENTRADA POR ROMANEIO , -1 --18 , SYSDATE --19 , 1139 --20 , SYSDATE --21 , 1139 --22 , 13 --23 , 'ENTRATA DE PROVISAO' --24 , 27 -- 25 , 5009); -- 26
- Issue
INSERT INTO mtl_transactions_interface ( source_code --01 , source_line_id --02 , source_header_id --03 ,process_flag --04 , transaction_mode --05 , validation_required --06 , inventory_item_id --07 , organization_id --08 , subinventory_code --09 , transaction_quantity --10 , transaction_uom --11 , primary_quantity --12 , transaction_date --13 , transaction_type_id --16 , negative_req_flag --18 , last_update_date --19 , last_updated_by --20 , creation_date --21 , created_by --22 , transaction_source_type_id --23 , transaction_reference --24 , transaction_action_id --25 , distribution_account_id ) --26 VALUES ( 'EGR' --01 , -99 --02 , -99 --03 , 1 --04 , 3 --05 , 2 --06 , 4001 --07 , 102 --08 , 'MPE' --09 , -15 --10 , 'LT' --11 , -15 --12 , SYSDATE --13 , 32 --16 -- SAIDA POR ROMANEIO , -1 --18 , SYSDATE --19 , 1139 --20 , SYSDATE --21 , 1139 --22 , 13 --23 , 75342 --24 , 27 -- 25 , 5009 ); -- 26
Deixe uma resposta