{"id":14852,"date":"2017-08-09T12:02:20","date_gmt":"2017-08-09T15:02:20","guid":{"rendered":"http:\/\/orabr.com\/?p=14852"},"modified":"2017-08-09T12:12:34","modified_gmt":"2017-08-09T15:12:34","slug":"-transaction-open-interface-4","status":"publish","type":"post","link":"https:\/\/orabr.virttus.com\/?p=14852","title":{"rendered":"Transaction Open Interface"},"content":{"rendered":"<p><HTML><HTML><\/p>\n<div>  <span style=\"display:none\">&nbsp;<\/span><!--~-|**|PrettyHtmlStartT|**|-~-->  <\/p>\n<div id=\"ygrp-mlmsg\" style=\"position:relative;\">\n<div id=\"ygrp-msg\" style=\"z-index: 1;\"><!--~-|**|PrettyHtmlEndT|**|-~-->  <\/p>\n<div id=\"ygrp-text\">\n<div dir=\"ltr\">\n<div class=\"gmail_default\" style=\"font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,153);\">  Obrigada!  <\/div>\n<\/p><\/div>\n<div class=\"gmail_extra\">  <\/p>\n<div class=\"gmail_quote\">2017-08-09 11:54 GMT-03:00 Petr\u00f4nio Sousa <a href=\"mailto:petronio.sousa@gmail.com\">  petronio.sousa@gmail.com<\/a>  <span dir=\"ltr\">&lt;<a href=\"mailto:\" target=\"_blank\"><\/a>&gt;<\/span>:  <\/p>\n<blockquote class=\"gmail_quote\" style=\"border-left:1px #ccc solid;\"><p><u><\/u>  <\/p>\n<div style=\"background-color:#fff;\"><span>&nbsp;<\/span>  <\/p>\n<div id=\"m_-1447045756739502760ygrp-mlmsg\">\n<div id=\"m_-1447045756739502760ygrp-msg\">\n<div id=\"m_-1447045756739502760ygrp-text\">\n<div dir=\"ltr\">\n<div>&nbsp;Procedure insere_into_mtl_trans_interf(<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; r_item &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;in c_itens%rowtype,&nbsp;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; p_qtde_reg_inseridos &nbsp; &nbsp;in out number<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; ) is<\/div>\n<div>&nbsp; &nbsp;<\/div>\n<div>&nbsp; &nbsp; v_transaction_interface_id &nbsp; apps.mtl_transactions_<wbr>interface.transaction_<wbr>interface_id%type;<\/div>\n<div>  <\/div>\n<div>&nbsp; &nbsp; Begin<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; Select &nbsp;&nbsp;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mtl_material_transactions_s.<wbr>nextval<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; Into&nbsp;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; v_transaction_interface_id<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; From &nbsp; &nbsp;&nbsp;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dual;<\/div>\n<div>  <\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; Insert Into apps.mtl_transactions_<wbr>interface(<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; transaction_interface_id<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,source_code<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,source_header_id<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,source_line_id<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,process_flag<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,lock_flag<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,transaction_mode<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,validation_required<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,organization_id<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,inventory_item_id<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,transaction_type_id<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,subinventory_code<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,transaction_uom<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,transaction_quantity<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,transaction_cost<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,transaction_date<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,distribution_account_id<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,created_by<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,creation_date<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,last_updated_by<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,last_update_date<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,acct_period_id<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,locator_id<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,transaction_reference<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; )<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; Values(<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; v_transaction_interface_id &nbsp; &nbsp; &nbsp; &nbsp; &#8212; transaction_interface_id<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,&#8217;Inventory&#8217; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#8212; source_code &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,v_transaction_interface_id &nbsp; &nbsp; &nbsp; &nbsp; &#8212; source_header_id &nbsp; &nbsp; &nbsp; &nbsp;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,v_transaction_interface_id &nbsp; &nbsp; &nbsp; &nbsp; &#8212; source_line_id &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#8212; process_flag &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#8212; lock_flag &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#8212; transaction_mode &nbsp; &nbsp; &nbsp; &nbsp;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#8212; validation_required &nbsp; &nbsp;&nbsp;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,r_item.organization_id &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8212; organization_id &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,r_item.inventory_item_id &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8212; inventory_item_id &nbsp; &nbsp; &nbsp;&nbsp;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,r_item.transaction_type_id &nbsp; &nbsp; &nbsp; &nbsp; &#8212; transaction_type_id &nbsp; &nbsp;&nbsp;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,r_item.secondary_inventory_<wbr>name &nbsp; &nbsp;&#8212; subinventory_code &nbsp; &nbsp; &nbsp;&nbsp;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,r_item.udm &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8212; transaction_uom &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,r_item.qtde &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#8212; transaction_quantity &nbsp; &nbsp;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,r_item.custo &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8212; transaction_cost &nbsp; &nbsp; &nbsp; &nbsp;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,r_item.dt_para_baixa &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8212; transaction_date &nbsp; &nbsp; &nbsp; &nbsp;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,r_item.ccid_para_baixa &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8212; distribution_account_id&nbsp;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,G_USER_ID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#8212; created_by &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,sysdate &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#8212; creation_date &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,G_USER_ID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#8212; last_updated_by &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,sysdate &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#8212; last_update_date &nbsp; &nbsp; &nbsp; &nbsp;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,r_item.acct_period_id &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#8212; acct_period_id &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,r_item.inventory_location_id &nbsp; &nbsp; &nbsp; &#8212; locator_id &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,r_item.transaction_reference &nbsp; &nbsp; &nbsp; &#8212; transaction_reference<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; );<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; p_qtde_reg_inseridos := p_qtde_reg_inseridos &#43; 1;<\/div>\n<div>&nbsp; &nbsp; End;<\/div>\n<div>&nbsp; &nbsp;<\/div>\n<\/p><\/div>\n<div id=\"m_-1447045756739502760DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2\">  <\/p>\n<table style=\"border-top:1px solid #d3d4de;\">\n<tbody>\n<tr>\n<td style=\"width:55px;\"><a href=\"https:\/\/www.avast.com\/sig-email?utm_medium=email&amp;utm_source=link&amp;utm_campaign=sig-email&amp;utm_content=webmail\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ipmcdn.avast.com\/images\/icons\/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif\" alt=\"\" style=\"width:46px;height:29px;\" width=\"46\" height=\"29\"><\/a><\/td>\n<td style=\"width:470px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;\">  Livre de v\u00edrus. <a href=\"https:\/\/www.avast.com\/sig-email?utm_medium=email&amp;utm_source=link&amp;utm_campaign=sig-email&amp;utm_content=webmail\" style=\"color:#4453ea;\" target=\"_blank\">  www.avast.com<\/a>. <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>  <a href=\"#m_-1447045756739502760_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2\" width=\"1\" height=\"1\"><\/a><\/div>\n<div>\n<div class=\"h5\">\n<div class=\"gmail_extra\">  <\/p>\n<div class=\"gmail_quote\">Em 9 de agosto de 2017 11:29, Lucinda Violante <a href=\"mailto:lucinda.violante@gmail.com\" target=\"_blank\">  lucinda.violante@gmail.com<\/a>  <span dir=\"ltr\">&lt;<a href=\"mailto:\" target=\"_blank\"><\/a>&gt;<\/span> escreveu:  <\/p>\n<blockquote class=\"gmail_quote\" style=\"border-left:1px #ccc solid;\"><p><u><\/u>  <\/p>\n<div style=\"background-color:#fff;\"><span>&nbsp;<\/span>  <\/p>\n<div id=\"m_-1447045756739502760m_-2903501120195817664ygrp-mlmsg\">\n<div id=\"m_-1447045756739502760m_-2903501120195817664ygrp-msg\">\n<div id=\"m_-1447045756739502760m_-2903501120195817664ygrp-text\">\n<div dir=\"ltr\">\n<div class=\"gmail_default\" style=\"font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,153);\">  Bom dia, pessoal.<\/p><\/div>\n<div class=\"gmail_default\" style=\"font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,153);\">  Algu\u00e9m teria alguma documenta\u00e7\u00e3o que auxiliasse a cria\u00e7\u00e3o de entradas e saidas de um estoque com valor unit\u00e1rio para uma Organiza\u00e7\u00e3o de Invent\u00e1rio nova, como uma transfer\u00eancia de saldo de uma organiza\u00e7\u00e3o para outra? Fora os manuais da Oracle que j\u00e1 consultei,   algum exemplo de insert e processo, White Paper, qualquer coisa.<\/p><\/div>\n<div class=\"gmail_default\" style=\"font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,153);\">  Grata.<br clear=\"all\">  <\/div>\n<p>  &#8212;   <\/p>\n<div class=\"m_-1447045756739502760m_-2903501120195817664gmail_signature\" data=\"https:\/\/ci4.googleusercontent.com\/proxy\/CpYzkcDKjPf-NqFCSu4GBqoQ_5P1dDkfTMWPGDqglo-e-uanL4gIS02e2U0=s0-d-e1-ft#http:\/\/gmail_signature\">  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Lucinda A. Violante<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; (21) 8720-9370 (Claro)<br \/>  &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;  (21) 3392-1130<\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div style=\"color:#fff;height:0;\"><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/blockquote><\/div>\n<p>  <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div style=\"color:#fff;height:0;\"><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/blockquote><\/div>\n<p>  <br clear=\"all\">  <br \/>  &#8212;   <\/p>\n<div class=\"gmail_signature\" data=\"gmail_signature\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Lucinda A. Violante<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; (21) 8720-9370 (Claro)<br \/>  &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;  (21) 3392-1130<\/div>\n<\/p><\/div>\n<\/p><\/div>\n<p>  <\/HTML><\/HTML><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Obrigada! 2017-08-09 11:54 GMT-03:00 Petr\u00f4nio Sousa petronio.sousa@gmail.com &lt;&gt;: &nbsp; &nbsp;Procedure insere_into_mtl_trans_interf( &nbsp; &nbsp; &nbsp; &nbsp; r_item &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"class_list":["post-14852","post","type-post","status-publish","format-standard","hentry","category-base-de-conhecimentos"],"_links":{"self":[{"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=\/wp\/v2\/posts\/14852","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14852"}],"version-history":[{"count":0,"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=\/wp\/v2\/posts\/14852\/revisions"}],"wp:attachment":[{"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14852"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14852"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14852"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}