17: -- The following types are used to define plsql tables for
18: -- inserting into transaction temporary tables
19: TYPE g_mmtt_tbl_type IS TABLE OF mtl_material_transactions_temp%ROWTYPE
20: INDEX BY BINARY_INTEGER;
21: TYPE g_mtlt_tbl_type IS TABLE OF mtl_transaction_lots_temp%ROWTYPE
22: INDEX BY BINARY_INTEGER;
23: TYPE g_msnt_tbl_type IS TABLE OF mtl_serial_numbers_temp%ROWTYPE
24: INDEX BY BINARY_INTEGER;
25: --
2368: end if;
2369: --
2370: END insert_mmtt;
2371: --
2372: -- insert record into mtl_transaction_lots_temp
2373: -- who columns will be derived in the procedure
2374: PROCEDURE insert_mtlt
2375: (
2376: x_return_status OUT NOCOPY VARCHAR2
2401: l_today := SYSDATE;
2402: l_user_id := fnd_global.user_id;
2403: l_login_id := fnd_global.login_id;
2404: FOR l_counter IN 1..p_mtlt_tbl_size LOOP
2405: INSERT INTO mtl_transaction_lots_temp
2406: (
2407: transaction_temp_id
2408: ,last_update_date
2409: ,last_updated_by
3069: END update_detailed_quantities;
3070: --
3071: -- create suggestion records.
3072: -- insert into mtl_material_transactions_temp, mtl_serial_numbers_temp,
3073: -- or mtl_transaction_lots_temp
3074: PROCEDURE process_output
3075: (x_return_status OUT NOCOPY VARCHAR2,
3076: p_request_line_rec IN g_request_line_rec_type,
3077: p_request_context IN g_request_context_rec_type,
3134: g_insert_serial_flag := 0;
3135: --
3136: -- The following code is commented because
3137: -- the sign for the quantity in mtl_material_transactions_temp
3138: -- and mtl_transaction_lots_temp and mtl_serial_numbers_temp
3139: -- for the suggestion records will be positive always.
3140: -- The reason is that the move order transaction form
3141: -- and api expect the quantity to be positive regardless
3142: -- what transaction (pick/put) it is. The form or the
3633: IF inv_pp_debug.is_debug_mode THEN
3634: inv_pp_debug.send_message_to_pipe('=================== create output records: ');
3635: inv_pp_debug.send_message_to_pipe('# of records inserted to mtl_material_transactions_temp: '
3636: || l_mmtt_tbl_size);
3637: inv_pp_debug.send_message_to_pipe('# of records inserted to mtl_transaction_lots_temp: '
3638: || l_mtlt_tbl_size);
3639: inv_pp_debug.send_message_to_pipe('# of records inserted to mtl_serial_numbers_temp: '
3640: || l_msnt_tbl_size);
3641: inv_pp_debug.send_message_to_pipe('exit '||g_pkg_name||'.'||l_api_name);