{"id":1282,"date":"2016-07-12T10:14:53","date_gmt":"2016-07-12T08:14:53","guid":{"rendered":"http:\/\/oracle.malin.pl\/?p=1282"},"modified":"2016-07-12T10:14:53","modified_gmt":"2016-07-12T08:14:53","slug":"wartosci-fnd_profile-oraz-fnd_global","status":"publish","type":"post","link":"https:\/\/oracle.malin.pl\/?p=1282","title":{"rendered":"Warto\u015bci FND_PROFILE oraz FND_GLOBAL"},"content":{"rendered":"<p>Artyku\u0142 pochodzi ze strony <\/p>\n<p>http:\/\/appsr12help.blogspot.com\/2012\/12\/fndprofile-values.html<\/p>\n<p>[For more information, please visit http:\/\/docs.oracle.com\/cd\/E18727_01\/doc.121\/e12897\/T302934T462356.htm]<\/p>\n<p>Following are the FND_PROFILE values that can be used in the PL\/SQL code:<\/p>\n<p>   fnd_profile.value(&#8217;PROFILEOPTION&#8217;);<br \/>\n   fnd_profile.value(&#8217;MFG_ORGANIZATION_ID&#8217;);<br \/>\n   fnd_profile.value(&#8217;ORG_ID&#8217;);<br \/>\n   fnd_profile.value(&#8217;LOGIN_ID&#8217;);<br \/>\n   fnd_profile.value(&#8217;USER_ID&#8217;);<br \/>\n   fnd_profile.value(&#8217;USERNAME&#8217;);<br \/>\n   fnd_profile.value(&#8217;CONCURRENT_REQUEST_ID&#8217;);<br \/>\n   fnd_profile.value(&#8217;GL_SET_OF_BKS_ID&#8217;);<br \/>\n   fnd_profile.value(&#8217;SO_ORGANIZATION_ID&#8217;);<br \/>\n   fnd_profile.value(&#8217;APPL_SHRT_NAME&#8217;);<br \/>\n   fnd_profile.value(&#8217;RESP_NAME&#8217;);<br \/>\n   fnd_profile.value(&#8217;RESP_ID&#8217;);<\/p>\n<p>Following are the FND_GLOBAL values that can be used in the PL\/SQL code:<\/p>\n<p>   FND_GLOBAL.USER_ID;<br \/>\n   FND_GLOBAL.APPS_INTIALIZE;<br \/>\n   FND_GLOBAL.LOGIN_ID;<br \/>\n   FND_GLOBAL.CONC_LOGIN_ID;<br \/>\n   FND_GLOBAL.PROG_APPL_ID;<br \/>\n   FND_GLOBAL.CONC_PROGRAM_ID;<br \/>\n   FND_GLOBAL.CONC_REQUEST_ID;<\/p>\n<p>For example, I almost always use the following global variable assignments in my package specification to use throughout the entire package body:<\/p>\n<p>   g_user_id      PLS_INTEGER  :=  fnd_global.user_id;<br \/>\n   g_login_id     PLS_INTEGER  :=  fnd_global.login_id;<br \/>\n   g_conc_req_id  PLS_INTEGER  :=  fnd_global.conc_request_id;<br \/>\n   g_org_id       PLS_INTEGER  :=  fnd_profile.value(&#8217;ORG_ID&#8217;);<br \/>\n   g_sob_id       PLS_INTEGER  :=  fnd_profile.value(&#8217;GL_SET_OF_BKS_ID&#8217;);<\/p>\n<p>And initialize the application environment as follows:<\/p>\n<p>   v_resp_appl_id  := fnd_global.resp_appl_id;<br \/>\n   v_resp_id       := fnd_global.resp_id;<br \/>\n   v_user_id       := fnd_global.user_id;<\/p>\n<p>   FND_GLOBAL.APPS_INITIALIZE(v_user_id,v_resp_id, v_resp_appl_id);<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Artyku\u0142 pochodzi ze strony http:\/\/appsr12help.blogspot.com\/2012\/12\/fndprofile-values.html [For more information, please visit http:\/\/docs.oracle.com\/cd\/E18727_01\/doc.121\/e12897\/T302934T462356.htm] Following are the FND_PROFILE values that can be used in the PL\/SQL code: fnd_profile.value(&#8217;PROFILEOPTION&#8217;); fnd_profile.value(&#8217;MFG_ORGANIZATION_ID&#8217;); fnd_profile.value(&#8217;ORG_ID&#8217;); fnd_profile.value(&#8217;LOGIN_ID&#8217;); fnd_profile.value(&#8217;USER_ID&#8217;); fnd_profile.value(&#8217;USERNAME&#8217;); fnd_profile.value(&#8217;CONCURRENT_REQUEST_ID&#8217;); fnd_profile.value(&#8217;GL_SET_OF_BKS_ID&#8217;); fnd_profile.value(&#8217;SO_ORGANIZATION_ID&#8217;); fnd_profile.value(&#8217;APPL_SHRT_NAME&#8217;); fnd_profile.value(&#8217;RESP_NAME&#8217;); fnd_profile.value(&#8217;RESP_ID&#8217;); Following are the FND_GLOBAL &hellip; <a href=\"https:\/\/oracle.malin.pl\/?p=1282\">Czytaj dalej <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":37,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[88,97],"tags":[],"_links":{"self":[{"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=\/wp\/v2\/posts\/1282"}],"collection":[{"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1282"}],"version-history":[{"count":1,"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=\/wp\/v2\/posts\/1282\/revisions"}],"predecessor-version":[{"id":1283,"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=\/wp\/v2\/posts\/1282\/revisions\/1283"}],"wp:attachment":[{"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}