You are on page 1of 256

13/05/2015

KrishnaReddyOracleAppsInfo

3rdMarch

FormCustomization

FormCustomization:
Prerequisitesforformcustomization.
Getthelibraryfiles(Resourcefolderfiles,APPSTAND,APPTREE,APSTANDand
TEMPLATE)fromtheautopandplacetheminC:\orant\FORMS60.
Thenchangethestartinlocationtotheplacewhereyoucopiedthelibraryfiles.

Saveit.
Nowopentheformbuilder
Whenyouarecreatinganewform,makesurethatyouaretakingthesourcefileas
templatefileanddeveloptheform.
Cd/shared-u11/oracle/erpdevappl/custom/1.0.0/forms/US
f60gen module=XXVLDT.fmb userid=user/Password module_type=FORM
output_file=/shared-

u11/oracle/erpdevappl/custom/1.0.0/forms/US/XXVLDT.fmx
compile_all=special

Posted3rdMarchbyKrishnareddy
0 Addacomment

3rdMarch

PL/SQLContent

PL/SQL:[http://www.oracleappsonlinetraining.com/PL_SQl.html]
1. Introduction[http://www.oracleappsonlinetraining.com/Introduction.html]
2. Exceptions[http://www.oracleappsonlinetraining.com/Exception.html]
3. Cursors[http://www.oracleappsonlinetraining.com/Cursors.html]
4. Procedures[http://www.oracleappsonlinetraining.com/Procedures.html]
5. Functions[http://www.oracleappsonlinetraining.com/Functions.html]
http://oracleappsviews.blogspot.in/

1/256

13/05/2015

KrishnaReddyOracleAppsInfo

6. Packages[http://www.oracleappsonlinetraining.com/Packages.html]
7. Triggers[http://www.oracleappsonlinetraining.com/Triggers.html]

Introduction:
1)WhatisPl/SQL?
ItisextensiontoSQLlanguage.
PL/SQL=SQL+Programmingfeatures.
ThefollowingaretheadvantagesofPL/SQL
1)WecanuseprogrammingfeatureslikeIfstmt,loops,branchingetc
2)Wecanhaveuserdefiniederrormessagesbyusingtheconceptofexceptionhandling.
3)Wecanperformrelatedactionsbyusingtheconceptoftriggers.
4)Pl/SQLhelpsinreducingthenetworktraffic.
PL/SQLBlockstructure:

declare
...........Declaresection
...........
...........
begin
...........Executablesection
..........
...........
...........
...........
exception
..........Exceptionsection
..........
end
/
APl/SQLblockcontains3sections.
1)Declaresection
2)Executablesection
3)ExceptionSection
1)Declaresection:

Itisusedtodeclarelocalvariables,Cursor,exceptionsetc.Allthelinesbetween
declareandbeginiscalleddeclaresection.Thissectionisoptional.
2)ExecutableSection:

Theactualtaskwhichshouldbedoneiswrittenintheexecutablesection.Allthelines
betweenBeginandexceptionkeywordsiscalledasExecutablesection.
Thissectionismandatory
3)ExceptionSection:

Ifanexceptionisraisedintheexecutablesection,
controlentersintoexceptionsection.
Allthelinesbetweenexceptionandendiscalledexceptionsection.Thissectionis
optional.
Ex1:

WriteaPL/SQLblocktodisplay'HelloWorld'.
Forthisprogram,wedonotneedanylocalvariables.
So,wecanstarttheprogrambyusingkeywordbegin.
http://oracleappsviews.blogspot.in/

2/256

13/05/2015

KrishnaReddyOracleAppsInfo

Beforetherunningthisprogram,weneedtomaketheenvironmentvariableserveroutput
toON.
TocommandtomaketheserveroutputtoON]
SQL>Setserveroutputon
Begin
dbms_output.put_line('HelloWorld')
end
/
HelloWorld
Pl/SQLproceduresuccessfullycompleted.
Ex2:

WriteaPL/SQLblocktocalculatesumoftwonumbers.
Forthisprogram,weneed3variables,soweneeddeclaresection.
Syntaxtodeclarevariable:

<variable><datatype>(size)
Declare
anumber(3)
bnumber(3)
cnumber(4)
begin
a:=10
b:=20
c:=a+b
dbms_output.put_line('Thesumis...'||c)
end
/
Thesumis...30
Pl/SQLproceduresuccessfullycompleted.
Intheaboveprogram,therearetwoimportantpointstolearn.
i):=isassignmentoperator,whichisusedtoassignvaluefromtherighthandsidetothe
variableinthelefthandside.
ii)||(pipe)isconcatenationoperator.
Wecaninitilizeatthetimeofdeclaration.
declare
anumber(3):=10
bnumber(3):=20
Intheabvoeprogram,wehavehardcodedthevalue10and20intheprogram.Instead
ofhardcodingthevalue,wecanacceptthevaluesfromtheuser.
Ex3:

Writeaprogramtoaccepttwovaluesfromtheuseranddisplayitssum.
Declare
anumber(3)
bnumber(3)
cnumber(4)
begin
a:=&a
b:=&b
c:=a+b
dbms_output.put_line('Thesumis...'||c)
end
/
http://oracleappsviews.blogspot.in/

3/256

13/05/2015

KrishnaReddyOracleAppsInfo

EnteravalueforA:40
EnteravalueforB:30
Thesumis...70
Pl/SQLproceduresuccessfullycompleted.
Note:&operatorisusedtoacceptvaluefromtheuser.
Ex4:

WriteaPL/SQLblocktoacceptempnoandincrementshissalaryby1000.
Note:Toincrementthesalary(changethevalue)inatable,weneedtouseupdate
command.
Declare
l_empnonumber(4)
begin
l_empno:=&empno
updateempsetsal=sal+1000
whereempno=l_empno
end
/
Enteravalueforempno:7900
Proceduresuccessfullycompleted.
Tomaketheaboveupdatecommandpermanent,wecanusecommitafterupdate
commandinPL/SQLblock.
ex:

Declare
l_empnonumber(4)
begin
l_empno:=&empno
updateempsetsal=sal+1000
whereempno=l_empno
commit
end
/
WritingaselectstmtinaPL/SQLBlock:

Writeapl/SQLblockwhichacceptsempnoanddisplayenameandsalary.
Asenameandsalarethevaluespresentintheemptable,togetthosevaluesweneedto
writeaselectstmt.
Note:EveryselectstmtinaPL/SQLblockshouldhaveintoclause.
Declare
l_empnonumber(4)
l_enamevarchar2(20)
l_salnumber(5)
begin
l_empno:=&empno
selectename,salintol_ename,l_salfromemp
whereempno=l_empno
dbms_output.put_line(l_ename||'....'||l_sal)
end
/
Note:

Astheaboveselectstmtselectstwocolumns,weneedtwolocalvariabletocatchthe
valuereturnedbytheselectstmt.
http://oracleappsviews.blogspot.in/

4/256

13/05/2015

KrishnaReddyOracleAppsInfo

Using%TYPEattribute:

%TYPEattributeisusedtodeclarethelocalvariables.
Insteadofhardcodingthedatatypeandsizeforlocalvariable,wecanuse%TYPE
attribute.
Ex:
l_enamevarchar2(20)wearehardcodingdatatypeandsize
l_enameemp.ename%TYPEThedatatypeofenamecolumn
ofemptableisapplicabletothelocalvariable.
Theaboveprogram,iuse%TYPEattributetodeclarelocalvariables.
Declare
l_empnoemp.empno%TYPE
l_enameemp.ename%TYPE
l_salemp.sal%TYPE
begin
l_empno:=&empno
selectename,salintol_ename,l_salfromemp
whereempno=l_empno
dbms_output.put_line(l_ename||'....'||l_sal)
end
/
Using%ROWTYPEAttribute:

AROWTYPEvariableiscapableofholdingcompleterow
oftable.
Ex:

WriteaPL/SQLBlockwhichacceptsanempnoanddisplayename,sal,hiredateand
job.
declare
l_empnoemp.empno%TYPE
l_rowemp%ROWTYPE
begin
l_empno:=&empno
select*intol_rowfromemp
whereempno=l_empno
dbms_output.put_line(l_row.ename)
dbms_output.put_line(l_row.sal)
dbms_output.put_line(l_row.hiredate)
dbms_output.put_line(l_row.job)
end
/
Note:wecannotprintaROWTYPEvariable,wecanprintavalueofaROWTYPE
variable.
Exceptions:
1)WhatisException?
EveryerrorinOracleisanexception.
2)Typesofexceptions?
Exceptionsaredividedintothreetypes
1)Predefiniedexceptions
2)NoNpredefiniedexceptions
3)Userdefiniedexceptions
http://oracleappsviews.blogspot.in/

5/256

13/05/2015

KrishnaReddyOracleAppsInfo

PreDefiniedExceptions:

Theseexceptionswillhaveexceptionnameandexceptionnumber.
Thefollowingaresomeoftheexamplesofpredefiniedexceptions.
EXCEPTION_NAMEEXCEPTION_NUMBER
1)NO_DATA_FOUND
2)TOO_MANY_ROWS
3)ZERO_DIVIDE
4)VALUE_ERROR
5)DUP_VAL_ON_INDEX
1)NO_DATA_FOUND:

ThisexceptionisraisedwhenselectdoesnotreturnanyrowinPL/SQLblock.
ex:

declare
l_salemp.sal%type
begin
dbms_output.put_line('Welcome')
selectsalintol_Salfromemp
whereempno=2255
dbms_output.put_line('Thesalis....'||l_sal)
dbms_output.put_line('ThankYou')
end
/
Output:

Welcome
error
Note:Intheaboveprogram,wegettheoutput'Welcome'.
Thismeansthatprogramexecutionisstarted.
Aswedonthaveanyemployeewithempno2255,selectstmtdoesnotreturnanyrow.
Whenselectstmtdoesnotreturnanyrow,NO_DATA_FOUNDexceptionisraised.
Onceanexceptionisraised,controlwillnotexecutetheremainingstmtsofexecutable
section,searchesforExceptionsection.
Aswedonothaveexceptionsectionintheprogram,itisterminatedabnormally.
Wecanmakesurethattheprogramiscompletednormallybycatchingtheexception
usingExceptionsection.
Syntax:

Declare
.........
.........
begin
........
........
.........
Exception
When<Exception_handler>then
....................
....................
end
/
http://oracleappsviews.blogspot.in/

6/256

13/05/2015

KrishnaReddyOracleAppsInfo

Ex:

declare
l_salemp.sal%type
begin
dbms_output.put_line('Welcome')
selectsalintol_Salfromemp
whereempno=2255
dbms_output.put_line('Thesalis....'||l_sal)
dbms_output.put_line('ThankYou')
Exception
whenNO_DATA_FOUNDthen
dbms_output.put_line('Invalidempno')
end
/
Output:

Welcome
Invalidempno
Pl/SQLProceduresuccessfullycompleted.
2)TOO_MANY_ROWS:

TOO_MANY_ROWSexceptionisraised,whenselectstmtreturnsmorethanonerow.
Ex:

declare
l_salemp.sal%type
begin
dbms_output.put_line('Welcome')
selectsalintol_Salfromemp
wheredeptno=10
dbms_output.put_line('Thesalis....'||l_sal)
dbms_output.put_line('ThankYou')
end
/
Output:

Welcome
Error
Note:

Aswegettheoutput'Welcome',thismeansthatprogramexecutionisstarted.
Astheselectstmtreturnsmorethanonerow,TOO_MANY_ROWSexceptionisraised.
Asweknow,Onceanexceptionisraisedcontrolwillnotexecutetheremaininglinesof
excutablesection,searchesfortheExceptionsection.
Aswedonothaveexceptionsection,programisterminatedabnormally.
WecanavoidabnormalterminationoftheprogrambycatchingtheException.
Ex:

declare
l_salemp.sal%type
begin
http://oracleappsviews.blogspot.in/

7/256

13/05/2015

KrishnaReddyOracleAppsInfo

dbms_output.put_line('Welcome')
selectsalintol_Salfromemp
wheredeptno=10
dbms_output.put_line('Thesalis....'||l_sal)
dbms_output.put_line('ThankYou')
Exception
WhenTOO_MANY_ROWSthen
dbms_output.put_line('Selectstmtreturnsmorethanonerow')
end
/
Output:

Welcome
Selectstmtreturnsmorethanonerow.
Pl/SQLProceduresuccessfullycompleted.
3)ZERO_DIVIDE:

Thisexceptionisraised,whenwedivideanumberbyzero.
Ex:

Declare
anumber(4)
begin
dbms_output.put_line('Welcome')
a:=10/0
dbms_output.put_line(a)
dbms_output.put_line('ThankYou')
end
/
Output:

Welcome
Error
Note:

Intheaboveprogram,aswearedividingbyzero,ZERO_DIVIDEexceptionisraised.
Aswearenotcatchingtheexception,programisterminatedabnormally.
Asadeveloper,weneedtomakesurethatprogramsarecompletedsuccessfullyatany
case.
SOweneedtohandleexceptionwhichisraisedbyusingtheExceptionSection.
Ex:

Declare
anumber(4)
begin
dbms_output.put_line('Welcome')
a:=10/0
dbms_output.put_line(a)
dbms_output.put_line('ThankYou')
Exception
WhenZERO_DIVIDEthen
dbms_output.put_line('DOnotdivideby0')
end
/
http://oracleappsviews.blogspot.in/

8/256

13/05/2015

KrishnaReddyOracleAppsInfo

Output:

Welcome
DOnotdivideby0.
Pl/SQLProceduresuccessfullycompleted.
4)VALUE_ERROR:

Thisexceptionisraised,whenthevaluewhichisreturneddoesnotmatchwiththe
datatypevariable.
Ex:

Declare
l_enamenumber(10)
begin
dbms_output.put_line('Welcome')
selectenameintol_enamefromemp
whereempno=7369
dbms_output.put_line('Theemployeenameis...'||l_ename)
end
/
Output:

Welcome
Error
Note:

Astheselectstmtreturningcharvalue,itcannotbestoredinvaribleofnumberdata.
InthiscaseVALUE_ERRORexceptionisraised.
Aswearenotcatchingtheexception,programisterminatedabnormally.
Wecanavoidabnormalterminationoftheprogrambycatchingtheexceptionusing
ExceptionSection.
Ex:

Declare
l_enamenumber(10)
begin
dbms_output.put_line('Welcome')
selectenameintol_enamefromemp
whereempno=7369
dbms_output.put_line('Theemployeenameis...'||l_ename)
Exception
whenVALUE_ERRORthen
dbms_output.put_line('Plcheckthedatatypeofthelocalvariables')
end
/
Output:

Welcome
Plcheckthedatatypeofthelocalvariables
5)DUP_VAL_ON_INDEX:

Thisexceptionisraisedwhenwetrytoinsertadulicatevalueonaprimarykeyor
uniquekey.
http://oracleappsviews.blogspot.in/

9/256

13/05/2015

KrishnaReddyOracleAppsInfo

ex:

Createthefollowingtable:
createtablestudent(snonumber(3)primarykey,
snamevarchar2(20),
marksnumber(3))
insertarowinthetable:
insertintostudentvalues(101,'arun',40)
commit
begin
dbms_output.put_line('Welcome')
insertintostudentvalues(101,'vijay',50)
dbms_output.put_line('ThankYou')
end
/
Output:

Welcome
Error
Note:

Asweareinsertingaduplicatevalueinaprimarykeycolumn,DUP_VAL_ON_INDEX
exceptionisraised.Aswearenotcatchingtheexceptionprogramisterminated
abnormally.
Wecanavoidabnormaiterminationoftheprogrambycatchingtheexception.
Ex:

begin
dbms_output.put_line('Welcome')
insertintostudentvalues(101,'vijay',50)
dbms_output.put_line('ThankYou')
Exception
whenDUP_VAL_ON_INDEXthen
dbms_output.put_line('Donotinsertduplicatevalueinaprimarykey')
end
/
Output:

Welcome
Donotinsertduplicatevalueinaprimarykey
WhenOthershandler:

Whenotherscanhandleanytypeofexception
Ex1:

Declare
anumber(4)
begin
dbms_output.put_line('Welcome')
a:=10/0
dbms_output.put_line(a)
dbms_output.put_line('ThankYou')
Exception
Whenothersthen
http://oracleappsviews.blogspot.in/

10/256

13/05/2015

KrishnaReddyOracleAppsInfo

dbms_output.put_line('Plcheckthecode')
end
/
Output:

Welcome
Plcheckthecode
Note:
ExceptionthatisraisedisZERO_DIVIDE.
WedonothaveZERO_DIVIDEhandler,butWhenOtherscanhandlercanhandlethis
exception.
Ex2:

declare
l_salemp.sal%type
begin
dbms_output.put_line('Welcome')
selectsalintol_Salfromemp
wheredeptno=10
dbms_output.put_line('Thesalis....'||l_sal)
dbms_output.put_line('ThankYou')
Exception
Whenothersthen
dbms_output.put_line('Plcheckthecode')
end
/
Output:

Welcome
Plcheckthecode
+++++++++++++++++++++++++++++++++++
Nonpredefiniedexception:

Theseexceptionswillhaveexceptionumber,butdoesnothaveexceptionname.
Ex:

ORA2292exception.Thisexceptionisraisedwhenwetrytodeletefromrowfromthe
parenttableifcorrespodingrowexistsinthechildtable.
Firstletsestablishparentchildrelationshipbetweentwotables.
createtablestudent2(snonumber(3)primarykey,
snamevarchar2(20),
marksnumber(3))
insertintostudent2values(101,'arun',40)
insertintostudent2values(102,'varun',50)
insertintostudent2values(103,'kiran',60)
createtablelibrary2(roll_nonumber(3)referencesstudent2(sno),
book_namevarchar2(20))
insertintolibrary2values(101,'Java')
insertintolibrary2values(102,'C++')
insertintolibrary2values(102,'Oracle')
commit
begin
dbms_output.put_line('Welcome')
http://oracleappsviews.blogspot.in/

11/256

13/05/2015

KrishnaReddyOracleAppsInfo

deletefromstudent2wheresno=101
dbms_output.put_line('ThankYou')
end
/
Output:

Welcome
Error
Note:Wearedeletetingtherowfromtheparenttableandthecorrespondingrowexists
inthechildtable.Soexceptionisraised.Theexceptionwhichisraisedintheabove
programisORA2292.Thisexceptiondoesnothaveanyname.Thisisanexampleof
nonpredefiniedexception.
Thefollowingstepsaretofollowedtohandlenonpredefiniedexception.
Step1:Declaretheexception
Step2:Associatetheexception
Step3:Handlethenexception.
Syntax:

Step1:Declaretheexception
<Exception_name>Exception
Step2:Associatetheexception
raise_application_error(<exception_no>,<Exception_name>)
Step3:Handletheexception
Exception
When<Exceptionb_name>then
............
...........
............
end
/
Ex:

Inthefollwoingprogram,weperformthethreestepprocesstohandleNonpredefinied
exceptions.
Declare
MY_EX1Exception
Raise_application_error(2292,MY_EX1)
begin
dbms_output.put_line('Welcome')
deletefromstudent2wheresno=101
dbms_output.put_line('ThankYou')
Exception
WhenMY_EX1then
dbms_output.put_line('Cannotdeletefromtheparenttable')
end
/
Output:

Welcome
Cannotdeletefromtheparenttable
3)Userdefiniedexceptions:

http://oracleappsviews.blogspot.in/

12/256

13/05/2015

KrishnaReddyOracleAppsInfo

Theseexceptionsaredefiniedbytheuser.
Followingstepsaretobefollowedtohandleuserdefiniedexceptions.
Step1:Declaretheexception
Step2:Raisetheexception
Step3:Handletheexception.
Ex:

Declare
l_salemp.sal%type
my_ex1exception
begin
dbms_output.put_line('Welcome')
selectsalintol_salfromemp
whereempno=7902
ifl_sal>2000then
raisemy_ex1
endif
dbms_output.put_line('Thesalis....'||l_sal)
Exception
Whenmy_ex1then
dbms_output.put_line('Salistoohigh')
Whenothersthen
dbms_output.put_line('Plcheckthecode')
end
/
Output:

Welcome
Salistoohigh
Usingraise_application_error:

raise_application_errorisaprocedurewhichisusedtothrowauserdefinederror
error_numberanderror_messagetotheapplication.
Ex:

Declare
l_salemp.sal%type
begin
dbns_output.put_line('Welcome')
selectsalintol_salfromempwhereempno=7902
ifl_sal>2000then
raise_application_error(20150,'Salistoohigh')
endif
dbms_output.put_line('Thesalis....'||l_sal)
end
/
Ouptut:

Welcome
ORA20150,Salistoohigh
ErrorReportingfunctions:

Cursors:
http://oracleappsviews.blogspot.in/

13/256

13/05/2015

KrishnaReddyOracleAppsInfo

CursorisamemorylocationswhichisusedtorunSQLcommands.
Therearetwotypescursors
1)ImplicitCursors
2)ExplicitCursors
1)ImplicitCursors:

Alltheactivitedrelatedtocursorlikei)Openingthecursorii)Processingthedatainthe
cursoriii)closingthecursor
aredoneautomatically.
HencethesecursorsarecalledImplictcursors.
ImplicitCursorAttributes:

TherearefourImplicitcursorattributes
1)SQL%ISOPEN
2)SQL%FOUND
3)SQL%NOTFOUND
4)SQL%ROWCOUNT
1)SQL%ISOPEN:

Itisabooleanattribute.Italwaysreturnsfalse.Itisnotusedinprogrammingasit
alwaysreturnsfalse.
2)SQL%FOUND:

Itisabooleanattribute.
ReturnsTRUEiftheSQLcommandeffectsthedata.
ReturnsFALSEiftheSQLcommandsdonoteffectthedata.
3)SQL%NOTFOUND:

Itisabooleanattribute
ReturnsTRUEiftheSQLcommanddonoteffectthedata.
ReturnsFALSEiftheSQLcommandeffectsthedata
Note:ItisexactlynegationtoSQL%FOUND
4)SQL%ROWCOUNT:

ReturnsnoofrowseffectedbytheSQLcommand.
UsingSQL%FOUND:

Begin
Updateempsetsal=2000
whereempno=1111
end
/
Output:

PL/SQLProceduresuccessfullycompleted.
Bylookingattheabovemessage,wecannotknowwhetheryourupdatecommandis
effectingthedataornot.
Toovercomethisproblem,wehaveSQL%FOUNDattribute.
Havealookatthisprogram
Begin
Updateempsetsal=2000
whereempno=1111
ifSQL%FOUNDthen
dbms_output.put_line('Updateissuccessfull')
http://oracleappsviews.blogspot.in/

14/256

13/05/2015

KrishnaReddyOracleAppsInfo

else
dbms_output.put_line('Updateisfailed')
endif
end
/
Output:

Updateisfailed.
PL/SQLProceduresuccessfullycompleted.
UsingSQL%NOTFOUND:

SQL%NOTFOUNDisexactlyoppositetoSQL%FOUND.
WerewritetheaboveprogramusingSQL%NOTFOUND
Begin
Updateempsetsal=2000
whereempno=1111
ifSQL%NOTFOUNDthen
dbms_output.put_line('Updateisfailed')
else
dbms_output.put_line('Updateissuccessful')
endif
end
/
Output:

Updateisfailed.
PL/SQLProceduresuccessfullycompleted.
UsingSQL%ROWCOUNT:

SQL%ROWCOUNTattributeisusedtofindthenoofrowseffectedbySQLcommand.
begin
updateempsetsal=2000
wheredeptno=10
dbms_output.put_line(SQL%ROWCOUNT||'rowsupdated')
end
/
Output:

3rowsupdated.
Note:Asadeveloper,wecannotcontroltheimplicitcursor.
Wecanyoutheseimplicitcursorattributestoknowwhetherthecommandiseffecting
thedataornot.
ExplicitCursors:

ExplicitcursorsareusedtorunselectstmtwhichretursmorethanonerowinaPL/SQL
block
StepstouseExplicitcursors:

Step1:Declarethecursor
Step2:Openthecursor
Srep3:Fetchthedatafromthecursortothelocalvariables
Step4:closethecursor
Syntaxoftheabovefoursteps:

http://oracleappsviews.blogspot.in/

15/256

13/05/2015

KrishnaReddyOracleAppsInfo

Step1:Declaringthecursor
cursor<cursor_name>
is<selectstmt>
step2:Openthecursor
open<cursor_name>
step3:Fetchthedatafromthecursortothelocalvariables
fetch<cursor_name>into<var1>,<var2>,.....,<varn>
step4:closethecursor
close<cursor_name>
Explicitcursorattributes:

Therearefourexplicitcursorattributes
1)%ISOPEN
2)%FOUND
3)%NOTFOUND
4)%ROWCOUNT
1)%ISOPEN:

Itisabooleanattribute.
ReturnsTRUEifthecursorisopen
ReturnsFALSEifthecursorisclosed
2)%FOUND:

Itisabooleanattribute
ReturnsTRUEifthefetchstmtissuccessfull
ReturnsFALSEifthefetchstmtfails
3)%NOTFOUND:

Itisbooleanattribute
ReturnsTRUEifthefetchstmtfails.
ReturnsFALSEifthefetchstmtissuccessfull
Note:1)Itisexactlyoppositeto%FOUNDattribute
2)Thisattributeisusedtobreaktheloopofthefetchstmt.
4)%ROWCOUNT:

Returnsnoofrowsfetchedbythefetchstmt.
ExampleofExplicitcursor:

WriteaPL/SQLblocktodisplayenameandsalofemployeesworkingindeptnono
Declare
cursorc1
isselectename,salfromemp
wheredeptno=10
l_enameemp.ename%type
l_salemp.sal%type
begin
openc1
loop
fetchc1intol_ename,l_sal
exitwhenc1%notfound
dbms_output.put_line(l_ename||'....'||l_sal)
endloop
closec1
end
http://oracleappsviews.blogspot.in/

16/256

13/05/2015

KrishnaReddyOracleAppsInfo

/
Output:

CLARK2450
KING5000
MILLER1300
Pl/SQLProceuduresuccessfullycompleted.
Ex2:WriteaPL/SQLproceduretodisplaydname,locfromdepttable
Declare
cursorc1
isselectdname,locfromdept
l_dnamedept.dname%type
l_locdept.loc%type
begin
openc1
loop
fetchc1intol_dname,l_loc
exitwhenc1%notfound
dbms_output.put_line(l_dname||'.....'||l_loc)
endloop
closec1
end
/
Output:

AccountingNewYork
ResearchDallas
SalesChicago
OperationsBoston
Pl/SQLProceduresuccessfullycompleted.
CursorForloops:

Itisshortcutwayofwritingexplicitcursors.
Whenweusecursorforloops,followingstepsarenotrequired.
1)Openthecursor
2)Fetchstmt
3)exitwhencondition
4)closingthecursor
5)declaringthelocalvariables
Ex:

WriteaPL/SQLblockwhichdisplayenameandsalofemployeesworkingindeptno10
Declare
cursorc1
isselectename,salfromemp
wheredeptno=10
begin
foremp_recinc1loop
dbms_output.put_line(emp_rec.ename||'.....'||emp_rec.sal)
endloop
end
/
Output:
http://oracleappsviews.blogspot.in/

17/256

13/05/2015

KrishnaReddyOracleAppsInfo

CLARK2450
KING5000
MILLER1300
Pl/SQLProceuduresuccessfullycompleted.
Note:Intheaboveprogramemp_recinimplicitlydeclaredrecordvariable,
whichiscapableofstoringonerowofthecursor.
Procedures:
AProcedureisanamedPL/SQLblockwhichiscompiledandstoredinthedatabasefor
repeatedexecution.
BasicSyntax:

Createorreplaceprocedure<procedure_name>
is
begin
..............
..............
.............
end
/
Ex1:

Createorreplaceprocedurep1
is
begin
dbms_output.put_line('HelloWorld')
end
/
Procedurecreated.
Toexecutetheprocedure:

Execcommandisusedtoexecutetheprocedure.
SQL>Execp1
HelloWorld
Aprocedurecanhavethreetypesofparameters.
1)INParameter
2)OUTParameter
3)INOUTParameter
InParametersareusedtoacceptvaluesfromtheuser.
Ex2:

Createaprocedurewhichacceptstwonumbersanddisplayitssum.
createorreplaceprocedureadd_num(aINnumber,
bINnumber)
is
cnumber(3)
begin
c:=a+b
dbms_output.put_line('Thesumis'||c)
end
/
Procedurecreated.
Toexecutetheprocedure:

http://oracleappsviews.blogspot.in/

18/256

13/05/2015

KrishnaReddyOracleAppsInfo

SQL>execadd_num(10,20)
Ex3:

CreateaProcedurewhichacceptsanempnoandincrementshissalaryby1000.
createorreplaceprocedureinc_sal(ainnumber)
is
begin
updateempsetsal=sal+1000
whereempno=a
end
/
Procedurecreated.
TOexecutetheprocedure:

SQL>execinc_sal(7900)
Wecanimprovetheaboveprocedurecodebyusing%typeattributeinprocedure
parameters.
Theaboveprocedurecanberewrittenasbelow:
createorreplaceprocedureinc_sal(ainemp.empno%type)
is
begin
updateempsetsal=sal+1000
whereempno=a
end
/
Ex4:

Createaprocedurewhichacceptsempnoanddisplayenameandsalary.
createorreplaceproceduredisplay_emp(l_empnoemp.empno%type)
is
l_enameemp.ename%type
l_salemp.sal%type
begin
selectename,salintol_ename,l_salfromemp
whereempno=l_empno
dbms_output.put_line(l_ename||'....'||l_sal)
exception
whenno_data_foundthen
dbms_output.put_line('Invalidempno')
end
/
Ex5:

Createaprocedurewhichacceptsdeptnoanddisplayenameandsalaryofemployees
workinginthatdepartment.
createorreplaceproceduredisplay_emp1(l_deptnoemp.deptno%type)
is
cursorc1
isselectename,salfromemp
wheredeptno=l_deptno
begin
foremp_recinc1loop
dbms_output.put_line(emp_rec.ename||'...'||emp_rec.sal)
http://oracleappsviews.blogspot.in/

19/256

13/05/2015

KrishnaReddyOracleAppsInfo

endloop
end
Ex6:

Wecancallaprocedurefromanotherprocedure.
createorreplaceproceduredemo1
is
begin
dbms_output.put_line('Thisisfromdemo1')
end
/
createorreplaceproceduredemo2
is
begin
dbms_output.put_line('Welcome')
demo1
dbms_output.put_line('Thankyou')
end
/
SQL>Execdemo2
Ex7:

WecancallmultipleproceduresatatimeusingPL/SQLblock.
begin
p1
add_num(10,20)
inc_sal(7900)
end
/
Ex8:

Ifthereareanysyntaxerrorsintheprocedurecode,thenthe
procedcureiscreatedwithcompilationerrors.
createorreplaceprocedureadd_num(aINnumber,
bINnumber)
is
cnumber(3)
begin
c:=a+b
dbms_outut.put_line('Thesumis'||c)
end
/
Procedureiscreatedwithcompilationerrrors.
Toseetheerrors,usethefollowingcommand.
SQL>shoerr
Wegeterrorinformation.
Rectifytheerrorandrecompilethecodetocreateproceduresuccessfully.
Ex9:

Subprocedure:Aprocedureinsideanotherprocedureiscalledas
Subprocedure.
createorreplaceproceduretest
is
proceduresample
http://oracleappsviews.blogspot.in/

20/256

13/05/2015

KrishnaReddyOracleAppsInfo

is
begin
dbms_output.put_line('Thisisfromsample')
end
begin
dbms_output.put_line('Thisisfromtest')
sample
end
IntheaboveexampleproceduresampleiscalledasSubprocedure.
ASubprocedurecanbeinvokedfromthemainprocedureonly.
SQL>EXECtest
Thisisfromtest
Thisisfromsample
WecannotinvoketheSubprocedureindependently.
Thefollowingcommandwillgiveerror.
SQL>EXECsample
Ex10:

OUTparametersareusedtoreturnthevaluestothecallingenvironment.
createaprocedurewhichacceptsempnoandreturnsalary.
createorreplaceprocedureret_sal(l_empnoinemp.empno%type,
l_saloutemp.sal%type)
is
begin
selectsalintol_salfromemp
whereempno=l_empno
end
AstheprocedureisreturningavalueusingOUTparameter,
weneedtohaveabindvariabletocatchthevalue.Weneedtofollowa3stepprocessto
executetheaboveprocedure.
Step1:Createbindvariable
Step2:Executetheprocedureusingbindvariable
Step3:Printthevalueinthebindvariable.
Step1:creatingBindvariable
SQL>variableg_salnumber
Step2:Invokingtheprocedureusingbindvariable
SQL>Execret_sal(7900,:g_sal)
Step3:Printthevalueinthebindvariable
SQL>Printg_sal
Ex11:

INOUTparametersareusedtoacceptthevalueaswellasreturnthevaluestothe
callingenvironment.
Createaprocedurewhichacceptsanumberandreturnitssquare.
createorreplaceprocedurecal_square(aInOUTnumber)
is
begin
a:=a*a
end
/
Toruntheaboveproceureweneedtofollowafourstepprocess.
Step1:CreateBindvariable
Step2:InitiatetheBindvariable
Step3:Invoketheprocedureusingbindvaraible
http://oracleappsviews.blogspot.in/

21/256

13/05/2015

KrishnaReddyOracleAppsInfo

Step4:Printthevalueinthebindvariable
Step1:
SQL>Variablennumber
Step2:
begin
:n:=5
end
/
Step3:
SQL>Execcal_square(:n)
Step4:
SQL>Printn
Ex12:

Toseethelistofprocedures,usethefollowingqueries
SQL>selectobject_namefromuser_objectswhere
object_type='PROCEDURE'
or
SQL>selectprocedure_namefromuser_procedures.
Ex13:

UsingDefaultkeyword:

createorreplaceprocedureadd_num3(anumber,
bnumberdefault100,
cnumberdefault200)
is
dnumber(5)
begin
d:=a+b+c
dbms_output.put_line('Thesumis...'||d)
end
/
Procedurecreated.
Toexecutetheprocedure
SQL>EXECadd_num3(10,20,30)
Output:Thesumis60
SQL>Execadd_num3(10,20)
Output:Thesumis230
Note:Defaultvalueisconsideredifwedonotpassanyvalue.
SQL>Youneedtousearrowoperatorifyoupassvaluestospecificparameters
Ex:
SQL>Execadd_num3(a=>10,c=>20)
Output:Thesumis130
Defaultvalue100isconsideredforparameterb.
ex14:

Ifthereareanyerrorsintheprocedurecode,thenprocedureiscreatedwithcompilation
errors.
ToseethecompilationerrorsSHOERRcommandisused.
Weneedtorectifytheerrorsandrecreatetheproceduresucessfully.
Ex15:
http://oracleappsviews.blogspot.in/

22/256

13/05/2015

KrishnaReddyOracleAppsInfo

Toseethecodeoftheexistingprocedure
selecttextfromuser_source
wherename=ADD_NUM3
TOdropaprocedure:

SQL>DropProcedure<procedure_name>
Ex:
SQL>Dropprocedureadd_num
Functions:
FunctionisaPL/SQLblockwhichmustandshouldreturnsinglevalue.
Syntax:

Createorreplacefunction<Function_name>
(<Par_name><mode><datatype>,
,,,,,,)
returndatatype
is
Begin
..........
.........
end
/
ex1:

Createafunctionwhichacceptstwonumbersanddisplayitssum.
createorreplacefunctionadd_num_f1(anumber,bnumber)
returnnumber
is
cnumber(5)
begin
c:=a+b
returnc
end
/
Toinvokeafunctionfromapl/Sqlblock:

declare
nnumber(5)
begin
n:=add_num_f1(20,40)
dbms_output.put_line('Thesumis'||n)
end
/
Wecaninvokefunctionsfromselectstmt:

selectadd_num_f1(30,50)fromdual
Functionscanbeinvokedaspartofanexpression:

select100+add_num_f1(50,10)fromdual
Ex2:

createafunctionwhichacceptssalandreturnstaxvalue(10%ofsalistax).
createorreplacefunctioncal_tax(anumber)
http://oracleappsviews.blogspot.in/

23/256

13/05/2015

KrishnaReddyOracleAppsInfo

is
begin
returna*10/100
end
/
Note:Afunctioncanreturnavalueusingreturnstatement.
Ex3:

Havealookatthefollowingfunction:
createorreplacefunctionadd_num_f2(anumber,bnumber)
returnnumber
is
cnumber(5)
begin
insertintodeptvalues(50,'HR','HYDERABAD')
c:=a+b
returnc
end
/
Theabovefunctiongetscreated.
Theabovefunctioncanbeinvokedfromthepl/SQLblock
declare
nnumber(5)
begin
n:=add_num_f2(20,40)
dbms_output.put_line('Thesumis'||n)
end
/
But,wecannotinvoketheabovefunctionusingselectstmt.
ex:
selectadd_num_f2(30,50)fromdualwillgiveuserror.
Note:So,functionswithdmlcommandscannotbeinvokedfromselectstmt.

TOseethelistofallthefunctions
selectobject_namefromuser_objects
whereobject_type='FUNCTION'

Todropafunction
dropfunction<function_name>
ex:
dropfunctionadd_num_f2

Functionsaremainlyusedforcalculationpurposes.
Restoftheactivities,preferprocedures.
Packages:
cPackagesarelogicallyrelatedsubprograms.
Packagecreatinginvolvestwosteps.
Step1:CreatingPackagespecification(PKS)
Step2:CreatingPackageBody(PKB)
PackageSpecification:
http://oracleappsviews.blogspot.in/

24/256

13/05/2015

KrishnaReddyOracleAppsInfo

Itcontainsdeclarationofsubprograms
Syntax:

createorreplacepackage<package_name>
is
declarationofprocedures
declarationoffunctions
end
/
PackageBody:

Itcontainsdefinitionofsubprograms
Syntax:

createorreplacepackagebody<package_name>
is
definitionofprocedures
definitionoffunctions
end
/
Ex:

Letscreateapackagewithtwoproceduresandfunction.
Procedureadd_numwhichtakestwoparametersanddisplayitssum.
Proceduredisplay_empwhichacceptsempnoanddisplayenameandsal.
Functioncal_taxwhichacceptssalandreturnstaxvalue(10%ofsalistaxvalue).
PackageSpecification:

createorreplacepackagetest_pack
is
procedureadd_num(anumber,
bnumber)
proceduredisplay_emp(l_empnoemp.empno%type)
functioncal_tax(l_salemp.sal%type)
returnnumber
endtest_pack
/
Packagebody:

createorreplacepackagebodytest_pack
is
procedureadd_num(anumber,
bnumber)
is
cnumber
begin
c:=a+b
dbms_output.put_line('Thesumis'||c)
end
proceduredisplay_emp(l_empnoemp.empno%type)
is
http://oracleappsviews.blogspot.in/

25/256

13/05/2015

KrishnaReddyOracleAppsInfo

l_enameemp.ename%type
l_salemp.sal%type
begin
selectsalintol_salfromemp
whereempno=l_empno
dbms_output.put_line(l_ename||'.......'||l_sal)
end
functioncal_tax(l_salemp.sal%type)
is
l_taxnumber
begin
l_tax:=l_sal*10/100
returnl_tax
end
endtest_pack
/
Toinvokesubprogramsinsidethepackage:

SQL>EXECtest_pack.display_emp(7900)
SQL>selectempno,ename,sal,test_pack.cal_tax(sal)fromemp
Procedureoverloadingusingpackages:

WecanachieveprocedureoverloadingusingPackages.
Basingonthenoofparametersanddatatypeoftheparameters,
theappropriateprocedureisinvoked.
ex:

Createorreplacepackagetest_pack2
is
procedurep1(anumber,
bnumber)
procedurep1(anumber)
endtest_pack2
/
createorreplacepackagebodytest_pack2
is
procedurep1(anumber,
bnumber)
is
cnumber
begin
c:=a+b
dbms_output.put_line('Thesumis'||c)
end
procedurep1(anumber)
is
begin
dbms_output.put_line('Thesquareofthenumberis'||a*a)
end
endtest_pack2
/
Intheabovepackagetherearetwoprocedureswiththesamename.
Appropriateprocedureisinvokedbasingonthenoofparameterswhicharepassed
http://oracleappsviews.blogspot.in/

26/256

13/05/2015

KrishnaReddyOracleAppsInfo

atthetimeofcallingtheprocedure.
Ex:

SQL>exectest_pack2(10,20)
Thesumis30
SQL>exectest_pack2(10)
Thesquareofthenumberis100
Todropthepackage:

Weneedtodroppackagebodufirstandthenthepackagespecification.
Droppackagebody<package_name>
Droppackage<package_name>
Ex:

Droppackagebodytest_pack2
Droppackagetest_pack2
Guidelinesofthepackages:

1)Helpsinmodularityofthecode.
2)Packagescannotbenested.
3)Packagescannotbeparameterized.
Triggers:
TriggerisaPL/SQLblockwhichisexecutedautomatically
basingonaevent.
Triggeringevents:Insert,Update,Delete
Triggertimings:Before,after,insteadof
Syntax:

Createorreplacetrigger<trg_name>
<timing><event>on<table_name>
begin
.............
.............
.............
end
/
ex:

createorreplacetriggertrg1
afterinsertondept
begin
dbms_output.put_line('ThankYou')
end
/
TriggerCreated.
Now,whenweperoformtheevent,triggerisexecuted,.
ex:

insertintodeptvalues(52,'HR','HYDERABAD')
ThankYou
1rowcreated.
Wegetthemessage,'ThankYou'.
Thatmeanstriggerisexecuted.
http://oracleappsviews.blogspot.in/

27/256

13/05/2015

KrishnaReddyOracleAppsInfo

Wecancreatetriggersonmultipleevents.
ex:

createorreplacetriggertrg1
afterinsertorupdateordeleteondept
begin
dbms_output.put_line('ThankYou')
end
/
Triggercreated.
Now,forallthethreeevents,trigggerisfired.
ex:

Updatedeptsetloc='DELHI'
wheredeptno=10
ThankYou
1Rowupdated.
deletefromdeptwheredeptno=50
Thankyou
1Rowdeleted.
Intheaboveprogram,wegetthesamemessageforalltheevents.
Wecanalsohavedifferentmessagestobedisplayed,basingontheevents.
Ex:

createorreplacetriggertrg1
afterinsertorupdateordeleteondept
begin
ifinsertingthen
dbms_output.put_line('ThankYouforinserting')
elsifupdatingthen
dbms_output.put_line('ThankYouforupdating')
else
dbms_output.put_line('ThankYoufordeleting')
endif
end
/
Triggercreated.
Intheaboveprogram,insertingandupdatingarethekeywordswhichareusedto
identifytheevents.
Triggerscanbeclassifiedintotwotypes,basingonthenooftimesitisexecuted.
1)Statementleveltriggers
2)Rowleveltriggers
1)Statementleveltriggersareexecutedonlyonce,irrespectiveofnoofrowseffectedby
theevent.
2)Rowleveltriggersareexecutedforeveryroweffectedbytheevent.
Tocreatearowleveltrigger,weneedtouse
foreachrowclause.
ex:

createorreplacetriggertrg1
afterupdateonempforeachrow
begin
dbms_output.put_line('Thankyouforupdating')
end
http://oracleappsviews.blogspot.in/

28/256

13/05/2015

KrishnaReddyOracleAppsInfo

/
Triggercreated.
updateempsetsal=2000
wheredeptno=10
Thankyouforupdating
Thankyouforupdating
Thankyouforupdating
3rowsupdated.
As,theupdatecommandiseffecting3rows,triggerisexecuted3times.
Thesekindoftriggersarecalledrowleveltriggers.
Triggersareusedtoenforcebusinessrulesby
using:OLDand:NEWqualifiers.
ex:

Createatriggerwhichrestrictinsertoperation
ifsal>5000.
createorreplacetriggertrg1
beforeinsertonempforeachrow
begin
if:new.sal>5000then
raise_application_error(20150,
'Salcannotbemorethan5000')
endif
end
/
TriggerCreated.
Event:

insertintoemp(empno,ename,sal,deptno)
values(1111,'ARUN',6000,10)
ERROR:
ORA20150,salcannotbemorethan5000
Ex:

Createatriggerwhichrestrictdeleteoperationonemp
ifjobispresident.
createorreplacetriggertrg1
beforedeleteonempforeachrow
begin
if:OLD.JOB='PRESIDENT'then
raise_application_error(20151,
'cannotdeletepresident')
endif
end
/
Triggercreated.
Event:

deletefromempwhereename='KING'
Error:
ORA20151,cannotdeletepresident
Insteadoftriggers:

http://oracleappsviews.blogspot.in/

29/256

13/05/2015

KrishnaReddyOracleAppsInfo

InsteadoftriggersarehelpfultoperformDMLoperationsoncomplexview.
Exampleofcomplexview:

createorreplaceviewemp_dept_v
as
selecte.empno,e.ename,e.sal,e.deptno,d.dname,d.loc
fromempe,deptd
wheree.deptno=d.deptno
Viewcreated.
Generally,wecannotinsertrowintocomplexview.
But,byusingtheinsteadoftriggers,wecandoit.
ex:

createorreplacetriggertrg1
insteadofinsertonemp_dept_vforeachrow
begin
insertintodeptvalues(:NEW.deptno,:NEW.dname,:NEW.loc)
insertintoemp(empno,ename,sal,deptno)values
(:NEW.empno,:NEW.ename,:NEW.sal,:NEW.deptno)
end
/
TriggerCreated.
Event:

insertintoemp_dept_vvalues(2121,'VIJAY',3000,60,'TRAINING','HYDERABAD')
1Rowcreated.
Toseethelistoftriggers:

selecttrigger_namefromuser_triggers
Todropatrigger:

Droptrigger<trigger_name>
Ex:

Droptriggertrg1
TriggerDroped.

Posted3rdMarchbyKrishnareddy
0 Addacomment

3rdMarch

XMLPublisherQuestionswithAnswers

Overview:OracleXMLPublisherisatemplatebasedpublishingsolutiondelivered
withtheOracleEBusinessSuite.Itprovidesanewapproachtoreportdesignand
publishingbyintegratingfamiliardesktopwordprocessingtoolswithexistingE
http://oracleappsviews.blogspot.in/

30/256

13/05/2015

KrishnaReddyOracleAppsInfo

BusinessSuitedatareporting.Atruntime,XMLPublishermergesthecustomtemplates
withtheconcurrentrequestdataextractstogenerateoutputinPDF,HTML,RTF,
EXCEL(HTML),orevenTEXTforusewithEFTandEDItransmissions
BasicNeedforXML:Considerthefollowingscenarios
WehaveaRDFreportwithtabularlayoutwhichprintsinEnglish
NewRequirements:
1. User1wantsthesameReportneedstobeprintedinSpanish
2. User2wantstheSameReportneedstobeprintedinchartformat
3. User3wantstheSameReportoutputinExcel
4. User4wantstheSameReportoutputtobepublishedonintranetorinternet
5. User5wantstheSameReportoutputeliminatingfewcolumnsandaddingfewother

AnewRDFneedstobecreatedforeachrequirementstatedaboveoranexistingRDF
needstobemodifiedwithhugeamountofeffortbutwhereaswithXMLPublisheritcan
bedoneveryeasily.
XMLPublisherseparatesareportsdata,layoutandtranslationcomponentsintothree
manageablepiecesatdesigntimeatruntimeallthethreepiecesarebroughtback
togetherbyXMLPublishertogeneratethefinalformatted,translatedoutputslikePDF,
HTML,XLSandRTF.Infuture,ifanythereisanychangeinlayoutwejustneedto
add/modifytheLayoutfile
DataLogic:DataextractedfromdatabaseandconvertedintoanXMLstring.
Layout:Thelayouttemplatestobeusedforthefinaloutputarestoredandmanagedin
theTemplateManager.
Translation:Thetranslationhandlerwillmanagethetranslationthatisrequiredat
runtime
Inbriefthestepsareasfollows:
a.CreateaprocedureandregisteritasConcurrentProgramsothatwewriteXML
tagsintooutputfile.
b.BuildaDataDefinition&XMLTemplateusingXMLPublisher.
c.CreatearelationbetweenXMLTemplate&ConcurrentProgramandrunthe
concurrentprogram
RequirementsforXMLDataObjectReports
1. OracleXMLPublisherRelease5.5patch4206181
2. TemplateBuilder5.5

Templatebuilderisusedtocreatetemplate/layoutforyourreport.UsuallyTemplate
builder5.5isavailableinOracleXMLPublisherpatchitselfbutyoucanalsodownload
itfromhttp://edelivery.oracle.com[http://edelivery.oracle.com/] .FirstselectOracle
ApplicationServerProductsthenselectyourplatformandthenlocatetheOracleXML
PublisherRelease5.6.2MediaPackv1forMicrosoftWindows,asbelow:
DownloadtheDesktopeditionfromthebelow:
WhenyoudownloadtheXMLPublisherDesktopeditionyougetaZipfilecontaining
setupforXMLPublisherDesktopInstallShield,thisinstallssomecomponentsinto
MicrosoftWord.
Afterinstalling,theWordAddInsisattachedtothemenubarfortheworddocument.
ThismenuletsyouattachanXMLdatasourcedocument,addtheXMLdatatoyour
template,setpreferencesandpreviewtheoutput.
Indetailalongwithscreenshots:
AconcurrentprogramiswrittenthatspitoutanXMLfileasoutputsuchconcurrent
programcanbeoftypeSQLorPL/SQLorOracleReportoranyothersupportabletype,
provideditcanproduceaXMLoutput.
1.HereIhaveaverysimplePL/SQLprocedure,whichfetchtherecordsfromARtables
andwritetheoutputinxmltags.
CREATEORREPLACEPROCEDUREAPPS.Demo_XML_Publisher(errbuf
http://oracleappsviews.blogspot.in/

31/256

13/05/2015

KrishnaReddyOracleAppsInfo

VARCHAR2,retcodeNUMBER,v_customer_idVARCHAR2)
AS
/*CursortofetchCustomerRecords*/
CURSORxml_parent
IS
SELECTcustomer_name,customer_id
FROMra_customers
WHEREcustomer_id=to_number(v_customer_id)
/*Cursortofetchcustomerinvoicerecords*/
CURSORxml_detail(p_customer_id1NUMBER)
IS
SELECTra.customer_trx_idcustomer_trx_id,ra.ship_to_customer_id
ship_to_customer_id,ra.trx_numbertrx_number,aps.amount_due_original
ams
FROMra_customer_trx_allra,ar_payment_schedules_allaps
WHEREra.ship_to_customer_id=p_customer_id1
ANDaps.customer_trx_id=ra.customer_trx_id
ANDROWNUM<4
BEGIN
/*FirstlineofXMLdatashouldbe<?xmlversion="1.0"?>*/
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<?xmlversion="1.0"?>')
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<CUSTOMERINFO>')
FORv_customerINxml_parent
LOOP
/*Foreachrecordcreateagrouptag<P_CUSTOMER>atthestart*/
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<P_CUSTOMER>')
/*EmbeddatabetweenXMLtagsforex:
<CUSTOMER_NAME>ABCD</CUSTOMER_NAME>*/
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<CUSTOMER_NAME>'||
v_customer.customer_name
||'</CUSTOMER_NAME>')
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<CUSTOMER_ID>'||
v_customer.customer_id||
'</CUSTOMER_ID>')
FORv_detailsINxml_detail(v_customer.customer_id)
LOOP
/*Forcustomerinvoicescreateagrouptag<P_INVOICES>atthestart*/
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<P_INVOICES>')
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<CUSTOMER_TRX_ID>'||
v_details.customer_trx_id||'</CUSTOMER_TRX_ID>')
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<CUSTOMER_ID>'||
v_details.ship_to_customer_id||'</CUSTOMER_ID>')
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<INVOICE_NUMBER>'||
v_details.trx_number||'</INVOICE_NUMBER>')
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<AMOUNT_DUE_ORIGINAL>'||
v_details.trx_number||'</AMOUNT_DUE_ORIGINAL>')
/*Closethegrouptag</P_INVOICES>attheendofcustomerinvoices*/
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</P_INVOICES>')
ENDLOOP
/*Closethegrouptag</P_CUSTOMER>attheendofcustomerrecord*/
http://oracleappsviews.blogspot.in/

32/256

13/05/2015

KrishnaReddyOracleAppsInfo

FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</P_CUSTOMER>')
ENDLOOP
/*FinallyClosethestartingReporttag*/
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</CUSTOMERINFO>')
exceptionwhenothersthen
FND_FILE.PUT_LINE(FND_FILE.log,'Enteredintoexception')
ENDDemo_XML_Publisher
/

2.CreateanexecutableSampleXmlReportfortheaboveprocedure
Demo_XMML_Publisher.
GotoApplicationDeveloperResponsibility>Concurrent>Executable
3.CreateanewconcurrentprogramSampleXmlReportthatwillcallthe
SampleXmlReportexecutabledeclaredabove.Makesurethatoutputformatisplacedas
XML.
GotoApplicationDeveloperResponsibility>Concurrent>Program
4.Makesurewedeclaretheparametersfortheprocedure.
5.AddthisnewconcurrentprogramwithReceivablesrequestgroup.Eitherusingthe
followingcodeorthroughbelowapplicationscreen.
DECLARE
BEGIN
FND_PROGRAM.add_to_group
(
PROGRAM_SHORT_NAME=>'CUST_XML_SAMPLE'
,PROGRAM_APPLICATION=>'AR'
,REQUEST_GROUP=>'ReceivablesAll'
,GROUP_APPLICATION=>'AR'
)
commit
exception
whenothersthen
dbms_output.put_line('Objectalreadyexists')
END
/

GotoSystemAdministratorResponsibility>Security>Responsibility>Request
6.Fromthereceivablesresponsibility(dependsonwhichresponsibilityweaddedour
concurrentprogramhereitisreceivables)
FromthemenuView>Requests>SubmitANewRequest>SingleRequest
Note:ThelayoutfieldisblankaswehaventattachedanyTemplateorlayouttothis
concurrentprogramyet.
Bysubmittingtheaboverequestwegettheoutputinxml(dependingonprocedure)as
follows:
<?xmlversion=1.0?>
[http://oamdev.ventanamed.test:8000/OA_CGI/FNDWRR.exe?temp_id=2392214407]
<CUSTOMERINFO>
[http://oamdev.ventanamed.test:8000/OA_CGI/FNDWRR.exe?temp_id=2392214407]
<P_CUSTOMER>
<CUSTOMER_NAME>UNIVOFCHICAGOHOSP</CUSTOMER_NAME>
<CUSTOMER_ID>1119</CUSTOMER_ID>
[http://oamdev.ventanamed.test:8000/OA_CGI/FNDWRR.exe?temp_id=2392214407]
<P_INVOICES>
http://oracleappsviews.blogspot.in/

33/256

13/05/2015

KrishnaReddyOracleAppsInfo

<CUSTOMER_TRX_ID>929476</CUSTOMER_TRX_ID>
<CUSTOMER_ID>1119</CUSTOMER_ID>
<INVOICE_NUMBER>2484403</INVOICE_NUMBER>
<AMOUNT_DUE_ORIGINAL>8000</AMOUNT_DUE_ORIGINAL>
</P_INVOICES>
[http://oamdev.ventanamed.test:8000/OA_CGI/FNDWRR.exe?temp_id=2392214407]
<P_INVOICES
<CUSTOMER_TRX_ID>929374</CUSTOMER_TRX_ID>
<CUSTOMER_ID>1119</CUSTOMER_ID>
<INVOICE_NUMBER>2484267</INVOICE_NUMBER>
<AMOUNT_DUE_ORIGINAL>380.68</AMOUNT_DUE_ORIGINAL>
</P_INVOICES>
[http://oamdev.ventanamed.test:8000/OA_CGI/FNDWRR.exe?temp_id=2392214407]
<P_INVOICES>
<CUSTOMER_TRX_ID>806644</CUSTOMER_TRX_ID>
<CUSTOMER_ID>1119</CUSTOMER_ID>
<INVOICE_NUMBER>2421373</INVOICE_NUMBER>
<AMOUNT_DUE_ORIGINAL>615.96</AMOUNT_DUE_ORIGINAL>
</P_INVOICES>
</P_CUSTOMER>
</CUSTOMERINFO>
7.SavetheabovecodeasSampleXmlReport.xml
Note:BeforesavingtheXMLstringinnotepadremovethedashes
8.CreateTemplate/LayoutforthereportusingTemplateBuilder.Hereisasample
template.
Notethefollowing:
Thedatafieldsthataredefinedonthetemplate
Forexample:CustomerName,CustomerId
Theelementsofthetemplatethatwillrepeatwhenthereportisrun.
Forexample,Customertrxid,InvoiceNumberandOriginalAmountDue.Allthese
fieldsonthetemplatewillrepeatforeachEmployeethatisreported.
9.Markupyourtemplatelayout.
Likeamailmergedocumenttheresplaceholdersforthedatayouregoingtoadd,and
thenyoucanaddwhateverformattingyoulike.
10.NowthenextstepistoselectData>LoadXMLDatafromthetoolbarmenu,then
pickuptheXMLdataafileie.SampleXmlReport.xml.Oncethedataisloaded,aData
LoadedSuccessfullydialogboxcomesupandyoucanthenstartaddingdataitemsto
thetemplate.
11.ToadddataitemsfromtheXMLfileintoyourreport,youlocateinthedocumentthe
placeholderforthefieldyouregoingtoadd,highlightitandthenselectInsert>Field
fromthetoolbar.Adialogboxcomesupwithalloftheavailabledataitems,youselect
theoneyouwantandclickinsertasshownbelow:
12.YoucanaddrepeatingrowsintoyourdocumentbyselectingInsert>Table/Form
fromthetoolbar.Thisbringsupadifferentdialogboxthatletsyoudragaparentnode
inthiscase,PInvoicesintothemiddlesection,whichbecomesyourrepeatingrows.
13.Calculatetheaverageforamountdueoriginal.SelectInsert>FieldfromtheAddIns
toolbar.Thenselectthetagthatcalculatestheaverageforthatparticularfield.
14.Oncewearedonewithaddingupallthefieldsinthetemplatesaveitasanrtfwhich
looksasbelow:
Toconfirmtheoutputfromthetemplatewebuild.Clickonpreviewandselectthetype
inwhichformattheoutputisrequired.
15.AddingtheTemplatetoORACLEApplication.
InordertoaddthetemplatetoapplicationtheusershouldhavetheresponsibilityXML
PublisherAdministratorassigned.
http://oracleappsviews.blogspot.in/

34/256

13/05/2015

KrishnaReddyOracleAppsInfo

Inthisstepwedo2processes,registeringconcurrentprogramasDataDefinitionin
templatemanager
Andregisterthetemplateusingthedatadefinitioncreated.
GotoXMLPublisherAdministrator>DataDefinitions>CreateDatadefinition.
Herewefillallthedetailstocreatedatadefinition
NOTE:Makesurethecodeofthedatadefinitionmustbethesameastheshortnameof
theConcurrentProgramweregisteredfortheprocedure.Sothattheconcurrentmanager
canretrievethetemplatesassociatedwiththeconcurrentprogram
WecanaddourxmlfileSampleXmlReport.xmlindatadefinitionhere:
16.Nowcreatethetemplatewiththehelpoftemplatemanager
Attheruntimetheconcurrentmanagersrequestinterfacewillpresentthelistofavailable
templateswithrespecttothedatadefinitionregistered.Wewilluploadthertftemplate
filecreatedhere.Wewillselectthelanguageandterritory.
Wecanuploaddifferenttemplatesfordifferentlanguagesandterritories.
17.Nowruntheconcurrentprogramtogetthedesiredoutput.
Fromthereceivablesresponsibility,usethesubmitrequestformtoruntheconcurrent
request.
Thedefaultlayoutisdisplayedwhichwecanchangeaspertherequirement.For
changingthetemplateclickonoptionstolookforalltemplatesregisterwiththat
concurrentprogram.
HereintheaboveexamplemytemplateisSampleXmlReportwhichisdisplayedin
layoutfield.
AndoncetherequestissubmittedwewillgettheoutputinPDFas
ThisisthefinaloutputasdesiredinthePDFformat.

DynamicContentusingSubTemplates
ByTimDexterOracleonDec01,2011
[https://blogs.oracle.com/xmlpublisher/entry/dynamic_content_using_sub_templates]

Ihavewrittenaboutsubtemplatesinthepastonafewoccasionstheprinciplebehind
themisprettysimple.Ifyouhavecommonreportcomponentsthatcanbesharedacross
reportsbetheyblocksoftextlikestandardcontractclausesormaybesomecommon
calculationorfunction,dropthemintoasubtemplateandsharethelove.Developonce,
useeverywhere!
Acolleaguewasrecentlytaskedwithconditionallybringingintoareportoutput,
paragraphsofstatictextbasedonsomeuserpreferences.Thatsanidealcandidatefora
subtemplateapproachdropalloftheparagraphsintoanRTFsubtemplateandthenjust
conditionallypulltheminbasedonsomebooleanexpressions.
Youmight,quitenaturallythinkaboutconditionallyimportingaseriesofsubtemplates
ratherthandefiningone,withallthecontent.However,XSLdoesnotallowthe
conditionalimportofsubtemplatessoyoumusttakethesingletemplateapproach.You
canofcourse,importmultiplesubtemplatesifyouhavealotofcontenttobringinbut
inmostcasesIwouldexpectasinglesubtemplatewillsuffice.
BIPdoesneedtoknowwhatthoseparagraphsneedtobeforeachuserwhetherthatsas
asetofparametervaluesoradataelementintheincomingdataset.ForthisexampleI
haveusedbothapproachesandtheyworkallflavorsofBIP.Implementationofthesub
templateontotheserversisgoingtobealittledifferentbutthemainprincipleisthe
same.IhavemercilesslyrippedoutanicegraphicfromLeslies(docwriter
extraordinaire)documentation.

Thisisforthe11gversionthatsupportsloadingsubtemplatesintothereportcatalogas
objects.Theycanthenbereferencedinyourmaintemplateusingtheimportstatement:
http://oracleappsviews.blogspot.in/

35/256

13/05/2015

KrishnaReddyOracleAppsInfo

<?import:xdoxsl:///subtemplatefolder/subtemplatename.xsb?>
Thesubtemplatefolderisgoingtobefromthe/SharedFoldersor/MyFoldersroot.For
instance,IhaveasubtemplateparagraphsloadedintoatestfolderunderShared
Folders.Theimportstatementinmymaintemplateis<?
import:xdoxsl:///Test/ParaSubTemplate.xsb?>
UpdatefromLeslie
ForthoseofyoutestingusingyourownMyFolderarea.Thesyntaxis
<?import:xdoxsl:///~username/pathtosubtemplate.xsb?>whereusernameisyouruser
name.Forexample:<?import:xdoxsl:///~tdexter/Subtemplates/Template1.xsb?>
Recommendyoumovethemintothesharedfolderareainproduction.
For10gyouwilleitherneedtodropthemintoanaccessibledirectoryandusethefile
URIormountthemintothewebserverdirectorystructureandaccessthemviaanhttp
URI.Inormallymounttheminadirectoryunderthexmlpserverdirectorye.g
J2EE_HOME\applications\xmlpserver\xmlpserver\subtemplates,atemplateisthen
accessibleviatheURIhttp://server:port/subtemplates/template.rtf
MakesureyousettheAllowExternalReferencespropertytotrueforthereportsothat
thesubtemplatecanbeaccessed.

Theactualcontentofthesubtemplateisprettystraightforward.Itsaseriesof
paragraphsboundedbythetemplatecommande.g.
<?template:para1?>

<?endtemplate?>
<?template:para2?>

<?endtemplate?>
<?template:para3?>

<?endtemplate?>

Nowwehavethedynamiccontentdefineditsacaseofconditionallybringingitintothe
maintemplate.ForthisexampleIhavedemonstratedtwoapproachesbothrelyonthe
requiredparagraphinformationtobeinthemaindataset:
1.Usingparameterstoallowtheusertoselecttheappropriateparagraphstobe
broughtin.Thismeanscreatingtheparametersandensuringthatyouhavesetthe
propertyonthedatamodeltoincludetheparametervaluesintheXMLresultset.
Oncethatsdoneitsjustasimplecaseofusingidstatementstocheckifagiven
paragraphshouldbeincluded:
<?if:.//PARA1='1'?><?call:para1?><?endif?>

ThisassumesmyparameteriscalledPARA1andthata1meansincludeit,itcould
easilybeaYorTruevalue,youarejusttestingforit.
2.Includingavalueinthedatatodefinewhatparagraphsshouldbeincluded.Ifyou
http://oracleappsviews.blogspot.in/

36/256

13/05/2015

KrishnaReddyOracleAppsInfo

havestoredwhatparagraphsshouldbeincludedforagivenentityi.e.customer,supplier,
employee,etc.Thenyoucanextractthosevaluesintothedatasetandtestforthem.For
thisdemoIhavea5charactersetof1sand0storepresenttheparagraphsthatneed
tobeincludede.g.10110.Ijustuseasubstringcommandtofindoutifaparticular
paragraphneedstobeincluded.
<?if:substring(.//PARAS,1,1)='1'?><?call:para1?><?endif?>

WherePARASistheelementholdingthe1sand0sstringtobeparsed.
Youcanofcourseusesomeothermeansofmarkingwhetheraparagraphneedstobe
includedornot.Itsjustacaseofparsingoutthevalueswithasubstringorsimilar
command.
Youshouldbeabletogeneratedynamiccontentsuchasthis:

XMLPublisherInterviewQuestionsandAnswers
1.WhataretheXMLpublishertables.
Ans>PER_GB_XDO_TEMPLATES
XDO_DS_DEFINITIONS_B
XDO_DS_DEFINITIONS_TL
XDO_DS_DEFINITIONS_VL
XDO_LOBS
XDO_TEMPLATES_B
XDO_TEMPLATES_TL
XDO_TEMPLATES_VL
XDO_TEMPLATE_FIELDS
XDO_TRANS_UNITS
XDO_TRANS_UNIT_PROPS
XDO_TRANS_UNIT_VALUES
2.howtocreatereportwithout.rdf?
Ans>UsingDatatemplate..seebelowlink
http://appstechnical01.blogspot.in/2012/08/usingmultiplequiresdatatemplatecode.html
[http://appstechnical01.blogspot.in/2012/08/usingmultiplequiresdatatemplatecode.html]

3.howtowritealoopinrtftemplatedesign?
Ans><?foreach:G_invoice_no?>
..<?endforeach?>
4.howtodesignsubtemplatesinrtflayout?
Ans>usingfollowingtags..
<?template:template_name?>
ThisisLastPage
<?endtemplate?>
5.howtocallaheaderorfooter?
Ans>usingthistag<?call:header?>and<?call:footer?>
Wehavetouseheadersectionandfootersectionofthepage.
6.Howtobreakthepageinspecificcondition?
Ans><?splitbypagebreak:?>
7.Howtousesectionbreak?
Ans><?foreach@section:G_CUSTOMER(Thisisgroupname)?>
8.HowtocreatemultilayoutsinXMLP?
Ans>usingbelowconditions
http://oracleappsviews.blogspot.in/

37/256

13/05/2015

KrishnaReddyOracleAppsInfo

<?choose:?>
<?when:CF_CHOICE=VENDOR?>
Yourtemplate.
<?endwhen?>
<?when:CF_CHOICE=INVOICE?>
Yourtemplate.
<?endwhen?>
<?when:CF_CHOICE=RECEIPT?>
Yourtemplate.
<?endwhen?>
<?endchoose?>
9.HowtocalculatetherunningtotalinXMLP?
Ans><?xdoxslt:set_variable($_XDOCTX,'RTotVar',xdoxslt:get_variable($_XDOCTX,
'RTotVar')+ACCTD_AMT(Thisiscolumnname))?><?
xdoxslt:get_variable($_XDOCTX,'RTotVar')?>
10.Howtosubmitalayoutinthebackend?
Ans>wehavetowriteaprocedureforthisusingthebelowcode
fnd_request.add_layout
(template_appl_name=>'applicationname',
template_code=>'yourtemplatecode',
template_language=>'En',
template_territory=>'US',
output_format=>'PDF'
)
11.HowtodisplaytheimagesinXMLP?
Ans>url:{'http://imagelocation'}
Forexample,enter:
url:{'http://www.oracle.com/images/ora_log.gif'}
url:{'${OA_MEDIA}/imagename'}
12.Howtopassthepagenumbersinrtflayout?
Ans><REPORT>
<PAGESTART>200<\PAGESTART>
....
</REPORT>
Enterthefollowinginyourtemplate:
<?initialpagenumber:PAGESTART?>
13.HowtodisplaylastpageisdifferentlyinXMLPublisherReports.
Ans>whatyouwanttodispaythetestanythingwriteinlastofpage
lastpageheader
<?start@lastpagefirst:body?><?endbody?>
morequestionsiwillupdatesoon.........
wehaveanydoubtsonthispleasegivethecomment....iwillrespond...urcomment

WhatisBIPublisher?
A.Itisareportingtoolforgeneratingthereports.Morethantoolitisanenginethat
canbe
http://oracleappsviews.blogspot.in/

38/256

13/05/2015

KrishnaReddyOracleAppsInfo

integratedwithsystemssupportingthebusiness.
IsBIPublisherintegratedwithOracleApps?
Yes,itistightlyintegratedwithOracleAppsforreportingneeds.In11.5.10instances
xmlpublisherwasused,inR12wecanitBIPublisher
WhatisthedifferencebetweenxmlpublisherandBIPublisher?
Nameisthedifference,initiallyitwasreleasedonthenameofxmlpublisher(the
initialpatchset),laterontheyhaveaddedmorefeaturesandcalleditBusinessIntelligence
Publisher.InBIbydefaultwehaveintegrationwithDatadefinitionsinR12instance.Both
thesenamescanbeusedinterchangeably
WhatarethevariouscomponentsrequiredfordevelopingaBIpublisherreport?
DataTemplate,LayouttemplateandtheintegrationwithConcurrentManager.
Howdoestheconcurrentprogramsubmittedbytheuserknowsaboutthedatatemplate
orlayouttemplateitshouldbeusingforgeneratingtheoutput?
Theconcurrentprogramshortnamewillbemappedtothecodeofthe
Datatemplate.Layouttemplateisattachedtothedatatemplate,thisformsthemapping
betweenallthethree.
Whatisadatatemplate?
Datatemplateisanxmlstructurewhichcontainsthequeriestoberunagainstthe
databasesothatdesiredoutputinxmlformatisgenerated,thisgeneratedxmloutputis
thenappliedontothelayouttemplateforthefinaloutput
Whatisalayouttemplate?
Layouttemplatedefineshowtheuserviewstheoutput,basicallyitcanbedeveloped
usingMicrosoftworddocumentinrft(richtextformat)orAdobepdfformat.Thedata
outputinxmlformat(fromDatatemplate)willbeloadedinlayouttemplateatruntimeand
therequiredfinaloutputfileisgenerated.
Whataretheoutputformatssupportedbylayouttemplate?
xls,html,pdf,eTextetcaresupportedbasedonthebusinessneed.
Doyouneedtowritemultiplelayouttemplatesforeachoutputtypelikehtml/pdf?
No,onlylayouttemplatewillbecreated,BIPublishergeneratesdesiredoutput
formatwhentherequestisrun
Whatisthedefaultoutputformatofthereport?
Thedefaultoutputformatdefinedduringthelayouttemplatecreationwillbeusedto
generatetheoutput,thesamecanbemodifiedduringtherequestsubmissionanditwill
overwritetheonedefinedatlayouttemplate
Canyouhavemultiplelayouttemplatesforasingedatatemplate?
Yes,multiplelayoutscanbedefined,userhasachoiceheretouseoneamongthem
atruntimeduringconcrequestsubmission

Wheredoyouregisterdataandlayouttemplates?
Layouttemplatewillberegisteredunderxmlpublisheradministrator
http://oracleappsviews.blogspot.in/

39/256

13/05/2015

KrishnaReddyOracleAppsInfo

responsibility>Templatestab.
Datatemplatewillberegisteredunderxmlpublisheradmininstratorresponsibility>
DataDefinitions
Iwanttocreateareportoutputin10languages,doIhavetocreate10layout
templates?
No,BIPublisherprovidestherequiredtranslationforyourtemplates,basedonthe
numberoflanguagesinstalledinyouroracleappsenvironmentrequiresoutputsare
provided
WhatistherequiredinstallationforusingBIPubreport?
BIPublisherdeskoptoolhasbeinstalled.Usingthistoolyoucanpreviewortestthe
reportbeforedeployingthesameontotheinstance.
Howdoyoumoveyourlayoutordatatemplateacrossinstances?
xdoloaderistheutilitythatwillbeused.
Whatisthetooltomaprequireddataoutputandlayouttemplatessothattheycanbe
testedinlocalmachine?
Templateviewerwillbeusedforthesame.
Whichcomponentisresponsibleforgeneratingtheoutputinxmlformatbeforeapplying
ittolayouttemplate?
DataEnginewilltakeDataTemplateastheinputandtheoutputwillbegeneratedin
xmlformatwhichwillthenbeappliedonlayouttemplate
CanBIpublisherreportsbeusedinOAFpages?
XDOtemplateutilityhelperjavaclassesareprovidedforthesame.
NamesomebusinessusecasesforBIreports?
BankEFT,customerdocuments,shippingdocuments,internalanalysisdocuments
oranytransactionaldocuments
Howdoyoupassparameterstoyourreport?
Concurrentprogramparametersshouldbepassed,ensurethattheparameter
name/tokenaresameasintheconcprogdefnandthedatatemplate
Whatarethevarioussectionsinthedatatemplate?
Parametersection
TriggerSection
Sqlstmtsection
DataStructuresection
LexicalSection
Whatdoeslexicalsectioncontain?
TherequiredlexicalclauseofKeyFlexfieldorDescriptiveFFarecreatedunderthis
section
WhattriggersaresupportedinDatatemplate?
BeforereportandAfterreportaresupported
http://oracleappsviews.blogspot.in/

40/256

13/05/2015

KrishnaReddyOracleAppsInfo

Whereisthetriggercodewritten?
Thecodeiswrittenintheplsqlpackagewhichisgivenunderdefaultpackagetagof
datatemplate.
whatisthefilesupportingthetranslationforalayouttemplate?
A.xliffisthefilethatsupportsthetranslation,youcanmodifythesameasrequired.
Q.Howdoyoudisplaythecompanylogoonthereportoutput?
A.Copyandpastethelogo(.gif.oranyformat)ontheheadersectionof.rtffile.Ensure
youresizeperthecompanystandards.

RTFTemplate:Workingwithvariables
Letsseehowwecanusethevariablestostoretemporarydataoruseforcalculation.
Thisisachievedusingxdoxslt:function.ThesearetheBIPublisherextensionof
standardxsltfunctions.
Usexdoxslt:set_variable()functiontoset/initializethevariableand
xdoxslt:get_variable()functiontogetthevariablevalue.$_XDOCTXistheSystem
variablestosettheXDOContext.
/*initializeavariables*/
<?xdoxslt:set_variable($_XDOCTX,counter,0)?>
/*updatethevariablesvaluebyaddingthecurrentvaluetoMY_CNT,whichisXML
element*/
<?xdoxslt:set_variable($_XDOCTX,counter,xdoxslt:get_variable($_XDOCTX,counter)
+MY_CNT)?>
/*accessingthevariables*/
<?xdoxslt:get_variable($_XDOCTX,counter)?>
/*Workinginaloop*/
<?xdoxslt:set_variable($_XDOCTX,counter,0)?>
<?foreach:G1?>
/*incrementthecounter*/
<?xdoxslt:set_variable($_XDOCTX,counter,xdoxslt:get_variable($_XDOCTX,counter)
+1)?>
<?endforeach?>
<?xdoxslt:get_variable($_XDOCTX,counter)?>
Hopethishelpinunderstandingvariablegimmicks.
NeedhelponRTFtemplatedesignorBIPublisherimplementation,pleasecontact
info@adivaconsulting.com[mailto:info@adivaconsulting.com]

WhatisXMLPublisher?
OracleXMLPublisherisatemplatebasedpublishingsolutiondeliveredwiththeOracleE
BusinessSuite.Itprovidesanewapproachtoreportdesignandpublishingbyintegrating
familiardesktopwordprocessingtoolswithexistingEBusinessSuitedatareporting.At
runtime,XMLPublishermergesthecustomtemplateswiththeconcurrentrequestdata
extractstogenerateoutputinPDF,HTML,RTF,EXCEL(HTML),orevenTEXTforuse
http://oracleappsviews.blogspot.in/

41/256

13/05/2015

KrishnaReddyOracleAppsInfo

withEFTandEDItransmissions.
XMLPublisherhasbeenportedovertothePeopleSoftenterpriseERPsuite.XML
PublisherwillbethereportingtoolofchoicefromOraclewhenFusionApplications
becomeavailable.

Whatarethevarioussectionsinthedatatemplate?
ThedatatemplateisanXMLdocumentthatconsistsof5basicsections:
1. Properties
2. Parameters
3. Triggers
4. DataQuery
5. DataStructure

Howdoyoumigratelayoutordatatemplateacross
instances?
WecanuseXDOLoaderutilitytomigratebothdatatemplateandlayout.Belowisthe
example:
DataTemplate:
javaoracle.apps.xdo.oa.util.XDOLoaderUPLOAD\
DB_USERNAME${apps_user}\
DB_PASSWORD${apps_pwd}\
JDBC_CONNECTION${TNS_STRING}\
LOB_TYPEDATA_TEMPLATE\
APPS_SHORT_NAMEXXCUST\
LOB_CODEXX_DT_REPORT\
LANGUAGEen\
TERRITORYUS\
XDO_FILE_TYPEXML\
NLS_LANG${NLS_LANG}\
FILE_CONTENT_TYPEtext/html\
FILE_NAMEXX_DTEMPLATE.xml\
LOG_FILEXX_DTEMPLATE.xml.log\
CUSTOM_MODEFORCE
FIN_STATUS=$?
Layout:

javaoracle.apps.xdo.oa.util.XDOLoaderUPLOAD\
DB_USERNAME${apps_user}\
DB_PASSWORD${apps_pwd}\
JDBC_CONNECTION${TNS_STRING}\
LOB_TYPETEMPLATE_SOURCE\
APPS_SHORT_NAMEXXCUST\
LOB_CODEXX_DT_REPORT\
http://oracleappsviews.blogspot.in/

42/256

13/05/2015

KrishnaReddyOracleAppsInfo

LANGUAGEen\
TERRITORYUS\
XDO_FILE_TYPERTF\
NLS_LANG${NLS_LANG}\
FILE_CONTENT_TYPEapplication/rtf\
FILE_NAMEXX_LAYOUT.rtf\
LOG_FILEXX_LAYOUT.rtf.log\
CUSTOM_MODEFORCE

Doweneedtocreatemultiplelayouttemplatesfor
printingreportinmultiplelanguages?
Wecanachievemultilanguagereportbytwoways
1. DifferentlayouttemplatefordifferentlanguagesThisapproachcanbechosenifthe

layoutisalsodifferentfromlanguagetolanguage.
2.GenerateXLIFFtemplateforeachlanguage
XLIFF(XMLLocalizationInterchangeFileFormat):formatforexchanging
localizationdata.XMLbasedformatthatenablestranslatorstoconcentrateonthetextto
betranslated.Weusethisoptionwhenwewanttousethesamelayoutandapply
specifictranslation.

Canyouhavemultiplelayouttemplatesforasingedata
template?
Yes!Multiplelayoutscanbeattached,sothatuserwillhaveachoiceheretouseone
amongthematthetimeofconcurrentprogramsubmission

HowtogetaoutputofaXMLPreportindifferentformats
likePDF,DOC,XLS,TXT?
Whilesubmittingtheconcurrentprogramyouselecttheoutputformatinoptionsformof
UponCompletionsselection.

WhatisDataTemplateandLayoutTemplate?
DataTemplate:
Datatemplateisanxmlstructurewhichcontainsthequeriestoberunagainstthe
databasesothatdesiredoutputinxmlformatisgenerated,thisgeneratedxmloutputis
thenappliedontothelayouttemplateforthefinaloutput
LayoutTemplate:
Layouttemplatedefineshowtheuserviewstheoutput,basicallyitcanbedeveloped
usingMicrosoftworddocumentinrft(richtextformat)orAdobepdfformat.Thedata
outputinxmlformat(fromDatatemplate)willbeloadedinlayouttemplateatruntimeand
therequiredfinaloutputfileisgenerated.

Howdoestheconcurrentrequestrelatebothdata
http://oracleappsviews.blogspot.in/

43/256

13/05/2015

KrishnaReddyOracleAppsInfo

templateandlayouttemplateitshouldbeusingfor
generatingtheoutput?
TheconcurrentprogramshortnamewillbemappedtothecodeoftheDatatemplate.
Layouttemplateisattachedtothedatatemplate,thisformsthemappingbetweenallthe
three.

Whatarethevariouscomponentsrequiredfor
developingaBIpublisherreport?
1. DataTemplate
2. Layouttemplate
3. IntegrationwithOracleConcurrentManager

WhatisthedifferencebetweenXMLpublisherandBI
Publisher?
Nameisthedifference,XMLPublisher(today)isonlyfoundwithinEBusinessSuite.
Priortorelease12,itwasaddedinviaapatch.InR12,itcomespreinstalled.Boththese
namescanbeusedinterchangeably.
XMLPuboperatesentirelywithinEBSandcanonlybeusedwithinEBS.BIPcanbe
installedasastandaloneversionrunningoffofseveralOC4Jcompliantengines,suchas
ApplicationServerandTomcat.BIPcanbepointedanywhere,soyoucoulddoreports
outofanOLTPorwarehousedatabase,MSSQLandevenwithinEBS.
LicensingisalreadyincludedinEBS,andthestandalonecostswhateverplus
maintenance.
BIPublisherisbasedonOC4J,whichisaJ2EEcompliantengine,whichforallpractical
purposes,isaWebserver.YouseeOC4JinlotsofotherOracleproductswhichtypically
haveonethingincommon:theyexposetheirapplicationtotheuserviaaWebinterface.
XMLPisalsobasedonthisbecauseEBSrunsoffofApplicationServer.
Bothincludeadesktopcomponent,whichisanaddintoWord,andtheworkthereisthe
sameregardlessofwhichflavoryoureusing.Youcancreatetemplatesandpublish
them,therebeingaslightdifferenceinhoweachversiondoesthat.

WhattriggersaresupportedinDatatemplate?
TherearetwodifferenttriggerssupportedbyDataTemplate:
1. BeforeTrigger
2. AfterTrigger

WhatarethemainXMLPublisherdatabaseTables?
HerearethefewimportanttablesofXMLP:
XDO_DS_DEFINITIONS_B
XDO_DS_DEFINITIONS_TL
XDO_DS_DEFINITIONS_VL
XDO_LOBS
XDO_TEMPLATES_B
XDO_TEMPLATES_TL
http://oracleappsviews.blogspot.in/

44/256

13/05/2015

KrishnaReddyOracleAppsInfo

XDO_TEMPLATES_VL
XDO_TEMPLATE_FIELDS
XDO_TRANS_UNITS
XDO_TRANS_UNIT_PROPS
XDO_TRANS_UNIT_VALUES

WhereandWhatisthecodewrittenintheDataTemplate
Trigger?
Thecodeiswrittenintheplsqlpackagewhichismentionedunderdefaultpackagetagof
datatemplate.

whatisthefilesupportingthetranslationforalayout
template?
XLIFFisthefilethatsupportsthetranslation,wehaveoneXLIFFfileforeachlanguage.

HowtodoLoopinginXMLP?
youcanusethebelowsyntaxforlooping:

<?foreach:looping_node_name?>
.
.
.
<?endforeach?>

HowtocreatesubtemplatesinrtfTemplate?
HereistheSubTemplatetag:
<?template:header?>
subtemplatedesign/tags
<?endtemplate?>
Hereheaderisthesubtemplatename.
Afterthatyoucallheadersubtemplateanywhereinthertfwithbelowsyntax:
<?call:header?>

Howdoyoupagebreaksafterspecificrows?
Wecanusebelowtagforpagebreak:
<?splitbypagebreak?>
Buttousethisconditionallywecanusebelowsyntax:
<?if:position()mod5=0?>
<?splitbypagebreak:?>
http://oracleappsviews.blogspot.in/

45/256

13/05/2015

KrishnaReddyOracleAppsInfo

<?endif?>
Note:weshouldnotusesplitbypagebreakinatable
layout.

HowtocreateaconditionalLayoutinXMLP?
Hereisthesyntaxforcreatingdifferentlayoutsbasedoncondition:
<?choose:?>
<?when:CF_CHOICE=VENDOR?>
..designyourLayouthere..
<?endwhen?>
<?when:CF_CHOICE=INVOICE?>
..designyourLayouthere..
<?endwhen?>
<?when:CF_CHOICE=RECEIPT?>
..designyourLayouthere..
<?endwhen?>
<?endchoose?>

HowtorestrictrowsinaGroupbasedonsome
conditioninXMLP?
WecanusebelowsyntaxtorestrictingtherowsintheGroupbasedoncondition:
Syntax:
<?foreach:Group_Name[./Field_namewithCondition]?>
Example:
<?foreach:EMP_DETAILS[EMP_ADDRESS!=]?>
InthisexamplesitwillfiltertheRecordswithEMP_ADDRESSisnotNullandDisplays
intheReport.

HowtohandleNULLvaluesasExceptionsinXMLP?
Weusesection:notpropertytohandleNULLvalues.
Syntax:
<?if@section:not(//GROUP_NAME)?>Message/Action<?endif?>
Example:
<?if@section:not(//G_HEADERS)?>NoDataFoundfortheParametersProvidedMaster
<?endif?>
http://oracleappsviews.blogspot.in/

46/256

13/05/2015

KrishnaReddyOracleAppsInfo

DisplaystheMessage
NoDataFoundfortheParametersProvidedMaster

HowtofindStringLengthinXMLP?
TagtofindthelengthoftheString
<?stringlength(Field_NAME)?>
Example:
<Name>Samantha</Name>(i.eDataSource)
TemplateLayout:
<?Name?>is<?stringlength(Name)?>characterslengthWord.
Output:
Samanthais8characterslengthWord.

HowtouseVariablesinXMLP?
HereisasmallexampleofhowtousevariablesinXMLPrtflayout:
DeclaringtheVariableR
<?xdoxslt:get_variable($_XDOCTX,R)?>
DeclaringtheVariableRandAssigningtheValues4toR
<?xdoxslt:set_variable($_XDOCTX,R,4)?>
GettheVariablevalue
<?xdoxslt:get_variable($_XDOCTX,R)?>
Thisadds5tovariableRanddisplaysit
<?xdoxslt:set_variable($_XDOCTX,R,xdoxslt:get_variable($_XDOCTX,R)+5)?>
Thissubtracting2tovaraibleRanddisplaysit
<?xdoxslt:set_variable($_XDOCTX,R,xdoxslt:get_variable($_XDOCTX,R)2)?>
SimilarlyUcanuseanymathematicalOperationtothevariableR.

HowtoSortDataintheXMLP?
Syntax:
Case1:
<?sort:Field_Name?><?Field_Name?>
ItsortsthedatainAscendingorderbyDefault.ifOrderByisnotmentioned
Case2:
<?sort:Field_NameOrderby?>
ItsortsthedatabasedonOrderBymentionedherelikeAscendingOrDescending
Case3:
<?sort:Field_NameOrderbydatatype=text?>
ItsortstheStringDatabasedonOrderBymentionedherelikeAscendingOr
Descending
Examples:
Case1:
http://oracleappsviews.blogspot.in/

47/256

13/05/2015

KrishnaReddyOracleAppsInfo

<?foreach:EMP_DETAILS?>
<?sort:EMP_NO?><?EMP_NAME?><?endforeach?>
Case2:
<?foreach:EMP_DETAILS?>
<?sort:EMP_NOdescending?><?EMP_NAME?><?endforeach?>
Case3:
<?foreach:EMP_DETAILS?>
<?sort:EMP_NAMEascendingdatatype=text?><?EMP_NAME?><?endforeach?>

HowtorepeattheHeaderofthetemplateoneachand
everypageoftheoutputinXMLP?
Use<b><@section:?></b>tagtorepeatasectioninanyspecificregionof
alayout
(Or)Youcanalsouseheaderpartofrtf(MSwordfeature)toinserttheinformationyou
wanttorepeatonallpages.

Whatarethedifferentwaystoshow/insertanimageon
XMLPlayout?
Thereare4differentwaystoinsert/showanimageinrtf:
1. InsertanimagedirectlyonrtfjustbyusingMSwordstandardfeature
2. UsingOA_MEDIA:storingonserverandgivingphysicalpathoftheimage
3. UsingURLofaimagehostedonsomewebsite
4. RetrievingtheimagestoreinadatabaseasBLOBtype

CanXMLpublisherreportsbeusedinOAFpages?
WecanuseXDOtemplateutilityhelperjavaclassestoembedXMLPreportonOA
Pages

Whichcomponentisresponsibleforgeneratingthe
outputinXMLformatbeforeapplyingittolayout
template?
DataEnginewilltakeDataTemplateastheinputandtheoutputwillbegeneratedinxml
formatwhichwillthenbeappliedonlayouttemplate
Moreinformation:http://oracleappsdna.com/2014/10/developingxmlpublisherreports
usingdatatemplate/[http://oracleappsdna.com/2014/10/developingxmlpublisherreportsusing
datatemplate/]

WhatisthedefaultoutputformatofXMLPreport?
Thedefaultoutputformatdefinedduringthelayouttemplatecreationwillbeusedto
generatetheoutput,thesamecanbemodifiedduringtherequestsubmissionanditwill
overwritetheonedefinedatlayouttemplate

http://oracleappsviews.blogspot.in/

48/256

13/05/2015

KrishnaReddyOracleAppsInfo

Posted3rdMarchbyKrishnareddy
0 Addacomment

4thSeptember2012

SQL*LOADERWITHEXAMPLES

What is SQL*Loader and what is it used for?


SQL*Loader is a bulk loader utility used for moving data from external files into the
Oracle database. Its syntax is similar to that of the DB2 Load utility, but comes with
more options. SQL*Loader supports various load formats, selective loading, and multi
table loads.
How does one use the SQL*Loader utility?
One can load data into an Oracle database by using the sqlldr (sqlload on some platforms)
utility. Invoke the utility without arguments to get a list of available parameters. Look at
the following example:
sqlldr scott/tiger control=loader.ctl
This sample control file (loader.ctl) will load an external data file containing delimited
data: load data
infile 'c:\data\mydata.csv'
into table emp ( empno, empname, sal, deptno )
fields terminated by "," optionally enclosed by '"'
The mydata.csv file may look like this:
10001,"Scott Tiger", 1000, 40
10002,"Frank Naude", 500, 20
Another Sample control file with inline data formatted as fix length records. The trick is
to specify "*" as the name of the data file, and use BEGINDATA to start the data section
in the control file.
load data
infile *
replace
into table departments
( dept position (02:05) char(4),
deptname position (08:27) char(20) )
begindata
COSC COMPUTER SCIENCE
ENGL ENGLISH LITERATURE
MATH MATHEMATICS
POLY POLITICAL SCIENCE
Is there a SQL*Unloader to download data to a flat file?
http://oracleappsviews.blogspot.in/

49/256

13/05/2015

KrishnaReddyOracleAppsInfo

Oracle does not supply any data unload utilities. However, you can use SQL*Plus to select
and format your data and then spool it to a file:
set echo off newpage 0 space 0 pagesize 0 feed off head off trimspool on
spool oradata.txt
select col1 ',' col2 ',' col3
from tab1
where col2 = 'XYZ';
spool off
Alternatively use the UTL_FILE PL/SQL package:
Remember to update initSID.ora, utl_file_dir='c:\oradata' parameter
declare
fp utl_file.file_type;
begin
fp := utl_file.fopen('c:\oradata','tab1.txt','w');
utl_file.putf(fp, '%s, %s\n', 'TextField', 55);
utl_file.fclose(fp);
end;
/
You might also want to investigate third party tools like TOAD or ManageIT Fast Unloader
from CA to help you unload data from Oracle.
Can one load variable and fix length data records?
Yes, look at the following control file examples. In the first we will load delimited data
(variable length):
LOAD DATA
INFILE *
INTO TABLE load_delimited_data
FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
( data1, data2 )
BEGINDATA
11111,AAAAAAAAAA
22222,"A,B,C,D,"
If you need to load positional data (fixed length), look at the following control file
example: LOAD DATA
INFILE *
INTO TABLE load_positional_data
( data1 POSITION(1:5),
data2 POSITION(6:15) )
BEGINDATA
11111AAAAAAAAAA
22222BBBBBBBBBB
Can one skip header records load while loading?
Use the "SKIP n" keyword, where n = number of logical rows to skip. Look at this
example: LOAD DATA
INFILE *
INTO TABLE load_positional_data
SKIP 5
( data1 POSITION(1:5),
http://oracleappsviews.blogspot.in/

50/256

13/05/2015

KrishnaReddyOracleAppsInfo

data2 POSITION(6:15) )
BEGINDATA
11111AAAAAAAAAA
22222BBBBBBBBBB
Can one modify data as it loads into the database?
Data can be modified as it loads into the Oracle Database. Note that this only applies for
the conventional load path and not for direct path loads.
LOAD DATA
INFILE *
INTO TABLE modified_data
( rec_no "my_db_sequence.nextval",
region CONSTANT '31',
time_loaded "to_char(SYSDATE, 'HH24:MI')",
data1 POSITION(1:5) ":data1/100",
data2 POSITION(6:15) "upper(:data2)",
data3 POSITION(16:22)"to_date(:data3, 'YYMMDD')" )
BEGINDATA
11111AAAAAAAAAA991201
22222BBBBBBBBBB990112
LOAD DATA
INFILE 'mail_orders.txt'
BADFILE 'bad_orders.txt'
APPEND
INTO TABLE mailing_list
FIELDS TERMINATED BY ","
( addr,
city,
state,
zipcode,
mailing_addr "decode(:mailing_addr, null, :addr, :mailing_addr)",
mailing_city "decode(:mailing_city, null, :city, :mailing_city)",
mailing_state )
Can one load data into multiple tables at once?
Look at the following control file:
LOAD DATA
INFILE *
REPLACE
INTO TABLE emp
WHEN empno != ' '
( empno POSITION(1:4) INTEGER EXTERNAL,
ename POSITION(6:15) CHAR,
deptno POSITION(17:18) CHAR,
mgr POSITION(20:23) INTEGER EXTERNAL )
INTO TABLE proj
WHEN projno != ' '
( projno POSITION(25:27) INTEGER EXTERNAL,
empno POSITION(1:4) INTEGER EXTERNAL )
http://oracleappsviews.blogspot.in/

51/256

13/05/2015

KrishnaReddyOracleAppsInfo

Can one selectively load only the records that one need?
Look at this example, (01) is the first character, (30:37) are characters 30 to 37:
LOAD DATA
INFILE 'mydata.dat'
BADFILE 'mydata.bad'
DISCARDFILE 'mydata.dis'
APPEND
INTO TABLE my_selective_table
WHEN (01) <> 'H' and (01) <> 'T' and (30:37) = '19991217'
( region CONSTANT '31',
service_key POSITION(01:11) INTEGER EXTERNAL,
call_b_no POSITION(12:29) CHAR )
Can one skip certain columns while loading data?
One cannot use POSTION(x:y) with delimited data. Luckily, from Oracle 8i one can specify
FILLER columns. FILLER columns are used to skip columns/fields in the load file, ignoring
fields that one does not want. Look at this example:
LOAD DATA
TRUNCATE
INTO TABLE T1
FIELDS TERMINATED BY ','
( field1,
field2 FILLER,
field3 )
How does one load multiline records?
One can create one logical record from multiple physical records using one of the
following two clauses:
CONCATENATE: use when SQL*Loader should combine the same number of physical
records together to form one logical record.
CONTINUEIF use if a condition indicates that multiple records should be treated as one.
Eg. by having a '#' character in column 1.
How can get SQL*Loader to COMMIT only at the end of the load file?
One cannot, but by setting the ROWS= parameter to a large value, committing can be
reduced. Make sure you have big rollback segments ready when you use a high value for
ROWS=.
Can one improve the performance of SQL*Loader?
A very simple but easily overlooked hint is not to have any indexes and/or constraints
(primary key) on your load tables during the load process. This will significantly slow
down load times even with ROWS= set to a high value.
Add the following option in the command line: DIRECT=TRUE. This will effectively bypass
most of the RDBMS processing. However, there are cases when you can't use direct load.
Refer to chapter 8 on Oracle server Utilities manual.
Turn off database logging by specifying the UNRECOVERABLE option. This option can only
be used with direct data loads.
Run multiple load jobs concurrently.
What is the difference between the conventional and direct path loader?
The conventional path loader essentially loads the data by using standard INSERT
http://oracleappsviews.blogspot.in/

52/256

13/05/2015

KrishnaReddyOracleAppsInfo

statements. The direct path loader (DIRECT=TRUE) bypasses much of the logic involved
with that, and loads directly into the Oracle data files. More information about the
restrictions of direct path loading can be obtained from the Utilities Users Guide.
Posted4thSeptember2012byKrishnareddy
Labels:SQLLOADER
1 Viewcomments

3rdSeptember2012 StepsforDevelopingCustomFormsin
EBusinessSuite
StepsforDevelopingCustomFormsinEBusinessSuite
FollowthesestepstocreatecustomformsinEBusinessSuite:
1.CreateTEMPLATEformMakeacopyofTEMPLATE.fmbandrenameitto
yourcustomformname.YourformnamewillbeginwithXX.Fordeveloping
HRMSrelatedscreens,useHRTEMPLT.fmb.
2.DevelopformDevelopyourformasperprogrammingguidelinesand
standardsinOracleApplicationsFormsDevelopmentGuide.Detailed
guidelinesareavailableat
[http://www.blogger.com/blogger.g?blogID=955765254185387334]

http://download.oracle.com/docs/cd/B34956_01/current/acrobat/120devg.pdf
[http://download.oracle.com/docs/cd/B34956_01/current/acrobat/120devg.pdf].
3.GenerateruntimefileTransfertheFMBfiletomidtierandcompileitto
generateanFMXcompiledfile.
4.RegisterRegistertheformwithCustomApplication.
5.CreateformfunctionCreateaformfunctionattachedtotheform.
6.AttachtomenuAttachtheformfunctiontothemenu.
7.AssigntoresponsibilityAssignthemenutotheresponsibility.
NavigatetoApplicationDeveloperresponsibilityandgotoFormandenteryourform
detailsasfollows
Form:FormName(.fmbname)
Application:Application(ProvideCustomApplicationifyouhaveone)
UserFormname:Thisistheformnamebywhichyoucallit(likePurchase
Orders,ItemInquiryetc.,)

http://oracleappsviews.blogspot.in/

53/256

13/05/2015

KrishnaReddyOracleAppsInfo

[http://4.bp.blogspot.com/
KF7AyNI8tYM/UENonfM33I/AAAAAAAACQs/7pLsmRoPsp8/s1600/1.png]

Now,createaFunctiontowhichyourformshouldbeattached.Forthis,navigateto
FunctioninApplicationDeveloperResponsibilityandprovidethedetails.

[http://4.bp.blogspot.com/
gHImNaBHtNM/UENooguLeI/AAAAAAAACQo/0Ia3t4mVLg8/s1600/2.png]
http://oracleappsviews.blogspot.in/

54/256

13/05/2015

KrishnaReddyOracleAppsInfo

IntheFormtab,providetheFormnamewhichyougaveinthepreviousscreen
whereyoucreatedyournewform

[http://4.bp.blogspot.com/
mBupVIAKMc/UENolMeTWI/AAAAAAAACQk/olSCUvVoQ_A/s1600/3.png]

Thelastthingleftisattachingourformtoamenu.Attachingaformtomenuishow
wecouldbeabletoseeourforminthedesiredresponsibility.
Tocheckthemenudetailsforaparticularresponsibility,navigatetosystem
administratorresponsibilityandquerytheresponsibilityyouwantattach.

http://oracleappsviews.blogspot.in/

55/256

13/05/2015

KrishnaReddyOracleAppsInfo

[http://2.bp.blogspot.com/
oI8Dr4WjN2o/UENpWNivWI/AAAAAAAACQ4/SWG_bwNlUAs/s1600/4.png]

Nowswitchtoapplicationdeveloperresponsibilityandattachyourformtodesired
responsibility.Here,weareattachingtoInventoryResponsibility.

[http://4.bp.blogspot.com/
K4QbxX9wFtw/UENpu9bIuI/AAAAAAAACQ0/HgVRD0VeZ4U/s1600/5.png]
http://oracleappsviews.blogspot.in/

56/256

13/05/2015

KrishnaReddyOracleAppsInfo

Savetheworkandseeyourformintheresponsibilitywhichyouhaveattached

[http://2.bp.blogspot.com/
x2tu4y6mGQ/UENqIFbQqI/AAAAAAAACQ8/ccjkHtziOx4/s1600/6.png]

Thatsit,yourFormissuccessfullyregisteredinoracleapps.Nowmovethe.fmb
filetoyourcustomtoporthebasetop(INV_TOPinthiscase)
Aftermovingthefile,runthebelowcommand:
frmcmp_batchModule=ASPITEM.fmbUserid=apps/appsOutput_file=ASPITEM.fmx
Compile_all=specialbatch=Yes

Posted3rdSeptember2012byKrishnareddy
1 Viewcomments

3rdSeptember2012 OracleAppsInventory/Purchasing/
GLAccountingPeriods
OracleAppsInventory/Purchasing/GLAccountingPeriods
WheneveryoudoReceivinginventorytransactions,youoftengeterrorsifyour
Inventory/purchasing/GLperiodsarenotopen.
Hereisthenavigationwhereyoucansetuptheperiodsforyourmaterialreceipts:

http://oracleappsviews.blogspot.in/

57/256

13/05/2015

KrishnaReddyOracleAppsInfo

1.EnsurethattheGLPeriodhasStatus=Open:
Setup>Financial>Accounting>OpenandCloseperiods
OR
Setup>OpenandCloseperiods
[http://www.blogger.com/blogger.g?blogID=955765254185387334]

2.EnsurethePurchasingPeriodisOpen:
Setup>Financial>Accounting>ControlPurchasingPeriod
3.PleasenotethattheInventoryperiodmustalsobeOpen:
Accountingclosecycle>InventoryAccountingPeriods
UsethefollowingQuerytocheckthestatusofthesame:
selecta.period_name,
a.period_num,
a.gl_status,
b.po_status,
c.ap_status
from
(selectperiod_name,period_num,
decode(closing_status,'O','Open',
'C','Closed',
'F','Future',
'N','Never',
closing_status)gl_status
fromgl_period_statuses
whereapplication_id=101
andstart_date>='01JAN98
andend_date<'01JAN99'
andset_of_books_id=&&set_of_books_id)a,
(selectperiod_name,
decode(closing_status,'O','Open',
'C','Closed',
'F','Future',
'N','Never',
closing_status)po_status
fromgl_period_statuses
whereapplication_id=201
andstart_date>='01JAN98'
andend_date<'01JAN99'
andset_of_books_id=&&set_of_books_id)b,
(selectperiod_name,
decode(closing_status,'O','Open',
'C','Closed',
'F','Future',
'N','Never',
closing_status)ap_status
fromgl_period_statuses
whereapplication_id=200
andstart_date>='01JAN98'

http://oracleappsviews.blogspot.in/

58/256

13/05/2015

KrishnaReddyOracleAppsInfo
andend_date<'01JAN99'
andset_of_books_id=&&set_of_books_id)c
wherea.period_name=b.period_name
anda.period_name=c.period_name
orderbya.period_num

Posted3rdSeptember2012byKrishnareddy
1 Viewcomments

29thAugust2012

Scripttoallocateresponsibilitiesand
createusers

SelfServiceHRScript3toallocateresponsibilitiesandcreateusers
setscanon
setscanoff
CREATEORREPLACEPACKAGEBODYxx_sshr_allocate_resp_pkgIS
DONOTRUNTHISWITHOUTCHANGINGXXPRD
REPLACEXXPRDBYRESULTOFBELOWSQLFROMPRODUCTION
selectinstance_namefromv$instance
CreatedinNov06byAnilPassi
/*
WhenByWhy

29Nov06AnilPassiToallocateresponsibilities
01Dec06AnilPassiTocreatenewuserstoo
Sendemailstonewuserswiththeirpasswordetc
Sendemailstoexistingusersthattheynowhavesshr
*/
g_instance_nameVARCHAR2(100):='JUNK'
g_debug_procedure_contextVARCHAR2(50)
g_debug_header_contextCONSTANTVARCHAR2(80):=
'xxxx_sshr_allocate_resp_pkg.'
PROCEDUREdebug_begin_procedureIS
BEGIN

fnd_log.STRING(log_level=>fnd_log.level_statement
,module=>g_debug_header_context||
g_debug_procedure_context
,message=>'Begin'||g_debug_procedure_context)

IFfnd_global.conc_request_id>0AND
fnd_profile.VALUE('AFLOG_ENABLED')='Y'
http://oracleappsviews.blogspot.in/

59/256

13/05/2015

KrishnaReddyOracleAppsInfo

THEN
fnd_file.put_line(which=>fnd_file.log
,buff=>'Begin'||g_debug_procedure_context)
ENDIF

ENDdebug_begin_procedure
PROCEDUREdebug_stmt(p_msgINVARCHAR2)IS
BEGIN

fnd_log.STRING(log_level=>fnd_log.level_statement
,module=>g_debug_header_context||
g_debug_procedure_context
,message=>p_msg)
IFfnd_global.conc_request_id>0
THEN
fnd_file.put_line(which=>fnd_file.log
,buff=>p_msg)
ENDIF
ENDdebug_stmt
PROCEDUREdebug_end_procedureIS
BEGIN
fnd_log.STRING(log_level=>fnd_log.level_statement
,module=>g_debug_header_context||
g_debug_procedure_context
,message=>'End'||g_debug_procedure_context)
IFfnd_global.conc_request_id>0AND
fnd_profile.VALUE('AFLOG_ENABLED')='Y'
THEN
fnd_file.put_line(which=>fnd_file.log
,buff=>'End'||g_debug_procedure_context)
ENDIF

ENDdebug_end_procedure
PROCEDUREset_debug_context(p_procedure_nameINVARCHAR2)IS
BEGIN
g_debug_procedure_context:=p_procedure_name
debug_begin_procedure
ENDset_debug_context
FUNCTIONis_user_creation_possible(p_person_idININTEGER
,p_xxdpOUTxx_windows_logon_table%ROWTYPE)
RETURNVARCHAR2IS
CURSORc_checkIS
SELECTxxdp.*
FROMper_people_xppx,xx_windows_logon_tablexxdp
WHEREltrim(ppx.employee_number
,'0')=ltrim(xxdp.emp_no
,'0')
http://oracleappsviews.blogspot.in/

60/256

13/05/2015

KrishnaReddyOracleAppsInfo

ANDppx.person_id=p_person_id
p_checkc_check%ROWTYPE
BEGIN
OPENc_check
FETCHc_check
INTOp_check
CLOSEc_check
p_xxdp:=p_check
IFp_check.emp_noISNULL
THEN
RETURN'Noemp_norecordinNetworkLoginTable'
ELSIFp_check.nt_loginISNULL
THEN
RETURN'NoNTLoginAvailableforthisPersoninNetworkLoginTable'
ELSIFp_check.college_email_addressISNULL
THEN
RETURN'NoEmailAddressforthisPersoninNetworkLoginTable'
ENDIF
RETURNNULL
ENDis_user_creation_possible
FUNCTIONget_email_from_emp_no(p_emp_no_emailINVARCHAR2
,p_test_emailINVARCHAR2)RETURNVARCHAR2IS
BEGIN

IFg_instance_name='XXPRD'
THEN

RETURNp_emp_no_email
ELSE
RETURNp_test_email
ENDIF
ENDget_email_from_emp_no
FUNCTIONdoes_fu_exist(p_fu_nameINVARCHAR2)RETURNBOOLEANIS
CURSORc_checkIS
SELECT'x'FROMfnd_userfuWHEREfu.user_name=upper(p_fu_name)

p_checkc_check%ROWTYPE
BEGIN
OPENc_check
FETCHc_check
INTOp_check
IFc_check%FOUND
THEN
CLOSEc_check
RETURNTRUE
ENDIF
CLOSEc_check
RETURNFALSE
ENDdoes_fu_exist
http://oracleappsviews.blogspot.in/

61/256

13/05/2015

KrishnaReddyOracleAppsInfo

PROCEDUREsend_email_to_new_user(p_xxdpIN
xx_windows_logon_table%ROWTYPE
,p_user_nameINVARCHAR2
,p_passwordINVARCHAR2
,p_test_emailINVARCHAR2)IS
BEGIN
DECLARE
BEGIN
send_html_email(p_to=>
get_email_from_emp_no(p_xxdp.college_email_address
,p_test_email)
,p_from=>nvl(p_test_email
,'xxmail@gmail.com')
,p_subject=>'WelcometoSelfServiceHR'
,p_text=>'WelcometoSelfServiceHR'
,p_html=>'<b>YourUserName</b>:'||
p_user_name||
'<br/><b>YourPassword</b>:'||
p_password||'<br/><br/>'||
'ThisusernameandpasswordgivesyouaccessthenewSelf
ServiceHR.'||
'<br/><br/>SelfServiceHRenablesCompanystafftoviewand
updatetheirownpersonaldata.The<br/>informationiscurrentandanychangesmade
willbeimplementedimmediately.'||
'<br/><br/>PleasegotoSpectrumfollowingthislink<br/><a
href="http://anilpassi.com">http://anilpassi.com</a>'||
'<br/>whereyoucanlogintoSelfServiceHR,findoutmoreand
readtheFAQs.'
,p_smtp_hostname=>'localhost'
,p_smtp_portnum=>'25')

END
ENDsend_email_to_new_user
PROCEDUREsend_email_to_existing_user(p_xxdpIN
xx_windows_logon_table%ROWTYPE
,p_test_emailINVARCHAR2)IS
BEGIN
DECLARE
BEGIN
send_html_email(p_to=>
get_email_from_emp_no(p_xxdp.college_email_address
,p_test_email)
,p_from=>nvl(p_test_email
,'xxmail@gmail.com')
,p_subject=>'WelcometoSelfServiceHR'
,p_text=>'WelcometoSelfServiceHR'
,p_html=>'Wearewritingtoletyouknowthatthenexttimeyoulog
intoOracleAppsyouwillseeanew<br/>responsibility,<b>XXHREmployeeSelf
Service</b>.Thisresponsibilitygivesyouaccessthenew<br/>SelfServiceHRfeaturein
http://oracleappsviews.blogspot.in/

62/256

13/05/2015

KrishnaReddyOracleAppsInfo

OracleApps.'||
'<p></p>SelfServiceHRenablesstafftoviewandupdatetheir
ownpersonaldata.'||
'<p></p>Pleasegotothislink<br/><a
href="http://anilpassi.com">http://anilpassi.com</a><br/>tofindoutmoreandreadthe
FAQs.'||
'<br/><br/>'||'Regards'||
'<br/><br/>SSHRRolloutTeam'||
'<br/>'||
'HRDept'
,p_smtp_hostname=>'localhost'
,p_smtp_portnum=>'25')

END
ENDsend_email_to_existing_user
FUNCTIONget_latest_fu(p_proposed_fu_nameINVARCHAR2
,p_proposed_offsetININTEGER)RETURNVARCHAR2IS
BEGIN
IFdoes_fu_exist(p_proposed_fu_name||p_proposed_offset)
THEN
RETURNget_latest_fu(p_proposed_fu_name
,p_proposed_offset+1)
ENDIF

RETURNupper(p_proposed_fu_name||p_proposed_offset)
ENDget_latest_fu
FUNCTIONget_fu_name(p_nt_loginINVARCHAR2)RETURNVARCHAR2IS
BEGIN
IFNOTdoes_fu_exist(p_nt_login)
THEN
RETURNupper(p_nt_login)
ENDIF

IFNOTdoes_fu_exist(p_nt_login)
THEN
RETURNupper(p_nt_login)
ENDIF

RETURNget_latest_fu(p_nt_login
,1)
ENDget_fu_name
FUNCTIONget_user_name_from_fu_per_id(p_person_idINVARCHAR2)
RETURNVARCHAR2IS
CURSORc_getIS
SELECTfu.user_name
FROMfnd_userfu
WHEREfu.employee_id=p_person_id

http://oracleappsviews.blogspot.in/

63/256

13/05/2015

KrishnaReddyOracleAppsInfo

p_getc_get%ROWTYPE
BEGIN
OPENc_get

FETCHc_get
INTOp_get

CLOSEc_get

RETURNp_get.user_name
ENDget_user_name_from_fu_per_id
FUNCTIONget_random_passwordRETURNVARCHAR2IS
BEGIN
RETURNlower(dbms_random.STRING('X'
,8))
ENDget_random_password
FUNCTIONget_person_name(p_person_idININTEGER)RETURNVARCHAR2IS
CURSORc_getIS
SELECTfull_name
FROMper_all_people_f
WHEREperson_id=p_person_id
ORDERBYeffective_start_dateDESC
p_getc_get%ROWTYPE

BEGIN
OPENc_get
FETCHc_get
INTOp_get
CLOSEc_get
RETURNp_get.full_name
ENDget_person_name
PROCEDUREcreate_fnd_user_for_emp_no(p_user_nameINVARCHAR2
,p_person_idININTEGER
,p_email_addressINVARCHAR2
,p_person_descriptionINVARCHAR2
,p_passwordOUTVARCHAR2)IS
v_session_idVARCHAR2(200)
v_passwordVARCHAR2(100):=get_random_password
BEGIN
p_password:=v_password
fnd_user_pkg.createuser(x_user_name=>p_user_name
,x_owner=>''
,x_unencrypted_password=>v_password
,x_description=>p_person_description
,x_password_lifespan_days=>180
,x_employee_id=>p_person_id
,x_email_address=>p_email_address)

http://oracleappsviews.blogspot.in/

64/256

13/05/2015

KrishnaReddyOracleAppsInfo

ENDcreate_fnd_user_for_emp_no
FUNCTIONget_fu_id(p_fu_nameINVARCHAR2)RETURNVARCHAR2IS
CURSORc_getIS
SELECTuser_idFROMfnd_userWHEREuser_name=p_fu_name
p_getc_get%ROWTYPE
BEGIN
OPENc_get
FETCHc_get
INTOp_get
CLOSEc_get
RETURNp_get.user_id
ENDget_fu_id
FUNCTIONcreate_fnd_user(p_person_idININTEGER
,p_xxdpINxx_windows_logon_table%ROWTYPE
,p_new_fnd_user_nameOUTVARCHAR2
,p_new_fnd_user_passwordOUTVARCHAR2)
RETURNINTEGERIS
v_user_namefnd_user.user_name%TYPE
v_passwordVARCHAR2(200)
v_errVARCHAR2(2000)
BEGIN
v_user_name:=get_fu_name(p_nt_login=>p_xxdp.nt_login)
debug_stmt('Forp_xxdp.nt_login=>'||p_xxdp.nt_login||
'theusernameis'||v_user_name)
create_fnd_user_for_emp_no(p_user_name=>p_xxdp.nt_login
,p_person_id=>p_person_id
,p_email_address=>p_xxdp.college_email_address
,p_person_description=>p_xxdp.title||''||
p_xxdp.first_name||''||
p_xxdp.last_name
,p_password=>v_password)
p_new_fnd_user_name:=v_user_name
p_new_fnd_user_password:=v_password
RETURNget_fu_id(p_fu_name=>v_user_name)
EXCEPTION
WHENOTHERSTHEN
v_err:=substr(SQLERRM
,1
,2000)
debug_stmt(v_err)
RETURNNULL
ENDcreate_fnd_user
PROCEDUREsend_html_email(p_toINVARCHAR2
,p_fromINVARCHAR2
,p_subjectINVARCHAR2
,p_textINVARCHAR2DEFAULTNULL
,p_htmlINVARCHAR2DEFAULTNULL
,p_smtp_hostnameINVARCHAR2
http://oracleappsviews.blogspot.in/

65/256

13/05/2015

KrishnaReddyOracleAppsInfo

,p_smtp_portnumINVARCHAR2)IS
l_boundaryVARCHAR2(255)DEFAULT'a1b2c3d4e3f2g1'
l_connectionutl_smtp.connection
l_body_htmlCLOB:=empty_clobThisLOBwillbetheemailmessage
l_offsetNUMBER
l_ammountNUMBER
l_tempVARCHAR2(32767)DEFAULTNULL
BEGIN
/*Usage......
html_email(p_to=>'a.passi@Company.ac.uk'
,p_from=>'anilpassi@gmail.com'
,p_subject=>'Testingfromanil'
,p_text=>'ABCD'
,p_html=>'<b>IJKLM</b>TestingfortheHTMLFormatoftheemail'
,p_smtp_hostname=>'localhost'
,p_smtp_portnum=>'25')
*/
l_connection:=utl_smtp.open_connection(p_smtp_hostname
,p_smtp_portnum)
utl_smtp.helo(l_connection
,p_smtp_hostname)
utl_smtp.mail(l_connection
,p_from)
utl_smtp.rcpt(l_connection
,p_to)

l_temp:=l_temp||'MIMEVersion:1.0'||chr(13)||chr(10)
l_temp:=l_temp||'To:'||p_to||chr(13)||chr(10)
l_temp:=l_temp||'From:'||p_from||chr(13)||chr(10)
l_temp:=l_temp||'Subject:'||p_subject||chr(13)||chr(10)
l_temp:=l_temp||'ReplyTo:'||p_from||chr(13)||chr(10)
l_temp:=l_temp||'ContentType:multipart/alternativeboundary='||
chr(34)||l_boundary||chr(34)||chr(13)||chr(10)

Writetheheaders
dbms_lob.createtemporary(l_body_html
,FALSE
,10)
dbms_lob.WRITE(l_body_html
,length(l_temp)
,1
,l_temp)

Writethetextboundary
l_offset:=dbms_lob.getlength(l_body_html)+1
l_temp:=''||l_boundary||chr(13)||chr(10)
l_temp:=l_temp||'contenttype:text/plaincharset=usascii'||
chr(13)||chr(10)||chr(13)||chr(10)
dbms_lob.WRITE(l_body_html
http://oracleappsviews.blogspot.in/

66/256

13/05/2015

KrishnaReddyOracleAppsInfo

,length(l_temp)
,l_offset
,l_temp)

Writetheplaintextportionoftheemail
l_offset:=dbms_lob.getlength(l_body_html)+1
dbms_lob.WRITE(l_body_html
,length(p_text)
,l_offset
,p_text)

WritetheHTMLboundary
l_temp:=chr(13)||chr(10)||chr(13)||chr(10)||''||
l_boundary||chr(13)||chr(10)
l_temp:=l_temp||'contenttype:text/html'||chr(13)||chr(10)||
chr(13)||chr(10)
l_offset:=dbms_lob.getlength(l_body_html)+1
dbms_lob.WRITE(l_body_html
,length(l_temp)
,l_offset
,l_temp)

WritetheHTMLportionofthemessage
l_offset:=dbms_lob.getlength(l_body_html)+1
dbms_lob.WRITE(l_body_html
,length(p_html)
,l_offset
,p_html)

Writethefinalhtmlboundary
l_temp:=chr(13)||chr(10)||''||l_boundary||''||chr(13)
l_offset:=dbms_lob.getlength(l_body_html)+1
dbms_lob.WRITE(l_body_html
,length(l_temp)
,l_offset
,l_temp)

Sendtheemailin1900bytechunkstoUTL_SMTP
l_offset:=1
l_ammount:=1900
utl_smtp.open_data(l_connection)
WHILEl_offset<dbms_lob.getlength(l_body_html)
LOOP
utl_smtp.write_data(l_connection
,dbms_lob.substr(l_body_html
,l_ammount
http://oracleappsviews.blogspot.in/

67/256

13/05/2015

KrishnaReddyOracleAppsInfo

,l_offset))
l_offset:=l_offset+l_ammount
l_ammount:=least(1900
,dbms_lob.getlength(l_body_html)l_ammount)
ENDLOOP
utl_smtp.close_data(l_connection)
utl_smtp.quit(l_connection)
dbms_lob.freetemporary(l_body_html)
ENDsend_html_email
PROCEDUREexcel_output(p_msgINVARCHAR2)IS
BEGIN
fnd_file.put_line(fnd_file.output
,p_msg)
ENDexcel_output
FUNCTIONget_user_name(p_user_idININTEGER)RETURNVARCHAR2IS
CURSORc_getIS
SELECTuser_nameFROMfnd_userWHEREuser_id=p_user_id
p_getc_get%ROWTYPE
BEGIN
OPENc_get
FETCHc_get
INTOp_get
CLOSEc_get
RETURNp_get.user_name
ENDget_user_name
FUNCTIONget_emp_no(p_person_idININTEGER)RETURNVARCHAR2IS
CURSORc_getIS
SELECTemployee_number
FROMxx_per_all_people_x
WHEREperson_id=p_person_id
p_getc_get%ROWTYPE
BEGIN
OPENc_get
FETCHc_get
INTOp_get
CLOSEc_get
RETURNp_get.employee_number
ENDget_emp_no
FUNCTIONget_cost_centre_group(p_person_idININTEGER)RETURNVARCHAR2IS
CURSORc_getIS
SELECThrou1.attribute5
FROMhr_all_organization_unitshrou1
,hr_all_organization_unitshrou
,xx_per_all_asg_xass
,xx_per_all_people_xppx
WHEREppx.person_id=p_person_id
ANDass.person_id=ppx.person_id
http://oracleappsviews.blogspot.in/

68/256

13/05/2015

KrishnaReddyOracleAppsInfo

ANDass.assignment_numberISNOTNULL
ANDass.primary_flag='Y'
ANDhrou.organization_id=ass.organization_id
ANDhrou1.NAME=primaryhro_pkg.fn_get_primaryhro(ass.organization_id)
p_getc_get%ROWTYPE
BEGIN
OPENc_get
FETCHc_get
INTOp_get
CLOSEc_get
RETURNp_get.attribute5
ENDget_cost_centre_group
FUNCTIONget_parent_org(p_person_idININTEGER)RETURNVARCHAR2IS
CURSORc_getIS
SELECTprimaryhro_pkg.fn_get_primaryhro(ass.organization_id)parent_org
FROMhr_all_organization_unitshrou
,xx_per_all_asg_xass
,xx_per_all_people_xppx
WHEREppx.person_id=p_person_id
ANDass.person_id=ppx.person_id
ANDass.assignment_numberISNOTNULL
ANDass.primary_flag='Y'
ANDhrou.organization_id=ass.organization_id
p_getc_get%ROWTYPE
BEGIN
OPENc_get
FETCHc_get
INTOp_get
CLOSEc_get
RETURNp_get.parent_org
ENDget_parent_org
FUNCTIONget_grade(p_person_idININTEGER)RETURNVARCHAR2IS
CURSORc_getIS
SELECTpg.NAME
FROMper_grade_definitionspgd
,per_gradespg
,xx_per_all_asg_xass
,xx_per_all_people_xppx
WHEREppx.person_id=p_person_id
ANDass.person_id=ppx.person_id
ANDass.assignment_numberISNOTNULL
ANDass.primary_flag='Y'
ANDpg.grade_id=ass.grade_id
ANDpgd.grade_definition_id=pg.grade_definition_id
p_getc_get%ROWTYPE
BEGIN
OPENc_get
FETCHc_get
INTOp_get
http://oracleappsviews.blogspot.in/

69/256

13/05/2015

KrishnaReddyOracleAppsInfo

CLOSEc_get
RETURNp_get.NAME
ENDget_grade
PROCEDURErun(errbufOUTVARCHAR2
,retcodeOUTVARCHAR2
,p_responsibility_nameINVARCHAR2
,p_person_typeINVARCHAR2
,p_cost_centre_group_1INVARCHAR2
,p_cost_centre_group_2INVARCHAR2
,p_parent_org_1INVARCHAR2
,p_parent_org_2INVARCHAR2
,p_emp_noINVARCHAR2
,p_read_only_flagINVARCHAR2
,p_test_ceration_email_addressINVARCHAR2)IS
n_countINTEGER
v_sqlerrmVARCHAR2(2000)
can_not_fnd_create_userEXCEPTION
error_in_fnd_user_pkgEXCEPTION
v_fnd_user_nameVARCHAR2(100)
CURSORc_getIS
SELECT*
FROMfnd_responsibility_vl
WHEREresponsibility_name=
nvl('XXHREmployeeSelfService'
,p_responsibility_name)

p_getc_get%ROWTYPE

duplicate_responsibilityEXCEPTION
PRAGMAEXCEPTION_INIT(duplicate_responsibility
,20001)
v_hard_passwordVARCHAR2(1):=
fnd_profile.VALUE('SIGNON_PASSWORD_HARD_TO_GUESS')
l_xxdpxx_windows_logon_table%ROWTYPE
b_new_user_createdBOOLEAN
v_fnd_user_passwordVARCHAR2(100)
BEGIN
set_debug_context('run')

SELECTinstance_nameINTOg_instance_nameFROMv$instance
debug_stmt('g_instance_name=>'||g_instance_name)
fnd_profile.put(NAME=>'SIGNON_PASSWORD_HARD_TO_GUESS'
,val=>'N')

OPENc_get
FETCHc_get
INTOp_get
CLOSEc_get

letsdumptherecordsfirstintothetemptable,
http://oracleappsviews.blogspot.in/

70/256

13/05/2015

KrishnaReddyOracleAppsInfo

thiswillbefollowedby
a.seewhichpeopledonothaveSignOn
b.WhichpeoplealreadyhaveResponsibility
INSERTINTOxx_sshr_allocate_resp
(sshr_allocate_resp_id
,person_id
,future_dated_employee_flag
,responsibillity_name
,error_during_resp_allocation
,fnd_user_id
,fnd_request_id
,email_address)
(SELECTxx_sshr_allocate_resp_s.NEXTVAL
,ppx.person_idPERSON_ID
,'N'FUTURE_DATED_EMPLOYEE_FLAG
,p_responsibility_nameresponsibillity_name
,NULLERROR_DURING_RESP_ALLOCATION
,NULLFND_USER_ID
,fnd_global.conc_request_idFND_REQUEST_ID
,ppx.email_address
FROMper_person_typesppt
,per_person_type_usages_xpptux
,xx_per_all_people_xppx
WHEREppx.person_id=pptux.person_id
ANDppt.person_type_id=pptux.person_type_id
ANDppx.employee_number=nvl(p_emp_no
,ppx.employee_number)
ANDppt.system_person_type='EMP'
ANDppt.user_person_type=p_person_type
ANDppt.business_group_id=
fnd_profile.VALUE('PER_BUSINESS_GROUP_ID')
ANDEXISTS(SELECT'x'
FROMhr_all_organization_unitshrou1
,hr_all_organization_unitshrou
,xx_per_all_asg_xpax
WHEREp_cost_centre_group_1ISNOTNULL
ANDpax.person_id=ppx.person_id
ANDpax.primary_flag='Y'
ANDpax.assignment_numberISNOTNULL
ANDhrou.organization_id=pax.organization_id
ANDhrou1.NAME=
primaryhro_pkg.fn_get_primaryhro(pax.organization_id)
ANDhrou1.attribute5IN
(nvl(p_cost_centre_group_1
,'XXXX'),nvl(p_cost_centre_group_2
,'XXXX'))
UNIONALL
SELECT'x'
FROMdual
WHERE(p_cost_centre_group_1ISNULLANDp_cost_centre_group_2IS
NULL))
http://oracleappsviews.blogspot.in/

71/256

13/05/2015

KrishnaReddyOracleAppsInfo

ANDEXISTS
(SELECT'x'
FROMhr_all_organization_unitshrou,xx_per_all_asg_xpax
WHEREp_parent_org_1ISNOTNULL
ANDpax.person_id=ppx.person_id
ANDpax.primary_flag='Y'
ANDpax.assignment_numberISNOTNULL
ANDhrou.organization_id=pax.organization_id
ANDprimaryhro_pkg.fn_get_primaryhro(pax.organization_id)IN
(nvl(p_parent_org_1
,'XXXX'),nvl(p_parent_org_2
,'XXXX'))
UNIONALL
SELECT'x'
FROMdual
WHERE(p_parent_org_1ISNULLANDp_parent_org_2ISNULL)))
n_count:=SQL%ROWCOUNT

debug_stmt(n_count||
'RecordsinsertedintoTempTablebasedonEligibilityCriteria')

INSERTINTOxx_sshr_allocate_resp
(sshr_allocate_resp_id
,person_id
,future_dated_employee_flag
,responsibillity_name
,error_during_resp_allocation
,fnd_user_id
,fnd_request_id
,email_address)
(SELECTxx_sshr_allocate_resp_s.NEXTVAL
,ppx.person_idPERSON_ID
,'Y'FUTURE_DATED_EMPLOYEE_FLAG
,p_responsibility_nameresponsibillity_name
,'EmployeeIsaFutureStarter'ERROR_DURING_RESP_ALLOCATION
,NULLFND_USER_ID
,fnd_global.conc_request_idFND_REQUEST_ID
,ppx.email_address
FROMper_person_typesppt
,xx_per_person_type_usages_eotpptux
,xx_per_all_people_eotppx
WHERENOTEXISTS
(SELECT'x'
FROMxx_sshr_allocate_respiar
WHEREiar.person_id=ppx.person_id
ANDfnd_request_id=fnd_global.conc_request_id)
ANDppx.person_id=pptux.person_id
ANDppt.person_type_id=pptux.person_type_id
ANDppx.employee_number=nvl(p_emp_no
,ppx.employee_number)
ANDppt.system_person_type='EMP'
http://oracleappsviews.blogspot.in/

72/256

13/05/2015

KrishnaReddyOracleAppsInfo

ANDppt.user_person_type=p_person_type
ANDppt.business_group_id=
fnd_profile.VALUE('PER_BUSINESS_GROUP_ID')
ANDEXISTS(SELECT'x'
FROMhr_all_organization_unitshrou1
,hr_all_organization_unitshrou
,xx_per_all_asg_xpax
WHEREp_cost_centre_group_1ISNOTNULL
ANDpax.person_id=ppx.person_id
ANDpax.primary_flag='Y'
ANDpax.assignment_numberISNOTNULL
ANDhrou.organization_id=pax.organization_id
ANDhrou1.NAME=
primaryhro_pkg.fn_get_primaryhro(pax.organization_id)
ANDhrou1.attribute5IN
(nvl(p_cost_centre_group_1
,'XXXX'),nvl(p_cost_centre_group_2
,'XXXX'))
UNIONALL
SELECT'x'
FROMdual
WHERE(p_cost_centre_group_1ISNULLANDp_cost_centre_group_2IS
NULL))
ANDEXISTS
(SELECT'x'
FROMhr_all_organization_unitshrou,xx_per_all_asg_xpax
WHEREp_parent_org_1ISNOTNULL
ANDpax.person_id=ppx.person_id
ANDpax.primary_flag='Y'
ANDpax.assignment_numberISNOTNULL
ANDhrou.organization_id=pax.organization_id
ANDprimaryhro_pkg.fn_get_primaryhro(pax.organization_id)IN
(nvl(p_parent_org_1
,'XXXX'),nvl(p_parent_org_2
,'XXXX'))
UNIONALL
SELECT'x'
FROMdual
WHERE(p_parent_org_1ISNULLANDp_parent_org_2ISNULL)))
n_count:=SQL%ROWCOUNT
debug_stmt(n_count||
'RecordsinsertedintoTempTablethataereligiblebutFutureDated')
Commentingthebelow,asweneedtocreateUserAccountsforthesefolks
/*UPDATExx_sshr_allocate_respisar
SETerror_during_resp_allocation='EmployeeIsNotaUser'
WHEREisar.fnd_request_id=fnd_global.conc_request_id
ANDerror_during_resp_allocationISNULL
ANDNOTEXISTS
(SELECT'x'FROMfnd_userfuWHEREfu.employee_id=isar.person_id)
n_count:=SQL%ROWCOUNT
put_log(n_count||'RecordserroredduetothemnotbeingEmployee')
http://oracleappsviews.blogspot.in/

73/256

13/05/2015

KrishnaReddyOracleAppsInfo

*/
UPDATExx_sshr_allocate_respisar
SETfnd_user_id=(SELECTuser_id
FROMfnd_user
WHEREemployee_id=isar.person_id
ANDrownum<2)
WHEREisar.fnd_request_id=fnd_global.conc_request_id
ANDerror_during_resp_allocationISNULL

UPDATExx_sshr_allocate_respisar
SETresponsibility_alloc_date=(SELECTstart_date
FROMfnd_user_resp_groups_direct
WHEREuser_id=isar.fnd_user_id
ANDresponsibility_id=
p_get.responsibility_id
ANDrownum<2)
WHEREisar.fnd_request_id=fnd_global.conc_request_id

n_count:=SQL%ROWCOUNT
debug_stmt(n_count||
'Recordswereattemptedtobeassignedexistingresponsibility_alloc_date')

UPDATExx_sshr_allocate_respisar
SETerror_during_resp_allocation='ResponsibilityAlreadyAllocatedon'||
to_char(responsibility_alloc_date
,'DDMONYYYY')
WHEREisar.fnd_request_id=fnd_global.conc_request_id
ANDresponsibility_alloc_dateISNOTNULL
n_count:=SQL%ROWCOUNT
debug_stmt(n_count||
'Recordserroredastheyalreadyhavetheresponsibility')

/*UPDATExx_sshr_allocate_respisar
SETerror_during_resp_allocation='EmployeesUserRecordisTerminated'
WHEREisar.fnd_request_id=fnd_global.conc_request_id
ANDerror_during_resp_allocationISNULL
ANDEXISTS(SELECT'x'
FROMfnd_userfu
WHEREfu.employee_id=isar.person_id
ANDNOT(trunc(SYSDATE)BETWEEN
nvl(fu.start_date
,trunc(SYSDATE))AND
nvl(fu.start_date
,trunc(SYSDATE))))
n_count:=SQL%ROWCOUNT
put_log(n_count||'RecordserroredastheirFND_USERisenddated')
*/

UPDATExx_sshr_allocate_respisar
SETerror_during_resp_allocation='NoEmailAddress'
WHEREisar.fnd_request_id=fnd_global.conc_request_id
http://oracleappsviews.blogspot.in/

74/256

13/05/2015

KrishnaReddyOracleAppsInfo

ANDisar.email_addressISNULL
ANDerror_during_resp_allocationISNULL
n_count:=SQL%ROWCOUNT
debug_stmt(n_count||
'RecordserroredastheyhavenoemailaddressinHRMS')

UPDATExx_sshr_allocate_respisar
SETfnd_user_id=(SELECTuser_id
FROMfnd_user
WHEREemployee_id=isar.person_id
ANDrownum<2)
WHEREisar.fnd_request_id=fnd_global.conc_request_id
ANDerror_during_resp_allocationISNULL

n_count:=SQL%ROWCOUNT
debug_stmt(n_count||
'Recordsaerunerrored,andhencewillbeprocessedfurther')

excel_output('Action'||chr(9)||'UserName'||chr(9)||'emp_no'||
chr(9)||'PersonFullName'||chr(9)||
'AllocationDate'||chr(9)||'Error'||chr(9)||
'cost_centre_group'||chr(9)||'parent_org'||chr(9)||'Grade')

FORp_recIN(SELECT*
FROMxx_sshr_allocate_respisar
WHEREisar.fnd_request_id=fnd_global.conc_request_id
ANDerror_during_resp_allocationISNULL)
LOOP
BEGIN
l_xxdp:=NULL
v_fnd_user_password:=NULL
b_new_user_created:=FALSE
v_fnd_user_name:=NULL
v_sqlerrm:=is_user_creation_possible(p_person_id=>p_rec.person_id
,p_xxdp=>l_xxdp)
debug_stmt('p_rec.fnd_user_id=>'||p_rec.fnd_user_id)
debug_stmt('Isusercreationpossiblereturned=>'||v_sqlerrm)
IFp_rec.fnd_user_idISNULLANDv_sqlerrmISNOTNULL
THEN

RAISEcan_not_fnd_create_user
ENDIF

IFNOT(p_read_only_flag='Y')
THEN
debug_stmt('Notreadonly')
IFp_rec.fnd_user_idISNULL
THEN
debug_stmt('Lookslikenewuserisneeded')

p_rec.fnd_user_id:=create_fnd_user(p_person_id=>p_rec.person_id
http://oracleappsviews.blogspot.in/

75/256

13/05/2015

KrishnaReddyOracleAppsInfo

,p_xxdp=>l_xxdp
,p_new_fnd_user_name=>v_fnd_user_name
,p_new_fnd_user_password=>v_fnd_user_password)
IFp_rec.fnd_user_idISNULL
THEN
RAISEerror_in_fnd_user_pkg
ELSE
UPDATExx_sshr_allocate_respir
SETir.fnd_user_id=p_rec.fnd_user_id
,new_fnd_user_flag='Y'
,messsage_code=v_fnd_user_password
WHEREir.sshr_allocate_resp_id=p_rec.sshr_allocate_resp_id
b_new_user_created:=TRUE
ENDIF
ENDIF
fnd_user_resp_groups_api.insert_assignment(user_id=>
p_rec.fnd_user_id
,responsibility_id=>p_get.responsibility_id
,responsibility_application_id=>p_get.application_id
,security_group_id=>0
,start_date=>trunc(SYSDATE)
,end_date=>NULL
,description=>'AutoAllocationforSSHR')
UPDATExx_sshr_allocate_resp
SETresponsibility_alloc_date=SYSDATE
WHEREsshr_allocate_resp_id=p_rec.sshr_allocate_resp_id
IFb_new_user_created
THEN
excel_output('Allocated[WithNewUser]'||chr(9)||
get_user_name(p_rec.fnd_user_id)||chr(9)||
get_emp_no(p_rec.person_id)||chr(9)||
get_person_name(p_rec.person_id)||chr(9)||
to_char(trunc(SYSDATE)
,'DDMONYYYY')||chr(9)||''||chr(9)||
get_cost_centre_group(p_rec.person_id)||chr(9)||
get_parent_org(p_rec.person_id)||chr(9)||
get_grade(p_rec.person_id))
send_email_to_new_user(p_xxdp=>l_xxdp
,p_user_name=>v_fnd_user_name
,p_password=>v_fnd_user_password
,p_test_email=>p_test_ceration_email_address)
ELSE
excel_output('Allocated'||chr(9)||
get_user_name(p_rec.fnd_user_id)||chr(9)||
get_emp_no(p_rec.person_id)||chr(9)||
get_person_name(p_rec.person_id)||chr(9)||
to_char(trunc(SYSDATE)
,'DDMONYYYY')||chr(9)||''||chr(9)||
get_cost_centre_group(p_rec.person_id)||chr(9)||
get_parent_org(p_rec.person_id)||chr(9)||
get_grade(p_rec.person_id))
http://oracleappsviews.blogspot.in/

76/256

13/05/2015

KrishnaReddyOracleAppsInfo

send_email_to_existing_user(p_xxdp=>l_xxdp
,p_test_email=>p_test_ceration_email_address)
ENDIF
COMMIT
ELSE
IFp_rec.fnd_user_idISNULL
THEN
excel_output('Eligible[NewUserWillBeCreated]'||chr(9)||
nvl(get_user_name(p_rec.fnd_user_id)
,get_fu_name(l_xxdp.nt_login))||chr(9)||
get_emp_no(p_rec.person_id)||chr(9)||
get_person_name(p_rec.person_id)||chr(9)||
chr(9)||chr(9)||get_cost_centre_group(p_rec.person_id)||
chr(9)||get_parent_org(p_rec.person_id)||chr(9)||
get_grade(p_rec.person_id))
ELSE
excel_output('Eligible'||chr(9)||
get_user_name(p_rec.fnd_user_id)||chr(9)||
get_emp_no(p_rec.person_id)||chr(9)||
get_person_name(p_rec.person_id)||chr(9)||
chr(9)||chr(9)||get_cost_centre_group(p_rec.person_id)||
chr(9)||get_parent_org(p_rec.person_id)||chr(9)||
get_grade(p_rec.person_id))
ENDIF
ENDIF
EXCEPTION
WHENcan_not_fnd_create_userTHEN
UPDATExx_sshr_allocate_respir
SETir.error_during_resp_allocation=v_sqlerrm
WHEREsshr_allocate_resp_id=p_rec.sshr_allocate_resp_id
WHENerror_in_fnd_user_pkgTHEN
UPDATExx_sshr_allocate_respir
SETir.error_during_resp_allocation='ErrorwhilecreatingFNDUser.Pleasesee
ConcurrentLogfilefordetails'
WHEREsshr_allocate_resp_id=p_rec.sshr_allocate_resp_id
WHENOTHERSTHEN
v_sqlerrm:=SQLERRM
UPDATExx_sshr_allocate_resp
SETerror_during_resp_allocation=substr(v_sqlerrm
,1
,2000)
WHEREsshr_allocate_resp_id=p_rec.sshr_allocate_resp_id

END
ENDLOOP

FORp_recxIN(SELECT*
FROMxx_sshr_allocate_respisar
WHEREisar.fnd_request_id=fnd_global.conc_request_id
ANDerror_during_resp_allocationISNOTNULL)
LOOP
http://oracleappsviews.blogspot.in/

77/256

13/05/2015

KrishnaReddyOracleAppsInfo

excel_output('Error'||chr(9)||get_user_name(p_recx.fnd_user_id)||
chr(9)||get_emp_no(p_recx.person_id)||chr(9)||
get_person_name(p_recx.person_id)||chr(9)||
to_char(p_recx.responsibility_alloc_date
,'DDMONYYYY')||chr(9)||
p_recx.error_during_resp_allocation||chr(9)||
get_cost_centre_group(p_recx.person_id)||chr(9)||
get_parent_org(p_recx.person_id)||chr(9)||
get_grade(p_recx.person_id))
ENDLOOP
fnd_profile.put(NAME=>'SIGNON_PASSWORD_HARD_TO_GUESS'
,val=>v_hard_password)
debug_end_procedure
EXCEPTION
WHENOTHERSTHEN
fnd_profile.put(NAME=>'SIGNON_PASSWORD_HARD_TO_GUESS'
,val=>v_hard_password)
RAISE
ENDrun
ENDxx_sshr_allocate_resp_pkg
Posted29thAugust2012byKrishnareddy
1 Viewcomments

29thAugust2012

APJOINSINR12

APJOINSINR12
CE_BANK_ACCOUNTSCBA,
CE_BANK_ACCT_USES_ALLCBAU,
CE_BANK_BRANCHES_VCBB,
AP_SYSTEM_PARAMETERS_ALLASPA,
ce_payment_documentsPD,
AP_LOOKUP_CODESALC1,
iby_payment_methods_vliby1,
iby_payment_profilesiby2,
fnd_lookupsiby3,
fnd_lookupsiby5,
AP_LOOKUP_CODESALC3,
FND_DOCUMENT_SEQUENCESFDS,
FND_DOC_SEQUENCE_CATEGORIESFDSC,
FND_TERRITORIES_VLFT,
GL_DAILY_CONVERSION_TYPESGDCT,
AP_SUPPLIERSPV,
AP_SUPPLIER_SITES_ALLPVS,
http://oracleappsviews.blogspot.in/

78/256

13/05/2015

KrishnaReddyOracleAppsInfo

CE_STATEMENT_RECONCILS_ALLCSR,
CE_STATEMENT_HEADERSCSH,
CE_STATEMENT_LINESCSL,
AP_CHECKSAC,
GL_DAILY_CONVERSION_TYPESGDCT1,
HZ_PARTIESHZP,
HZ_PARTY_SITESHPS,
HZ_LOCATIONSHZL,
/*Bug8345877*/
AP_SUPPLIERSPV1,
AP_SUPPLIER_SITES_ALLPVS1,
HZ_PARTY_SITESHPS1,
HZ_LOCATIONSHZL1,
/*Bug8345877*/
HZ_PARTIESHZP1
/*Bug8579660*/
WHEREAC.CE_BANK_ACCT_USE_ID=CBAU.bank_acct_use_id(+)
ANDCBAU.bank_account_id=CBA.bank_account_id(+)
ANDCBAU.ORG_ID=ASPA.ORG_ID(+)
ANDAC.MATURITY_EXCHANGE_RATE_TYPE=GDCT1.CONVERSION_TYPE(+)
ANDCBB.BRANCH_PARTY_ID(+)=CBA.BANK_BRANCH_ID
ANDAC.PAYMENT_DOCUMENT_ID=PD.payment_document_id(+)
ANDALC1.LOOKUP_TYPE='PAYMENTTYPE'
ANDALC1.LOOKUP_CODE=AC.PAYMENT_TYPE_FLAG
ANDIBY1.PAYMENT_METHOD_CODE(+)=AC.PAYMENT_METHOD_CODE
ANDiby2.payment_profile_id(+)=AC.payment_profile_id
ANDALC3.LOOKUP_TYPE(+)='CHECKSTATE'
ANDALC3.LOOKUP_CODE(+)=AC.STATUS_LOOKUP_CODE
ANDAC.BANK_CHARGE_BEARER=IBY3.LOOKUP_CODE(+)
ANDIBY3.LOOKUP_TYPE(+)='IBY_BANK_CHARGE_BEARER'
ANDAC.SETTLEMENT_PRIORITY=IBY5.LOOKUP_CODE(+)
ANDIBY5.LOOKUP_TYPE(+)='IBY_SETTLEMENT_PRIORITY'
ANDAC.DOC_SEQUENCE_ID=FDS.DOC_SEQUENCE_ID(+)
ANDFDSC.APPLICATION_ID(+)=200
ANDAC.DOC_CATEGORY_CODE=FDSC.CODE(+)
ANDAC.COUNTRY=FT.TERRITORY_CODE(+)
ANDAC.EXCHANGE_RATE_TYPE=GDCT.CONVERSION_TYPE(+)
ANDAC.VENDOR_ID=PV.VENDOR_ID(+)
ANDAC.PARTY_ID=HZP.PARTY_ID(+)
ANDAC.VENDOR_SITE_ID=PVS.VENDOR_SITE_ID(+)
ANDAC.PARTY_SITE_ID=HPS.PARTY_SITE_ID(+)
ANDHPS.LOCATION_ID=HZL.LOCATION_ID(+)
ANDCSR.REFERENCE_TYPE(+)='PAYMENT'
ANDCSR.REFERENCE_ID(+)=AC.CHECK_ID
ANDCSR.CURRENT_RECORD_FLAG(+)='Y'
ANDCSR.STATEMENT_LINE_ID=CSL.STATEMENT_LINE_ID(+)
ANDCSL.STATEMENT_HEADER_ID=CSH.STATEMENT_HEADER_ID(+)
ANDCSR.STATUS_FLAG(+)='M'
/*Bug8345877*/
ANDAC.REMIT_TO_SUPPLIER_ID=PV1.VENDOR_ID(+)
ANDAC.REMIT_TO_SUPPLIER_SITE_ID=PVS1.VENDOR_SITE_ID(+)
http://oracleappsviews.blogspot.in/

79/256

13/05/2015

KrishnaReddyOracleAppsInfo

ANDPVS1.PARTY_SITE_ID=HPS1.PARTY_SITE_ID(+)
ANDHPS1.LOCATION_ID=HZL1.LOCATION_ID(+)
/*Bug8345877*/
ANDPV1.party_id=HZP1.PARTY_ID(+)
Posted29thAugust2012byKrishnareddy
1 Viewcomments

29thAugust2012

Alerts

Alerts
[http://www.blogger.com/blogger.g?blogID=955765254185387334]

Introduction:
OracleAlertsissomethingthatcanbeusedtoNotify/Alerttooneormultiple
personsaboutanactivityorchangethatoccursinthesystem.Thealertscanalso
beusedtocallaprocedure,runsomesqlscriptetc.
Thereare2typesofalert
1)PeriodicAlert
2)EventAlert
PeriodicAlerts:
Thesealertsaretriggerperiodically,hourly,daily,weekly,monthlyetcbased
uponhowitissetuptobetriggered.Whenalertrunsandthecondition(SQL
Queryetc.)inthealertsfetchesrecord,thentheeventsspecifiedinthealertare
triggered.
Ex.1)Dailyalerttosendnotificationonthesalesorderonwhichcreditcheck
holdisappliedforaday
2)Hourlyalerttosendnotificationonalltheconcurrentrequestthatcompleted
witherror
3/Ifyouwanttoknowlistofitemscreatedonthatdayattheendofdayyoucan
useperiodicalertsrepeatingperiodicallybysingleday.Thisalertisnotbasedon
anychagestodatabase.thisalertwillnotifyyoueverydayregardlessofdataexists
ornotthatmeansevenifnoitemsarecreatedyouwilgetablanknotification.
EventAlerts:
TheseAlertsarefired/triggeredbasedonsomechangeindatainthedatabase.
Thisisverysimilartothetriggerswrittenonthetable.Unlikely,eventalertscan
onlyfireonAfterInsertorAfterUpdate.
Ex.1)Analertthatsendsnotificationwhennewitemiscreated.
Ex:Ifuwanttonotifyyourmanagerwhenyoucreateanitemintheinventory
youcanuseeventbasedalerts.Whenyoucreateanitemintheinventoryitwill
cretaeanewrecordinmtl_system_items_b,hereinsertingarecordinthetable
isaneventsowheneveranewrecordisinserteditwillsendthealert.Insame
alertyoucanalsosendtheinformationrelatedtothatparticularitem.
WhatcanbedonewithAlerts:
1.Youcansendnotifications
http://oracleappsviews.blogspot.in/

80/256

13/05/2015

KrishnaReddyOracleAppsInfo

2.Youcansendlogfilesasattachmentstonotifications
3.YoucancallPL/SQLstoresprocedures
4.Youcansendapprovalemailsandgettheresults
5.Printsomecontentdynamically
HowtocreateanAlert?
1.StudyyourBusinessrequirementanddecidewhattypeofalertyouneedeither
periodicalertoreventbasedalert.
2.Ifyouaregoingforperiodicalertdecidethefrequency.
3.Ifyouhavechoseneventbasedalertthenfindoutonwhst
event(insert,update,delete)youwanttofirethealert.
4.Decidewhatdataneedtobeincludedinthealert.
5.BasedonthedatayouwantinthealertwriteaSELECTSQLstatementtopull
thedata.
6.Createadistributionlistgroupingallthepeopletowhomyouwanttosendthe
alert.
Navigation:
1.Goto"AlertManager"Responsibility.
2.Alert>>Define
BusinessRequirement

Notifywhensalesorderisbookedornewlineisenteredonbookedorder
Wecandothisthroughtriggers.AlternativewayisAlerts
Query
SELECTooh.order_number
,ool.line_number||'.'||ool.shipment_numberline_number
,ordered_item,ordered_quantity,ool.flow_Status_code
INTO&order_num,&line_num,&Item_num,&Quantity,&line_Status
FROMoe_order_headers_allooh,oe_order_lines_allool
WHEREooh.header_id=ool.header_id
AND
(ooh.booked_date>=to_date(Sysdate,'DDMONRRRRHH24:MI:SS')
OR(ool.creation_Date>=to_date(Sysdate,'DDMONRRRRHH24:MI:SS')
ANDool.creation_date>ooh.booked_date)
)
2/DefineActions
ClickontheactionsbuttonandthenactionsDetailbuttonanddefinemessageas
showninscreenshot.Notethatthemessagetypeissummary.
3)DefineActionSets
Clickonactionsetsandthenactionsetdetailsandinthememberstabenterthe
action
4)ScheduletheRequest
NavigatetoRequest>Checkandsubmitthealert.Basedonthedefinitionof
alertitwillbescheduledtorun.
SecondExample

WehavetodesignperiodicalertItemswithzeroweightforourClient.BasicBusiness
needofthisalertsisforEmailtoMISUserforListofitemhavingZeroWeightsavedin
OracleInventory.
http://oracleappsviews.blogspot.in/

81/256

13/05/2015

KrishnaReddyOracleAppsInfo

AlertManager=>Alerts=>Define

ApplicationField:NameofApplicatione.gOraclePayable
Name:UserdefinedNameofAlerts.
ChoosePeriodtab
Frequency:ChooseFrequencyAccordingly.
Days:ChoosedaysaccordingtoFrequency.SupposeyouChosseFrequencyEveryN
BusinessDaysThenEnterValue1inDayField.
StartTime:TimeYouwanttoFireperiodicalertssupposeyouwanttofireat6:30A.M
Write06:30:00inStartTimeField.
Keep:HowmanydaysYouWanttoMainitainHistory.
SelectStatement:WriteQueryinselectStatement.HereisanExapmleofSelect
StatementforTestPeriodicAlertItemswithzeroweight.Selectstatementmust
includeanINTOclausethatcontainsoneoutputforeachcolumnselectedbyyourSelect
statement.InExampleallinputColumnlike
Orgaization_code,tem_number(segment1),Description,Creation_datehaveOutput
VariableORG,ITEM,DESCR,Create_dateprecededbyAmperstand(&).
Queryis:TestQueryforItemswithzeroweightAlertis

SELECT
distinctp.organization_code,
substr(i.segment1,1,20),
substr(i.description,1,50),
i.creation_date,
INTO
&org
,&item
,&descr
,&create_date
FROM
mtl_system_itemsi,
mtl_parametersp
wherei.organization_id=p.organization_id
andp.organization_codein('INF','ENF')
andi.INVENTORY_ITEM_STATUS_CODE||''='Active'
andi.unit_weightisnull
andI.ITEM_TYPE='P'
orderby1,2
Verify:ClickonVerifyButtontoVerifyyourQuery.ThismessagewillpopulateifQueryis
Right.

Run:ToCheckRecordCountofYourQueryClickonRunButton.SupposeYourQuery
Written
http://oracleappsviews.blogspot.in/

82/256

13/05/2015

KrishnaReddyOracleAppsInfo

ZeroRowsThisMessagewillpopulate.
STEP2:DefineAction:
ClickonActionButton(MarkedWithCircle).ThisForm(ActionWindow1.0)WillPoulate..
ExplainationofFieldonthisForm:
ActionName:SpecifyNameofyourAction.ForExampleOurAlertItemswithzero
weight.isfor
Email.wespecifynameEMAILinActionName.
ActionLevel:ActionlevelshouldbeSummary.
ThreearethreeActionLevel
Detailactionisperformedforeachexceptionreturned.
Summaryactionperformedonceforeachexception.
NoExceptionactionperformedwhennoexceptionsreturned.
ClickonActionDetails

ActionType:FourActiontype.
Messagesendmessage
ConcurrentProgramRequestsubmitconcurrentprogram
SQLscriptexecuteaSQLscript
OSscriptexecuteanOSscript
WeChooseActionTypeMessagebecauseItemswithzeroweightAlertisforEmail
Purpose.
EnterEmailAddreesinToField.
Text:InTextfielddesignLayoutofyourPeriodicAlerts.ItemswithzeroweightAlert
Layoutisthis:
ImportantthingisthatOutputVariable&org,&itemetcshouldbeplacedwithintemplate
likethis...

=**=Entersummarytemplatebelowthisline=**=
**&org&item&descr&create_date
=**=Entersummarytemplateabovethisline=**=
LayoutSampleofTestPeriodicAlertItemswithzeroweight:
Thefollowingitemscurrentlyhavenoweightmaintainedagainsttheminthesystem.
OrgItemDescriptionCreationDate
=====================================================
=============
=**=Entersummarytemplatebelowthisline=**=
**&org&item&descr&create_date
=**=Entersummarytemplateabovethisline=**=
ColumnOverFlow:Wrap
MaxWidth:ChooseAccordingtoRequirments.
80Characters
132Characters
180Characters
STEP3:DefineActionSets:
http://oracleappsviews.blogspot.in/

83/256

13/05/2015

KrishnaReddyOracleAppsInfo

Enterthegroupsofactiontoberun.ClickonActionSetsButton.
ActionSetWindow(ShowninPictiureActionsetWindow1.2)willpopulate.
ActionsetName:EnterActionSetName.InourTestAlertweenterActionsetName
EMAIL.
Note:ActionsetNameshouldbesameasinActionName.OtherwisePeriodicAlertwill
notFire.

ActionsetName:EnterActionSetName.InourTestAlertweenterActionsetName
EMAIl.
OutputTab:OutputtabContainListofOutputVariabledefoeninselectStatementas
showninWindow1.4.NotethatifyouOutputtabisBlankRequerytheAlertthenitwill
showoutputVariable.
ThisproblemwegenerallyfacedwhendesigningperiodicAlerts.
MemberTab:EnterNameofAction.
Posted29thAugust2012byKrishnareddy
0 Addacomment

29thAugust2012

HZ_CUST_ACCOUNTSand
HZ_PARTIES

HZ_CUST_ACCOUNTSandHZ_PARTIES
InR12ra_customersisabsoletedSowecanuseAR_CUSTOMERSitisviewbaseon
HZ_CUST_ACCOUNTSandHZ_PARTIES

CREATEORREPLACEFORCEVIEW"APPS"."AR_CUSTOMERS"("CUSTOMER_ID",
"CUSTOMER_NAME","CUSTOMER_NUMBER","CUSTOMER_KEY","STATUS",
"ORIG_SYSTEM_REFERENCE","CUSTOMER_PROSPECT_CODE",
"CUSTOMER_CATEGORY_CODE","CUSTOMER_CLASS_CODE","CUSTOMER_TYPE",
"PRIMARY_SALESREP_ID","SIC_CODE","TAX_REFERENCE","TAX_CODE",
"FOB_POINT","SHIP_VIA","GSA_INDICATOR","SHIP_PARTIAL","TAXPAYER_ID",
"PRICE_LIST_ID","FREIGHT_TERM","ORDER_TYPE_ID","SALES_CHANNEL_CODE",
"WAREHOUSE_ID","MISSION_STATEMENT","NUM_OF_EMPLOYEES",
"POTENTIAL_REVENUE_CURR_FY","POTENTIAL_REVENUE_NEXT_FY",
"FISCAL_YEAREND_MONTH","YEAR_ESTABLISHED","ANALYSIS_FY",
"COMPETITOR_FLAG","REFERENCE_USE_FLAG","THIRD_PARTY_FLAG",
"ATTRIBUTE_CATEGORY","ATTRIBUTE1","ATTRIBUTE2","ATTRIBUTE3",
"ATTRIBUTE4","ATTRIBUTE5","ATTRIBUTE6","ATTRIBUTE7","ATTRIBUTE8",
"ATTRIBUTE9","ATTRIBUTE10","ATTRIBUTE11","ATTRIBUTE12","ATTRIBUTE13",
"ATTRIBUTE14","ATTRIBUTE15","LAST_UPDATED_BY","LAST_UPDATE_DATE",
http://oracleappsviews.blogspot.in/

84/256

13/05/2015

KrishnaReddyOracleAppsInfo

"LAST_UPDATE_LOGIN",
"CREATED_BY","CREATION_DATE","CUSTOMER_NAME_PHONETIC",
"TAX_HEADER_LEVEL_FLAG","TAX_ROUNDING_RULE",
"GLOBAL_ATTRIBUTE_CATEGORY","GLOBAL_ATTRIBUTE1",
"GLOBAL_ATTRIBUTE2","GLOBAL_ATTRIBUTE3","GLOBAL_ATTRIBUTE4",
"GLOBAL_ATTRIBUTE5","GLOBAL_ATTRIBUTE6","GLOBAL_ATTRIBUTE7",
"GLOBAL_ATTRIBUTE8","GLOBAL_ATTRIBUTE9","GLOBAL_ATTRIBUTE10",
"GLOBAL_ATTRIBUTE11","GLOBAL_ATTRIBUTE12","GLOBAL_ATTRIBUTE13",
"GLOBAL_ATTRIBUTE14","GLOBAL_ATTRIBUTE15","GLOBAL_ATTRIBUTE16",
"GLOBAL_ATTRIBUTE17","GLOBAL_ATTRIBUTE18","GLOBAL_ATTRIBUTE19",
"GLOBAL_ATTRIBUTE20")
AS
SELECTCUST.CUST_ACCOUNT_IDCUSTOMER_ID,
substrb(PARTY.PARTY_NAME,1,50)CUSTOMER_NAME,
CUST.ACCOUNT_NUMBERCUSTOMER_NUMBER,
PARTY.CUSTOMER_KEYCUSTOMER_KEY,
CUST.STATUSSTATUS,
CUST.ORIG_SYSTEM_REFERENCEORIG_SYSTEM_REFERENCE,
'CUSTOMER'CUSTOMER_PROSPECT_CODE,
PARTY.CATEGORY_CODECUSTOMER_CATEGORY_CODE,
CUST.CUSTOMER_CLASS_CODECUSTOMER_CLASS_CODE,
CUST.CUSTOMER_TYPECUSTOMER_TYPE,
CUST.PRIMARY_SALESREP_IDPRIMARY_SALESREP_ID,
DECODE(PARTY.PARTY_TYPE,'ORGANIZATION',PARTY.SIC_CODE,NULL)
SIC_CODE,
PARTY.TAX_REFERENCETAX_REFERENCE,
CUST.TAX_CODETAX_CODE,
CUST.FOB_POINTFOB_POINT,
CUST.SHIP_VIASHIP_VIA,
DECODE(PARTY.PARTY_TYPE,'ORGANIZATION',PARTY.GSA_INDICATOR_FLAG,
'N')GSA_INDICATOR,
CUST.SHIP_PARTIALSHIP_PARTIAL,
PARTY.JGZZ_FISCAL_CODETAXPAYER_ID,
CUST.PRICE_LIST_IDPRICE_LIST_ID,
CUST.FREIGHT_TERMFREIGHT_TERM,
CUST.ORDER_TYPE_IDORDER_TYPE_ID,
CUST.SALES_CHANNEL_CODESALES_CHANNEL_CODE,
CUST.WAREHOUSE_IDWAREHOUSE_ID,
DECODE(PARTY.PARTY_TYPE,'ORGANIZATION',PARTY.MISSION_STATEMENT,
NULL)MISSION_STATEMENT,
DECODE(PARTY.PARTY_TYPE,'ORGANIZATION',PARTY.EMPLOYEES_TOTAL,
TO_NUMBER(NULL))NUM_OF_EMPLOYEES,
DECODE(PARTY.PARTY_TYPE,'ORGANIZATION',
PARTY.CURR_FY_POTENTIAL_REVENUE,TO_NUMBER(NULL))
POTENTIAL_REVENUE_CURR_FY,
DECODE(PARTY.PARTY_TYPE,'ORGANIZATION',
PARTY.NEXT_FY_POTENTIAL_REVENUE,TO_NUMBER(NULL))
POTENTIAL_REVENUE_NEXT_FY,
DECODE(PARTY.PARTY_TYPE,'ORGANIZATION',
PARTY.FISCAL_YEAREND_MONTH,NULL)FISCAL_YEAREND_MONTH,
DECODE(PARTY.PARTY_TYPE,'ORGANIZATION',PARTY.YEAR_ESTABLISHED,
http://oracleappsviews.blogspot.in/

85/256

13/05/2015

KrishnaReddyOracleAppsInfo

TO_NUMBER(NULL))YEAR_ESTABLISHED,
DECODE(PARTY.PARTY_TYPE,'ORGANIZATION',PARTY.ANALYSIS_FY,NULL)
ANALYSIS_FY,
PARTY.COMPETITOR_FLAGCOMPETITOR_FLAG,
PARTY.REFERENCE_USE_FLAGREFERENCE_USE_FLAG,
PARTY.THIRD_PARTY_FLAGTHIRD_PARTY_FLAG,
CUST.ATTRIBUTE_CATEGORYATTRIBUTE_CATEGORY,
CUST.ATTRIBUTE1ATTRIBUTE1,
CUST.ATTRIBUTE2ATTRIBUTE2,
CUST.ATTRIBUTE3ATTRIBUTE3,
CUST.ATTRIBUTE4ATTRIBUTE4,
CUST.ATTRIBUTE5ATTRIBUTE5,
CUST.ATTRIBUTE6ATTRIBUTE6,
CUST.ATTRIBUTE7ATTRIBUTE7,
CUST.ATTRIBUTE8ATTRIBUTE8,
CUST.ATTRIBUTE9ATTRIBUTE9,
CUST.ATTRIBUTE10ATTRIBUTE10,
CUST.ATTRIBUTE11ATTRIBUTE11,
CUST.ATTRIBUTE12ATTRIBUTE12,
CUST.ATTRIBUTE13ATTRIBUTE13,
CUST.ATTRIBUTE14ATTRIBUTE14,
CUST.ATTRIBUTE15ATTRIBUTE15,
CUST.LAST_UPDATED_BYLAST_UPDATED_BY,
CUST.LAST_UPDATE_DATELAST_UPDATE_DATE,
CUST.LAST_UPDATE_LOGINLAST_UPDATE_LOGIN,
CUST.CREATED_BYCREATED_BY,
CUST.CREATION_DATECREATION_DATE,
DECODE(PARTY.PARTY_TYPE,'ORGANIZATION',
PARTY.ORGANIZATION_NAME_PHONETIC,NULL)CUSTOMER_NAME_PHONETIC,
CUST.TAX_HEADER_LEVEL_FLAGTAX_HEADER_LEVEL_FLAG,
CUST.TAX_ROUNDING_RULETAX_ROUNDING_RULE,
CUST.GLOBAL_ATTRIBUTE_CATEGORYGLOBAL_ATTRIBUTE_CATEGORY,
CUST.GLOBAL_ATTRIBUTE1GLOBAL_ATTRIBUTE1,
CUST.GLOBAL_ATTRIBUTE2GLOBAL_ATTRIBUTE2,
CUST.GLOBAL_ATTRIBUTE3GLOBAL_ATTRIBUTE3,
CUST.GLOBAL_ATTRIBUTE4GLOBAL_ATTRIBUTE4,
CUST.GLOBAL_ATTRIBUTE5GLOBAL_ATTRIBUTE5,
CUST.GLOBAL_ATTRIBUTE6GLOBAL_ATTRIBUTE6,
CUST.GLOBAL_ATTRIBUTE7GLOBAL_ATTRIBUTE7,
CUST.GLOBAL_ATTRIBUTE8GLOBAL_ATTRIBUTE8,
CUST.GLOBAL_ATTRIBUTE9GLOBAL_ATTRIBUTE9,
CUST.GLOBAL_ATTRIBUTE10GLOBAL_ATTRIBUTE10,
CUST.GLOBAL_ATTRIBUTE11GLOBAL_ATTRIBUTE11,
CUST.GLOBAL_ATTRIBUTE12GLOBAL_ATTRIBUTE12,
CUST.GLOBAL_ATTRIBUTE13GLOBAL_ATTRIBUTE13,
CUST.GLOBAL_ATTRIBUTE14GLOBAL_ATTRIBUTE14,
CUST.GLOBAL_ATTRIBUTE15GLOBAL_ATTRIBUTE15,
CUST.GLOBAL_ATTRIBUTE16GLOBAL_ATTRIBUTE16,
CUST.GLOBAL_ATTRIBUTE17GLOBAL_ATTRIBUTE17,
CUST.GLOBAL_ATTRIBUTE18GLOBAL_ATTRIBUTE18,
CUST.GLOBAL_ATTRIBUTE19GLOBAL_ATTRIBUTE19,
http://oracleappsviews.blogspot.in/

86/256

13/05/2015

KrishnaReddyOracleAppsInfo

CUST.GLOBAL_ATTRIBUTE20GLOBAL_ATTRIBUTE20
FROMHZ_CUST_ACCOUNTSCUST,
HZ_PARTIESPARTY
WHEREcust.party_id=party.party_id
Posted29thAugust2012byKrishnareddy
0 Addacomment

29thAugust2012

PurchaseOrderTypes

PurchaseOrderTypes

OraclePurchasingprovidesthefollowingpurchaseordertypes:StandardPurchase
Order,PlannedPurchaseOrder,BlanketPurchaseAgreementandContractPurchase
Agreement.YoucanusetheDocumentNamefieldintheDocumentTypeswindowto
changethenamesofthesedocuments.Forexample,ifyouenterRegularPurchase
OrderintheDocumentNamefieldfortheStandardPurchaseOrdertype,yourchoicesin
theTypefieldinthePurchaseOrderswindowwillbeRegularPurchaseOrder,Planned
PurchaseOrder,BlanketPurchaseAgreementandContractPurchaseAgreement.
StandardPurchaseOrders:
Yougenerallycreatestandardpurchaseordersforonetimepurchaseofvariousitems.
Youcreatestandardpurchaseorderswhenyouknowthedetailsofthegoodsorservices
yourequire,estimatedcosts,quantities,deliveryschedules,andaccountingdistributions.
Ifyouuseencumbranceaccounting,thepurchaseordermaybeencumberedsincethe
requiredinformationisknown.
BlanketPurchaseAgreements(BPA):
Youcreateblanketpurchaseagreementswhenyouknowthedetailofthegoodsor
servicesyouplantobuyfromaspecificsupplierinaperiod,butyoudonotyetknowthe
detailofyourdeliveryschedules.Youcanuseblanketpurchaseagreementstospecify
negotiatedpricesforyouritemsbeforeactuallypurchasingthem.BPAarewidelyusedin
productmanufacturingcompanies.
Youcanissueablanketreleaseagainstablanketpurchaseagreementtoplacethe
actualorder(aslongasthereleaseiswithintheblanketagreementeffectivetydates).If
youuseencumbranceaccounting,youcanencumbereachrelease.
ContractPurchaseAgreements:
Youcreatecontractpurchaseagreementswithyoursupplierstoagreeonspecificterms
andconditionswithoutindicatingthegoodsandservicesthatyouwillbepurchasing.You
canlaterissuestandardpurchaseordersreferencingyourcontracts,andyoucan
encumberthesepurchaseordersifyouuseencumbranceaccounting.

http://oracleappsviews.blogspot.in/

87/256

13/05/2015

KrishnaReddyOracleAppsInfo

PlannedPurchaseOrder:
Youcreateaplannedpurchaseorderwhenyouwanttoestablishalongtermagreement
withasinglesourcesupplierwithacommitmenttobuygoodsorservices.Planned
purchaseordersincludetentativedeliveryschedulesandaccountingdistributions.You
thencreatescheduledreleasesagainsttheplannedpurchaseordertoactuallyorderthe
goodsorservices.

Aplannedpurchaseorderisatypeofpurchaseorderyouissuebeforeyouorderactualdeliveryofgoodsandservicesfor
specificdatesandlocations.Ascheduledreleaseisissuedagainstaplannedpurchaseordertoplacetheactualorder.
Youcanalsochangetheaccountingdistributionsoneachreleaseandthesystemwillreversetheencumbranceforthe
plannedpurchaseorderandcreateanewencumbrancefortherelease.

Posted29thAugust2012byKrishnareddy
0 Addacomment

29thAugust2012

FNDLOAD

The Generic Loader (FNDLOAD) is a concurrent program that can transfer Oracle Application
entity data between database and text file. The loader reads a configuration file to determine
which entity to access. In simple words FNDLOAD is used to transfer entity data from one
instance/database to other. For example if you want to move a concurrent
program/menu/value sets developed in DEVELOPMENT instance to PRODUCTION instance you
can use this command.
StepstoMoveaConcurrentprogramfromoneinstance(Database)toother
Defineyourconcurrentprogramandsaveitinfirstinstance(forhowtoregisteraconcurrent
programclickhere)
ConnecttoyourUNIXboxonfirstinstanceandrunthefollowingcommandtodownloadthe
.ldtfile
FNDLOADapps/appsOYDOWNLOAD$FND_TOP/patch/115/import/afcpprog.lct
file_name.ldtPROGRAMAPPLICATION_SHORT_NAME=Concurrentprogram

applicationshortnameCONCURRENT_PROGRAM_NAME=concurrent
programshortname
Movethedownloaded.ldffiletonewinstance(UseFTP)
ConnecttoyourUNIXboxonsecondinstanceandrunthefollowingcommandtouploadthe
.ldtfile
FNDLOADapps/apps0YUPLOAD$FND_TOP/patch/115/import/afcpprog.lct

file_name.ldt
Note:Makesureyouaregivingproper.lctfileinthecommandsanddontconfusewith.lctand
.ldtfiles
ThesefollowingaretheotherentitydatatypesthatwecanmovewithFNDLOAD
http://oracleappsviews.blogspot.in/

88/256

13/05/2015

KrishnaReddyOracleAppsInfo

1PrinterStyles
FNDLOADapps/appsOYDOWNLOAD$FND_TOP/patch/115/import/afcppstl.lctfile_name.ldt
STYLEPRINTER_STYLE_NAME=printerstylename
2Lookups
FNDLOADapps/appsOYDOWNLOAD$FND_TOP/patch/115/import/aflvmlu.lctfile_name.ldt
FND_LOOKUP_TYPEAPPLICATION_SHORT_NAME=FND
LOOKUP_TYPE=lookupname
3DescriptiveFlexfieldwithallofspecificContexts
FNDLOADapps/appsOYDOWNLOAD$FND_TOP/patch/115/import/afffload.lctfile_name.ldt
DESC_FLEXP_LEVEL=COL_ALL:REF_ALL:CTX_ONE:SEG_ALL
APPLICATION_SHORT_NAME=FNDDESCRIPTIVE_FLEXFIELD_NAME=descflexname
P_CONTEXT_CODE=contextname
4KeyFlexfieldStructures
FNDLOADapps/appsOYDOWNLOAD$FND_TOP/patch/115/import/afffload.lctfile_name.ldt
KEY_FLEX
P_LEVEL=COL_ALL:FQL_ALL:SQL_ALL:STR_ONE:WFP_ALL:SHA_ALL:CVR_ALL:SEG_ALL
APPLICATION_SHORT_NAME=FNDID_FLEX_CODE=keyflexcode
P_STRUCTURE_CODE=structurename
5ConcurrentPrograms
FNDLOADapps/appsOYDOWNLOAD$FND_TOP/patch/115/import/afcpprog.lctfile_name.ldt
PROGRAMAPPLICATION_SHORT_NAME=FND
CONCURRENT_PROGRAM_NAME=concurrentname
6ValueSets
FNDLOADapps/appsOYDOWNLOAD$FND_TOP/patch/115/import/afffload.lctfile_name.ldt
VALUE_SET_VALUEFLEX_VALUE_SET_NAME=valuesetname
7ValueSetswithvalues
FNDLOADapps/appsOYDOWNLOAD$FND_TOP/patch/115/import/afffload.lctfile_name.ldt
VALUE_SETFLEX_VALUE_SET_NAME=valuesetname
8ProfileOptions
FNDLOADapps/appsOYDOWNLOAD$FND_TOP/patch/115/import/afscprof.lctfile_name.ldt
PROFILEPROFILE_NAME=profileoptionAPPLICATION_SHORT_NAME=FND
9RequestGroups
FNDLOADapps/appsOYDOWNLOAD$FND_TOP/patch/115/import/afcpreqg.lctfile_name.ldt
REQUEST_GROUPREQUEST_GROUP_NAME=requestgroup
APPLICATION_SHORT_NAME=FND
10RequestSets
FNDLOADapps/appsOYDOWNLOAD$FND_TOP/patch/115/import/afcprset.lctfile_name.ldt
REQ_SET
APPLICATION_SHORT_NAME=FNDREQUEST_SET_NAME=requestset
11Responsibilities
http://oracleappsviews.blogspot.in/

89/256

13/05/2015

KrishnaReddyOracleAppsInfo

FNDLOADapps/appsOYDOWNLOAD$FND_TOP/patch/115/import/afscursp.lctfile_name.ldt
FND_RESPONSIBILITYRESP_KEY=responsibility
12Menus
FNDLOADapps/appsOYDOWNLOAD$FND_TOP/patch/115/import/afsload.lctfile_name.ldt
MENUMENU_NAME=menu_name
13FormsPersonalization
FNDLOADapps/apps0YDOWNLOAD$FND_TOP/patch/115/import/affrmcus.lctfile_name.ldt
FND_FORM_CUSTOM_RULESfunction_name=FUNCTION_NAME
Note:UPLOADcommandissameforallexceptreplacingthe.lctandpassinganyextra
parametersifyouwanttopass
FNDLOADapps/apps0YUPLOAD$FND_TOP/patch/115/import/corresponding.lct
upload_file.ldt

Posted29thAugust2012byKrishnareddy
0 Addacomment

29thAugust2012

Tracefile

Themainuseofenablingtraceforaconcurrentprogramcomesduringperformance
tuning.
Byexaminingatracefile,wecometoknowwhichquery/queriesis/aretakingthelongest
timetoexecute,therebylettingustoconcentrateontuningtheminordertoimprovethe
overallperformanceoftheprogram.
ThefollowingisanillustrationofhowtoEnableandViewatracefileforaConcurrent
Program.
Navigation:ApplicationDeveloper>Concurrent>Program
ChecktheEnableTraceCheckbox.Afterthatgotothat
particularResponsibilityandruntheConcurrentProgram.

CheckthattheConcurrentProgramhasbeencompleted
successfully.

ThetracefilebydefaultispostfixedwithoracleProcess_idwhich
helpsustoidentifywhichtracefilebelongstowhichconcurrent
http://oracleappsviews.blogspot.in/

90/256

13/05/2015

KrishnaReddyOracleAppsInfo

request.ThebelowSQLQueryreturnstheprocess_idofthe
concurrentrequest:
Selectoracle_process_idfromfnd_concurrent_requestswhererequest_id=2768335
(ThisquerydisplaysProcessId)

Thepathtothetracefilecanbefoundbyusingthebelowquery:
SELECT*FROMV$PARAMETERWHERENAME=user_dump_dest
(ThisQuerydisplaysthepathoftracefile)

TheTraceFilegeneratedwillnotbeinthereadableformat.We
havetouseTKPROFutilitytoconvertthefileintoareadable
format.

Runthebelowtkprofcommandatthecommandprompt.
TKPROF<TraceFile_Name.trc><Output_File_Name.out>SORT=fchela
Areadablefilewillbegeneratedfromtheoriginaltracefilewhichcanbefurther
analyzedtoimprovetheperformance.Thisfilehastheinformationaboutthe
parsing,executionandfetchtimesofvariousqueriesusedintheprogram.

Posted29thAugust2012byKrishnareddy
0 Addacomment

29thAugust2012

Shellscripting

Objectives:
StepstoRegisterShellScriptasaconcurrentprogram
SampleShellScripttocopythefilefromsourcetodestination
BasicShellScriptCommands
StepstoRegisterShellScriptasaconcurrentprogram
step1:
http://oracleappsviews.blogspot.in/

91/256

13/05/2015

KrishnaReddyOracleAppsInfo

=======
Placethe<name>.progscriptunderthebindirectoryforyour
applicationstopdirectory.
Forexample,callthescriptERPS_DEMO.progandplaceitunder
$CUSTOM_TOP/bin
step2:
=======
Makeasymboliclinkfromyourscriptto$FND_TOP/bin/fndcpesr
Forexample,ifthescriptiscalledERPS_DEMO.progusethis:
lns$FND_TOP/bin/fndcpesrERPS_DEMO
Thislinkshouldbenamedthesameasyourscriptwithoutthe
.progextension.
Putthelinkforyourscriptinthesamedirectorywherethe
scriptislocated.
step3:
=======
Registertheconcurrentprogram,usinganexecutionmethodof
Host.Usethenameofyourscriptwithoutthe.progextension
asthenameoftheexecutable.
Fortheexampleabove:
UseERPS_DEMO
step4:
=======
Yourscriptwillbepassedatleast4parameters,from$1to$4.

$1=orauser/pwd
$2=userid(apps)
$3=username,
$4=request_id

Anyotherparametersyoudefinewillbepassedinas$5andhigher.
Makesureyourscriptreturnsanexitstatusalso.
SampleShellScripttocopythefilefromsourcetodestination
#Note:Ifyousee#infrontofanylineitmeansthatitsacommentlinenottheactualcode
#**********************************************************************
#CreatedBy:PrudhviA
#CreationDate:19FEB2008
#ScriptName:ERPSCHOOLS.prog
#Description:ThisScriptacceptsthreeparameters
#1)DataFileName2)SourceDirectoryPath3)TargetDirectoryPath
#Thencopythefilefromsourcelocationtotargetlocation.
http://oracleappsviews.blogspot.in/

92/256

13/05/2015

KrishnaReddyOracleAppsInfo

#Ifcopyfailssendtheerrorstatus/messagetoconcurrentprogramsothatusercanseestatus.
#
#
#========
#History
#========
#Version1PrudhviA19FEB2008Createdforerpschools.comusers
#
#**********************************************************************
#Parametersfrom1to4i.e$1$2$3$4arestandardparameters
#$1:username/passwordofthedatabase
#$2:userid
#$3:USERNAME
#$4:ConcurrentRequestID
DataFileName=$5
SourceDirectory=$6
TargetDirectory=$7
echo
echoParametersreceivedfromconcurrentprogram..
echoTime:`date`
echo
echoArguments:
echoData FileName:${DataFileName}
echoSourceDirectory:${SourceDirectory}
echoTargetDirectory:${TargetDirectory}
echo
echoCopyingthefilefromsourcedirectorytotargetdirectory
cp${SourceDirectory}/${DataFileName}${TargetDirectory}
if[$?ne0]
#the$?willcontaintheresultofpreviouslyexecutedstatement.
#Itwillbe0ifsuccessand1iffailinmanycases
#nerepresentsnotequalto
then
echoEnteredException
exit1
#exit1representsconcurrentprogramstatus.1forerror,2forwarning0forsuccess
else
echoFileSuccessfullycopiedfromsourcetodestination
exit0
fi
echo****************************************************************
BasicShellScriptCommands
#CreateDirectory
mkdir<dirname>
#RemoveDirectory
rmdir<dirname>
#removefolderwithfiles
rmrf<dirname>
#ChangeDirectory
http://oracleappsviews.blogspot.in/

93/256

13/05/2015

KrishnaReddyOracleAppsInfo

cd<newpath>
#Createnewfile
vi<newfile.ext>
#insertdataintofile
vi<openfilename.ext>
esci<makechanges>
#Savefile
esc:wqenter
#exitwithoutsavingchanges
esc:q!enter
#openexistingfile
vi<existingfilename.ext>
#removefile
rm<filename.ext>
#copyfilewithsamename
cp<sourcedir>/<sourcefilename.ext><destinationdir>
#copyfilewithnewname
cp<sourcedir>/<sourcefilename.ext><destinationdir>/<newfilename.ext>
#Movefilewithsamename
mv<sourcedir>/<sourcefilename.ext><destinationdir>
#movefilewithdataappendedtofilenameinthefront
mv<sourcedir>/<sourcefilename.ext>
<destinationdir>/`date+%H%M%d%m%y`<filename.ext>
#printline
echoyourtextheretoprint
#printdate
echo`date`

Posted29thAugust2012byKrishnareddy
0 Addacomment

29thAugust2012

ReturnMaterialAuthorization(RMA)in
OrderManagement

Thefollowingtopicswillbediscussedinthisarticle:

1. OverviewofRMA
2. CreatingaNewReturn(RMAwithCredit)
3. CreatingaReturnusingtheCopyFunction(RMAwithCredit)
4. CreatingaNewReturn(RMAnoCredit)
5. CreatingaNewReturn(RMACreditOnly)
6. RMAReceipt
7. ViewingthestatusofRMA
8. CloseRMA
Prerequisites:

1. ReturnOrderCategoriesandTransactionTypeshavebeendefined.
http://oracleappsviews.blogspot.in/

94/256

13/05/2015

KrishnaReddyOracleAppsInfo

2. ItemsexistintheItemMasterwiththeattributeReturnableenabled.
3. ThoseitemsmustexistonaPriceList.
4. CustomersexistintheCustomerMaster.
5. Returnreasonshavebeendefined.
6. Discountshavebeendefined.
7.Salespersonshavebeendefined.

1.Overview
OrderManagementallowsthecustomerstoreturnthegoodstoyou.OMalsoenablesyouto
authorizethereturnofyoursalesordersaswellassalesmadebyotherdealersorsuppliers,as
longastheitemsarepartofyouritemmasterandpricelist.Youcanauthorizereturnsfor
replacementthatreturnswithorwithoutcredit.

RMAcanbecreatedintwodifferentwaysinOracle:
CreateaNewReturnwhichwillcreatetheRMAfromscratch
CopyanoriginalorderintoanorderwithanRMAOrderType
R2isupportsfourdifferentRMAOrderTypes,eachwithadifferentOrderCycle:
RMAwithCreditisusedwhenthecustomerreturnsthephysicalproductandalsoreceives
creditasaresultofthereturn.
Thistypeappliesfor:
DefectiveProduct
Customerdoesnotliketheproduct
Productdoesnotmeetthecustomersexpectations

RMAnoCreditisusedwhenthecustomerwillreturntheproductbutwillnotbereceivinga
creditasaresultofthereturn.
Thesereturnswouldbefor:
EvaluationOrders
Samples
Otherorderswherethecustomerwasnotoriginallychargedfor
theproduct.

RMACreditOnlyisusedwhenthecustomerwillreceiveacredit,butthephysicalreturnof
theproductisnotrequired.
Thesecreditsaregenerallyusedbysoftwarecompanieswhen
thecustomerdestroystheCDordiskanderasesthesoftware
fromtheirmachine,butnophysicalthingtoreturn.

RMAwithCreditandApprovalisusedinthesamemannerasanRMAwithCreditbutthis
ordercycleincludesanapprovalprocessthatrequiressomeonetoapprovetheRMAbeforeit
http://oracleappsviews.blogspot.in/

95/256

13/05/2015

KrishnaReddyOracleAppsInfo

isbooked.Inorderforanorder/returnororder/returnlineapprovalworkflowtoworkcorrectly
theprofileoptionOM:NotificationApprovermusthaveavalue.

2.CreatingaNewReturn(RMAwithCredit)
Select:

OrderManagementresponsibility

Navigateto:

Orders,Returns>OrderOrganizeror
Orders,Returns>SalesOrders

Select:

NewOrderbuttonifusingtheOrderOrganizer

Customer:

EnterCustomerName(CustomerNumberwilldefaultin).

CustomerNumber:

Alternatively,enterCustomerNumberandtheCustomerNamewill
defaultin.

OrderType:

RMAOrderwithCredit

CustomerPO:

Enter a Customer PO number if the order type you selected


requiresit.

DateOrdered:

The Current Date will default in as the Order Date. You may
changethisdateoracceptthecurrentdate.

CustomerContact:

EnteraCustomercontact(optional).

OrderNumber:

Oracle will assign the RMA number as soon as the information is


savedifautomaticnumberingisenabled.

PriceList:

Selectapricelistfromthelistofvalues

ShipTo:

Enter the customers shipto address from the list of values or


acceptthedefault.(NotrequiredforReturns)

Salesperson:

EntertheSalesperson

Status:

The initial entry status for an RMA is Entered. After Booking the
RMAstatuswillchangedtoBooked.

Currency:

Select the currency for the RMA from the list of values or accept
thedefault.

BillTo:

Enterthecustomersbilltoaddressfromthelistofvaluesoraccept
thedefault.

OrderInformationOthers

PaymentTerms:

PaymentTermsareuserdefinableandmustbesetupinadvance.
(Setup>Orders>PaymentTerms).Selectfromthelistofvaluesor
acceptthedefault.(NotrequiredforReturns)
SalesChannelsareuserdefinableandmustbesetupinadvance

http://oracleappsviews.blogspot.in/

96/256

13/05/2015

KrishnaReddyOracleAppsInfo

SalesChannel:

(OrderManagementQuickCodes).SelectaSalesChannelfromthe
listofvaluesoracceptthedefault.

Warehouse:

SelectaWarehouse(inventoryorganization)fromwhichReturns
willbereceived.

ShippingMethod:

NotusedforReturns

LineSet:

NotusedforReturns

FreightTerms:
FOB:

Defaults(Inorder,fromShipTo,BillTo,Customer,OrderType,or
PriceList)

ShipmentPriority:

DefaultsfromOrderType

ShippingInstruct:

Shippinginstructionsareprintedonthepickslip.Sincethisisa
returndonotusethisfield.

PackingInstructions:

Packinginstructionsareprintedonthepackslip.Sincethisisa
returndonotusethisfield.
Selectfromthefollowing:
ExemptIndicatesthatthisorderisexemptforanormally
taxablecustomersiteand/oritem.Ifyouselectexempt
youmustenterareasonforexemption.
RequireIndicatesthatthisorderistaxableforanormallynon

TaxHandling:

taxablecustomerand/oritem.
StandardIndicatesthattaxationshouldbebasedonexisting
exemptionrules.Ifthecustomerhasataxexemption
defined,OrderManagementdisplaysanycertificate
numberandreasonfortheexemptioninthe
correspondingfields.
IfyouchooseExemptintheTaxHandlingfieldthenselectan
existingcertificatenumberfortheshiptocustomer,orenteranew,
unapprovedexemptioncertificatenumber.

TaxExemptNumber:

IfyouchoseStandardintheTaxHandlingfield,anexisting
exemptionrulemaydisplayacertificatenumberinthisfield.

Unapprovedexemptioncertificatenumberscanbeapprovedusing
theTaxExemptionswindow.
IfyouchoseExemptintheTaxHandlingfieldthenselectan
exemptionreason.

ExemptReason:
http://oracleappsviews.blogspot.in/

IfyouchoseStandardintheTaxHandlingfield,anexisting
exemptionrulemaydisplayanexemptionreasoninthisfield.
97/256

13/05/2015

KrishnaReddyOracleAppsInfo

YoucandefinetaxexemptionreasonsusingtheReceivables
Quickcodeswindow.
PaymentType:
Amount:

Optionalunlessthepaymenttypeselectedrequiresit.

CheckNumber:

Optionalunlessthepaymenttypeselectedrequiresit.

CreditCardType:

Optionalunlessthepaymenttypeselectedrequiresit.

CreditCardNum:

Optionalunlessthepaymenttypeselectedrequiresit.

CardHolder:

Optionalunlessthepaymenttypeselectedrequiresit.

CardExpirationDate:

Optionalunlessthepaymenttypeselectedrequiresit.

ApprovalCode:

Optionalunlessthepaymenttypeselectedrequiresit.

OrderSource:

IftheRMAiscopiedfromanexistingorder/returnCopywillappear
inthisfield.

OrderSourceRule:

IftheRMAiscopiedfromanexistingorder/returntheoriginal
order/returnnumberwillappearinthisfield.

LineItemsTabReturns

Line:

Thisfieldwillautomaticallybepopulated.

OrderedItem:

EntertheOrderedItemfromthelistofvalues.

Qty:

Enterthequantitytobereturned.

ReturnReason:

Selectadefinedreasonfromthelistofvalues.

LineType:

Select a line type. A line type may default depending on the


transactiontypesetup. Select a line type from the list of values if
youwishtochangethedefaultedvalue.

Reference:

SelecttheappropriateReferenceType.UsetheReferenceTypeif
you want to refer to a specific Invoice, Purchase Order, or Sales
Order. These references must be for transactions originally placed
inOracle.Youhavetheoptionofleavingthemblank,inwhichcase
thecustomerscreditwillbeplacedOnAccountwhenitinterfaces
toAccountsReceivable.OnAccountcreditmemosmaybeapplied
toinvoicesatafuturetime.

Order:

IfreferencingaSalesOrderthenentertheSalesOrdernumber.

Line:

If referencing a Sales Order enter the appropriate line number from


theSalesOrderreferenced.
Note:IfcreatingtheRMAusingthecopyfunctiontheinformationin
thecopiedSalesOrderwillautomaticallypopulateinthisfield.
IfyouenterSalesOrderorInvoiceintheReferencefield,thenyou
have the option of selecting a specific invoice in the Invoice field.

http://oracleappsviews.blogspot.in/

98/256

13/05/2015

KrishnaReddyOracleAppsInfo

Invoice:

InvoiceLine:

This would allow for a Credit Memo to be created and directly


applied to this invoice. Leaving this field blank will yield an On
AccountcreditmemoinReceivables.
IfreferencinganInvoice,entertheappropriatelinenumberfromthe
Invoicereferenced.

CreditInvoice:
ItemRevision:

LineItemsTabMain

UOM:

TheUOMwilldefaultinbasedontheitemselectedtobereturned.

UnitSellingPrice:

Theprice defaults in from the invoice, purchase order, sales order,


orinvoiceifselectedinthereferencefield,otherwise,itwilldefault
fromthepricelistselectedontheReturn.

3.CreatingaReturnusingtheCopyFunction(RMAwithCredit)

Select:

OrderManagementresponsibility

Navigateto:

Orders,Returns>OrderOrganizer

Query:

Queryanexistingorderorreturntocopyfrom.

Select:

ActionsbuttonintheOrderOrganizerwindow

Select:

Copy

QuickCopyTab:

Select:

CreateNewOrder

ChangeOrderTypeTo:

SelectRMAOrderwithCredit

NewOrderNumber:

EnteranewRMAnumberforRMAordertypesthatrequiremanual
numbering.

CopyHeaderTab
http://oracleappsviews.blogspot.in/

99/256

13/05/2015

KrishnaReddyOracleAppsInfo

Toexcludechildentities(lines,salescredits,notes,descriptiveflex,andholds)ortoreprice,
navigatetotheCopyHeader,CopyLine,andPricingOptionstabsanddeselectoptionsas
desired.

Note:

TheOM:CreditCardPrivilegesprofileoptiondetermineswhether
youareabletocopycustomercreditcardinformation.

CopyLinesTab

ChangeLineTypeTo:

SelectRMALinewithCredit

ReturnReasonCode:

Selectareturnreasonfromthelistofvalues.

IncludeLines:

Includesthelinesfromtheoriginalorder/return.

IncludeDescriptiveFlex:

Includesthedescriptiveflexfieldvaluesfromtheoriginal
order/return.

IncludeAttachments:

Includestheattachmentsfromtheoriginalorder/return.

IncludeFullyCancelled
Lines:

Determinewhethertoinclude/excludefullycancelledlineswhen
usingthecopyfeature.Iffullycancelledlinesareincluded,thelines
arecopiedoverwiththeoriginalorderedquantity.

AcommonuseoftheCopyfunctionisinthecasewhereacustomerwantstoreturnallorpartof
aprevioussalesorder.YoumayusetheCopyfunctiontocreatethereturnbaseddirectlyonthe
informationcontainedintheoriginalsalesorder.

AnotheradvantageofusingtheCopyfunctiontocreateyourRMAsisinthecasewherethe
customerwillbereceivingacreditforthereturn,Oraclecanusetheoriginalsalesordernumberto
identifytheoriginalinvoiceinAccountsReceivable,andapplythecreditdirectlyagainstthe
originalinvoice.

Whencreatingreturnsforconfigurations,copythemodelline.Selectthespecificorderlinesand
copythemasreturnlinestoreturnindividualcomponentsofaPTOconfiguration.

PricingTab

http://oracleappsviews.blogspot.in/

100/256

13/05/2015

KrishnaReddyOracleAppsInfo

AtOriginalSellingPrice:

Selectthisoptionifyouwantthereturntocontaintheoriginalselling
priceintheoriginatingorderorreturn.Retainingtheoriginalpricing
willretainalldiscountsandchargesandtheCalculatePriceFlagis
settoPartialforreturnlines.

Repriceasofthisdate:

Ifyouchoosetoreprice,specifythepricingdate.Manualdiscounts
andchargesareremovedandautomaticdiscountsandchargesare
recalculated.

Select:

OKbutton.Thiswillperformthecopyandclosethewindow.

Ifanyvalidationerrorsoccur,message(s)intheMessageswindowaredisplayedandindicates
thatanorderwassuccessfullycreated.

Select:

Continuebutton.ThenewlycopiedorderisavailablethroughOrder
Organizer.

ToupdateandbooktheRMA,selecttheRMAfromTodaysOrdersintheOrderOrganizer
window.

Select:

Openbutton.

TheoriginalsalesorderfromwhichthisRMAwascreatedisidentifiedbothattheheader
level(intheOrderSourcefieldoftheOtherstab)andatthelinelevel(intheOrderSource
fieldoftheMaintab).

YouhavetheoptiontomanuallymakechangestothisRMAbeforebookingit.Forexample,the
customermayonlywanttoreturnpartofonelineornotreturnanotherlineatall.
http://oracleappsviews.blogspot.in/

101/256

13/05/2015

KrishnaReddyOracleAppsInfo

YoumayoptionallyupdatetheReceiveFromandCreditToAddressesusingtheAddressesTab
intheLineItemsTab.

UndertheActionsbutton,thereareseveralotheroptions:
Promotions/PricingAttributesYoumayoptionallyapplyDiscountstoeachlinesatthis
time(assumingthatDiscountshavebeendefinedandyouhavetheappropriate
discountingprivileges).ADiscountwilldecreasetheamountofthecreditthecustomer
willreceive.
ReturnLot/SerialNumbersYoucanenterlotandserialnumbersforthereturn.

SalesCreditsIftheSalesCreditsbuttonwascheckedinpreparingtheCopythenSales
Creditsforthereturnwillbederivedfromtheoriginalorder.YoumaychangetheSales
Creditsforthereturnifyouwishbyusingthisoption.

Tobooktheorder,selecttheBookOrderbutton.

4.CreatingaNewReturn(RMAnoCredit)
Select:

OrderManagementresponsibility

Navigateto:

Orders,Returns>OrderOrganizeror
Orders,Returns>SalesOrders

Select:

NewOrderbuttonifusingtheOrderOrganizer

TheprocessforcreatinganRMAnoCreditisidenticaltocreatinganRMAwithCredit.Youhave
theoptiontocreatetheRMAusingtheNewReturnoptionortheCopyoption.Theonlydifference
betweenthetwoprocessesisthattheInvoiceInterfacedoesnotexistintheworkflowforan
OrderTypeofRMAnoCredit.Asaresult,nocreditmemowillbecreatedforthisRMA.

Note:

Oracledoesnotprovideaseededworkflowprocesstohandle
RMAswithReceiptnoCredittherefore,theR2icontrolenvironment
providesacustomprocesstofulfillthisneed.Forfurtherinformation
onthiscustomprocessrefertoOMTransactionTypesSetupand
R2iOMOrderLineWorkflowPackage.

5.CreatingaNewReturn(RMACreditOnly)

http://oracleappsviews.blogspot.in/

102/256

13/05/2015

KrishnaReddyOracleAppsInfo

Select:

OrderManagementresponsibility

Navigateto:

Orders,Returns>OrderOrganizeror
Orders,Returns>SalesOrders

Select:

NewOrderbuttonifusingtheOrderOrganizer

TheprocessforcreatinganRMACreditOnlyisidenticaltocreatinganRMAwithCredit.You
havetheoptiontocreatetheRMAusingtheNewReturnoptionortheCopyoption.Theonly
differencebetweenthetwoprocessesisthattheFulfillmentactivitydoesnotexistintheworkflow
foranOrderTypeofRMAnoCredit.Asaresult,nophysicalreturnofproductisrequired.

6.RMAReceipt
Select:

PurchasingSuperUserR2iresponsibility

Navigateto:

Receiving>Receipts

Select:

TheInventoryOrganizationfortheReceipt(notGlobal).

Select:

OKbutton.

Select:

TheCustomertabintheFindExpectedReceiptswindow.

RMANum:

OptionallyenteraspecificRMAnumber.

LineNum:

OptionallyenteraspecificlinenumberonaspecificRMA.
Note: Can only enter a line number if you have enter a number in
theRMANumfield.

LineType:

This field will populate automatically if you enter a value in RMA


Num.Ifyou do not enter a value in RMA Num you can optionally
selectalinetype.

Customer:

Optionally select a customer from the LOV. If you enter a value in


RMANum,thisfieldwillpopulateautomatically.

CustomerNum:

Optionally select a customer number from the LOV. If you enter a


valueinRMANum,thisfieldwillpopulateautomatically.

CustomerItemNum:

OptionallyselectacustomeritemnumberfromtheLOV.

YoucanfurthersearchforexpectedreceiptsusingtheItem,DateRanges,andShipments
tabs.
Select:

Findbutton.

AllthereceiptlinesthatmeetthesearchcriteriaaredisplayedintheReceivingTransactionform.

http://oracleappsviews.blogspot.in/

103/256

13/05/2015

KrishnaReddyOracleAppsInfo

OnlylineswithaDestinationTypeofInventorycanbedeliveredtoInventory.

Select:

Checkboxnexttoreceiptlinetobedeliveredtoinventory.

Quantity:

EntertheQuantitytobedelivered.

Subinventory:

Enterthesubinventorywheretheitemswillbedeliveredto.

Save.Oncethetransactionissavedareceiptnumberisassigned.

FormoreinformationonReceivingTransactionsinPurchasingrefertorelatedR2iPurchasing
Trainingdocumentation.

7.ViewingtheStatusofanRMA
TheSalesOrderswindowdisplaystheRMAheaderstatusintheMaintaboftheOrder
Informationtabbedregion.TheRMAlinestatusisdisplayedintheMaintaboftheLineItems
tabbedregion.

TheWorkflowStatusoptionontheSalesOrderwindowToolsmenulaunchestheworkflowstatus
page.ThewindowshowsalltheactivitiesanRMAheaderorlinehascompletedandthe
correspondingresultsintabularformat.

Note:

InordertoviewworkflowstatusfromtheOrderOrganizerthemenu
attachedtotheresponsibilityinusemusthavetwofunctions
assignedtoit:MonitorActivitiesListandWorkflowStatus.Formore
informationseetheappropriateAOLdocumentation.

8.ClosetheRMA
ClosingRMAsthatarecompleteenhancesperformance,sincemanyprograms,windowsand
reportqueriesretrieveopenRMAsonly.

AnRMAlineisclosedautomaticallyonceithascompleteditscorrespondingworkflow
successfully.AnRMAheaderisclosedattheendofthemonthonceallthelineshavebeen
closed.
http://oracleappsviews.blogspot.in/

104/256

13/05/2015

KrishnaReddyOracleAppsInfo

Posted29thAugust2012byKrishnareddy
0 Addacomment

29thAugust2012 DropShipCycleinOrderManagement
ThebelowarethestepsinvolvedintheDropShipCycle:
Beforeyoucreateanorder,youhavetoperformsomesetupsinordertodropship,
whicharelistedinthebelowmentionedarticleDropShipSetups:
Drop Ship Setups[http://www.erpschools.com/Apps/oracleapplications/articles/Manufacturing/Order
Management/DropShipSetups/index.aspx]
====================SETUPSOFDROPSHIPMENT=================

Tocreateadropshipordertheitemshouldbesetupasbelow.
Navigation:Inventory>>Items>>OrganizationItems

Selecttheorganization.ClickOK.
OK.
EnterItemNumberclickFindbutton

Main:
ItemStatusshouldbeactive.

Inventory

Purchasing

Receiving
http://oracleappsviews.blogspot.in/

105/256

13/05/2015

KrishnaReddyOracleAppsInfo

GeneralPlanning

OrderManagement

=====================ENDOFSETUPSOFDROP
SHIPMENT===========================

1.CreateSaleOrder
2.BookSalesOrder
3.CheckStatus
4.ProgressSalesOrder
5.CheckStatus
6.ReleasePurchaseOrder
7.ImportRequisition/PurchaseOrder
8.Linkbetweensalesorderandpurchaseorder
9.Receivethematerialagainstpurchaseorder
10.CheckOrderstatus.
CreateSaleOrder
Navigation:OrderManagementSuperUser>>OrderOrganizer

ClickonNewOrder

EnterOrderHeaderInformation

http://oracleappsviews.blogspot.in/

106/256

13/05/2015

KrishnaReddyOracleAppsInfo

ClickonLineItemstab

ClicktheShippingtabandenterItemNumber,QuantityandReceiving
Organization

ClickBookOrderbutton.

Iforderisbookedsuccessfullythenaconfirmationmessagewillbedisplayedas
showninthebelowpicture.

ClickonActionsButtonunderLineItemstab

SelectAdditionalLineInformationfromtheListofvaluesandclickOK

SelectDropShiptab.
Atthisstagewedonothaveanypurchaseorderscreatedrelatedtothisdropship
order.

ClosetheAdditionalLineInformationform.
MakeanotethatthelinestatusisBookedatthisstage.

Letsseetheworkflowstatus.
ClickonTools>>workflowstatus

CurrentactivitywillbePurchaseReleaseEligiblewithastatusofNotified.
http://oracleappsviews.blogspot.in/

107/256

13/05/2015

KrishnaReddyOracleAppsInfo

Closetheworkflowstatuspage.
GobacktoLineItemsandselecttheline.RightclickonitandselectProgress
Orderoptionasshownbelow.

SelectPurchaseReleaseEligibleoptionfromListofEligibleActivities.

ClickOK.
TheLineStatuschangesfromBookedtoAwaitingReceipt.

ClickonActionsbutton
SelectAdditionalLineInformation.

MakeanotethatwestilldonothavePurchaseOrdercreatedforthisdropship
order.

Closetheorderform.
Navigation:OrderManagementSuperUser>>PurchaseRelease

AConcurrentrequestsubmitscreenwillpopup.
ClickonParametersandenterthesalesordernumberthatwecreatedabove.By
doingthisconcurrentrequestwilljustprocessthisparticularorderinsteadof
releasingallpendingdropshiporderrequests.

http://oracleappsviews.blogspot.in/

108/256

13/05/2015

KrishnaReddyOracleAppsInfo

ClickSubmit

Closeallopenforms.
Navigation:PurchasingSuperUser>>Reports>>Run

SelectRequisitionImportprogramandclickonparameterstextbox.
Enterparametersasfollows
ImportSource:ORDERENTRY
ImportBatchID:Leaveitblank
GroupBy:Item+
LastRequisitionNumber:Leaveitblank
MultipleDistributions:No
InitiateApprovalafterReqImport:Yes

ClickOK.
WaituntiltwoconcurrentrequestsRequisitionImportandCreateReleasesare
completed.

NowgobackOrderManagementSuperuserresponsibility
ClickonOrderOrganizerandenterthesalesordernumber.
Clickfindtoopenthesalesorder.
SelectLineItems>>Actions>>AdditionalInformation.
Atthisstageapurchaseorderiscreatedrelatedtothissalesorder.
PurchaseorderisinApprovedstatusbecauseweinitiatedtheapprovalprocessby
settingtheparameterInitiateApprovalProcessafterReqImporttoyesinthe
aboveconcurrentrequest.
http://oracleappsviews.blogspot.in/

109/256

13/05/2015

KrishnaReddyOracleAppsInfo

IfyouhaveEDI/ecommercegatewaysetuptodropthepurchaseorder
informationtosupplier,itshouldtriggernow.
NowSupplierhasthepurchaseorderinformation.
Suppliershipsthepartstocustomerandwillsendusbacktheconfirmation.
Oncetheconfirmationisreceivedweneedtocreateareceipt.
Navigation:Inventory>>Transactions>>Receiving>>Receipts.

SelecttheReceivingOrganizationthatisselectedonshippingtaboflineitemsform.
Clickthepurchaseordernumberwhichisfoundontheadditionallineinformation
formorthesalesorderthatiscreated.
Clickfind.

TheReceiptformshouldopenwiththeiteminformationasshownbelow.
CheckmarktheLeftcheckboxandiftheitemisLotorSerialcontrolledthenclick
onLotSerialbutton.

Enterthelotnumber.Inmycasetheitembeingusedislotcontrolled.
Clickdone.

Saveandclosetheform.
GobacktoOrderManagementandcheckthelinestatusontheorderform.

Nowthelineisshipped.Toclosethelineruntheworkflowbackgroundprocess
concurrentprogram.

http://oracleappsviews.blogspot.in/

110/256

13/05/2015

KrishnaReddyOracleAppsInfo

Oncetheworkflowbackgroundprocesscompletedthelinestatusshouldchange
fromshippedtoclosed.

Posted29thAugust2012byKrishnareddy
0 Addacomment

29thAugust2012 Displayandchangeimagesdynamically
inXMLpublisher
DisplayandchangeimagesdynamicallyinXMLpublisher:
ThisarticlediscussesabouthowtodisplayimagesdynamicallyusingXMLPublisher.
COMPANYNAME
ADDRESS
REPORTTITLE
CF_PRINTED
1.

2.

CustomerNo..
Number

3.

Customer
Name
Name

Address

TaxCategory

Address

TaxCategory

Note:WehavetoplaceDummyImagesontemplatelikeinabovetemplate.
1)InthisoptionweplacedimagepathDirectlylikeasfollows
ByrightclickingonDummyimageselectSIZEoption(office2007)andclickonAlttext
Buttonthefollowingscreenwilldisplay.

2)InthisoptionwegettheimagefilenameinCF.

a)ByrightclickonDummyimageselectSIZEoption(office2007)andclickonAlttextButton
thefollowingscreenwilldisplay

3)InthisoptionwegettheImageFilepathFromCF.

b)ByrightclickonDummyimageselectSIZEoption(office2007)andclickonAlttextButton
thefollowingscreenwilldisplay

OUTPUT:

http://oracleappsviews.blogspot.in/

111/256

13/05/2015

KrishnaReddyOracleAppsInfo

Posted29thAugust2012byKrishnareddy
0 Addacomment

29thAugust2012

Dataloader

Introduction:
DataloaderisanutilitywhereyoucanloaddataintodifferentFormBasedsystemsespecially
OracleAPPS.Thissimpleutilityworksbyrecordingkeystrokesthatarenecessaryforloading
datafromfrontend.
Softwarebedownloadedfreefrom
http://www.dataload.net/downloads/download.php
Advantages:
Easytolearnanduse
Cansavetimeforrepetitiveprocesses
CanbecopiedfromExcel
Canbeanoptiontodataeditsandcomplexinterfacesifthedataaresimple
Disadvantages:
Cannottrackmousemovements.
Cannotperforminteractivesessionstomuchextent.
Donotgenerateasuccessfailurelogs.
ListOfCommands:
Application
DataLoadCommand
http://oracleappsviews.blogspot.in/

[http://erpschools.com/Data_Load_Tutorial_Oracle_Apps.asp] Action(s)
112/256

13/05/2015

KrishnaReddyOracleAppsInfo

TAB

<Tab>

ENT

<Enter>

*UP

<UpArrow>

*DN

<DownArrow>

*LT

<LeftArrow>

*RT

<RightArrow>

*SP

Save&Proceed

*FE

FieldEditor

*PB

PreviousBlock

*NB

NextBlock

*PF

PreviousField

*NF

NextField

*PR

PreviousRecord

*NR

NextRecord

*ER

EraseRecord

*DR

DeleteRecord

*FR

FirstRecord

*LR

LastRecord

*SAVE

SaveRecord

*SB

Sendasinglespacecharacter

*ST

Selectentirefieldtext.

*SLNor*SL(N)

PauseforNseconds.Note1

*BM

BlockMenu

*AX

Alt+XwhereXisasingleletter(AZ).Note2

*FI

Find+

*FA

FindAll+

*QE

QueryEnter+

*QR

QueryRun+

*CL

ClearField+

*IR

Insertrecord+

*CW(window)

Changetowindowwindow.+

*ML(coordinates)

Positionthemouseatcoordinatesandpresstheleftbutton.++

*MR(coordinates)

Positionthemouseatcoordinatesandpresstherightbutton.++

\^{f4}

Closingawindow

*CW(window)

MakewindowthenewtargetwindowforDataLoad.

*SLNor*SL(N)

SleepforNseconds.

*ML(coordinates)

Positionthemouseatcoordinatesandpresstheleftbutton.

*MR(coordinates)

Positionthemouseatcoordinatesandpresstherightbutton.

*DL(coordinates)

Positionthemouseatcoordinatesanddoubleclicktheleftbutton.

PROMPT(message)

Prompttheuserwithmessageandwaitforaresponse

BACKSPACE

{BACKSPACE}

DELETE

{DELETE}

UPARROW

{UP}

DOWNARROW

{DOWN}

http://oracleappsviews.blogspot.in/

113/256

13/05/2015

KrishnaReddyOracleAppsInfo

LEFTARROW

{LEFT}

RIGHTARROW

{RIGHT}

END

{END}

ENTER

{ENTER}

TAB

{TAB}

ESC

{ESC}

HOME

{HOME}

PAGEDOWN

{PGDN}

PAGEUP

{PGUP}

INSERT

{INSERT}

ToggleNumlock1

{NUMLOCK}

PrntScrn2

{PRNTSCRN}

F1

{F1}

F2

{F2}

F3

{F3}

F4

{F4}

F5

{F5}

F6

{F6}

F7

{F7}

F8

{F8}

F9

{F9}

F10

{F10}

F11

{F11}

F12

{F12}

F13

{F13}

F14

{F14}

F15

{F15}

F16

{F16}

Note1DataLoadcansendkeystrokestoapplicationsfasterthantheycanbeprocessed.Ifthis
problemisencountered,delayscanbeaddedtotheloadwhichwillpauseDataLoadatkey
times.The*SLNcommandcanbeaddedtothespreadsheettoindicateDataLoadshouldsleep
foragivennumberofseconds.E.g.*SL5willcauseadelayinprocessingfor5seconds.
Decimalnumberscanbeusedformoreprecisedelays,E.g.*SL0.5willresultinahalfsecond
delay.AlargenumberofpredefineddelaysareavailableinDataLoadandthese,alongwith*SL,
aredescribedingreaterdetailinUsingdelays.Toreducesetupwork,predefineddelaysshould
beusedinsteadof*SLwhereverpossible.Note2InOracle Applicationsitissometimes
necessarytopressabuttontonavigatetoanotherblock.Thiscanbeachievedbypressing
<AltX>,whereXistheletterthatisunderlinedonthebutton.Anymenuitemcanalsobe
invokedbypressing<Alt>+theletterunderlinedonthemenu.
TouseanycombinationoftheShift,Control,AltandrightAltkeysoneofthefollowingcodes
shouldbeused.Ifyouwanttosendthe+,^,%or&keysthesecharacterstestmustbe
enclosedinbraces{}.
Key

Code

SHIFT

http://oracleappsviews.blogspot.in/

114/256

13/05/2015

KrishnaReddyOracleAppsInfo

CTRL

ALT

RightAlt

&

CaseStudy:
GrantingApplicationDeveloperresponsibilityto3users.

Process:

1. ThefollowingexamplewouldshowhowtoassignApplicationDeveloperresponsibilitytothe
usersUSER1,USER2andUSER3

2. Trytorecordtheprocessofassigningtheresponsibilitytoanuserthroughkeystrokesonly.
3. RecordtheKeystrokesintermsofDataLoadcommands.
4. NotethemsequentiallytocreatetheDataloadfile(.dlt)asshowninthescreenshotbelow.

5.ExecutetheDataLoadbeingchoosingtherightwindowandcommandgroup

6.Beabsolutelysurenootherwindowbecomesactiveduringtheprocessofdataloading.
Aftercompletionofdataloadthewindowshowsthefinalstatus.

Thesampledata fileisalsoattachedalongwith.
Clickheretodownload

Posted29thAugust2012byKrishnareddy
0 Addacomment

29thAugust2012

TechnicalTermsofOracleAPPS

Story
ThebelowexampleexplainsafewoftheimportanttermsandconceptsusedintheOracleE
BusinessSuite.Thiswouldbeagoodstartingpointforthebeginnerstobetterunderstandthe
conceptsbehindOracleApplications.
SayHarryistheownerofawholesalefruitshop.Hebuysvariousfruitslikeapples,oranges,
mangosandgrapesetcfromfarmersdirectlyandsellsthemtoretailshopownersandalsotothe
directcustomers.
http://oracleappsviews.blogspot.in/

115/256

13/05/2015

KrishnaReddyOracleAppsInfo

ThefarmersarereferredtoasVENDORS/SUPPLIERSinOracleApplications.Harry
keepstrackofallhisvendorsinformationlikeaddresses,bank accountandtheamountheowes
tothemforthefruitsthatheboughtetc,inabooknamedPAYABLES.
HarrygetsanorderfromaretailshopownerofFruitMart,forashipmentof11bagsofapples,25
bagsoforangesand32kgsofgrapes.InOracleApps,bagsandkgsarereferredtoasUOM(unit
ofmeasure),FruitMartiscalledCUSTOMERandtheorderisreferredtoasSALESORDER.
Harrymaintainsabookcalled
ORDER MANAGEMENTwherehewritesdownallthedetailsoftheSALESORDERSthathegets
fromhiscustomers.
SaythefruitshavebeenshippedtothecustomerFruitMart.Harrynowsendshimthedetailslike
costofeachbag/fruit,thetotalamountthatthecustomerhastopayetconapieceofpaperwhich
iscalledINVOICE/TRANSACTION.OncetheINVOICEhasbeensentover,thecustomerthen
validatesthisagainsttheactualquantityoffruitsthathereceivedandwillprocessthepayments
accordingly.Theinvoiceamountcouldbepaidasasingleamountorcouldbepaidininstallments.
Harryscustomer,FruitMartpayshimininstallments(partialpayments).SoHarryhastomakea
noteofthedetailslikedatereceived,amountreceived,amountremaining,amountreceivedfor
whatgoods/shipments/invoiceetc,whenHarryreceivesthepayments.Thisdetailiscalled
RECEIPT,whichwillbecomparedtotheinvoicebyHarrytofindhowmuchFruitMarthaspaidto
himandhowmuchhastobepaidyet.Thisinformationismaintainedinabooknamed
RECEIVABLEStokeeptrackofallthecustomers,theiraddresses(toshiptheitems),whatand
howmuchhehasshippedtohiscustomersandtheamounthiscustomersowehimetc.
Harrysfruitbusinesshasbeguntoimproveandhasattractedmoreandmorecustomers.Asa
result,Harrydecidedtobuyacoldstorageunitwherehecouldstockmorefruits.InApps,this
coldstorageunitisknownasWAREHOUSEandallthefruitsarereferredtoasINVENTORY.
Duetoincreaseincustomers,Harryneedstohiremorepeopletohelphimoutinhisbusiness
withoutanyhiccups.TheseworkersarecalledEMPLOYEES.Attheendofeverymonth,Harry
paysthesalaryforallhisemployeesthroughChecks.ThesechecksarenothingbutPAYROLLin
Apps.
Attheendofeverymonth,Harrypreparesabalance sheetinabookcalledGENERALLEDGER
todeterminehowmuchprofit/losshegotandkeepstrackofthemoneygoingoutandgoingin.
Asthebusinessgrows,itbecomesimpossibletorecordeverythingonapaper.Tomake
everybodyslifeeasier,wehaveverygoodtoolsinthemarket,whichhelpthebusinessmento
keeptrackofeverything.OnesuchtoolisOracleEBusinessSuite.
OracleApplicationsisnotasingleapplication,butisacollectionofintegratedapplications.Each
applicationisreferredtoasamoduleandhasitownfunctionalitytryingtoserveabusiness
purpose.
FewofthemodulesarePurchasing,AccountsPayables,AccountsReceivables,Inventory,Order
Management,HumanResources,GeneralLedger,FixedAssetsetc.
Hereisahighlevelbusinessuseofvariousmodules:
OraclePurchasinghandlesalltherequisitionsandpurchaseorderstothevendors.
http://oracleappsviews.blogspot.in/

116/256

13/05/2015

KrishnaReddyOracleAppsInfo

OracleAccountsPayableshandlesallthepaymentstothevendors.
OracleInventory
dealswiththeitemsyoumaintaininstock,warehouseetc.
OrderManagementhelpsyoucollectalltheinformationthatyourcustomersorder.
OracleReceivableshelpyoucollectthemoneyfortheordersthataredeliveredtothecustomers.
OracleHumanResourceshelpsmaintaintheEmployeeinformation,helpsrunpaychecksetc.
OracleGeneralLedgerreceivesinformationfromallthedifferenttransactionmodulesorsub
ledgersandsummarizestheminordertohelpyoucreateprofitandlossstatements,reportsfor
payingTaxesetc.ForExample:whenyoupayyouremployeesthatpaymentisreportedbackto
GeneralLedgersascosti.emoneygoingout,whenyoupurchaseinventoryitemsandthe
informationistransferredtoGLasmoneygoingout,andsoisthecasewhenyoupayyour
vendors.Similarlywhenyoureceiveitemsintoyourinventory,itistransferredtoGLasmoney
comingin,whenyourcustomersendspayment,itistransferredtoGLasmoneycomingin.Soall
thedifferenttransactionmodulesreporttoGL(GeneralLedger)aseithermoneygoinginor
moneygoingout,thenetresultwilltellyouifyouaremakingaprofitorloss.
Alltheequipment,shops,warehouses,computerscanbetermedasASSETSandtheyare
managedbyOracleFixedAssets.
ThereisalotmoreinOracleapplications.Thisistheverybasicexplanationjusttogiveanideaof
theflowinERPforthebeginners.

TerminologyoftenusedinOracleApplications:

1. Invoice
2. Receipt
3. Customer
4. Vendor
5. Buyer
6. Supplier
7. PurchaseOrder
8. Requisition
9. ACH:AccountClearanceHouse
10. SalesOrder
11. PackSlip
12. PickSlip
13. DropShip
14. BackOrder
15. ASN:AdvanceShippingNotice
16. ASBN:AdvanceShippingBillingNotice
17. ATP:AvailabletoPromise
18. Lot/SerialNumber
http://oracleappsviews.blogspot.in/

117/256

13/05/2015

KrishnaReddyOracleAppsInfo

19. DFF:DescriptiveFlexFields
20. KFF:KeyFlexFields
21. ValueSets
22. Organization
23. BusinessUnit
24. MultiOrg
25. Folders
26. WHOColumns
27. OracleReports
28. OracleForm
29. WorkflowBuilder
30. Toad
31. SQLDeveloper
32. SQLNavigator
33. DiscovererReports
34. XML/BIPublisher
35. ADI:ApplicationDesktopIntegrator
36. Winscp
37. Putty

Posted29thAugust2012byKrishnareddy
0 Addacomment

29thAugust2012

Discoverer

OracleDiscovererisabusinessintelligencetooltosupportorganizationaldecisions
anddatawillshowintheformofexcelformat.
Componentsofdiscoverer:

1.DiscovererAdminstrationEdition
2.DiscovererDesktopEdition

ArchitectureOfDiscovererAdministartionEdition:

i.EndUserLayer
ii.BusinessArea
http://oracleappsviews.blogspot.in/

118/256

13/05/2015

KrishnaReddyOracleAppsInfo

iii.BusinessFolders

OverviewofBusinessAreas:

Abusinessareaisacollectionofrelatedinformationinthedatabase.
Abusinessareaisasetofrelatedinformationwithacommonbusinesspurpose
Forexample,informationaboutSalesmaybestoredinonebusinessarea,while
informationaboutCopsisstoredinanotherbusinessarea.
Insimplewordsitcanbetermedascollectionsofobjectsinaparticularmodule

OverviewofBusinessFolders:

SimpleFoldersFoldersthatarebasedonadatabasetable(e.g.:ITEM)
CustomFoldersFoldersthatcontainacustomSQLquery.
ComplexFoldersFoldersthatarebasedonmultiplesimplefolders.

HerearethestepsforcreatingtheBusinessarea

OpenDiscovererAdministrativeEdition

LogontoDiscovererAdministrativeEditionusingSYSADMINuser

ClickConnect

ChooseaResponsibilityandClickOK
http://oracleappsviews.blogspot.in/

119/256

13/05/2015

KrishnaReddyOracleAppsInfo

ClickCreateaNewBusinessAreaandClickNext

SelectAnyUserandClickNext

ExpandtheNodeandSelectAnyTableorViewAndClickNext

ClickNext

NametheBusinessAreaandDescriptionAppropriatelyAndClickFinish

TheBusinessAreaWillbecreatedandyouwouldviewthefollowingscreen

ClosetheAdministrativeTasklistWindow

ExpandtheBusinessArea

http://oracleappsviews.blogspot.in/

120/256

13/05/2015

KrishnaReddyOracleAppsInfo

DeleteTheFolderundertheBusinessArea

ClickYes

NowthebusinessAreaisEmpty

LogontoSQLPlusandCreateaViewaccordingtotherequirement

RelogontoDiscovererAdministrationEditiontohavetheSchemaRefreshedAnd
OpentheBusinessAreaCreatedEarlier.

RightClickontheBusinessAreaCreatedandSelecttheNewFolderfromDatabase
Option

ClickNext

http://oracleappsviews.blogspot.in/

121/256

13/05/2015

KrishnaReddyOracleAppsInfo

SelecttheSchemaAPPSandClickNextasshownbelow

ExpandtheAPPSSchema

SelecttheViewCreatedatSQLPlusandClickNext

ClickFinish

TheFolderisCreated

ExpandtheBusinessAreaandyoucanviewtheFolder

ClickToolsSecurityMenu

AssigntheUsers/ResponsibilitieswhocanaccesstheBusinessAreaandClickOK

HerearethescreenshotsforcreatingtheworkbooksintheDiscoverer
http://oracleappsviews.blogspot.in/

122/256

13/05/2015

KrishnaReddyOracleAppsInfo

Desktop:

LogontotheDiscovererDesktopEditiontocreateWorkBooks

LoginasSYSADMINUser

SelectSystemAdministratorResponsibilityandClickOk

SelectCreateanewworkbookoption

SelectoneoftheDisplayStyleaspertherequirementandClickNext

SelecttheBusinessAreaandthefolderonwhichyouwouldliketocreatethe
WorkbookandClickNext

CheckShowPageItemsandClickNext

http://oracleappsviews.blogspot.in/

123/256

13/05/2015

KrishnaReddyOracleAppsInfo

YoucouldaddtheconditionrequiredbyclickingNew.

SelectNewParameterOptionfromtheList

Youwillgetthefollowingscreen

EntertheName,Prompt,DescriptionandotherFieldsandClickOK

ClickOk

ClickNext

YoucancreatetheSortConditionsothattheWorkbookwouldsortthedata
accordingly.

http://oracleappsviews.blogspot.in/

124/256

13/05/2015

KrishnaReddyOracleAppsInfo

ClickAdd

SelecttheFieldonwhichyouwouldliketosortthedataandClickok

Addasmanysortsyouneed

ClickFinish

YouworkbookisCreated.

GotoFileManagewokbooksProperties

GivetheIdentifierandDescription

ClickOk

ClickYes

GotoSheetRenameSheetMenu

http://oracleappsviews.blogspot.in/

125/256

13/05/2015

KrishnaReddyOracleAppsInfo

GiveanAppropriateNameandClickok

ClickSave

SelectDatabase

GiveanappropriatenameandClickSave

GotoFileManageworkbookssharingmenu

SelecttheWorkbookandassignittotheresponsibilitywhocanaccessthe
workbooksasshowninthescreen

ClickOk

http://oracleappsviews.blogspot.in/

126/256

13/05/2015

KrishnaReddyOracleAppsInfo

Posted29thAugust2012byKrishnareddy
0 Addacomment

29thAugust2012

DelimitedReportOutputusingReport
Builder

DelimitedReportOutputusingReportBuilder
Overview:
Inthistutorial,wewillseehowtocustomizetheexistingstandardOraclereporttogeta
delimitedoutputfileinsteadoftheregularlayout.Mostbusinessuserspreferdelimited
reportoutputasitcaneasilybeimportedintoExcelwheretheycanmanipulateand
performcalculationsonthedataeasily.
ReportBuilderisthetoolusedtodevelop/customizeOraclereports.Beforegettinginto
thedetails,IwouldliketogiveanoverviewaboutReportBuilder.
MainComponentsofaReportBuilder:
BelowisthesnapshotoftheObjectnavigatorwhenyouopenareportinReportBuilder.
SomeimportantcomponentsareDataModel,LayoutModel,Parameterform,Triggers.
Letsdiscussabouteachoneofthemindetail.

DataModel:
TheDataModelisaworkareainwhichyoudefinewhatdatatoretrievewhenthe
reportissubmitted.Youcreateanddefinequeries,groups,columns,parameters,and
linkswhicharecalleddatamodelobjectstodeterminewhatdataneedstobe
extractedfromthedatabaseaspartofareport.

ToolPaletteinDataModelview:

http://oracleappsviews.blogspot.in/

127/256

13/05/2015

KrishnaReddyOracleAppsInfo

Object

ObjectName

Description

Select

ToSelectobjectsforanoperation

Magnify

ToMagnifyanarea

SQLQuery

TocreateanewqueryinthedataModel

RefCursorQuery

ToCreateanewRefCursorquery

Summary
Column

FormulaColumn

CrossProduct

TocreateaCrossProductgroup

DataLink

Tocreaterelationshipbetweentwoqueriesinthedata
model

Placeholder
Column

ToCreateaPlaceholdercolumn.Aplaceholderisa
columnforwhichyousetthedatatypeandvaluein
PL/SQLthatyoudefine.Youcansetthevalueofa
placeholdercolumninthefollowingplaces:Before
ReportTrigger,iftheplaceholderisareportlevel
column
reportlevelformulacolumn,iftheplaceholderisa
reportlevelcolumn
aformulaintheplaceholdersgrouporagroup
belowit(thevalueissetonceforeachrecordofthe
group)

Tocreateasummarycolumn.Asummarycolumn
performsacomputationlikesum,average,count,
minimum,maximum,%totalonanothercolumns
data.
TocreateaFormulacolumn.Aformulacolumn
performsauserdefinedcomputationonanother
columnsdata

LayoutModel:
LayoutModelisaworkareainwhichyoucandefinetheformat(usingobjectslike
frames,repeatingframes,fields,boilerplate,anchors,andGraphicsobjects)ofyour
reportoutput.Whenyourunareport,ReportBuilderusestheLayoutModelasa
defaulttemplateforthereportoutput.

LayoutToolPalette:
Object
Name

Description

SelectTool

Toselectoneormoreobjects

Frame
Select

Toselectframeorrepeatingframeandalltheobjects
withinthem.

Rotate

TorotateObjects

Reshape

Tochangetheshapeoftheobjects

Magnify

Tomagnifythearea

Object

http://oracleappsviews.blogspot.in/

128/256

13/05/2015

KrishnaReddyOracleAppsInfo

Line

Todrawaline

Rectangle

Todrawarectangularobject

Rounded
Rectangle

Todrawaroundedrectangularobject

Ellipse

Todrawaellipticobject

10

Arc

Todrawarc

11

Polyline

TocreateaPolylineobject

12

Polygon

Todrawapolygonobject

13

Text

TocreateaTextobject

14

Freehand

Tocreateafreeformobk=ject

Frame

Tocreateaframe.Framesareusedtosurroundother
objectsandprotectthemfrombeingoverwrittenorpushed
byotherobjects

16

Repeating
Frame

Tocreatearepeatingframe.Repeatingframessurround
allofthefieldsthatarecreatedforagroupscolumns
meaningeachrepeatingframemustbeassociatedwitha
groupcreatedintheDatamodel.Therepeatingframe
prints(isfired)onceforeachrecordofthegroup.

17

Linkfile

Tocreateanobjectthatisreadinfromfile

18

Field

Tocreateafield

19

Chart

TocreateaChart

20

Button

Tocreateabutton

21

Anchor

Tocreateananchorbetweentwoobjects.Sincethesize
ofsomelayoutobjectsmaychangewhenthereportruns,
youneedanchorstodefinewhereyouwantobjectsto
appearrelativetooneanother.

22

OLE2

TocreateOLE2object

15

ParameterForm:
ParameterFormenablesyoutodefinetheparametersforyourreport.
ToolPalette:

ReportTriggers:
ReporttriggersexecutePL/SQLfunctionsatspecifictimesduringtheexecutionand
formattingofyourreport.ReportBuilderhasfiveglobalreporttriggers:
AfterParameterFormtrigger:
ThistriggerfiresaftertheParameterformisdisplayed.
AfterReporttrigger:
Thistriggerfiresafterthereportoutputisdisplayed.Youcanusethistriggerto
deleteanytemporaryvaluesortablescreatedduringtheprocess.
BeforeParameterFormtrigger:
ThistriggerfiresbeforetheParameterformisdisplayed.
http://oracleappsviews.blogspot.in/

129/256

13/05/2015

KrishnaReddyOracleAppsInfo

BeforeReporttrigger:
Thistriggerfiresbeforethereportsisexecutedbutafterqueriesareparsedand
dataisfetched.
BetweenPagestrigger:
Thisfiresbeforeeachpageofthereportisformatted,excepttheveryfirstpage.
Thiscanbeusedtodisplaypagetotalsetc.
ReportCustomizationsteps:
Whenyouhavetocustomizeastandardreport,itisalwaysadvisablenottomake
changestothestandardreportitself,insteadrenameittoanotherreportandmakethe
changestoit.
Steps:
Downloadtheoriginalrdffromthefilesystem.
OpenitinReportbuilder.
Saveitwithadifferentnamethatmeetstheclientsnamingconventions.
Makethenecessarychangestoit.
Saveandcompilethereport.
Moveittothecustomtop/reports/US
RegisteritasaconcurrentprograminOracleApplicationsundercustomapplication.
StepstochangethereportoutputtoaPipedelimitedoutput:
TherequirementhereistocustomizethestandardReceiptAdjustmentreporttogeta
delimitedoutputfileinsteadoftheregularlayout.Theoutputfileshouldhaveheader
informationlikeshownbelowonthetopoftheoutputpagefollowedbythereceipt
adjustmentdatawhosefieldsareseparatedby~.
VendorName~PONumber~POLine~PoLineDescription~Item
Number~Category~Organization~ShipToLocation~QtyOrdered~NetQty
Received~QtyBilled~QtyAccepted~QtyRejected~QtyCancelled~Received
QtyCorrected~NetQtyRTV~QtyRTVCorrected~ReceiptNum~Transaction
Date~TransactionType~ParentTransaction~Transactionamount~Unit

RegularLayoutgeneratedbythestandardreport:
WeneedPipedelimitedOutputfilelikethebelow:
Toachievethis:
Wehavetogetridofthecurrentlayoutandcreateanewlayoutwith2objects:
Frametoprinttheheaderinformation.
RepeatingFrametoprintthedata.
WeneedtocreateaFormulacolumnintheDatamodelthatwillgettheconcurrent
programsoutputfilename.Wewillusethisfiletowriteourpipedelimitedreport
outputto.
Steps:
1. DownloadtheoriginalreportPOXRVRTN.rdf
http://oracleappsviews.blogspot.in/

130/256

13/05/2015

KrishnaReddyOracleAppsInfo

2. OpenthereportintheReportBuilder.File>Open
3. RenameitaccordingCustomnamingconventionsfollowedbytheclient.Herewewill
renameittoXXERP_POXRVRTN
Tools>PropertyPalette
Givethenameas:XXERP_POXRVRTN

1. ToCreateaFormulacolumntoderivetheoutputfilename:
DoubleclickontheDatamodelintheObjectNavigator.
Clickinthetoolpalette
Clickanddragarectangle.
Doubleclicktheformulacolumncreatedinthedatamodeltoopenup
itspropertypalettewhereyoucansetitsproperties.
Name:GivethenameasC_OUTPUT_FILE
DataType:ChooseCharacter
Width:300
PL/SQLFormula:InsertthebelowcodewhichgetstheConcurrent
programsoutputfilenamefromthedatabase.
functionC_OUTPUT_FILEFormulareturnCharis
v_filenamefnd_concurrent_requests.outfile_name%type
begin
SELECToutfile_name
INTOv_filename
FROMfnd_concurrent_requests
WHERErequest_id=_CONC_REQUEST_ID
RETURN(v_filename)
exception
whenothersthen
RETURN(null)
end

1. DoubleclickontheLayoutmodelintheObjectNavigator.
2. RemovealltheobjectsplacedinthelayoutmodelexceptNoDataFoundObject.
3. PlaceaFrameandarepeatingframeonebelowtheotherasshownbelow.

ToplaceaframeintheLayout:
Clickinthetoolpalette.
Clickanddragarectangle.
Doubleclicktheframeobjectinthelayouttoopenupitspropertypalette
whereyoucansetitsproperties.

http://oracleappsviews.blogspot.in/

131/256

13/05/2015

KrishnaReddyOracleAppsInfo

Someimportantpropertiesarediscussedhere.
Name:Renameittowhateveryouwant.
VerticalandHorizontalElasticity:Forframesandrepeating
frames,elasticitydefineswhetherthesizeoftheframeor
repeatingframeshouldvarywiththeobjectsinsideofit.
PossibleValuesthatyoucanenterareContract,Expand,Fixed,andVariable.
Contractmeansthevertical(forverticalelasticity)orhorizontal
(forhorizontalelasticity)sizeoftheobjectdecreases,ifthe
formattedobjectsordatawithinitareshort(forvertical
elasticity)orlesswide(forhorizontalelasticity)enough,butit
cannotincreasetoaheight(forverticalelasticity)orwidth(for
horizontalelasticity)greaterthanthatshownintheReport
Editor.
ExpandMeansthevertical(forverticalelasticity)orhorizontal
(forhorizontalelasticity)sizeoftheobjectincreases,ifthe
formattedobjectsordatawithinitaretallormorewide
enough,butitcannotdecreasetoaheightorwidthlessthan
thatshownintheReportEditor.
FixedMeanstheheightorwidthoftheobjectisthesameon
eachlogicalpage,regardlessofthesizeoftheobjectsordata
withinit.Truncationofdatamayoccur.
VariableMeanstheobjectmayexpandorcontractverticallyto
accommodatetheobjectsordatawithinit(withnoextra
space),whichmeanstheheightorwidthshownintheReport
Editorhasnoeffectontheobjectsheightorwidthatruntime.
ToplacearepeatingframeintheLayout:
Clickinthetoolpalette.
Clickanddragarectangle.
DoubleClickonRepeatingFrametoopenupthepropertypaletteandrename
it.EveryrepeatingframemustbeassociatedwithagroupdefinedintheData
model.
HeregivetheSourceasG_shipment_lines.
SettheVerticalandhorizontalelasticitytotherequired.

1. Toprintapipedelimitedtextintheoutputfile,wewilluseaformattriggeronthe
frameandrepeatingframe.
AformattriggerisaPL/SQLfunctionexecutedbeforeanobjectisformatted.This
functionmustreturnaBooleanvalue(TRUEorFALSE).Dependingonwhetherthe
functionreturnsTRUEorFALSE,thecurrentinstanceoftheobjectisincludedor
excludedfromthereportoutput.Formattriggercanbeusedtohighlightavalue,for
suppressingvaluesandlabels.
InthepropertypaletteoftheFrame,underAdvancedLayoutsection:

DoubleClickontheFormatTrigger.ThisopensupaSQLEditor,whereyoucan
placethebelowcodetoprinttheheaderinformationtotheoutputfile.
http://oracleappsviews.blogspot.in/

132/256

13/05/2015

KrishnaReddyOracleAppsInfo

functionM_SHIPMENT_LINE_HDRFormatTriggreturnbooleanis
Variabledeclaration
cmd_lineVARCHAR2(3000)
v_file_nametext_io.file_type
begin
Settingcmd_linevariabletotheheaderinfo
cmd_line:=VendorName||~'||PONumber||~'||POLine||~'||PoLine
Description||~'||ItemNumber||~'||Category||~'||Organization||~'||Ship
ToLocation||~'||QtyOrdered||~'||NetQtyReceived||~'||Qty
Billed||~'||QtyAccepted||~'||QtyRejected||~'||Qty
Cancelled||~'||ReceivedQtyCorrected||~'||NetQtyRTV||~'||QtyRTV
Corrected||~'||ReceiptNum||~'||TransactionDate||~'||Transaction
Type||~'||ParentTransaction||~'||Transactionamount||~'||Unit
Openingtheconcurrentrequestsoutputfiletowritethedataintoit
Alwaysprefix:withthefield,whenyourefertoafieldinthedatamodel
like
:C_OUTPUT_FILE
v_file_name:=TEXT_IO.FOPEN(:C_OUTPUT_FILE,A)
IFTEXT_IO.IS_OPEN(v_file_name)THEN
TEXT_IO.PUT_LINE(v_file_name,cmd_line)
ENDIF
TEXT_IO.FCLOSE(v_file_name)
Ifthereturnvalueistruethenonlythisobjectwillbeincludedinthereportoutput
return(TRUE)
end
Similarlyincludethebelowcodeintheformattriggeroftherepeatingframeto
writethereceiptrecordsintotheoutputfile.
functionR_shipment_linesFormatTriggerreturnbooleanis
cmd_lineVARCHAR2(2000)
v_file_nametext_io.file_type
begin
cmd_line:=
:Source||~'||:Document_Number||~'||:Line||~'||:Description||~'||:C_
FLEX_ITEM_DISP||~'||:C_FLEX_CAT_DISP||~'||:Organization_na
me||~'||:Ship_To_Location||~'
||:Quantity_Ordered||~'||:C_qty_net_rcvd||~'||:qty_billed||~'||:qty_a
ccepted||~'||:qty_rejected||~'||:qty_cancelled||~'||:C_qty_corrected|
|~'||:C_qty_rtv_and_corrected||~'||:C_qty_corrected_rtv||~'||:Recei
pt_Number||~'||:Receipt_Date||~'||:Transaction_Type||~
||:Parent_Transaction_Type||~'||:Transaction_Quantity||~'||:Transa
ction_Unit
v_file_name:=TEXT_IO.FOPEN(:C_OUTPUT_FILE,A)
IFTEXT_IO.IS_OPEN(v_file_name)THEN
TEXT_IO.PUT_LINE(v_file_name,cmd_line)
ENDIF
TEXT_IO.FCLOSE(v_file_name)
return(TRUE)
end
http://oracleappsviews.blogspot.in/

133/256

13/05/2015

KrishnaReddyOracleAppsInfo

1. Nowthatthechangesaredone,savethereport.
2. ConnecttothedatabasebynavigatingtoFile>Connect

1. ThencompilethereportbynavigatingtoProgram>Compile>All.
Errorswillbelistedifthereareany.Correctthemandrecompile.Ifthereareno
errorsandthecompilationwassuccessful,youwillgetthebelowmessage.ClickOK
andsaveagain.

1. NowmovethereporttotheCustomtop/Reports/US
2. RegisteritasaconcurrentprograminOracleApplicationsandassignittothedesired
responsibilities.PleaserefertoConcurrentProgramregistrationarticleforregistration
details.
Posted29thAugust2012byKrishnareddy
0 Addacomment

29thAugust2012

HandlingmultiplelayoutsinXmlPublisher
(.Rtf)

HandlingmultiplelayoutsinXmlPublisher(.Rtf):
StepsforhandlingmultiplelayoutsinXML.

1. AfterdevelopingtheReportdefinitionfile(.rdf)wehavetoaddonemoreparameterlike
follows.

2. ThisparametervalueshouldbeassignedtoPlaceholdercolumn(CP)likefollows
WecanassignParametervalueeitherafterparameterformorbeforereportTriggers.
InthisweassignedinBeforereportTriggerlikeBelow..

Note:placeholdercolumnshouldbeplacedatReportlevel.

Thenwecancreatemultiplelayoutsin(.rtf).

Likebelowwehavetoaddcondition(If)Fieldforhandlingthemultilayouts.

Doubleclickonifconditionwhichwasaddedbyourselves.Thenthefollowingscreen
http://oracleappsviews.blogspot.in/

134/256

13/05/2015

KrishnaReddyOracleAppsInfo

Willdisplay.

ClickOnAddhelptextButton

KrishnaReddyOracl

Thenthefollowingscreenwilldisplay.

search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide


Posted29thAugust2012byKrishnareddy
1 Viewcomments

29thAugust2012

XMLPublisher

Overview:OracleXMLPublisherisatemplatebasedpublishingsolutiondeliveredwiththeOracle
EBusinessSuite.Itprovidesanewapproachtoreportdesignandpublishingbyintegrating
familiardesktopwordprocessingtoolswithexistingEBusinessSuitedatareporting.Atruntime,
XMLPublishermergesthecustomtemplateswiththeconcurrentrequestdataextractsto
generateoutputinPDF,HTML,RTF,EXCEL(HTML),orevenTEXTforusewithEFTandEDI
transmissions
BasicNeedforXML:Considerthefollowingscenarios
WehaveaRDFreportwithtabularlayoutwhichprintsinEnglish
NewRequirements:

1. User1wantsthesameReportneedstobeprintedinSpanish
2. User2wantstheSameReportneedstobeprintedinchartformat
3. User3wantstheSameReportoutputinExcel
4. User4wantstheSameReportoutputtobepublishedonintranetorinternet
5. User5wantstheSameReportoutputeliminatingfewcolumnsandaddingfewother
AnewRDFneedstobecreatedforeachrequirementstatedaboveoranexistingRDFneedsto
bemodifiedwithhugeamountofeffortbutwhereaswithXMLPublisheritcanbedonevery
easily.
XMLPublisherseparatesareportsdata,layoutandtranslationcomponentsintothreemanageable
piecesatdesigntimeatruntimeallthethreepiecesarebroughtbacktogetherbyXMLPublisher
togeneratethefinalformatted,translatedoutputslikePDF,HTML,XLSandRTF.Infuture,ifany
thereisanychangeinlayoutwejustneedtoadd/modifytheLayoutfile
http://oracleappsviews.blogspot.in/

135/256

13/05/2015

KrishnaReddyOracleAppsInfo

DynamicViewstemplate.PoweredbyBlogger.

DataLogicDataextractedfromdatabaseandconvertedintoanXMLstring.
LayoutThelayouttemplatestobeusedforthefinaloutputarestoredandmanagedinthe
TemplateManager.
TranslationThetranslationhandlerwillmanagethetranslationthatisrequiredatruntime
Inbriefthestepsareasfollows:
a.CreateaprocedureandregisteritasConcurrentProgramsothatwewriteXMLtagsinto
outputfile.
b.BuildaDataDefinition&XMLTemplateusingXMLPublisher.
c.CreatearelationbetweenXMLTemplate&ConcurrentProgramandruntheconcurrent
program
RequirementsforXMLData ObjectReports

1. OracleXMLPublisherRelease5.5patch4206181
2. TemplateBuilder5.5
Templatebuilderisusedtocreatetemplate/layoutforyourreport.UsuallyTemplatebuilder5.5is
availableinOracleXMLPublisherpatchitselfbutyoucanalsodownloaditfrom
http://edelivery.oracle.com.FirstselectOracleApplication ServerProductsthenselectyour
platformandthenlocatetheOracleXMLPublisherRelease5.6.2MediaPackv1forMicrosoft
Windows,asbelow:

DownloadtheDesktopeditionfromthebelow:

WhenyoudownloadtheXMLPublisherDesktopeditionyougetaZipfilecontainingsetupfor
XMLPublisherDesktopInstallShield,thisinstallssomecomponentsintoMicrosoftWord.

Afterinstalling,theWordAddInsisattachedtothemenubarfortheworddocument.Thismenu
letsyouattachanXMLdatasourcedocument,addtheXMLdatatoyourtemplate,set
preferencesandpreviewtheoutput.

Indetailalongwithscreenshots:

http://oracleappsviews.blogspot.in/

136/256

13/05/2015

KrishnaReddyOracleAppsInfo

AconcurrentprogramiswrittenthatspitoutanXMLfileasoutputsuchconcurrentprogramcan
beoftypeSQLorPL/SQLorOracleReportoranyothersupportabletype,provideditcanproduce
aXMLoutput.
1.HereIhaveaverysimplePL/SQLprocedure,whichfetchtherecordsfromARtablesandwrite
theoutputinxmltags.
CREATEORREPLACEPROCEDUREAPPS.Demo_XML_Publisher(errbuf
VARCHAR2,retcodeNUMBER,v_customer_idVARCHAR2)
AS
/*CursortofetchCustomerRecords*/
CURSORxml_parent
IS
SELECTcustomer_name,customer_id
FROMra_customers
WHEREcustomer_id=to_number(v_customer_id)
/*Cursortofetchcustomerinvoicerecords*/
CURSORxml_detail(p_customer_id1NUMBER)
IS
SELECTra.customer_trx_idcustomer_trx_id,ra.ship_to_customer_idship_to_customer_id,
ra.trx_numbertrx_number,aps.amount_due_originalams
FROMra_customer_trx_allra,ar_payment_schedules_allaps
WHEREra.ship_to_customer_id=p_customer_id1
ANDaps.customer_trx_id=ra.customer_trx_id
ANDROWNUM<4
BEGIN
/*FirstlineofXMLdatashouldbe<?xmlversion=1.0?>*/
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,<?xmlversion=1.0?>)
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,<CUSTOMERINFO>)
FORv_customerINxml_parent
http://oracleappsviews.blogspot.in/

137/256

13/05/2015

KrishnaReddyOracleAppsInfo

LOOP
/*Foreachrecordcreateagrouptag<P_CUSTOMER>atthestart*/
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,<P_CUSTOMER>)
/*EmbeddatabetweenXMLtagsforex:<CUSTOMER_NAME>ABCD</CUSTOMER_NAME>*/
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,<CUSTOMER_NAME>||
v_customer.customer_name
||</CUSTOMER_NAME>)
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,<CUSTOMER_ID>||v_customer.customer_id||
</CUSTOMER_ID>)
FORv_detailsINxml_detail(v_customer.customer_id)
LOOP
/*Forcustomerinvoicescreateagrouptag<P_INVOICES>atthe
start*/
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,<P_INVOICES>)
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,<CUSTOMER_TRX_ID>||
v_details.customer_trx_id||</CUSTOMER_TRX_ID>)
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,<CUSTOMER_ID>||
v_details.ship_to_customer_id||</CUSTOMER_ID>)
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,<INVOICE_NUMBER>||
v_details.trx_number||</INVOICE_NUMBER>)
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,<AMOUNT_DUE_ORIGINAL>||
v_details.trx_number||</AMOUNT_DUE_ORIGINAL>)
/*Closethegrouptag</P_INVOICES>attheendofcustomerinvoices*/
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,</P_INVOICES>)
ENDLOOP
/*Closethegrouptag</P_CUSTOMER>attheendofcustomerrecord*/
http://oracleappsviews.blogspot.in/

138/256

13/05/2015

KrishnaReddyOracleAppsInfo

FND_FILE.PUT_LINE(FND_FILE.OUTPUT,</P_CUSTOMER>)
ENDLOOP
/*FinallyClosethestartingReporttag*/
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,</CUSTOMERINFO>)
exceptionwhenothersthen
FND_FILE.PUT_LINE(FND_FILE.log,Enteredintoexception)
ENDDemo_XML_Publisher
/
2.CreateanexecutableSampleXmlReportfortheaboveprocedureDemo_XMML_Publisher.
GotoApplicationDeveloperResponsibility>Concurrent>Executable

3.CreateanewconcurrentprogramSampleXmlReportthatwillcalltheSampleXmlReport
executabledeclaredabove.MakesurethatoutputformatisplacedasXML.
GotoApplicationDeveloperResponsibility>Concurrent>Program

4.Makesurewedeclaretheparametersfortheprocedure.

5.AddthisnewconcurrentprogramwithReceivablesrequestgroup.Eitherusingthefollowing
codeorthroughbelowapplicationscreen.

DECLARE
BEGIN
FND_PROGRAM.add_to_group
(
PROGRAM_SHORT_NAME=>CUST_XML_SAMPLE
,PROGRAM_APPLICATION=>AR
,REQUEST_GROUP=>ReceivablesAll
,GROUP_APPLICATION=>AR
)
commit
exception
whenothersthen
dbms_output.put_line(Objectalreadyexists)
http://oracleappsviews.blogspot.in/

139/256

13/05/2015

KrishnaReddyOracleAppsInfo

END
/
GotoSystem AdministratorResponsibility>Security>Responsibility>Request

6.Fromthereceivablesresponsibility(dependsonwhichresponsibilityweaddedourconcurrent
programhereitisreceivables)
FromthemenuView>Requests>SubmitANewRequest>SingleRequest

Note:ThelayoutfieldisblankaswehaventattachedanyTemplateorlayouttothisconcurrent
programyet.
Bysubmittingtheaboverequestwegettheoutputinxml(dependingonprocedure)asfollows:
<?xmlversion=1.0?>

[http://oamdev.ventanamed.test:8000/OA_CGI/FNDWRR.exe?temp_id=2392214407]
<CUSTOMERINFO>
[http://oamdev.ventanamed.test:8000/OA_CGI/FNDWRR.exe?temp_id=2392214407]
<P_CUSTOMER>
<CUSTOMER_NAME>UNIVOFCHICAGOHOSP</CUSTOMER_NAME>
<CUSTOMER_ID>1119</CUSTOMER_ID>
[http://oamdev.ventanamed.test:8000/OA_CGI/FNDWRR.exe?temp_id=2392214407]
<P_INVOICES>
<CUSTOMER_TRX_ID>929476</CUSTOMER_TRX_ID>
<CUSTOMER_ID>1119</CUSTOMER_ID>
<INVOICE_NUMBER>2484403</INVOICE_NUMBER>
<AMOUNT_DUE_ORIGINAL>8000</AMOUNT_DUE_ORIGINAL>
</P_INVOICES>
[http://oamdev.ventanamed.test:8000/OA_CGI/FNDWRR.exe?temp_id=2392214407]
<P_INVOICES
<CUSTOMER_TRX_ID>929374</CUSTOMER_TRX_ID>

http://oracleappsviews.blogspot.in/

140/256

13/05/2015

KrishnaReddyOracleAppsInfo

<CUSTOMER_ID>1119</CUSTOMER_ID>
<INVOICE_NUMBER>2484267</INVOICE_NUMBER>
<AMOUNT_DUE_ORIGINAL>380.68</AMOUNT_DUE_ORIGINAL>
</P_INVOICES>
[http://oamdev.ventanamed.test:8000/OA_CGI/FNDWRR.exe?temp_id=2392214407]
<P_INVOICES>
<CUSTOMER_TRX_ID>806644</CUSTOMER_TRX_ID>
<CUSTOMER_ID>1119</CUSTOMER_ID>
<INVOICE_NUMBER>2421373</INVOICE_NUMBER>
<AMOUNT_DUE_ORIGINAL>615.96</AMOUNT_DUE_ORIGINAL>
</P_INVOICES>
</P_CUSTOMER>
</CUSTOMERINFO>
7.SavetheabovecodeasSampleXmlReport.xml
Note:BeforesavingtheXMLstringinnotepadremovethedashes
8.CreateTemplate/LayoutforthereportusingTemplate Builder.Hereisasampletemplate.

Notethefollowing:
Thedatafieldsthataredefinedonthetemplate
Forexample:CustomerName,CustomerId
Theelementsofthetemplatethatwillrepeatwhenthereportisrun.
Forexample,Customertrxid,InvoiceNumberandOriginalAmountDue.Allthesefieldsonthe
templatewillrepeatforeachEmployeethatisreported.
9.Markupyourtemplatelayout.
Likeamailmergedocumenttheresplaceholdersforthedatayouregoingtoadd,andthenyou
canaddwhateverformattingyoulike.
10.NowthenextstepistoselectData>LoadXMLDatafromthetoolbarmenu,thenpickupthe
http://oracleappsviews.blogspot.in/

141/256

13/05/2015

KrishnaReddyOracleAppsInfo

XMLdataafileie.SampleXmlReport.xml.Oncethedataisloaded,aDataLoaded
Successfullydialogboxcomesupandyoucanthenstartaddingdataitemstothetemplate.

11.ToadddataitemsfromtheXMLfileintoyourreport,youlocateinthedocumentthe
placeholderforthefieldyouregoingtoadd,highlightitandthenselectInsert>Fieldfromthe
toolbar.Adialogboxcomesupwithalloftheavailabledataitems,youselecttheoneyouwant
andclickinsertasshownbelow:

12.YoucanaddrepeatingrowsintoyourdocumentbyselectingInsert>Table/Formfromthe
toolbar.Thisbringsupadifferentdialogboxthatletsyoudragaparentnodeinthiscase,P
Invoicesintothemiddlesection,whichbecomesyourrepeatingrows.

13.Calculatetheaverageforamountdueoriginal.SelectInsert>FieldfromtheAddInstoolbar.
Thenselectthetagthatcalculatestheaverageforthatparticularfield.

14.Oncewearedonewithaddingupallthefieldsinthetemplatesaveitasanrtfwhichlooksas
below:

Toconfirmtheoutputfromthetemplatewebuild.Clickonpreviewandselectthetypeinwhich
formattheoutputisrequired.
15.AddingtheTemplatetoORACLE Application.
InordertoaddthetemplatetoapplicationtheusershouldhavetheresponsibilityXMLPublisher
Administratorassigned.
Inthisstepwedo2processes,registeringconcurrentprogramasDataDefinitionintemplate
manager
Andregisterthetemplateusingthedatadefinitioncreated.

GotoXMLPublisherAdministrator>DataDefinitions>CreateDatadefinition.
Herewefillallthedetailstocreatedatadefinition

http://oracleappsviews.blogspot.in/

142/256

13/05/2015

KrishnaReddyOracleAppsInfo

NOTE:Makesurethecodeofthedatadefinitionmustbethesameastheshortnameofthe
ConcurrentProgramweregisteredfortheprocedure.Sothattheconcurrentmanagercanretrieve
thetemplatesassociatedwiththeconcurrentprogram
WecanaddourxmlfileSampleXmlReport.xmlindatadefinitionhere:

16.Nowcreatethetemplatewiththehelpoftemplatemanager
Attheruntimetheconcurrentmanagersrequestinterfacewillpresentthelistofavailable
templateswithrespecttothedatadefinitionregistered.Wewilluploadthertftemplatefilecreated
here.Wewillselectthelanguageandterritory.

Wecanuploaddifferent templatesfordifferentlanguagesandterritories.
17.Nowruntheconcurrentprogramtogetthedesiredoutput.
Fromthereceivablesresponsibility,usethesubmitrequestformtoruntheconcurrentrequest.
Thedefaultlayoutisdisplayedwhichwecanchangeaspertherequirement.Forchangingthe
templateclickonoptionstolookforalltemplatesregisterwiththatconcurrentprogram.

HereintheaboveexamplemytemplateisSampleXmlReportwhichisdisplayedinlayoutfield.

AndoncetherequestissubmittedwewillgettheoutputinPDFas

ThisisthefinaloutputasdesiredinthePDFformat.

Posted29thAugust2012byKrishnareddy
0 Addacomment

29thAugust2012

GetOnHandQuantitiesthroughAPI

GetOnHandQuantitiesthroughAPI:

http://oracleappsviews.blogspot.in/

143/256

13/05/2015

KrishnaReddyOracleAppsInfo

Thisscriptcanbeusedtogetthebelowquantities.
1.OnhandQuantity
2.AvailabletoReserve
3.QuantityReserved
4.QuantitySuggested
5.AvailabletoTransact
6.AvailabletoReserve
YoucanalsogettheOnhandquantitiesfromthetablemtl_onhand_quantities
GETONHANDQUANTITIESAPI
DECLARE

x_return_statusVARCHAR2(50);

x_msg_countVARCHAR2(50);

x_msg_dataVARCHAR2(50);

v_item_idNUMBER;

v_org_idNUMBER;

v_qohNUMBER;

v_rqohNUMBER;

v_atrNUMBER;

v_attNUMBER;

v_qrNUMBER;

v_qsNUMBER;

v_lot_control_codeBOOLEAN;

v_serial_control_codeBOOLEAN;

BEGIN

Setthevariablevalues

v_item_id:='6566';

v_org_id:=61;

v_qoh:=NULL;

v_rqoh:=NULL;

v_atr:=NULL;
http://oracleappsviews.blogspot.in/

144/256

13/05/2015

KrishnaReddyOracleAppsInfo

v_lot_control_code:=FALSE;

v_serial_control_code:=FALSE;

Settheorgcontext

fnd_client_info.set_org_context(1);

CallAPI

inv_quantity_tree_pub.query_quantities

(p_api_version_number=&gt;1.0,

p_init_msg_lst=&gt;'F',

x_return_status=&gt;x_return_status,

x_msg_count=&gt;x_msg_count,

x_msg_data=&gt;x_msg_data,

p_organization_id=&gt;v_org_id,

p_inventory_item_id=&gt;v_item_id,

p_tree_mode=&gt;apps.inv_quantity_tree_pub.g_transaction_mode,

or3

p_is_revision_control=&gt;FALSE,

p_is_lot_control=&gt;v_lot_control_code,

is_lot_control,

p_is_serial_control=&gt;v_serial_control_code,

p_revision=&gt;NULL,p_revision,

p_lot_number=&gt;NULL,p_lot_number,

p_lot_expiration_date=&gt;SYSDATE,

p_subinventory_code=&gt;NULL,p_subinventory_code,

p_locator_id=&gt;NULL,p_locator_id,

p_cost_group_id=&gt;NULL,cg_id,

http://oracleappsviews.blogspot.in/

145/256

13/05/2015

KrishnaReddyOracleAppsInfo

p_onhand_source=&gt;3,

x_qoh=&gt;v_qoh,Quantityonhand

x_rqoh=&gt;v_rqoh,reservablequantityonhand

x_qr=&gt;v_qr,

x_qs=&gt;v_qs,

x_att=&gt;v_att,availabletotransact

x_atr=&gt;v_atravailabletoreserve

);

DBMS_OUTPUT.put_line('OnHandQuantity:'||v_qoh);

DBMS_OUTPUT.put_line('Availabletoreserve:'||v_atr);

DBMS_OUTPUT.put_line('QuantityReserved:'||v_qr);

DBMS_OUTPUT.put_line('QuantitySuggested:'||v_qs);

DBMS_OUTPUT.put_line('AvailabletoTransact:'||v_att);

DBMS_OUTPUT.put_line('AvailabletoReserve:'||v_atr);

EXCEPTION

WHENOTHERS

THEN

DBMS_OUTPUT.put_line('ERROR:'||SQLERRM);

END;
GETONHANDQUANTITIESFROMTABLE
SELECT*FROMMTL_ONHAND_QUANTITIES;
Posted29thAugust2012byKrishnareddy
0 Addacomment

29thAugust2012
http://oracleappsviews.blogspot.in/

ImportingBlanketPurchase
Agreements(BPA)
146/256

13/05/2015

KrishnaReddyOracleAppsInfo

ImportingBlanketPurchaseAgreements(BPA):
InthisarticlewewillseewhataBlanketPurchaseAgreementisandhowwecanimportthem
alongwiththepricebreaks.
OverviewofBlanketPurchaseAgreements:
Youcreateblanketpurchaseagreementswhenyouknowthedetailofthegoodsorservicesyou
plantobuyfromaspecificsupplierinaperiod,butyoudonotyetknowthedetailofyourdelivery
schedules.Youcanuseblanketpurchaseagreementstospecifynegotiatedpricesforyouritems
beforeactuallypurchasingthem.
BlanketReleases:
Youcanissueablanketreleaseagainstablanketpurchaseagreementtoplacetheactualorder
(aslongasthereleaseiswithintheblanketagreementeffectivitydates.Ifyourpurchase
agreementhaspricebreaks,thequantityenteredonthereleasedetermineswhatbreakpriceis
defaultedintothePricefield.
ImportProcess:
ThePurchasingDocumentOpenInterfaceconcurrentprogramwasreplacedbytwonew
concurrentProgramsImportPriceCatalogsandImportStandardPurchaseOrders.
ImportPriceCatalogsconcurrentprogramisusedtoimportCatalogQuotations,Standard
Quotations,andBlanketPurchaseAgreements.
ImportStandardPurchaseOrdersconcurrentprogramisusedtoimportUnapprovedorApproved
StandardPurchaseOrders.
YouneedtopopulatePO_HEADERS_INTERFACEandPO_LINES_INTERFACEtoimportheader
andlineinformationintoPurchasing.PO_LINES_INTERFACEtablecontainsbothlineand
shipmentinformation,andimportsdataintoboththePO_LINESandPO_LINE_LOCATIONS.The
belowaretheadditionalcolumnsthatarerequiredinPO_LINES_INTERFACEifyouwantto
importpricebreakinformation:
LINE_NUM
SHIPMENT_NUM
QUANTITY
UNIT_PRICE
Ifyouareimportingpricebreakinformationthroughcatalogquotations,youcanalso,optionally,
populatethefollowingcolumnsinthePO_LINES_INTERFACEtable:
MIN_ORDER_QUANTITY
MAX_ORDER_QUANTITY
Letstakeanexampletobetterunderstand.Supposeyouwanttocreateablanketwithoneline
andtwopricebreaksandthedetailsforthepricebreakareasbelow:
1)quantity=500,price=10,effectivedatefrom01JAN2006to31JUN2006
2)quantity=500,price=11,effectivedatefrom01JUL2006to01JAN2007
TocreatetheabovetheBPA,youwouldcreateONErecordinPO_HEADERS_INTERFACEand
THREErecordsinPO_LINES_INTERFACE
LINE1:Itwillhaveonlythelineinformation.LINENUMwouldbe1.
LINE2:ForthefirstPriceBreakdetailsbuttheLINENUMwillbethesameasabovei.e1.
SHIPMENT_NUMwouldbe1andSHIPMENT_TYPEwouldbePRICEBREAK
LINE3:ForthesecondPriceBreakdetailsbuttheLINENUMwillbethesameasabovei.e1.
SHIPMENT_NUMwouldbe2andSHIPMENT_TYPEwouldbePRICEBREAK
AllthelinelevelrecordsabovemusthavethesameINTERFACE_HEADER_ID.
InsertingHeaderInformation
insertintopo_headers_interface
http://oracleappsviews.blogspot.in/

147/256

13/05/2015

KrishnaReddyOracleAppsInfo

(interface_header_id,
action,
org_id,
document_type_code,
vendor_id,
vendor_site_id,
effective_date,
expiration_date,
Vendor_doc_num)
values
(po_headers_interface_s.nextval,
ORIGINAL,
204,
BLANKET,
21,
41,
01JAN2006,
01JAN2007,
VENDOR04302006)
InsertingLineInformation
insertintopo_lines_interface
(interface_line_id,
interface_header_id,
action,
item,
line_num,
unit_price,
unit_of_measure,
effective_date,
expiration_date,
ship_to_organization_id,
ship_to_location_id,
PRICE_BREAK_LOOKUP_CODE)
values
(po_lines_interface_s.nextval,
po_headers_interface_s.currval,
ORIGINAL,
AS54888,
1,
20,
Each,
01JAN2006,
01JAN2007,
207,
207,
NONCUMULATIVE)
Note:Cumulative:Pricebreaksapplytothecumulativequantityonallreleaseshipmentsforthe
item.
http://oracleappsviews.blogspot.in/

148/256

13/05/2015

KrishnaReddyOracleAppsInfo

Noncumulative:Pricebreaksapplytoquantitiesonindividualreleaseshipmentsfortheitem.
InsertingFirstPriceBreak
insertintopo_lines_interface
(interface_line_id,
interface_header_id,
action,
item,
line_num,
shipment_num,
shipment_type,
quantity,
unit_price,
unit_of_measure,
ship_to_organization_id,
ship_to_location_id,
effective_date,
expiration_date)
values
(po_lines_interface_s.nextval,
po_headers_interface_s.currval,
ORIGINAL,
AS54888,
1,
1,
PRICEBREAK,
500,
10,
Each,
207,
207,
01JAN2006,
30JUN2006)
InsertingSecondPriceBreak
insertintopo_lines_interface
(interface_line_id,
interface_header_id,
action,
item,
line_num,
shipment_num,
shipment_type,
quantity,
unit_price,
unit_of_measure,
ship_to_organization_id,
ship_to_location_id,
effective_date,
http://oracleappsviews.blogspot.in/

149/256

13/05/2015

KrishnaReddyOracleAppsInfo

expiration_date)
values
(po_lines_interface_s.nextval,
po_headers_interface_s.currval,
ORIGINAL,
AS54888,
1,
2,
PRICEBREAK,
500,
11,
Each,
207,
207,
01JUL2006,
01JAN2007)
FinalStep:
RunImportPriceCatalogConcurrentProgramtocreatethisBlanketPurchaseAgreement.

Posted29thAugust2012byKrishnareddy
0 Addacomment

29thAugust2012

usageof$FLEX$

T hisarticleillustratestheusageof$FLEX$withanexample.
$FLEX$isaspecialbindvariablethatcanbeusedtobaseaparametervalueontheother
parameters(dependentparameters)
Syntax:$FLEX$.Value_Set_Name

Value_Set_Nameisthenameofvaluesetforapriorparameterinthesameparameterwindowthatyou
http://oracleappsviews.blogspot.in/

150/256

13/05/2015

KrishnaReddyOracleAppsInfo

wantyourparametertodependon.
Somescenarioswhere$FLEX$canbeused:
Example1:
Sayyouhaveaconcurrentprogramwiththebelow2parameterswhicharevaluesets:
Parameter1isDeparment
Parameter2isEmployeename
Letssaythereare100deparmentsandeachdeparmenthas200employees.Thereforewe
have2000employeesaltogether.
Ifwedisplayalldepartmentnamesinthevaluesetofparameter1andallemployeenamesin
parameter2valuesetthenitmightkilllotofperformanceandalsoitwillbehardforauserto
selectanemployeefromthelistof2000entries.
BetterSolutionistoletuserselectthedepartmentfromtheDepartmentValusetfirst.Based
onthedepartmentselected,youcandisplayonlytheemployeesinparameter2thatbelongto
theselecteddepartmentinparameter1valueset.
Example2:
Sayyouhaveaconcurrentprogramwiththebelow2parameters:
parameter1:directorypath
parameter2:filename
Parameter1andparameter2aredependentoneachother.Iftheuserdoesntenterdirectory
path,thereisnopointinenablingtheparameter2i.efilename.Insuchacase,parameter
shouldbedisabled.Thiscanbeachievedusing$FLEX$.
WorkingExampleofhowtouse$FLEX$:
LetstakethestandardconcurrentprogramAPWithholdingTaxExtracttoexplainhowto
use$FLEX$.
Thisprogramhas7parameterslikeDateFrom,DateTo,SupplierFrom,SupplierToetc
TherequirementistoaddanadditionalparametercalledFileNamewheretheuserwillgive
anametotheflatfilewherethetaxextractwillbewrittento,asaparameter.Insteadof
typinginthenameofthefileeverytimeyouruntheprogram,thefilenameshouldbe
defaultedwiththevaluethattheuserprovidesfortheparameterDateFromplus.csv
whichisthefileextension.Letusnowseehowthiscanbeachievedusing$FLEX$.
Navigation:
ApplicationDeveloperresponsibility>Concurrent>Program
http://oracleappsviews.blogspot.in/

151/256

13/05/2015

KrishnaReddyOracleAppsInfo

QueryuptheConcurrent

ClickParametersButton

AddtheparameterFile

Seq:80(Somethingthatisnotalreadyassignedtootherparameters.Itsalwaysbetterto
entersequencesinmultipleof5or10.Sothatyoucaninsertanyadditionalparametersifyou
wantlaterinmiddle)
Parameter:FileName
Description:FileName
Valueset:240Characters
Prompt:FileName
DefaultType:SQLStatement
DefaultValue:Select:$FLEX$.FND_STANDARD_DATE||.csv

fromdual
HereFND_STANDARD_DATEisthevaluesetnameoftheparameterDateFromasseenin
theabovescreenshot.
$FLEX$.FND_STANDARD_DATEgetsthevaluethattheuserentersfortheparameterDate
From
select:$FLEX$.FND_STANDARD_DATE||.csvfromdualreturnsDateFromparameter
valueappendedwith.csv

Saveyourwork.
Nowgototherespectiveresponsibilityandruntheconcurrentprogram.
WhenyouenterthevalueofDateFromandhittab,FileNameparameterwillautomatically
bepopulatedasshowninthebelowscreenshot.

Posted29thAugust2012byKrishnareddy
0 Addacomment

http://oracleappsviews.blogspot.in/

152/256

13/05/2015

KrishnaReddyOracleAppsInfo

29thAugust2012

Emailtheoutputofaconcurrentprogram
asAttachment

EmailtheoutputofaconcurrentprogramasAttachment:
ThisarticleillustratesthestepstobefollowedtoEmailaconcurrentprogramsoutput.
1. Writeaprocedurethatwillsubmittheconcurrentprogramwhoseoutputhastobe
sentasanEmailandoncetheprogramcompletes,sendtheoutputasEmailusing
UTL_MAIL.send_attach_varchar2.
2. Registerthisprocedureasaconcurrentprogramsothatthisprogramcanberun
fromOracleApplicationswhichwillemailaconcurrentprogramsoutput.
Detailedexplanationwithsamplecode:
1. Writethebelowprocedurewhichsubmitsthedesiredconcurrentprogramandwaits
untilitcompletesandthensendstheoutputofthatprogramtothespecifiedEmail
addressusingtheutilityUTL_MAIL.send_attach_varchar2
CREATEORREPLACEPROCEDUREapps.erp_send_email
(
errbufVARCHAR2,
retodeNUMBER,
p_concurrent_program_nameVARCHAR2,
p_parameter1NUMBER
)
IS
/*Variabledeclaration*/
fhandleUTL_FILE.file_type
vtextoutVARCHAR2(32000)
textVARCHAR2(32000)
v_request_idNUMBER:=NULL
v_request_statusBOOLEAN
v_phaseVARCHAR2(2000)
v_wait_statusVARCHAR2(2000)
v_dev_phaseVARCHAR2(2000)
v_dev_statusVARCHAR2(2000)
v_messageVARCHAR2(2000)
v_application_idNUMBER
v_concurrent_program_idNUMBER
v_conc_prog_short_nameVARCHAR2(100)
v_conc_prog_appl_short_nameVARCHAR2(100)
v_output_file_pathVARCHAR2(200)
BEGIN
fnd_file.put_line(fnd_file.output,

)
fnd_file.put_line(fnd_file.output,
ConcProg:||p_concurrent_program_name
http://oracleappsviews.blogspot.in/

153/256

13/05/2015

KrishnaReddyOracleAppsInfo

)
fnd_file.put_line(fnd_file.output,Parameter1:||
p_parameter1
)

/*GetConcurrent_program_idofthedesiredprogram
andapplication_id*/
BEGIN
SELECTconcurrent_program_id,application_id
INTOv_concurrent_program_id,v_application_id
FROMfnd_concurrent_programs_tl
WHEREuser_concurrent_program_name=
p_concurrent_program_name
fnd_file.put_line(fnd_file.LOG,ConcProgID:||
v_concurrent_program_id
)
fnd_file.put_line(fnd_file.LOG,ApplicationID:||
v_application_id
)
/*GettheprogramsShortname*/
SELECTconcurrent_program_name
INTOv_conc_prog_short_name
FROMfnd_concurrent_programs
WHEREconcurrent_program_id=v_concurrent_program_id
fnd_file.put_line(fnd_file.LOG,ConcProgShortName:
||v_conc_prog_short_name
)
/*GettheApplicationShortname*/
SELECTapplication_short_name
INTOv_conc_prog_appl_short_name
FROMfnd_application
WHEREapplication_id=v_application_id
fnd_file.put_line(fnd_file.LOG,ApplicationShortName:
||v_conc_prog_appl_short_name
)
EXCEPTION
WHENOTHERS
THEN
fnd_file.put_line(fnd_file.LOG,Error:||
SQLERRM)
END
/*Callingfnd_request.submit_requesttosubmitthedesired
theconcurrentprogram*/
http://oracleappsviews.blogspot.in/

154/256

13/05/2015

KrishnaReddyOracleAppsInfo

v_request_id:=
fnd_request.submit_request(v_conc_prog_appl_short_name,
v_conc_prog_short_name,
NULL,Description
NULL,Timetostarttheprogram
FALSE,subprogram
p_parameter1
)
fnd_file.put_line(fnd_file.LOG,ConcurrentRequestSubmitted
Successfully:||v_request_id
)
COMMIT
IFv_request_idISNOTNULL
THEN
/*Callingfnd_concurrent.wait_for_requesttowaitforthe
programtocomplete*/
v_request_status:=
fnd_concurrent.wait_for_request
(
request_id=>v_request_id,
INTERVAL=>10,
max_wait=>0,
phase=>v_phase,
status=>v_wait_status,
dev_phase=>v_dev_phase,
dev_status=>v_dev_status,
MESSAGE=>v_message
)
v_dev_phase:=NULL
v_dev_status:=NULL
ENDIF
/*Gettingthepathwhereoutputfileoftheprogramis
created*/
SELECToutfile_name
INTOv_output_file_path
FROMfnd_concurrent_requests
WHERErequest_id=v_request_id
/*OpentheoutputfileinReadmode*/
fhandle:=UTL_FILE.fopen
(/opt/oracle/OACRP1/common/admin/out/OACRP1_dtuusebs14,o
||v_request_id||.out,r)
IFUTL_FILE.is_open(fhandle)
THEN
DBMS_OUTPUT.put_line(Filereadopen)
ELSE
http://oracleappsviews.blogspot.in/

155/256

13/05/2015

KrishnaReddyOracleAppsInfo

DBMS_OUTPUT.put_line(Filereadnotopen)
ENDIF
/*Getthecontentsofthefileintovariabletext*/
LOOP
BEGIN
UTL_FILE.get_line(fhandle,vtextout)
text:=text||vtextout||UTL_TCP.crlf
EXCEPTION
WHENNO_DATA_FOUND
THEN
EXIT
END
ENDLOOP
UTL_FILE.fclose(fhandle)
/*CallingUTL_MAIL.send_attach_varchar2tosendtheoutputas
Emailattachment*/
UTL_MAIL.send_attach_varchar2
(
sender=>dtuebs@ventana.roche.com,
recipients=>prudhvi.avuthu@contractors.roche.com,
subject=>Testmail,
MESSAGE=>Hello,
attachment=>text,
att_inline=>FALSE
)
END
/
1. Registertheabovewrittenprocedureasaconcurrentprogram
DefineExecutable:

DefineConcurrentprogramwith2parameters:ConcurrentProgramNameand
ProgramshortName.

Assignthisconcurrentprogramtothedesiredresponsibility.
Foramoredetailedexplanationonhowtoregisteraconcurrentprogramrefertothe
belowarticle:
http://www.erpschools.com/Apps/oracleapplications/articles/Sysadminand
AOL/ConcurrentProgramRegistrationandaddittorequestgroup/index.aspx
[http://www.erpschools.com/Apps/oracleapplications/articles/SysadminandAOL/Concurrent
ProgramRegistrationandaddittorequestgroup/index.aspx]
http://oracleappsviews.blogspot.in/

156/256

13/05/2015

KrishnaReddyOracleAppsInfo

Whenthisregisteredconcurrentprogramisrun,thisprograminturnsubmitsthe
desiredconcurrentprogramandemailsitsoutputasanattachmenttotherequired.
Posted29thAugust2012byKrishnareddy
0 Addacomment

29thAugust2012

InterfacesandConversions2

Overview:
OracleprovidesflexibleandflexibletoolsintheformofInterfaceprogramstoimport
themasterandtransactionaldatalikeCustomers,Invoices,andSalesOrdersetcfrom
externalsystemsintoOracleApplications.

Conversion/InterfaceStrategy:
1. DataMapping
Duringthedatamappingprocess,listofallthedatasetsanddataelementsthatwill
needtobemovedintotheOracletablesaspartofconversionareidentified.Data
mappingtablesarepreparedaspartofthisactivitythatshowwhatarethedata
elementsthatareneededbythetargetsystemtomeetthebusinessrequirements
andfromwheretheywillbeextractedintheoldsystem.
2. DownloadPrograms
Aftertheconversiondatamappingiscomplete,downloadprogramsaredeveloped
thatareusedtoextracttheidentifiedconversiondataelementsfromthecurrent
systemsintheformofanASCIIflatfile.Thestructureoftheflatfilemustmatchthe
structureoftheOraclestandardinterfacetables.Theseflatfilesgeneratedmaybein
textformoracommaorspacedelimited,variableorfixedformatdatafile.
3. UploadProgram
Oncethedatahasbeenextractedtoaflatfile,itisthenmovedtothetargetfile
systemandthedatafromthefileisloadedintouserdefinedstagingtablesinthe
targetdatabaseusingSQLLoaderorUTL_FILEutilities.Thenprogramsarewritten
andrunwhichvalidatethedatainthestagingtablesandinsertthesameintothe
OracleprovidedstandardInterfacetables.
4. InterfaceProgram
Oncetheinterfacetablesarepopulated,therespectiveinterfaceprogram(eachdata
elementinterfacehasaspecificinterfaceprogramtorun)issubmitted.Theinterface
programsvalidatethedata,deriveandassignthedefaultvaluesandultimately
populatetheproductionbasetables.

Interface/Conversionexamplesanddetails:
The below list of interfaces/conversions are covered in this section. Details like pre
requisitesrequired,interfacetables,interfaceprogram,basetables,validationsthatneed
http://oracleappsviews.blogspot.in/

157/256

13/05/2015

KrishnaReddyOracleAppsInfo

tobeperformedafterinsertingthedetailsintotheinterfacetablesandrequiredcolumns
thatneedtobepopulatedintheinterfacetablearediscussedforeachinterface.
OrderImportInterface(SalesOrderConversion)

Itemimport(Itemconversion)
Inventory
Interface

Onhand

quantity

Customerconversion
AutoInvoiceInterface
ARReceipts
LockboxInterface
APInvoices
Vendor
PurchaseOrders
Requisition
Receiving
Journalimport
Budgetimport
DailyConversionRates

OrderImportInterface(SalesOrderConversion)
OrderImportenablesyoutoimportSalesOrdersintoOracleApplicationsinsteadof
manuallyenteringthem.

Prerequisites:
OrderType
LineType
Items
Customers
ShipMethod/FreightCarrier
SalesPerson
SalesTerritories
CustomerOrderHolds
SubInventory/Locations
OnhandQuantity
Interfacetables:
OE_HEADERS_IFACE_ALL
OE_LINES_IFACE_ALL
OE_ACTIONS_IFACE_ALL
http://oracleappsviews.blogspot.in/

158/256

13/05/2015

KrishnaReddyOracleAppsInfo

OE_ORDER_CUST_IFACE_ALL
OE_PRICE_ADJS_IFACE_ALL
OE_PRICE_ATTS_IFACE_ALL
Basetables:
OE_ORDER_HEADERS_ALL
OE_ORDER_LINES_ALL
Pricingtables:QP_PRICING_ATTRIBUTES
ConcurrentProgram:
OrderImport
Validations:
Check for sold_to_org_id. If does not exist, create new customer by calling
create_new_cust_infoAPI.
Checkforsales_rep_id.Shouldexistforabookedorder.
Ordered_dateshouldexist(headerlevel)
Delivery_lead_timeshouldexist(linelevel)
Earliest_acceptable_dateshouldexist.
Freight_termsshouldexist
Notes:
Duringimportoforders,shippingtablesarenotpopulated.
If
importing
customers
together
with
the
order,
OE_ORDER_CUST_IFACE_ALLhastobepopulatedandthebasetables
areHZ_PARTIES,HZ_LOCATIONS.
Orderscanbecategorizedbasedontheirstatus:
1.Enteredorders
2.Bookedorders
3.Closedorders
Order
Import
API
OE_ORDER_PUB.GET_ORDER
and
PROCESS_ORDERcanalsobeusedtoimportorders.
Someimportantcolumnsthatneedtopopulatedintheinterfacetables:
OE_HEADERS_IFACE_ALL:
ORIG_SYS_DOCUMENT_REF
ORDER_SOURCE
CONVERSION_RATE
ORG_ID
ORDER_TYPE_ID
PRICE_LIST
SOLD_FROM_ORG_ID
SOLD_TO_ORG_ID
SHIP_TO_ORG_ID
SHIP_FROM_ORG_ID
CUSTOMER_NAME
INVOICE_TO_ORG_ID
OPERATION_CODE
OE_LINES_IFACE_ALL
ORDER_SOURCE_ID
ORIG_SYS_DOCUMENT_REF
http://oracleappsviews.blogspot.in/

159/256

13/05/2015

KrishnaReddyOracleAppsInfo

ORIG_SYS_LINE_REF
ORIG_SYS_SHIPMENT_REF
INVENTORY_ITEM_ID
LINK_TO_LINE_REF
REQUEST_DATE
DELIVERY_LEAD_TIME
DELIVERY_ID
ORDERED_QUANTITY
ORDER_QUANTITY_UOM
SHIPPING_QUANTITY
PRICING_QUANTITY
PRICING_QUANTITY_UOM
SOLD_FROM_ORG_ID
SOLD_TO_ORG_ID
INVOICE_TO_ORG_ID
SHIP_TO_ORG_ID
PRICE_LIST_ID
PAYMENT_TERM_ID

Itemimport(Itemconversion)
TheItemInterfaceletsyouimportitemsintoOracleInventory.
Prerequisites:

CreatinganOrganization
CodeCombinations
Templates
DefiningItemStatusCodes
DefiningItemTypes
Interfacetables:

MTL_SYSTEM_ITEMS_INTERFACE
MTL_ITEM_REVISIONS_INTERFACE(Ifimportingrevisions)
MTL_ITEM_CATEGORIES_INTERFACE(Ifimportingcategories)
MTL_INTERFACE_ERRORS(Viewerrorsafterimport)
ConcurrentProgram:

Itemimport
In the item import parameters form, for the parameter set process id,
specify
the set process id value given in the mtl_item_categories_interface
table.The
parameter Create or Update can have any value. Through the import
process,we
canonlycreateitemcategoryassignment(s).UpdatingorDeletionofitem
categoryassignmentisnotsupported.
http://oracleappsviews.blogspot.in/

160/256

13/05/2015

KrishnaReddyOracleAppsInfo

Basetables:
MTL_SYSTEM_ITEMS_B
MTL_ITEM_REVISIONS_B
MTL_CATEGORIES_B
MTL_CATEGORY_SETS_B
MTL_ITEM_STATUS
MTL_ITEM_TEMPLATES
Validations:
Checkforvaliditemtype.
Checkforvalidpart_id/segmentofthesourcetable.
Validatepart_id/segment1formasterorg.
Validateandtranslatetemplateidofthesourcetable.
Checkforvalidtemplateid.(Attributesarealreadysetforitems,defaultattributes
for
thattemplate,i.e.,purchasable,stockable,etc)
Checkforvaliditemstatus.
Validateprimaryuomofthesourcetable.
Validateattributevalues.
ValidateotherUOMsofthesourcetable.
Checkforuniqueitemtype.Discardtheitem,ifparthasnonuniqueitemtype.
Checkfordescription,inv_umuniqueness
Validateorganizationid.
Loadmasterrecordsandcategoryrecordsonlyifallvalidationsarepassed.
Loadchildrecordifnoerrorfound.
Someimportantcolumnsthatneedtopopulatedintheinterfacetables:
MTL_SYSTEM_ITEMS_INTERFACE:
PROCESS_FLAG=1(1=Pending,2=AssignComplete,
3= Assign/Validation Failed, 4= Validation
succeeded Import failed, 5 = Import in
Process,
7=Importsucceeded)
TRANSACTION_TYPE=CREATE,UPDATE
SET_PROCESS_ID=1
ORGANIZATION_ID
DESCRIPTION
ITEM_NUMBERand/orSEGMENT(n)
MATERIAL_COST
REVISION
TEMPLATE_ID
SUMMARY_FLAG
ENABLED_FLAG
PURCHASING_ITEM_FLAG
SALES_ACCOUNT(defaultedfrom
MTL_PARAMETERS.SALES_ACCOUNT)
COST_OF_SALES_ACCOUNT(defaultedfromMTL_PARAMETERS.
COST_OF_SALES_ACCOUNT)
MTL_ITEM_CATEGORIES_INTERFACE:
http://oracleappsviews.blogspot.in/

161/256

13/05/2015

KrishnaReddyOracleAppsInfo

INVENTORY_ITEM_IDorITEM_NUMBER.
ORGANIZATION_IDorORGANIZATION_CODEorboth.
TRANSACTION_TYPE=CREATE(UPDATEorDELETEisnot
possible
through
Item
Import).
CATEGORY_SET_IDorCATEGORY_SET_NAMEorboth.
CATEGORY_IDorCATEGORY_NAMEorboth.
PROCESS_FLAG=1
SET_PROCESS_ID (The item and category interface records
shouldhavethe
same set_process_id, if you are importing
itemandcategoryassignmenttogether)
MTL_ITEM_REVISIONS_INTERFACE:
INVENTORY_ITEM_ID or ITEM_NUMBER (Must match the
item_numberinmtl_system_items_interfacetable)
ORGANIZATION_IDorORGANIZATION_CODEorboth
REVISION
CHANGE_NOTICE
ECN_INITIATION_DATE
IMPLEMENTATION_DATE
IMPLEMENTED_SERIAL_NUMBER
EFFECTIVITY_DATE
ATTRIBUTE_CATEGORY
ATTRIBUTEn
REVISED_ITEM_SEQUENCE_ID
DESCRIPTION
PROCESS_FLAG=1
TRANSACTION_TYPE=CREATE
SET_PROCESS_ID=1
Each row in the mtl_item_revisions_interface table must have the
REVISION
andEFFECTIVITY_DATEinalphabetical(ASCIIsort)andchronological
order.

InventoryOnhandquantityInterface
ThisinterfaceletsyouimporttheonhandinventoryintoOracle.
Interfacetables:
MTL_TRANSACTIONS_INTERFACE
MTL_MTL_TRANSACTION_LOTS_INTERFACE(IftheitemisLot
controlled)
MTL_SERIAL_NUMBERS_INTERFACE(IftheitemisSerialcontrolled)
ConcurrentProgram:
LaunchtheTransactionManagerthroughInterfaceManagerorexplicitly
http://oracleappsviews.blogspot.in/

162/256

13/05/2015

KrishnaReddyOracleAppsInfo

calltheAPIINV_TXN_MANAGER_PUB.PROCESS_TRANSACTIONS()
tolaunchadedicatedtransactionworkertoprocessthem.
TheTransactionManagerpicksuptherowstoprocessbasedonthe
LOCK_FLAG,TRANSACTION_MODE,andPROCESS_FLAG.Only
recordswithTRANSACTION_MODEof3,LOCK_FLAGof2,and
PROCESS_FLAGof1willbepickedupbytheTransactionManagerand
assignedtoaTransactionWorker.Ifarecordfailstoprocesscompletely,
thenPROCESS_FLAGwillbesetto3andERROR_CODEand
ERROR_EXPLANATIONwillbepopulatedwiththecausefortheerror.
BaseTables:
MTL_ON_HAND_QUANTITIES
MTL_LOT_NUMBERS
MTL_SERIAL_NUMBERS
Validations:
Validateorganization_id
Checkifitemisassignedtoorganization
Validatedisposition_id
CheckiftheitemfortheorgislotcontrolledbeforeinsertingintotheLots
interfacetable.
CheckiftheitemfortheorgisserialcontrolledbeforeinsertingintoSerial
interfacetable.
Checkifinventoryalreadyexistsforthatiteminthatorgandforalot.
Validateorganization_id,organization_code.
Validateinventoryitemid.
Transactionperiodmustbeopen.
Someimportantcolumnsthatneedtobepopulatedintheinterfacetables:
MTL_TRANSACTIONS_INTERFACE:
TRANSACTION_SOURCE_NAME(ANYUSERDEFINEDVALUE),
TRANSACTION_HEADER_ID
(MTL_MATERIAL_TRANSACTIONS_S.NEXTVAL)
TRANSACTION_INTERFACE_ID
(MTL_MATERIAL_TRANSACTIONS_S.NEXTVALIfitemislotorserial
controlled,usethisfieldtolinktomtl_transactions_interfaceotherwise
leaveitasNULL),
TRANSACTION_DATE,
TRANSACTION_TYPE_ID,
PROCESS_FLAG(1=Yettobeprocessed,2=Processed,3=Error)
TRANSACTION_MODE(2=Concurrenttolaunchadedicated
transactionworker
toexplicitlyprocessasetoftransactions.
3=Backgroundwillbepickedupbytransaction
manager
pollingprocessandassignedtotransaction
worker.Thesewillnotbepickedupuntilthe
transactionmanagerisrunning)
SOURCE_CODE,
http://oracleappsviews.blogspot.in/

163/256

13/05/2015

KrishnaReddyOracleAppsInfo

SOURCE_HEADER_ID,
SOURCE_LINE_ID(DetailsaboutthesourcelikeOrderEntryetcfor
trackingpurposes)
TRANSACTION_SOURCE_ID
Source
Type
Account
Account
Alias
Jobor
schedule
Sales
Order

ForeignKeyReference
GL_CODE_COMBINATIONS.CODE_COMBINATION_ID
MTL_GENERIC_DISPOSITIONS.DISPOSITION_ID
WIP_ENTITIES.WIP_ENTITY_ID
MTL_SALES_ORDERS.SALES_ORDER_ID

ITEM_SEGMENT1TO20,
TRANSACTION_QTY,
TRANSACTION_UOM,
SUBINVENTORY_CODE,
ORGANIZATION_ID,
LOC_SEGMENT1TO20.
MTL_TRANSACTION_LOTS_INTERFACE:
TRANSACTION_INTERFACE_ID,
LOT_NUMBER,
LOT_EXPIRATION_DATE,
TRANSACTION_QUANTITY,
SERIAL_TRANSACTION_TEMP_ID(Thisisrequiredforitemsunderboth
lotandserialcontroltoidentifychildrecordsin
mtl_serial_numbers_interface)
MTL_SERIAL_NUMBERS_INTERFACE:
TRANSACTION_INTERFACE_ID,
FM_SERIAL_NUMBER,
TO_SERIAL_NUMBER,
VENDOR_SERIAL_NUMBER

Customerconversion
CustomerInterfacehelpsyoucreatecustomersinOracleApplications.
Interfacetables:
RA_CUSTOMERS_INTERFACE_ALL
RA_CUSTOMER_PROFILES_INT_ALL
RA_CONTACT_PHONES_INT_ALL
RA_CUSTOMER_BANKS_INT_ALL
RA_CUST_PAY_METHOD_INT_ALL
Basetables:
http://oracleappsviews.blogspot.in/

164/256

13/05/2015

KrishnaReddyOracleAppsInfo

RA_CUSTOMERS
RA_ADDRESSES_ALL
RA_CUSTOMER_RELATIONSHIPS_ALL
RA_SITE_USES_ALL
Concurrentprogram:
CustomerInterface
Validations:
Checkiflegacyvaluesfetchedarevalid.
Checkifcustomeraddresssiteisalreadycreated.
Checkifcustomersiteuseisalreadycreated.
Checkiscustomerheaderisalreadycreated.
Checkwhethertheship_to_sitehasassociatedbill_to_site
Checkwhetherassociatedbill_to_siteiscreatedornot.
Profileamountsvalidation:
Validatecust_account_id,validatecustomerstatus.
CheckifthelocationalreadyexistsinHZ_LOCATIONS.Ifdoesnot
exist,createnewlocation.
Someimportantcolumnsthatneedtobepopulatedintheinterfacetables:
RA_CUSTOMERS_INTERFACE_ALL:
ORIG_SYSTEM_CUSTOMER_REF
SITE_USE_CODE
ORIG_SYSTEM_ADDRESS_REF
INSERT_UPDATE_FLAG(I=Insert,U=Update)
CUSTOMER_NAME
CUSTOMER_NUMBER
CUSTOMER_STATUS
PRIMARY_SITE_USE_FLAG
LOCATION
ADDRESS1
ADDRESS2
ADDRESS3
ADDRESS4
CITY
STATE
PROVINCE
COUNTY
POSTAL_CODE
COUNTRY
CUSTOMER_ATTRIBUTE1
CUSTOMER_ATTRIBUTE2
CUSTOMER_ATTRIBUTE3
CUSTOMER_ATTRIBUTE4
CUSTOMER_ATTRIBUTE5
LAST_UPDATED_BY
LAST_UPDATE_DATE
CREATED_BY
CREATION_DATE
ORG_ID
http://oracleappsviews.blogspot.in/

165/256

13/05/2015

KrishnaReddyOracleAppsInfo

CUSTOMER_NAME_PHONETIC
RA_CUSTOMER_PROFILES_INT_ALL:
INSERT_UPDATE_FLAG
ORIG_SYSTEM_CUSTOMER_REF
ORIG_SYSTEM_ADDRESS_REF
CUSTOMER_PROFILE_CLASS_NAME
CREDIT_HOLD
LAST_UPDATED_BY
LAST_UPDATE_DATE
CREATION_DATE
CREATED_BY
ORG_ID
RA_CONTACT_PHONES_INT_ALL:
ORIG_SYSTEM_CONTACT_REF
ORIG_SYSTEM_TELEPHONE_REF
ORIG_SYSTEM_CUSTOMER_REF
ORIG_SYSTEM_ADDRESS_REF
INSERT_UPDATE_FLAG
CONTACT_FIRST_NAME
CONTACT_LAST_NAME
CONTACT_TITLE
CONTACT_JOB_TITLE
TELEPHONE
TELEPHONE_EXTENSION
TELEPHONE_TYPE
TELEPHONE_AREA_CODE
LAST_UPDATE_DATE
LAST_UPDATED_BY
LAST_UPDATE_LOGIN
CREATION_DATE
CREATED_BY
EMAIL_ADDRESS
ORG_ID
CustomerAPI
TradingCommunityArchitecture(TCA)isanarchitectureconceptdesignedtosupport
complex
tradingcommunities.TheseAPIsutilizethenewTCAmodel,insertingdirectlytothe
HZtables.
APIDetails:
1. Settheorganizationid
Execdbms_application_info.set_client_info(204)
2. Createapartyandanaccount
HZ_CUST_ACCOUNT_V2PUB.CREATE_CUST_ACCOUNT()
HZ_CUST_ACCOUNT_V2PUB.CUST_ACCOUNT_REC_TYPE
HZ_PARTY_V2PUB.ORGANIZATION_REC_TYPE
HZ_CUSTOMER_PROFILE_V2PUB.CUSTOMER_PROFILE_REC_TYPE
http://oracleappsviews.blogspot.in/

166/256

13/05/2015

KrishnaReddyOracleAppsInfo

3. Createaphysicallocation
HZ_LOCATION_V2PUB.CREATE_LOCATION()
HZ_LOCATION_V2PUB.LOCATION_REC_TYPE
4. Createapartysiteusingparty_idyougetfromstep2andlocation_idfrom
step3.
HZ_PARTY_SITE_V2PUB.CREATE_PARTY_SITE()
HZ_PARTY_SITE_V2PUB.PARTY_SITE_REC_TYPE
5. Create an account site using account_id you get from step 2 and
party_site_idfromstep4.
HZ_CUST_ACCOUNT_SITE_V2PUB.CREATE_CUST_ACCT_SITE()
HZ_CUST_ACCOUNT_SITE_V2PUB.CUST_ACCT_SITE_REC_TYPE
6. Create an account site use using cust_acct_site_id you get from step 5
anssite_use_code=BILL_TO.
HZ_CUST_ACCOUNT_SITE_V2PUB.CREATE_CUST_SITE_USE()
HZ_CUST_ACCOUNT_SITE_V2PUB.CUST_SITE_USE_REC_TYPE
HZ_CUSTOMER_PROFILE_V2PUB.CUSTOMER_PROFILE_REC_TYPE
Basetable:
HZ_PARTIES
HZ_PARTY_SITES
HZ_LOCATIONS
HZ_CUST_ACCOUNTS
HZ_CUST_SITE_USES_ALL
HZ_CUST_ACCT_SITES_ALL
HZ_PARTY_SITE_USES
Validations:
Checkiflegacyvaluesfetchedarevalid.
Checkifcustomeraddresssiteisalreadycreated.
Checkifcustomersiteuseisalreadycreated.
Checkiscustomerheaderisalreadycreated.
Checkwhethertheship_to_sitehasassociatedbill_to_site
Checkwhetherassociatedbill_to_siteiscreatedornot.
Profileamountsvalidation:
Validatecust_account_id,validatecustomerstatus.
CheckifthelocationalreadyexistsinHZ_LOCATIONS.Ifdoesnot
exist,createnewlocation.
Fordetailedexplanationrefertothebelowarticle:
http://www.erpschools.com/Apps/oracle
applications/articles/financials/Receivables/CustomerTCAArchitectureand
API/index.aspx
[http://www.erpschools.com/Apps/oracle
applications/articles/financials/Receivables/CustomerTCAArchitectureandAPI/index.aspx]

http://oracleappsviews.blogspot.in/

167/256

13/05/2015

KrishnaReddyOracleAppsInfo

AutoInvoiceinterface
ThisinterfaceisusedtoimportCustomerinvoices,Creditmemos,Debitmemosand
OnAccountcredits.
Prerequisites:
SetofBooks
Codecombinations
Items
Salesrepresentatives
Customers
SalesTaxrate
PaymentTerms
TransactionTypes
FreightCarriers
FOB
BatchSources
AccountingRules
Interfacetables:
RA_INTERFACE_LINES_ALL
RA_INTERFACE_SALESCREDITS
RA_INTERFACE_DISTRIBUTIONS
RA_INTERFACE_ERRORS(detailsaboutthefailedrecords)
Basetables:
RA_BATCHES
RA_CUSTOMER_TRX_ALL
RA_CUSTOMER_TRX_LINES_ALL
AR_PAYMENT_SCHEDULES_ALLRA_CUSTOMER_TRX_LINE_SALESREPS
RA_CUST_TRX_GL_DIST_ALL
RA_CUSTOMER_TRX_TYPES_ALL
ConcurrentProgram:
Autoinvoicemasterprogram
Validations:
Checkforamount,batchsourcename,conversionrate,conversiontype.
Validateorig_system_bill_customer_id,orig_system_bill_address_id,quantity.
Validateiftheamountincludestaxflag.
Someimportantcolumnsthatneedtobepopulatedintheinterfacetables:
RA_INTERFACE_LINES_ALL:
AGREEMENT_ID
COMMENTS
CONVERSION_DATE
CONVERSION_RATE
CONVERSION_TYPE
CREDIT_METHOD_FOR_ACCT_RULE
CREDIT_METHOD_FOR_INSTALLMENTS
CURRENCY_CODE
http://oracleappsviews.blogspot.in/

168/256

13/05/2015

KrishnaReddyOracleAppsInfo

CUSTOMER_BANK_ACCOUNT_ID
CUST_TRX_TYPE_ID
DOCUMENT_NUMBER
DOCUMENT_NUMBER_SEQUENCE_ID
GL_DATE
HEADER_ATTRIBUTE115
HEADER_ATTRIBUTE_CATEGORY
INITIAL_CUSTOMER_TRX_ID
INTERNAL_NOTES
INVOICING_RULE_ID
ORIG_SYSTEM_BILL_ADDRESS_ID
ORIG_SYSTEM_BILL_CONTACT_ID
ORIG_SYSTEM_BILL_CUSTOMER_ID
ORIG_SYSTEM_SHIP_ADDRESS_ID
ORIG_SYSTEM_SHIP_CONTACT_ID
ORIG_SYSTEM_SHIP_CUSTOMER_ID
ORIG_SYSTEM_SOLD_CUSTOMER_ID
ORIG_SYSTEM_BATCH_NAME
PAYMENT_SERVER_ORDER_ID
PREVIOUS_CUSTOMER_TRX_ID
PRIMARY_SALESREP_ID
PRINTING_OPTION
PURCHASE_ORDER
PURCHASE_ORDER_DATE
PURCHASE_ORDER_REVISION
REASON_CODE
RECEIPT_METHOD_ID
RELATED_CUSTOMER_TRX_ID
SET_OF_BOOKS_ID
TERM_ID
TERRITORY_ID
TRX_DATE
TRX_NUMBER

ReceiptAPI
To bring in Unapplied Receipts and Conversion Receipts for Open Debit items to
reducethebalancetotheoriginalamountdue.
Prerequisites:
SetofBooks
Codecombinations
Items
QuickCodes
Salesrepresentatives
Customers
SalesTaxrate

http://oracleappsviews.blogspot.in/

169/256

13/05/2015

KrishnaReddyOracleAppsInfo

API:
AR_RECEIPT_API_PUB.CREATE_CASH
AR_RECEIPT_API_PUB.CREATE_AND_APPLY
Basetables:
AR_CASH_RECEIPTS
Validations:
Checkthecurrencyandtheexchangeratetypetoassigntheexchangerate.
Validatebilltothecustomer.
Getbilltositeuseid.
Getthecustomertrxidforthisparticulartransactionnumber.
Getpaymentscheduledateforthecustomertrxid.

Lockboxinterface
AutoLockboxletsusautomaticallyprocessreceiptsthataresentdirectlytothebank
insteadofmanuallyfeedingtheminOracleReceivables.
AutoLockboxisathreestepprocess:
1.Import:Duringthisstep,Lockboxreadsandformatsthedatafromyour
bankfile
intointerfacetableAR_PAYMENTS_INTERFACE_ALLusingaSQL
*Loader
script.
2.Validation:Thevalidationprogramchecksdatainthisinterfacetable
for
compatibilitywithReceivables.Oncevalidated,thedataistransferredinto
QuickCashtables(AR_INTERIM_CASH_RECEIPTS_ALLand
AR_INTERIM_CASH_RCPT_LINES_ALL).
3.PostQuickCash:Thisstepappliesthereceiptsandupdatesyour
customers
balances.
PreRequisites:
Banks
ReceiptClass
PaymentMethod
ReceiptSource
Lockbox
Transmissionformat
AutoCashRulesets
Interfacetables:
AR_PAYMENTS_INTERFACE_ALL(Import
datafrombankfile)
AR_INTERIM_CASH_RECEIPTS_ALL
AR_INTERIM_CASH_RCPT_LINES_ALL (Validate data in
interfacetableandplaceinquickcashtables)
http://oracleappsviews.blogspot.in/

170/256

13/05/2015

KrishnaReddyOracleAppsInfo

BaseTables:
AR_CASH_RECEIPTS
AR_RECEIVABLES_APPLICATIONS
AR_ADJUSTMENTS
AR_DISTRIBUTIONS_ALL
AR_PAYMENT_SCHEDULES_ALL
Concurrentprogram:
Lockbox
Validations:
Checkforvalidrecordtype,transmissionrecordid.
Validatesumofthepaymentswithinthetransmission.
Identifythelockboxnumber(nogivenbyabanktoidentifyalockbox).
Someimportantcolumnsthatneedtobepopulatedintheinterfacetables:
AR_PAYMENTS_INTERFACE_ALL:
STATUS
RECORD_TYPE
LOCKBOX_NUMBER
BATCH_NAME
TRANSIT_ROUTING_NUMBER
ACCOUNT
CHECK_NUMBER
REMITTANCE_AMOUNT
DEPOSIT_DATE
ITEM_NUMBER
CURRENCY_CODE
DEPOSIT_TIME

APinvoiceinterface
ThisinterfacehelpsustoimportvendorinvoicesintoOracleapplicationsfrom
externalsystemsintoOracleApplications.
Prerequisites:
SetofBooks
Codecombinations
Employees
Lookups
Interfacetables:
AP_INVOICES_INTERFACE
AP_INVOICE_LINES_INTERFACE

Basetables:
http://oracleappsviews.blogspot.in/

171/256

13/05/2015

KrishnaReddyOracleAppsInfo

AP_INVOICES_ALLheaderinformation
AP_INVOICE_DISTRIBUTIONS_ALLlinesinfo
Concurrentprogram:
PayablesOpenInterfaceImport
Validations:
Checkforvalidvendor
CheckforSource,Location,org_id,currency_codesvalidity
Checkforvalidvendorsitecode.
Checkifrecordalreadyexistsinpayablesinterfacetable.
Someimportantcolumnsthatneedtobepopulatedintheinterfacetables:
AP_INVOICES_INTERFACE:
INVOICE_ID
INVOICE_NUM
INVOICE_DATE
VENDOR_NUM
VENDOR_SITE_ID
INVOICE_AMOUNT
INVOICE_CURRENCY_CODE
EXCHANGE_RATE
EXCHANGE_RATE_TYPE
EXCHANGE_DATE
DESCRIPTION
SOURCE
PO_NUMBER
PAYMENT_METHOD_LOOKUP_CODE
PAY_GROUP_LOOKUP_CODE
ATTRIBUTE1TO15
ORG_ID
AP_INVOICE_LINES_INTERFACE:
INVOICE_ID
INVOICE_LINE_ID
LINE_TYPE_LOOKUP_CODE
AMOUNT
DESCRIPTION
TAX_CODE
PO_NUMBER
PO_LINE_NUMBER
PO_SHIPMENT_NUM
PO_DISTRIBUTION_NUM
PO_UNIT_OF_MEASURE
QUANTITY_INVOICED
DIST_CODE_CONCATENATED
DIST_CODE_COMBINATION_ID
ATTRIBUTE1
ATTRIBUTE2
ATTRIBUTE3
http://oracleappsviews.blogspot.in/

172/256

13/05/2015

KrishnaReddyOracleAppsInfo

ATTRIBUTE4
ATTRIBUTE5
ORG_ID

Vendorconversion/interface
Thisinterfaceisusedtoimportsuppliers,suppliersitesandsitecontactsintoOracle
applications.
Prerequisitessetupsrequired:
Paymentterms
PayGroups
CCID
Supplierclassifications
BankAccounts
Employees(ifemployeeshavetosetupasvendors)
Interfacetables:
AP_SUPPLIERS_INT
AP_SUPPLIER_SITES_INT
AP_SUP_SITE_CONTACT_INT
BaseTables:
PO_VENDORS
PO_VENDOR_SITES_ALL
PO_VENDOR_CONTACTS
Interfaceprograms:
SupplierOpenInterfaceImport
SupplierSitesOpenInterfaceImport
SupplierSiteContactsOpenInterfaceImport
Validations:
Checkifvendoralreadyexists
Checkifvendorsitealreadyexists
Checkifsitecontactalreadyexists
Checkiftermisdefined.
Someimportantcolumnsthatneedtobepopulatedintheinterfacetables:
AP_SUPPLIERS_INT:
VENDOR_NUMBER,VENDOR_NAME,VENDOR_TYPE,
STATE_REPORTABLE,FED_REPORTABLE,NUM_1099,
TYPE_1099,PAY_GROUP_LOOKUP_CODE,VENDOR_IDisauto
http://oracleappsviews.blogspot.in/

173/256

13/05/2015

KrishnaReddyOracleAppsInfo

generated.
AP_SUPPLIER_SITES_INT:
VENDOR_SITE_ID,ORG_ID,VENDOR_SITE_CODE,
INACTIVE_DATE,PAY_SITE,PURCHASING_SITE,
SITE_PAYMENT_TERM,ADDRESS1,ADDRESS2.ADDRESS3,
CITY,STATE,COUNTRY,ZIP,PH_NUM,FAX_NUMBER,
TAX_REPORTING_SITE_FLAG.
AP_SUP_SITE_CONTACTS_INT:
VENDOR_ID,VENDOR_SITE_ID,FIRST_NAME,LAST_NAME,
AREA_CODE,PHONE,EMAIL,ORG_ID

PurchaseOrderconversion:
ThePurchasingDocumentOpenInterfaceconcurrentprogramwasreplacedbytwo
newconcurrentprogramsImportPriceCatalogsandImportStandardPurchase
Orders.ImportPriceCatalogsconcurrentprogramisusedtoimportCatalog
Quotations,StandardQuotations,andBlanketPurchaseAgreements.Import
StandardPurchaseOrdersconcurrentprogramisusedtoimportUnapprovedor
ApprovedStandardPurchaseOrders.
ImportStandardPurchaseOrders
Prerequisites:
Suppliers,sitesandcontacts
Buyers
LineTypes
Items
POChargeaccountsetup
InterfaceTables:
PO_HEADERS_INTERFACE
PO_LINES_INTERFACE
PO_DISTRIBUTIONS_INTERFACE
PO_INTERFACE_ERRORS(Fallouts)
InterfaceProgram:
ImportStandardPurchaseOrders.
BaseTables:
PO_HEADERS_ALL
PO_LINES_ALL
PO_DISTRIBUTIONS_ALL
PO_LINE_LOCATIONS_ALL
Validations:
Header:
http://oracleappsviews.blogspot.in/

174/256

13/05/2015

KrishnaReddyOracleAppsInfo

CheckifOUnameisvalid
CheckifSupplierisvalid
CheckifSuppliersiteisvalid
Checkifbuyerisvalid
CheckifPaymenttermisvalid
CheckifBilltoandshiptoarevalid
CheckifFOB,freighttermsarevalid
Lines:
CheckifLine_type,ship_to_org,item,uom,
ship_to_location_id,requestor,charge_account,
deliver_to_locationarevalid
General:
Checkforduplicaterecordsininterfacetables
Checkiftherecordalreadyexistsinbasetables.
Someimportantcolumnsthatneedtobepopulatedintheinterfacetables:
PO_HEADERS_INTERFACE:
INTERFACE_HEADER_ID
(PO_HEADERS_INTERFACE_S.NEXTVAL),BATCH_ID,
ORG_ID,INTERFACE_SOURCE_CODE,ACTION
(ORIGINAL,'UPDATE,'REPLACE),GROUP_CODE,
DOCUMENT_TYPE_CODE,PO_HEADER_ID(NULL),
RELEASE_ID,RELEASE_NUM,CURRENCY_CODE,RATE,
AGENT_NAME,VENDOR_ID,VENDOR_SITE_ID,
SHIP_TO_LOCATION,BILL_TO_LOCATION,
PAYMENT_TERMS
PO_LINES_INTERFACE:
INTERFACE_LINE_ID,INTERFACE_HEADER_ID,
LINE_NUM,SHIPMENT_NUM,ITEM,
REQUISITION_LINE_ID,UOM,UNIT_PRICE,
FREIGHT_TERMS,FOB
PO_DISTRIBUTIONS_INTERFACE:
INTERFACE_LINE_ID,INTERFACE_HEADER_ID,
INTERFACE_DISTRIBUTION_ID,DISTRIBUTION_NUM,
QUANTITY_ORDERED,QTY_DELIVERED,QTY_BILLED,
QTY_CANCELLED,DELIVER_TO_LOCATION_ID,
DELIVER_TO_PERSON_ID,SET_OF_BOOKS,
CHARGE_ACCT,AMOUNT_BILLED.
ImportBlanketPurchaseAgreements:
InterfaceTables:
PO_HEADERS_INTERFACE
PO_LINES_INTERFACE
Interfaceprogram:
http://oracleappsviews.blogspot.in/

175/256

13/05/2015

KrishnaReddyOracleAppsInfo

ImportPriceCatalogs
Basetables:
PO_HEADERS_ALL
PO_LINES_ALL
PO_LINE_LOCATIONS_ALL
Example:
Supposeyouwanttocreateablanketwithonelineandtwoprice
breaksandthedetailsforthepricebreakareasbelow:
1)Quantity=500,price=10,effectivedatefrom01JAN2006to
31JUN2006
2)Quantity=500,price=11,effectivedatefrom01JUL2006to
01JAN2007
TocreatetheabovetheBPA,youwouldcreateONErecordin
PO_HEADERS_INTERFACEandTHREErecordsin
PO_LINES_INTERFACE
LINE1:Itwillhaveonlythelineinformation.LINENUMwouldbe1.
LINE2:ForthefirstPriceBreakdetails,LINENUMwillbethesame
asabovei.e.1.SHIPMENT_NUMwouldbe1and
SHIPMENT_TYPEwouldbePRICEBREAK
LINE3:ForthesecondPriceBreakdetails,LINENUMwillbethe
sameasabovei.e.1.SHIPMENT_NUMwouldbe2and
SHIPMENT_TYPEwouldbePRICEBREAK
Allthelinelevelrecordsabovemusthavethesame
INTERFACE_HEADER_ID.
Fordetailedexplanationrefertothebelowarticle:
http://www.erpschools.com/Apps/oracle
applications/articles/financials/Purchasing/ImportBlanket
PurchaseAgreements/index.aspx

Requisitionimport
YoucanautomaticallyimportrequisitionsintoOracleApplicationsusingthe
RequisitionsOpenInterface
Prerequisites:
SetofBooks
Codecombinations
Employees
Items
DefineaRequisitionImportGroupBymethodintheDefaultregionofthePurchasing
Optionswindow.
AssociateacustomerwithyourdelivertolocationusingtheCustomerAddresses
windowforinternallysourcedrequisitions.
http://oracleappsviews.blogspot.in/

176/256

13/05/2015

KrishnaReddyOracleAppsInfo

Interfacetables:
PO_REQUISITIONS_INTERFACE_ALL
PO_REQ_DIST_INTERFACE_ALL
Basetables:
PO_REQUISITIONS_HEADERS_ALL
PO_REQUISITION_LINES_ALL
PO_REQ_DISTRIBUTIONS_ALL
Concurrentprogram:
REQUISITIONIMPORT
Validations:
Checkforinterfacetransactionsourcecode,requisitiondestinationtype.
Checkforquantityordered,authorizationstatustype.
Someimportantcolumnsthatneedtobepopulatedintheinterfacetables:
PO_REQUISITIONS_INTERFACE_ALL:
INTERFACE_SOURCE_CODE(toidentifythesourceofyour
imported
Requisitions)
DESTINATION_TYPE_CODE
AUTHORIZATION_STATUS
PREPARER_IDorPREPARER_NAME
QUANTITY
CHARGE_ACCOUNT_IDorchargeaccountsegmentvalues
DESTINATION_ORGANIZATION_IDor
DESTINATION_ORGANIZATION_
CODE
DELIVER_TO_LOCATION_IDorDELIVER_TO_LOCATION_CODE
DELIVER_TO_REQUESTOR_IDor
DELIVER_TO_REQUESTOR_NAME
ORG_ID
ITEM_IDoritemsegmentvalues(valuesifthe
SOURCE_TYPE_CODEor
DESTINATION_TYPE_CODEis
INVENTORY)
PO_REQ_DIST_INTERFACE_ALL:
CHARGE_ACCOUNT_IDorchargeaccountsegmentvalues
DISTRIBUTION_NUMBER
DESTINATION_ORGANIZATION_ID
DESTINATION_TYPE_CODE
INTERFACE_SOURCE_CODE
ORG_ID
DIST_SEQUENCE_ID(ifMULTI_DISTRIBUTIONSissettoY)

POReceiptsInterface
http://oracleappsviews.blogspot.in/

177/256

13/05/2015

KrishnaReddyOracleAppsInfo

TheReceivingOpenInterfaceisusedforprocessingandvalidatingreceiptdatathat
comesfromsourcesotherthantheReceiptswindowinPurchasing.
Prerequisites:
SetofBooks
Codecombinations
Employees
Items
Interfacetables:
RCV_HEADERS_INTERFACE
RCV_TRANSACTIONS_INTERFACE
PO_INTERFACE_ERRORS
Concurrentprogram:
RECEIVINGOPENINTERFACE
Basetables:
RCV_SHIPMENT_HEADERS
RCV_SHIPMENT_LINES
RCV_TRANSACTIONS
Validations:
CheckthatSHIPPED_DATEshouldnotbelaterthantoday.
Checkifvendorisvalid.
IfInvoicenumberispassed,checkforitsvalidity
CheckifItemisvalid
Someimportantcolumnsthatneedtobepopulatedintheinterfacetables:
RCV_HEADERS_INTERFACE:
HEADER_INTERFACE_ID
GROUP_ID
PROCESSING_STATUS_
CODE
RECEIPT_SOURCE_CODE
TRANSACTION_TYPE
SHIPMENT_NUM
RECEIPT_NUM
VENDOR_NAME
SHIP_TO_
ORGANIZATION_CODE
SHIPPED_DATE
INVOICE_NUM
INVOICE_DATE
TOTAL_INVOICE_
AMOUNT
PAYMENT_TERMS_ID
EMPLOYEE_NAME
VALIDATION_FLAG(Indicateswhethertovalidatearowornot,valuesY,
http://oracleappsviews.blogspot.in/

178/256

13/05/2015

KrishnaReddyOracleAppsInfo

N)
RCV_TRANSACTIONS_INTERFACE:
INTERFACE_TRANSACTION_ID
GROUP_ID
TRANSACTION_TYPE(SHIPforastandardshipment(anASNorASBN)
orRECEIVEforastandardreceipt)
TRANSACTION_DATE
PROCESSING_STATUS_CODE=PENDING
CATEGORY_ID
QUANTITY
UNIT_OF_MEASURE
ITEM_DESCRIPTION
ITEM_REVISION
EMPLOYEE_ID
AUTO_TRANSACT_CODE
SHIP_TO_LOCATION_ID
RECEIPT_SOURCE_CODE
TO_ORGANIZATION_CODE
SOURCE_DOCUMENT_CODE
PO_HEADER_ID
PO_RELEASE_ID
PO_LINE_ID
PO_LINE_LOCATION_ID
PO_DISTRIBUTION_ID
SUBINVENTORY
HEADER_INTERFACE_ID
DELIVER_TO_PERSON_NAME
DELIVER_TO_LOCATION_CODE
VALIDATION_FLAG
ITEM_NUM
VENDOR_ITEM_NUM
VENDOR_ID
VENDOR_SITE_ID
ITEM_ID
ITEM_DESCRIPTION
SHIP_TO_LOCATION_ID

GLJournalinterface
ThisinterfaceletsyouimportjournalsfromotherapplicationslikeReceivables,
PayablesetctointegratetheinformationwithGeneralLedger.
Prerequisites:
SetofBooks
FlexfieldValuesets
CodeCombinations
Currencies
http://oracleappsviews.blogspot.in/

179/256

13/05/2015

KrishnaReddyOracleAppsInfo

Categories
JournalSources
Interfacetables:
GL_INTERFACE
Basetables:
GL_JE_HEADERS
GL_JE_LINES
GL_JE_BACTHES
ConcurrentProgram:
JournalImport
JournalPostingpopulatesGL_BALANCES
Validations:
ValidateSOB,journalsourcename,journalcategoryname,actual
flag
AActualamounts
BBudgetamounts
EEncumbranceamount
IfyouenterEintheinterfacetable,thenenterappropriate
encumbranceID,if
Benterbudgetid.
CheckifaccountingdateorGLdatebasedperiodnameis
valid(i.e.,notclosed).
Checkifaccountingdatefallsinopenorfutureopenperiod
status.
CheckchartofaccountsidbasedonSobid.
Checkifcodecombinationisvalidandenabled.
CheckifrecordalreadyexistsinGLinterfacetable.
CheckifalreadyjournalexistsinGLapplication.
Someimportantcolumnsthatneedtobepopulatedintheinterfacetables:
GL_INTERFACE:
STATUS
SET_OF_BOOKS_ID
ACCOUNTING_DATE
CURRENCY_CODE
DATE_CREATED
CREATED_BY
ACTUAL_FLAG
USER_JE_CATEGORY_NAME
USER_JE_SOURCE_NAME
CURRENCY_CONVERSION_DATE
ENCUMBRANCE_TYPE_ID
BUDGET_VERSION_ID
USER_CURRENCY_CONVERSION_TYPE
CURRENCY_CONVERSION_RATE
SEGMENT1to
ENTERED_DR
http://oracleappsviews.blogspot.in/

180/256

13/05/2015

KrishnaReddyOracleAppsInfo

ENTERED_CR
ACCOUNTED_DR
ACCOUNTED_CR
TRANSACTION_DATE
PERIOD_NAME
JE_LINE_NUM
CHART_OF_ACCOUNTS_ID
FUNCTIONAL_CURRENCY_CODE
CODE_COMBINATION_ID
DATE_CREATED_IN_GL
GROUP_ID

GLbudgetinterface
BudgetinterfaceletsyouloadbudgetdatafromexternalsourcesintoOracle
Applications.
Prerequisites:
SetofBooks
FlexfieldValuesets
CodeCombinations
Interfacetables:
GL_BUDGET_INTERFACE
Basetables:
GL_BUDGETS
GL_BUDGET_ASSIGNMENTS
GL_BUDGET_TYPES
Concurrentprogram:
BudgetUpload
Validations:
CheckifCURRENCY_CODEisvalid.
CheckifSET_OF_BOOKS_IDisvalid.
CheckifBUDGET_ENTITY_NAME(budgetorganization)isvalid.

Someimportantcolumnsthatneedtobepopulatedintheinterfacetables:
GL_BUDGET_INTERFACE:
BUDGET_NAMENOT
BUDGET_ENTITY_NAME
CURRENCY_CODE
FISCAL_YEAR
http://oracleappsviews.blogspot.in/

181/256

13/05/2015

KrishnaReddyOracleAppsInfo

UPDATE_LOGIC_TYPE
BUDGET_ENTITY_ID
SET_OF_BOOKS_ID
CODE_COMBINATION_ID
BUDGET_VERSION_ID
PERIOD_TYPE
DR_FLAG
STATUS
ACCOUNT_TYPE
PERIOD1_AMOUNTthroughPERIOD60_AMOUNT
SEGMENT1throughSEGMENT30

GLdailyconversionrates
ThisinterfaceletsyouloadtheratesautomaticallyintoGeneralLedger.
Prerequisites:
Currencies
ConversionrateTypes
Interfacetables:
GL_DAILY_RATES_INTERFACE
Basetables:
GL_DAILY_RATES
GL_DAILY_CONVERSION_TYPES
ConcurrentProgram:
Youdonotneedtorunanyimportprograms.Theinsert,update,or
deletionofratesinGL_DAILY_RATESisdoneautomaticallybydatabase
triggersontheGL_DAILY_RATES_INTERFACE.Allthatisrequiredisto
developprogramtopopulatetheinterfacetablewithdailyrates
information.
Validations:
Checkif
FROM_CURRENCYandTO_CURRENCYarevalid.
CheckifUSER_CONVERSION_TYPEisvalid.
Someimportantcolumnsthatneedtobepopulatedintheinterfacetables:
GL_DAILY_RATES_INTERFACE:
FROM_CURRENCY
TO_CURRENCY
FROM_CONVERSION_DATE
TO_CONVERSION_DATE
USER_CONVERSION_TYPE
CONVERSION_RATE
MODE_FLAG(D=Delete,I=Insert,U=Update)
http://oracleappsviews.blogspot.in/

182/256

13/05/2015

KrishnaReddyOracleAppsInfo

INVERSE_CONVERSION_RATE
Posted29thAugust2012byKrishnareddy
0 Addacomment

29thAugust2012

OrdertoCashcycle(O2C)

Inthisarticle,wewillgothroughtheOrdertoCashcycle.Thebelowarethestepsinshort:

EntertheSalesOrder
BooktheSalesOrder
LaunchPickRelease
ShipConfirm
CreateInvoice
CreatetheReceiptseithermanuallyorusingAutoLockbox(Inthisarticlewewill
concentrateonManualcreation)
TransfertoGeneralLedger
JournalImport
Posting
Letsgetintothedetailsofeachstepmentionedabove.

EntertheSalesOrder:

Navigation:
OrderManagementSuperUserOperations(USA)>OrdersReturns>SalesOrders

EntertheCustomerdetails(ShiptoandBilltoaddress),Ordertype.

ClickonLinesTab.EntertheItemtobeorderedandthequantityrequired.

LineisscheduledautomaticallywhentheLineItemissaved.
Scheduling/unschedulingcanbedonemanuallybyselectingSchedule/Unschedulefromthe
ActionsMenu.
http://oracleappsviews.blogspot.in/

183/256

13/05/2015

KrishnaReddyOracleAppsInfo

YoucancheckiftheitemtobeorderedisavailableintheInventorybyclickingonAvailability
Button.

Savethework.

UnderlyingTablesaffected:

InOracle,Orderinformationismaintainedattheheaderandlinelevel.
TheheaderinformationisstoredinOE_ORDER_HEADERS_ALLandthelineinformationin
OE_ORDER_LINES_ALLwhentheorderisentered.ThecolumncalledFLOW_STATUS_CODE
isavailableinboththeheadersandlinestableswhichtellusthestatusoftheorderateachstage.

Atthisstage,theFLOW_STATUS_CODEinOE_ORDER_HEADERS_ALLisEntered

BooktheSalesOrder:

BooktheOrderbyclickingontheBookOrderbutton.

NowthattheOrderisBOOKED,thestatusontheheaderischangeaccordingly.

Underlyingtablesaffected:

Atthisstage:
TheFLOW_STATUS_CODEinthetableOE_ORDER_HEADERS_ALLwouldbe
BOOKED
TheFLOW_STATUS_CODEinOE_ORDER_LINES_ALLwillbe
AWAITING_SHIPPING.
Record(s)willbecreatedinthetableWSH_DELIVERY_DETAILSwith
RELEASED_STATUS=R(ReadytoRelease)
AlsoRecord(s)willbeinsertedintoWSH_DELIVERY_ASSIGNMENTS.
AtthesametimeDEMANDINTERFACEPROGRAMrunsinthebackgroundandinserts
http://oracleappsviews.blogspot.in/

184/256

13/05/2015

KrishnaReddyOracleAppsInfo

intoMTL_DEMAND

LaunchPickRelease:
Navigation:
Shipping>ReleaseSalesOrder>ReleaseSalesOrders.

KeyinBasedonRuleandOrderNumber

IntheShippingTabkeyinthebelow:
AutoCreateDelivery:Yes
AutoPickConfirm:Yes
AutoPackDelivery:Yes

IntheInventoryTab:
AutoAllocate:Yes
EntertheWarehouse

ClickonExecuteNowButton.
Onsuccessfulcompletion,thebelowmessagewouldpopupasshownbelow.

http://oracleappsviews.blogspot.in/

185/256

13/05/2015

KrishnaReddyOracleAppsInfo

PickReleaseprocessinturnwillkickoffseveralotherrequestslikePickSlipReport,
ShippingExceptionReportandAutoPackReport

UnderlyingTablesaffected:
If Autocreate Delivery is set to Yes then a new record is created in the table
WSH_NEW_DELIVERIES.
DELIVERY_IDispopulatedinthetableWSH_DELIVERY_ASSIGNMENTS.
The RELEASED_STATUS in WSH_DELIVERY_DETAILS would be now set to Y (Pick
Confirmed)ifAutoPickConfirmissettoYesotherwiseRELEASED_STATUSisS(Releaseto
Warehouse).

PickConfirmtheOrder:
IFAutoPickConfirmintheabovestepissettoNO,thenthefollowingshouldbedone.
Navigation:
InventorySuperUser>MoveOrder>TransactMoveOrder

IntheHEADERtab,entertheBATCHNUMBER(fromtheabovestep)oftheorder.ClickFIND.
ClickonVIEW/UPDATEAllocation,thenClickTRANSACTbutton.ThenTransactbuttonwillbe
deactivatedthenjustcloseitandgotonextstep.

ShipConfirmtheOrder:

Navigation:

OrderManagementSuperUser>Shipping>Transactions.

QuerywiththeOrderNumber.

ClickOnDeliveryTab

http://oracleappsviews.blogspot.in/

186/256

13/05/2015

KrishnaReddyOracleAppsInfo

ClickonShipConfirm.

TheStatusinShippingTransactionscreenwillnowbeclosed.

Thiswillkickoffconcurrentprogramslike.INTERFACETRIPStop,CommercialInvoice,Packing
SlipReport,BillofLading
Underlyingtablesaffected:

RELEASED_STATUSinWSH_DELIVERY_DETAILSwouldbeC(ShipConfirmed)
FLOW_STATUS_CODEinOE_ORDER_HEADERS_ALLwouldbeBOOKED
FLOW_STATUS_CODEinOE_ORDER_LINES_ALLwouldbeSHIPPED

CreateInvoice:

RunworkflowbackgroundProcess.

Navigation:
OrderManagement>view>Requests

WorkflowBackgroundProcessinsertstherecordsRA_INTERFACE_LINES_ALLwith

http://oracleappsviews.blogspot.in/

187/256

13/05/2015

KrishnaReddyOracleAppsInfo

INTERFACE_LINE_CONTEXT=ORDERENTRY
INTERFACE_LINE_ATTRIBUTE1=Order_number
INTERFACE_LINE_ATTRIBUTE3=Delivery_id

andspawnsAutoinvoiceMasterProgramandAutoinvoiceimportprogramwhichcreatesInvoice
forthatparticularOrder.

TheInvoicecreatedcanbeseenusingtheReceivablesresponsibility
Navigation:
ReceivablesSuperUser>Transactions>Transactions

QuerywiththeOrderNumberasReference.

Underlyingtables:
RA_CUSTOMER_TRX_ALL will have the Invoice header information. The column
INTERFACE_HEADER_ATTRIBUTE1willhavetheOrderNumber.
RA_CUSTOMER_TRX_LINES_ALL will have the Invoice lines information. The column
INTERFACE_LINE_ATTRIBUTE1willhavetheOrderNumber.

Createreceipt:
Navigation:
Receivables>Receipts>Receipts

Entertheinformation.

ClickonApplyButtontoapplyittotheInvoice.

http://oracleappsviews.blogspot.in/

188/256

13/05/2015

KrishnaReddyOracleAppsInfo

Underlyingtables:
AR_CASH_RECEIPTS_ALL

TransfertoGeneralLedger:
TotransfertheReceivablesaccountinginformationtogeneralledger,runGeneralLedgerTransfer
Program.

Navigation:
Receivables>ViewRequests

Parameters:

GiveintheStartdateandPostthroughdatetospecifythedaterangeofthetransactionsto
betransferred.
SpecifytheGLPostedDate,defaultstoSYSDATE.
Postinsummary:ThiscontrolshowReceivablescreatesjournalentriesforyourtransactions
intheinterfacetable.IfyouselectNo,thentheGeneralLedgerInterfaceprogramcreatesat
leastonejournalentryintheinterfacetableforeachtransactioninyourpostingsubmission.
IfyouselectYes,thentheprogramcreatesonejournalentryforeachgeneralledger
account.
IftheParameterRunJournalImportissettoYes,thejournalimportprogramiskickedoff
automaticallywhichtransfersjournalentriesfromtheinterfacetabletoGeneralLedger,
otherwisefollowthetopicJournalImporttoimportthejournalstoGeneralLedgermanually.

Underlyingtables:

Thistransfersdataaboutyouradjustments,chargeback,creditmemos,commitments,debit
memos,invoices,andreceiptstotheGL_INTERFACEtable.

http://oracleappsviews.blogspot.in/

189/256

13/05/2015

KrishnaReddyOracleAppsInfo

JournalImport:

TotransferthedatafromGeneralLedgerInterfacetabletoGeneralLedger,runtheJournalImport
programfromOracleGeneralLedger.

Navigation:
GeneralLedger>Journal>Import>Run

Parameters:
SelecttheappropriateSource.
EnteroneofthefollowingSelectionCriteria:
NoGroupID:ToimportalldataforthatsourcethathasnogroupID.Usethisoptionifyou
specifiedaNULLgroupIDforthissource.
AllGroupIDs:ToimportalldataforthatsourcethathasagroupID.Usethisoptiontoimport
multiplejournalbatchesforthesamesourcewithvaryinggroupIDs.
SpecificGroupID:Toimportdataforaspecificsource/groupIDcombination.Choosea
specificgroupIDfromtheListofValuesfortheSpecificValuefield.
IfyoudonotspecifyaGroupID,GeneralLedgerimportsalldatafromthespecifiedjournal
entrysource,wheretheGroup_IDisnull.
DefinetheJournalImportRunOptions(optional)
ChoosePostErrorstoSuspenseifyouhavesuspensepostingenabledforyoursetofbooks
topostthedifferenceresultingfromanyunbalancedjournalstoyoursuspenseaccount.
ChooseCreateSummaryJournalstohavejournalimportcreatethefollowing:
onejournallineforalltransactionsthatsharethesameaccount,period,andcurrencyand
thathasadebitbalance
onejournallineforalltransactionsthatsharethesameaccount,period,andcurrencyand
thathasacreditbalance.
EnteraDateRangetohaveGeneralLedgerimportonlyjournalswithaccountingdatesinthat
range.Ifyoudonotspecifyadaterange,GeneralLedgerimportsalljournalsdata.
ChoosewhethertoImportDescriptiveFlexfields,andwhethertoimportthemwithvalidation.
ClickonImportbutton.

http://oracleappsviews.blogspot.in/

190/256

13/05/2015

KrishnaReddyOracleAppsInfo

Underlyingtables:

GL_JE_BATCHES,GL_JE_HEADERS,GL_JE_LINES

Posting:

WehavetoPostjournalbatchesthatwehaveimportedpreviouslytoupdatetheaccount
balancesinGeneralLedger.

Navigation:

GeneralLedger>Journals>Enter

Queryfortheunpostedjournalsforaspecificperiodasshownbelow.

Fromthelistofunpostedjournalsdisplayed,selectonejournalatatimeandclickonPostbutton
topostthejournal.

IfyouknowthebatchnametobepostedyoucandirectlypostusingthePostwindow

Navigation:
GeneralLedger>Journals>Post

Underlyingtables:
http://oracleappsviews.blogspot.in/

191/256

13/05/2015

KrishnaReddyOracleAppsInfo

GL_BALANCES.

Posted29thAugust2012byKrishnareddy
0 Addacomment

29thAugust2012

ProcuretoPayCycle(P2P)

Inthisarticle,wewillseethestepsinvolvedinProcuretoPayCycle.Hereisthediagrammatic
representation:

1)CreateRequisition:
Requisitionisnothingbutaformalrequesttobuysomething(likeInventorymaterial,office
suppliesetc)neededfortheenterprise.Onlyanemployeecancreateone.Therearetwotypesof
requisitions:

InternalRequisition:Internalrequisitionsprovidethemechanismforrequestingandtransferring
materialfromoneinventorytootherinventory.
Purchaserequisition:UnlikeInternalrequisitions,Purchaserequisitionsareusedforrequesting
materialfromsuppliers.

Navigation:
PurchasingVisionOperations(USA)>Requisitions>Requisitions
ChoosetherequisitiontypeandentertheItem,quantity,PricedetailsintheLinestab.

InSourceDetailstab,specifytheBuyername.

ClicktheDistributionsbutton.EntertheChargeAccount.
http://oracleappsviews.blogspot.in/

192/256

13/05/2015

KrishnaReddyOracleAppsInfo

Savethework.ThestatusoftherequisitionwillnowbeIncomplete.AndnowtheApprove
buttonishighlighted.Therequisitionneedstobeapprovedfirstbeforeproceedingfurtherbythe
concernedauthority.SubmitthisrequisitionforApprovalbyclickingontheApprovebutton.The
statuswillnowbeupdatedtoInProcess.TheworkflowthenwillsendanApprovalnotificationto
theconcernedperson(derivedbasedonhierarchyusedPositionorSupervisorhierarchy)using
whichhecanApproveorRejecttherequisition.

AtanytimethestatusofrequisitioncanbecheckedusingtheRequisitionsummarywindow.

Navigation:
Requisitions>RequisitionSummary
Enterrequisitionnumberandclickonthefindbutton.

WecanalsochecktheActionHistoryofrequisition(itwillshowdetailsaboutwhohassubmitted,
approvedandcancelledtherequisitions)
asbelow:

Navigation:
Toolsmenu>ActionHistory.

UnderlyingTables:
PO_REQUISITION_HEADERS_ALL
PO_REQUISITION_LINES_ALL
PO_REQ_DISTRIBUTIONS_ALL

http://oracleappsviews.blogspot.in/

193/256

13/05/2015

KrishnaReddyOracleAppsInfo

2)CreatePurchaseOrder:

Thereare4typesofPurchaseOrders:
1.StandardPO:AStandardPOiscreatedforonetimepurchaseofvariousitems
2.PlannedPO:APlannedPOisalongtermagreementcommittingtobuyitemsorservices
fromasinglesource.Youmustspecifytentativedeliveryschedulesandalldetailsforgoodsor
servicesthatyouwanttobuy,includingchargeaccount,quantities,andestimatedcost.
3.Blanketagreement:ABlanketPOiscreatedwhenyouknowthedetailofthegoodsor
servicesyouplantobuyfromaspecificsupplierinaperiod,butyoudonotknowthedetailof
yourdeliveryschedules.
4.Contractagreement:Contractpurchaseagreementsarecreatedwithyoursupplierstoagree
onspecifictermsandconditionswithoutindicatingthegoodsandservicesthatyouwillbe
purchasing

NavigationforcreatingastandardPO:
PurchaseOrders>PurchaseOrders

ChoosetypeasStandardPurchaseOrder.EntertheSupplier,Buyer.IntheLinestab,specifythe
linenumber,linetype,Item,quantity,priceetc.

ClickTermstoenterterms,conditions,andcontrolinformationforpurchaseorders.
ClickCurrencybuttontoenterandchangecurrencyinformationforpurchaseorders,RFQs,and
quotations.
ClickShipmentsbuttontoentermultipleshipmentsforstandardandplannedpurchaseorderlines
Purchaseordershipmentspecifiesthequantity,shiptoorganizationandlocation,dateyouwant
yoursuppliertodelivertheitemsonapurchaseorderline,andcountryoforiginfortheitems.
Whenyousave,Purchasingcreatesdistributionsdependingonthedefaultinformationavailable.

Toentermoreshipmentinformation,selecttheMoretab.
EntertheReceiptCloseTolerancepercent,InvoiceCloseTolerancepercenttosetthe
receivingandinvoiceclosepoint.
http://oracleappsviews.blogspot.in/

194/256

13/05/2015

KrishnaReddyOracleAppsInfo

SelectoneofthefollowingoptionsforMatchApprovalLevel:
TwoWay:Purchaseorderandinvoicequantitiesmustmatchwithintolerancebeforethe
correspondinginvoicecanbepaid.
ThreeWay:Purchaseorder,receipt,andinvoicequantitiesmustmatchwithintolerance
beforethecorrespondinginvoicecanbepaid.
FourWay:Purchaseorder,receipt,accepted,andinvoicequantitiesmustmatchwithin
tolerancebeforethecorrespondinginvoicecanbepaid.
SelectanInvoiceMatchOption:
PurchaseOrder:Payablesmustmatchtheinvoicetothepurchaseorder.
Receipt:Payablesmustmatchtheinvoicetothereceipt.
Savethework.

ClicktheReceivingControlsbuttontoenterreceivingcontrolinformationforpurchaseorders.
EnterthemaximumacceptablenumberofDaysEarlyandDaysLateforreceipts.
EntertheActionforreceiptdatecontrol.
EnterthemaximumacceptableoverreceiptTolerancepercent(receiptsthatexceedthe
quantityreceivedtolerance).
EntertheActionforOverreceiptQuantity.
SelectAllowSubstituteReceiptstoindicatethatreceiverscanreceivesubstituteitemsinplace
ofordereditems.
EnterthedefaultReceiptRoutingthatyouassigngoods:DirectDelivery,InspectionRequired,
orStandardReceipt.
EntertheEnforceShipTolocationoptiontodeterminewhetherthereceivinglocationmustbe
thesameastheshiptolocation.
Savethework.

http://oracleappsviews.blogspot.in/

195/256

13/05/2015

KrishnaReddyOracleAppsInfo

ClickDistributionsbuttontoenterdistributionsfortheshipments.
Selectmoretabtoentermoredetailsandtherequisitionnumber(optional).
Savethework.

ClickontheApprovebuttontoinitiatetheApprovalprocess.

UnderlyingTables:

PO_HEADERS_ALL
PO_LINES_ALL
PO_DISTRIBUTIONS_ALL(REQ_HEADER_REFERENCE_NUMinDistributionstableisthe
RequisitionnumberforthisPO)

3)CreateReceipt:
CreateareceipttoreceivetheitemsinthePurchaseOrder.

Navigation:
ReceivingReceipts
EnterthePONumberandselectfindbutton.

GotoLines,checkthelinesyouwanttoreceiveinthePO.

ClickonHeaderbuttonandSavewhichcreatesthereceipt.
http://oracleappsviews.blogspot.in/

196/256

13/05/2015

KrishnaReddyOracleAppsInfo

ReceiptTablesare:
RCV_SHIPMENT_HEADERS
RCV_SHIPMENT_LINES(LinesTablehasPO_HEADER_ID)

4)CreateInvoiceinPayables:
Oncethegoodsarereceived,itstimetopaythevendorforthegoodspurchasedandhencethe
invoicesarecreated.

Navigation:
Payables,VisionOperations(USA)>InvoicesEntryInvoices
EntertypeStandard,supplierinformationandamount.

ClicktheMatchbuttontomatchtoeitherPurchaseOrderorReceipt(dependingontheInvoice
MatchoptionspecifiedonthePO)andavoidmanuallyenteringtheinvoice.
EnterthePONumberyouwantmatchtoandclickFind.

SelectthelinesrequiredandclickonMatchbutton.

ClickonDistributebutton
tonavigatetotheMatchtoPurchaseOrderDistributionswindow.
ThiscreatestheinvoiceandyoucanseethestatusoftheinvoiceasNeverValidated.ithasto
beValidatedandAccountedbeforeyoucanpayit.

http://oracleappsviews.blogspot.in/

197/256

13/05/2015

KrishnaReddyOracleAppsInfo

ValidatingtheInvoice:
ClickonActionsButtonandSelectValidate.ClickonOKbutton.

NowyoucanseethestatusoftheinvoiceasValidated,iftherearenoissuesduringvalidation.

CreateAccountingEntries:

ClickonActionsButtonandSelectCreateAccouting.ClickonOKbutton.

NowwecanseetheAccountedstatusasYes.

YoucanseetheAccountingEntrieshere:
ToolsViewAccounting

InvoiceTables:
AP_INVOICES_ALL
AP_INVOICE_DISTRIBUTIONS_ALL

AccountingEntriesTables:
AP_ACCOUNTING_EVENTS_ALL
http://oracleappsviews.blogspot.in/

198/256

13/05/2015

KrishnaReddyOracleAppsInfo

AP_AE_HEADERS_ALL
AP_AE_LINES_ALL

5)MakingaPayment:
GototheInvoicewindowandquerytheinvoiceyouwanttopay.YouwouldseeAmountpaidas
0.00beforeyoumakeapayment.

ClickActionsbutton.SelectPayinfullandclickOK.

SelecttheBankAccountandDocument.SavetheWork.

Nowthatthepaymentismade,whenyouqueryfortheinvoiceinInvoicewindow,youwillthe
AmountPaidas$4,000.00.

CreateAccountingentriesforpayment.
ClickActionsandselectCreateAccounting

Selectthevoidcheckboxtocancelthepayment.

ViewAccountingEntries:
InthePaymentswindow,queryforthepayment.
ToolsmenuViewAccounting

http://oracleappsviews.blogspot.in/

199/256

13/05/2015

KrishnaReddyOracleAppsInfo

PaymentTables:
AP_INVOICE_PAYMENTS_ALL
AP_PAYMENT_SCHEDULES_ALL
AP_CHECKS_ALL
AP_CHECK_FORMATS
AP_BANK_ACCOUNTS_ALL
AP_BANK_BRANCHES
AP_TERMS

YoucanalsopaytheinvoicesusingPaymentBatchscreen.RefertothearticleMakeAP
PaymentsthroughPaymentBatches

6)TransfertoGeneralLedger:
Navigation:
PayablesResponsibility>ViewRequests
RuntheconcurrentprogramPayablesTransfertoGeneralLedgerwiththerequiredparameters.

JournalImport:
RefertotheArticleOrdertoCashCycle.

Posting:
RefertotheArticleOrdertoCashCycle.

ProcuretopayQuery:

http://oracleappsviews.blogspot.in/

200/256

13/05/2015

KrishnaReddyOracleAppsInfo

Includestwoscriptstofetchallthetransactionsinformationrelatedwithinaprocureto
paycycle.
Twoscriptsareprovidedtouseonewithreceiptsandotherwhenreceiptsarenot
created.
FewimportantfieldsthatwereincludedinthescriptareRequisitionNumber,Purchase
OrderNumber,InvoiceNumber,CustomerNumber,InvoiceAmount,GLTransferflag
e.t.c
WITHOUTRECEIPTS
ProcuretoPayquerywithoutreceipts
selectdistinct

reqh.segment1REQ_NUM,

reqh.AUTHORIZATION_STATUSREQ_STATUS,

poh.po_header_id,

poh.segment1PO_NUM,

pol.line_num,

poh.AUTHORIZATION_STATUSPO_STATUS,

i.invoice_id,

i.invoice_num,

i.invoice_amount,

i.amount_paid,

i.vendor_id,

v.vendor_name,

http://oracleappsviews.blogspot.in/

201/256

13/05/2015

KrishnaReddyOracleAppsInfo

p.check_id,

c.check_number,

h.gl_transfer_flag,

h.period_name

fromap_invoices_alli,

ap_invoice_distributions_allinvd,

po_headers_allpoh,

po_lines_allpol,

po_distributions_allpod,

po_vendorsv,

po_requisition_headers_allreqh,

po_requisition_lines_allreql,

po_req_distributions_allreqd,

ap_invoice_payments_allp,

ap_checks_allc,

ap_ae_headers_allh,

ap_ae_lines_alll

where1=1

andi.vendor_id=v.vendor_id

andc.check_id=p.check_id

andp.invoice_id=i.invoice_id

andpoh.PO_HEADER_ID=pol.PO_HEADER_ID

andreqh.REQUISITION_HEADER_ID=reql.REQUISITION_HEADER_ID

andreqd.REQUISITION_LINE_ID=reql.REQUISITION_LINE_ID

andpod.REQ_DISTRIBUTION_ID=reqd.DISTRIBUTION_ID

andpod.PO_HEADER_ID=poh.PO_HEADER_ID
http://oracleappsviews.blogspot.in/

202/256

13/05/2015

KrishnaReddyOracleAppsInfo

andpod.PO_DISTRIBUTION_ID=invd.PO_DISTRIBUTION_ID

andinvd.INVOICE_ID=i.INVOICE_ID

andh.ae_header_id=l.ae_header_id

andl.SOURCE_TABLE='AP_INVOICES'

ANDl.SOURCE_ID=i.invoice_id

andpoh.segment1=4033816PONUMBER

andreqh.segment1='501'REQNUMBER

andi.invoice_num=3114INVOICENUMBER

andc.check_number=CHECKNUMBER

andvendor_id=VENDORID
WITHRECEIPTS
PROCURETOPAYCYCLEQUERYWITHRECEIPTS
SELECTDISTINCTreqh.segment1req_num,reqh.authorization_statusreq_statu
s,

POH.PO_HEADER_ID,

poh.segment1po_num,pol.line_num,

poh.authorization_statuspo_status,rcvh.receipt_num,

rcv.inspection_status_code,

I.INVOICE_ID,

i.invoice_num,i.invoice_amount,

i.amount_paid,i.vendor_id,

V.VENDOR_NAME,

P.CHECK_ID,

c.check_number,h.gl_transfer_flag,

h.period_name

FROMap_invoices_alli,

http://oracleappsviews.blogspot.in/

203/256

13/05/2015

KrishnaReddyOracleAppsInfo

ap_invoice_distributions_allinvd,

po_headers_allpoh,

po_lines_allpol,

po_distributions_allpod,

po_vendorsv,

po_requisition_headers_allreqh,

po_requisition_lines_allreql,

po_req_distributions_allreqd,

rcv_transactionsrcv,

rcv_shipment_headersrcvh,

rcv_shipment_linesrcvl,

ap_invoice_payments_allp,

ap_checks_allc,

ap_ae_headers_allh,

ap_ae_lines_alll

WHERE1=1

ANDi.vendor_id=v.vendor_id

ANDc.check_id=p.check_id

ANDp.invoice_id=i.invoice_id

ANDpoh.po_header_id=pol.po_header_id

ANDreqh.requisition_header_id=reql.requisition_header_id

ANDreqd.requisition_line_id=reql.requisition_line_id

ANDpod.req_distribution_id=reqd.distribution_id

ANDpod.po_header_id=poh.po_header_id

ANDPOH.PO_HEADER_ID=RCV.PO_HEADER_ID

ANDrcvh.shipment_header_id=rcv.shipment_header_id(+)
http://oracleappsviews.blogspot.in/

204/256

13/05/2015

KrishnaReddyOracleAppsInfo

ANDRCVH.SHIPMENT_HEADER_ID=RCVL.SHIPMENT_HEADER_ID

ANDRCV.TRANSACTION_TYPE='RECEIVE'

ANDRCV.SOURCE_DOCUMENT_CODE='PO'

ANDPOL.PO_LINE_ID=RCV.PO_LINE_ID

ANDPOD.PO_DISTRIBUTION_ID=RCV.PO_DISTRIBUTION_ID

ANDpod.po_distribution_id=invd.po_distribution_id

ANDinvd.invoice_id=i.invoice_id

ANDh.ae_header_id=l.ae_header_id

ANDl.source_table='AP_INVOICES'

ANDl.source_id=i.invoice_id

ANDPOH.SEGMENT1=36420PONUMBER

ANDreqh.segment1='501'REQNUMBER

ANDI.INVOICE_NUM=3114INVOICENUMBER

ANDC.CHECK_NUMBER=CHECKNUMBER

ANDVENDOR_ID=VENDORID

ANDRECEIPT_NUM=692237

Posted29thAugust2012byKrishnareddy
0 Addacomment

29thAugust2012 ApprovalhierarchiesfortheRequisitionin
Purchasing
Approvalhierarchiesletyouautomaticallyroutedocumentsforapproval.Therearetwokindsof
approvalhierarchiesinPurchasing:positionhierarchyandemployee/supervisorrelationships.
Ifanemployee/supervisorrelationshipisused,theapprovalroutingstructuresaredefinedasyou
enteremployeesusingtheEnterPersonwindow.Inthiscase,positionsarenotrequiredtobe
setup.
http://oracleappsviews.blogspot.in/

205/256

13/05/2015

KrishnaReddyOracleAppsInfo

Ifyouchoosetousepositionhierarchies,youmustsetuppositions.Eventhoughtheposition
hierarchiesrequiremoreinitialefforttosetup,theyareeasytomaintainandallowyoutodefine
approvalroutingstructuresthatremainstableregardlessofhowfrequentlyindividualemployees
leaveyourorganizationorrelocatewithinit.

SetupsrequiredforPositionhierarchyindetail:
SaywewanttoimplementthebelowpositionhierarchyfortheRequisitionDocumentapproval
routinginPurchasing(EachrectanglerepresentsaPosition),belowarethesetupsrequired:

1)EnablethecheckboxUseApprovalHierarchies

Navigation:
PurchasingResponsibility>Setup>Organizations>FinancialOptions
ClickHumanResourcestab.tousepositionsandpositionhierarchiestodetermineapprovalpaths
foryourdocumentswithinPurchasing.(Disablethisoptionifyouwantapprovalpathsbasedon
thesupervisorstructure)

2)CreatePositionsS20,MGR,DIRbasedontheabovehierarchyinHR.

Navigation:
HumanResourcesresponsibility>WorkStructures>Position>Description
ClickonNewButtonandentertherequiredfields.

SimilarlycreateMGRandDIRpositions.

3)AssignthepositionscreatedtotheEmployeeswhofallundertheportfolio.Eachpositioncan
http://oracleappsviews.blogspot.in/

206/256

13/05/2015

KrishnaReddyOracleAppsInfo

beassignedtomorethanoneemployee.

Navigation:
HumanResourcesresponsibility>People>EnterandMaintain

QueryfortheEmployeeName.ClickonFindButton.

ClickonAssignmentbutton

EnterthedesiredvalueinthePositionfield.

Savethework.

4)CreatethePositionhierarchy

Navigation:
HumanResourcesResponsibility>WorkStructures>Position>Hierarchy

EnterHierarchyNameSave
EntertheFromDateSave
ClickinthePOSITIONfieldandquerythepositionyouwouldliketobeyourTopposition.In
ourexampleyouwouldqueryforDIR.
AfterthePositionisselectedPresstheDownKey.Yourcursorwillnowbeinthe
subordinateregion,choosethepositionMGRtogounderDIRposition.
AgainhittheBlueDownArrow.YouwillnowseetheSubordinatepositionshifttowherethe
TopPositionwaslocated.AddanewPositionS20.
Savethework.

http://oracleappsviews.blogspot.in/

207/256

13/05/2015

KrishnaReddyOracleAppsInfo

5)CreateApprovalgroupsforeachPosition.
ApprovalGroupswindowletsyoudefinetheApprovallimitsforaparticulargroupwhichwillbe
assignedtoaposition.
Asperourexample,wewillcreatethreeApprovalGroupsS20,MGR,DIRanddefinethelimits.

Navigation:
PurchasingResponsibility>Setup>Approvals>ApprovalGroups

EntertheNameoftheapprovalgroup
SelectEnabledtopermittheapprovalgrouptobeassignedtoapositionintheApproval
Assignmentswindow.
ChooseoneofthefollowingObjects:
AccountRange(Required)YouentertheaccountingflexfieldsfortheLowandHigh
Values.
DocumentTotal(Required)Thedocumenttotalreferstothemonetarylimitonan
individualdocument.
ItemCategoryRangeYouenterthepurchasingcategoryflexfieldsfortheLowandHigh
Values.
ItemRangeForthisoption,youentertheitemflexfieldsfortheLowandHighValues.
LocationThelocationreferstothedelivertolocationonarequisitionaswellasthe
shiptolocationonpurchaseordersandreleases.
SelecttheruleType:IncludeorExcludeindicateswhethertoallowobjectsthatfallwithinthe
selectedrange.
EntertheAmountLimit.Thisisthemaximumamountthatacontrolgroupcanauthorizefora
particularobjectrange.
EntertheLowValue.Thisisthelowestflexfield(accounting,purchasingcategory,oritem)inthe
rangepertinenttothisrule.WhentheobjectisLocation,enterthelocation.Youcannotenterthis
fieldwhentheobjectisDocumentTotal.
EntertheHighValue.Thisisthehighestflexfield(accounting,purchasingcategory,oritem)inthe
rangepertinenttothisrule.YoucannotenterthisfieldwhentheobjectisLocationorDocument
Total.
Saveyourwork.

http://oracleappsviews.blogspot.in/

208/256

13/05/2015

KrishnaReddyOracleAppsInfo

6)AssigntheApprovalgroupstothePosition

Navigation:
PurchasingResponsibility>Setup>Approvals>ApprovalAssignments

QuerythePositionforwhichyouwanttoassigntheApprovalgroup.

SelecttheDocumenttypeyouwanttoassigntothispositionorjob(Asperourexamplewewill
chooseApprovePurchaseRequisition)
Entertheapprovalgroupthatyouwanttoassigntotheselectedpositionorjob.Thelistofvalues
includesonlyenabledapprovalgroupswithatleastoneapprovalrule.(Assignittotheapproval
groupDIRasperourexample)
EntertheStartDateandEndDatefortheassignment.
Saveyourwork.

SimilarlyassigntheApprovalgroupsMGRandS20tothepositionsMGRandS20respectively
forthedocumenttypeApprovePurchaseRequisition.

7)AssignthePositionhierarchycreatedtothedesiredDocumentType.
DocumentTypeswindowcanbeusedtodefineaccess,security,andcontrolspecificationsforall
Purchasingdocuments.
Navigation:
PurchasingResponsibility>Setup>Purchasing>DocumentTypes

FindDocumentTypeswindowappears.SelectthedocumenttypeRequisition.

http://oracleappsviews.blogspot.in/

209/256

13/05/2015

KrishnaReddyOracleAppsInfo

EnteryourDocumentNameforthedocument.Thedescriptionmustbeuniqueforthegiven
documenttype.
CheckOwnerCanApprovetoindicatethatdocumentpreparerscanapprovetheirown
documents.
CheckApproverCanModifytoindicatethatdocumentapproverscanmodifydocuments.
CheckCanChangeForwardTotoindicatethatuserscanchangethepersonthedocument
isforwardedto.
CheckCanChangeForwardFromtoindicatethatuserscanchangethenameofthe
documentcreator.ThisfieldisapplicableonlywhentheDocumentTypeisRequisition.
CheckCanChangeApprovalHierarchytoindicatethatapproverscanchangetheapproval
hierarchyintheApproveDocumentswindow.ThisfieldisnotapplicablewhentheDocument
TypeisQuotation
orRFQ.
CheckDisabletodisableadocumenttype.
ForPurchaserequisitionsonly,selectUseContractAgreementsforAutoSourcingtorequire
therequisitioncreationautosourcinglogictoincludeapprovedcontractpurchaseagreements.
IncludeNonCatalogRequestsForOracleiProcurementonly,thischeckboxisusedin
conjunctionwiththeUseContractAgreementsforAutoSourcing.Selectthischeckboxto
enabletheuseofcontractpurchaseagreementswhenautosourcingnoncatalogrequisitions.
Chooseoneofthefollowingoptions:
HierarchyOnlythedocumentownerandusersabovetheownerinthedefinedpurchasing
securityhierarchymayaccessthesedocuments.
PrivateOnlythedocumentownermayaccessthesedocuments.
PublicAnyusermayaccessthesedocuments.
PurchasingOnlythedocumentowneranduserslistedasbuyersintheDefineBuyers
windowmayaccessthesedocuments.
ChooseoneofthefollowingAccessLeveloptions:
FullUserscanview,modify,cancel,andfinalclosedocuments.
ModifyUserscanonlyviewandmodifydocuments.
ViewOnlyUserscanonlyviewdocuments.
Chooseoneofthefollowingoptions:
DirectThedefaultapproveristhefirstpersoninthepreparersapprovalpaththathas

sufficientapprovalauthority.
HierarchyThedefaultapproveristhenextpersoninthepreparersapprovalpath
regardlessofauthority.(Eachpersonintheapprovalpathmusttakeapprovalactionuntil
thepersonwithsufficientapprovalauthorityisreached.)
ChoosethePositionHierarchythatwehavecreatedpreviouslyPurchasingApprovalTest
astheDefaultHierarchyfield.

http://oracleappsviews.blogspot.in/

210/256

13/05/2015

KrishnaReddyOracleAppsInfo

8)RuntheFillEmployeeHierarchyRequest
Navigation:
PurchasingResponsibility>ViewRequests
ClickonSubmitaNewRequestbuttonandselectSingleRequest.

Approvalroutingexplanationbasedontheexamplehierarchy:

1.SaytheS20positioncreatesaPurchaseOrderfor$4,000andsubmitsforApproval.
2.ThesystemwilllookatwhichApprovalHierarchytobeusedfromtheDocument
Typeswindow.SinceinourexampleOwnerCanApproveisnotchecked,itwilltry
todeterminewhattheApprovalgroupisforthepositionMGRasMGRisthenextPositionin
ourhierarchy.
3.OncetheApprovalGroupislocated,theruleswillthenbeconsideredoneatatime,fromfirst
tolast.
4.Ifallrulesaresatisfied,thePurchaseOrderwillbeforwardedtotheManagerfor
Approval.
Ifarulecannotbesatisfied,thePurchaseOrderwillbeforwardedtothenextposition(DIR)in
theHierarchy.Whoeverisassignedtothatpositionwillthenneedtotakeactiononthe
PurchaseOrder.

Inrelease11.0,whenattemptingtoApproveaPurchaseOrder,ifthesystemdoesntfindanyof
thepositionsdefinedinthehierarchytohavetheauthoritytoApprove,thentheDocumentwill
remainIncompletewithoutanywarningsinsteadofInProcess.

Posted29thAugust2012byKrishnareddy
0 Addacomment

http://oracleappsviews.blogspot.in/

211/256

13/05/2015

KrishnaReddyOracleAppsInfo

29thAugust2012

POQUERIES

TechnicalQueriesrelatedtoOraclePurchasing
]TOLISTOUTALLCANCELREQUISITIONS:>>listMycancelRequistion
selectprh.REQUISITION_HEADER_ID,prh.PREPARER_ID,prh.SEGMENT1"REQ
NUM",trunc(prh.CREATION_DATE),prh.DESCRIPTION,
prh.NOTE_TO_AUTHORIZERfromapps.Po_Requisition_headers_allprh,
apps.po_action_historypahwhereAction_code='CANCEL'and
pah.object_type_code='REQUISITION'
andpah.object_id=prh.REQUISITION_HEADER_ID
2]TOLISTALLINTERNALREQUISITIONSTHATDONOTHAVEANASSOCIATED
INTERNALSALESORDER
>>SelectRQH.SEGMENT1
REQ_NUM,RQL.LINE_NUM,RQL.REQUISITION_HEADER_ID
,RQL.REQUISITION_LINE_ID,RQL.ITEM_ID,RQL.UNIT_MEAS_LOOKUP_CODE
,RQL.UNIT_PRICE,RQL.QUANTITY
,RQL.QUANTITY_CANCELLED,RQL.QUANTITY_DELIVERED,RQL.CANCEL_FLAG
,RQL.SOURCE_TYPE_CODE,RQL.SOURCE_ORGANIZATION_ID
,RQL.DESTINATION_ORGANIZATION_ID,RQH.TRANSFERRED_TO_OE_FLAGfromPO_
REQUISITION_LINES_ALLRQL,PO_REQUISITION_HEADERS_ALL
RQHwhereRQL.REQUISITION_HEADER_ID=RQH.REQUISITION_HEADER_IDand
RQL.SOURCE_TYPE_CODE='INVENTORY'andRQL.SOURCE_ORGANIZATION_IDis
notnullandnotexists(select'existinginternalorder'fromOE_ORDER_LINES_ALL
LINwhereLIN.SOURCE_DOCUMENT_LINE_ID=RQL.REQUISITION_LINE_IDand
LIN.SOURCE_DOCUMENT_TYPE_ID=10)
ORDERBYRQH.REQUISITION_HEADER_ID,RQL.LINE_NUM
3]DisplaywhatrequisitionandPOarelinked(RelationwithRequisitionandPO)>>
selectr.segment1"ReqNum",p.segment1"PONum"frompo_headers_allp,
po_distributions_alld,po_req_distributions_allrd,po_requisition_lines_all
rl,po_requisition_headers_allrwherep.po_header_id=d.po_header_idand
d.req_distribution_id=rd.distribution_idandrd.requisition_line_id=rl.requisition_line_id
andrl.requisition_header_id=r.requisition_header_id
4]ListallPurchaseRequisitionwithoutaPurchaseOrderthatmeansaPRhasnotbeen
autocreatedtoPO.(PurchaseRequisitionwithoutaPurchaseOrder)>>
selectprh.segment1"PRNUM",trunc(prh.creation_date)"CREATEDON",
trunc(prl.creation_date)"LineCreationDate",prl.line_num"Seq#",msi.segment1"Item
Num",prl.item_description"Description",prl.quantity"Qty",trunc(prl.need_by_date)
"RequiredBy",ppf1.full_name"REQUESTOR",ppf2.agent_name"BUYER"from
po.po_requisition_headers_allprh,po.po_requisition_lines_allprl,apps.per_people_f
ppf1,(selectdistinctagent_id,agent_namefromapps.po_agents_v)ppf2,
po.po_req_distributions_allprd,inv.mtl_system_items_bmsi,po.po_line_locations_allpll,
po.po_lines_allpl,po.po_headers_allphWHEREprh.requisition_header_id=
prl.requisition_header_idandprl.requisition_line_id=prd.requisition_line_idand
ppf1.person_id=prh.preparer_idandprh.creation_datebetween
ppf1.effective_start_dateandppf1.effective_end_dateandppf2.agent_id(+)=
msi.buyer_idandmsi.inventory_item_id=prl.item_idandmsi.organization_id=
http://oracleappsviews.blogspot.in/

212/256

13/05/2015

KrishnaReddyOracleAppsInfo

prl.destination_organization_idandpll.line_location_id(+)=prl.line_location_idand
pll.po_header_id=ph.po_header_id(+)ANDPLL.PO_LINE_ID=PL.PO_LINE_ID(+)AND
PRH.AUTHORIZATION_STATUS='APPROVED'ANDPLL.LINE_LOCATION_IDISNULL
ANDPRL.CLOSED_CODEISNULLANDNVL(PRL.CANCEL_FLAG,'N')<>'Y'
ORDERBY1,2
5]listallinformationformPRtoPOasarequisitionmovedfromdifferentstagestill
convertingintoPR.ThisquerycapturealldetailsrelatedtothatPRtoPO.>>LISTAND
ALLDATAENTRYFROMPRTILLPO
selectdistinctu.description"Requestor",porh.segment1as"ReqNumber",
trunc(porh.Creation_Date)"CreatedOn",pord.LAST_UPDATED_BY,
porh.Authorization_Status"Status",porh.Description"Description",poh.segment1"PO
Number",trunc(poh.Creation_date)"POCreationDate",poh.AUTHORIZATION_STATUS
"POStatus",trunc(poh.Approved_Date)"ApprovedDate"fromapps.po_headers_allpoh,
apps.po_distributions_allpod,apps.po_req_distributions_allpord,
apps.po_requisition_lines_allporl,apps.po_requisition_headers_allporh,apps.fnd_useru
whereporh.requisition_header_id=porl.requisition_header_idandporl.requisition_line_id
=pord.requisition_line_idandpord.distribution_id=pod.req_distribution_id(+)and
pod.po_header_id=poh.po_header_id(+)andporh.created_by=u.user_id
orderby2
6]IdentifyingallPOswhichdoesnothaveanyPRs>>LISTALLPURCHASE
REQUISITIONWITHOUTAPURCHASEORDERTHATMEANSAPRHASNOTBEEN
AUTOCREATEDTOPO.selectprh.segment1"PRNUM",trunc(prh.creation_date)
"CREATEDON",trunc(prl.creation_date)"LineCreationDate",prl.line_num"Seq#",
msi.segment1"ItemNum",prl.item_description"Description",prl.quantity"Qty",
trunc(prl.need_by_date)"RequiredBy",ppf1.full_name"REQUESTOR",ppf2.agent_name
"BUYER"frompo.po_requisition_headers_allprh,po.po_requisition_lines_allprl,
apps.per_people_fppf1,(selectdistinctagent_id,agent_namefromapps.po_agents_v)
ppf2,po.po_req_distributions_allprd,inv.mtl_system_items_bmsi,
po.po_line_locations_allpll,po.po_lines_allpl,po.po_headers_allphWHERE
prh.requisition_header_id=prl.requisition_header_idandprl.requisition_line_id=
prd.requisition_line_idandppf1.person_id=prh.preparer_idandprh.creation_date
betweenppf1.effective_start_dateandppf1.effective_end_dateandppf2.agent_id(+)=
msi.buyer_idandmsi.inventory_item_id=prl.item_idandmsi.organization_id=
prl.destination_organization_idandpll.line_location_id(+)=prl.line_location_idand
pll.po_header_id=ph.po_header_id(+)ANDPLL.PO_LINE_ID=PL.PO_LINE_ID(+)AND
PRH.AUTHORIZATION_STATUS='APPROVED'ANDPLL.LINE_LOCATION_IDISNULL
ANDPRL.CLOSED_CODEISNULLANDNVL(PRL.CANCEL_FLAG,'N')<>'Y'ORDERBY
1,2
7]RelationbetweenRequisitionandPOtables>>Hereislink:
PO_DISTRIBUTIONS_ALL=>PO_HEADER_ID,
REQ_DISTRIBUTION_IDPO_HEADERS_ALL=>PO_HEADER_ID,
SEGMENT1PO_REQ_DISTRIBUTIONS_ALL=>DISTRIBUTION_ID,
REQUISITION_LINE_IDPO_REQUISITION_LINES_ALL
=>REQUISITION_LINE_ID)PO_REQUISITION_HEADERS_ALL
=>REQUISITION_HEADER_ID,REQUISITION_LINE_ID,SEGMENT1
WhatyouhavetomakeajoinonPO_DISTRIBUTIONS_ALL(REQ_DISTRIBUTION_ID)
andPO_REQ_DISTRIBUTIONS_ALL(DISTRIBUTION_ID)toseeifthereisaPOforthe
req.
http://oracleappsviews.blogspot.in/

213/256

13/05/2015

KrishnaReddyOracleAppsInfo

YouneedtofindtablewhichholdPOApprovalpath
Thesetwotablekeepsthedata:
PO_APPROVAL_LIST_HEADERS
PO_APPROVAL_LIST_LINES
8]ListallthePOswiththereapproval,invoiceandPaymentDetails>>LISTANDPOWITH
THEREAPPROVAL,INVOICEANDPAYMENTDETAILSselecta.org_id"ORGID",
E.SEGMENT1"VENDORNUM",e.vendor_name"SUPPLIER
NAME",UPPER(e.vendor_type_lookup_code)"VENDORTYPE",f.vendor_site_code
"VENDORSITECODE",f.ADDRESS_LINE1"ADDRESS",f.city"CITY",f.country
"COUNTRY",to_char(trunc(d.CREATION_DATE))"PODate",d.segment1"PO
NUM",d.type_lookup_code"POType",c.quantity_ordered"QTYORDERED",
c.quantity_cancelled"QTYCANCELLED",g.item_id"ITEMID",g.item_description"ITEM
DESCRIPTION",g.unit_price"UNITPRICE",(NVL(c.quantity_ordered,0)
NVL(c.quantity_cancelled,0))*NVL(g.unit_price,0)"POLineAmount",(select
decode(ph.approved_FLAG,'Y','Approved')frompo.po_headers_allphwhere
ph.po_header_ID=d.po_header_id)"POApproved?",a.invoice_type_lookup_code
"INVOICETYPE",a.invoice_amount"INVOICEAMOUNT",
to_char(trunc(a.INVOICE_DATE))"INVOICEDATE",a.invoice_num"INVOICENUMBER",
(selectdecode(x.MATCH_STATUS_FLAG,'A','Approved')from
ap.ap_invoice_distributions_allxwherex.INVOICE_DISTRIBUTION_ID=
b.invoice_distribution_id)"InvoiceApproved?",a.amount_paid,h.amount,h.check_id,
h.invoice_payment_id"PaymentId",i.check_number"ChequeNumber",
to_char(trunc(i.check_DATE))"PAYMENTDATE"FROMAP.AP_INVOICES_ALLA,
AP.AP_INVOICE_DISTRIBUTIONS_ALLB,PO.PO_DISTRIBUTIONS_ALLC,
PO.PO_HEADERS_ALLD,PO.PO_VENDORSE,PO.PO_VENDOR_SITES_ALLF,
PO.PO_LINES_ALLG,AP.AP_INVOICE_PAYMENTS_ALLH,AP.AP_CHECKS_ALLI
wherea.invoice_id=b.invoice_idandb.po_distribution_id=c.po_distribution_id(+)and
c.po_header_id=d.po_header_id(+)ande.vendor_id(+)=d.VENDOR_IDand
f.vendor_site_id(+)=d.vendor_site_idandd.po_header_id=g.po_header_idand
c.po_line_id=g.po_line_idanda.invoice_id=h.invoice_idandh.check_id=i.check_id
andf.vendor_site_id=i.vendor_site_idandc.PO_HEADER_IDisnotnulland
a.payment_status_flag='Y'
andd.type_lookup_code!='BLANKET'
10]ToknowthelinktoGL_JE_LINEStableforpurchasingaccrualandbudgetarycontrol
actions..Thebudgetary(encumbrance)andaccrualactionsinthepurchasingmodule
generaterecordsthatwillbeimportedintoGLforthecorrespondingaccrualand
budgetaryjournals.
ThefollowingreferencefieldsareusedtocaptureandkeepPOinformationinthe
GL_JE_LINEStable.
ThesereferencefieldsarepopulatedwhentheJournalsource(JE_SOURCEin
GL_JE_HEADERS)isPurchasing.
BudgetaryRecordsfromPO(Theseincludereservations,reversalsandcancellations):
REFERENCE_1Source(POorREQ)
REFERENCE_2POHeaderIDorRequisitionHeaderID(from
po_headers_all.po_header_idorpo_requisition_headers_all.requisition_header_id)
REFERENCE_3DistributionID(frompo_distributions_all.po_distribution_id
orpo_req_distributions_all.distribution_id)
REFERENCE_4PurchaseOrderorRequisitionnumber(frompo_headers_all.segment1
orpo_requisition_headers_all.segment1)
http://oracleappsviews.blogspot.in/

214/256

13/05/2015

KrishnaReddyOracleAppsInfo

REFERENCE_5(AutocreatedPurchaseOrdersonly)Backingrequisitionnumber(from
po_requisition_headers_all.segment1)
AccrualRecordsfromPO:
REFERENCE_1Source(PO)
REFERENCE_2POHeaderID(frompo_headers_all.po_header_id)
REFERENCE_3DistributionID(frompo_distributions_all.po_distribution_id
REFERENCE_4PurchaseOrdernumber(frompo_headers_all.segment1)
REFERENCE_5(ONLINEACCRUALSONLY)ReceivingTransactionID(from
rcv_receiving_sub_ledger.rcv_transaction_id)
TakeanoteforPeriodendaccruals,theREFERENCE_5columnisnotused.
11]ListallopenPO'S>>selecth.segment1"PONUM",h.authorization_status"STATUS",
l.line_num"SEQNUM",ll.line_location_id,d.po_distribution_id,h.type_lookup_code
"TYPE"frompo.po_headers_allh,po.po_lines_alll,po.po_line_locations_allll,
po.po_distributions_alldwhereh.po_header_id=l.po_header_idandll.po_line_id=
l.po_Line_idandll.line_location_id=d.line_location_idandh.closed_dateisnull
andh.type_lookup_codenotin('QUOTATION')
12]Therearedifferentauthorization_statuscanarequisitionhave.Approved
Cancelled
InProcess
Incomplete
PreApproved
Rejected
andyoushouldnote:WhenwefinallyclosetherequisitionfromRequisitionSummaryform
theauthorization_statusoftherequisitiondoesnotchange.Insteaditsclosed_code
becomesFINALLYCLOSED.
13]AstandardQuotationsonethatyoucantiebacktoaPO.NavigatetoRFQ>Auto
create>enteraPOandreferenceitback.14]TodebugforaPO,whereshouldI
start.Thatsispossible,yourPOgetstucksomewhere,sowhatyouhavetodoisto
analyzewhichstageitstucked.Getpo_header_idfirstandruneachqueryandthen
analyzethedata.Forbetterunderstandingthisissplitedinto5majorstages.
Stage1:POCreation:
PO_HEADERS_ALL
selectpo_header_idfrompo_headers_allwheresegment1=
select*frompo_headers_allwherepo_header_id=
po_lines_all
select*frompo_lines_allwherepo_header_id=
po_line_locations_all
select*frompo_line_locations_allwherepo_header_id=
po_distributions_all
select*frompo_distributions_allwherepo_header_id=
po_releases_all
SELECT*FROMpo_releases_allWHEREpo_header_id=
Stage2:OncePOisreceiveddataismovedtorespectiverecevingtablesandinventory
tables
RCV_SHIPMENT_HEADERS
select*fromrcv_shipment_headerswhereshipment_header_idin(select
shipment_header_idfromrcv_shipment_lineswherepo_header_id=)
RCV_SHIPMENT_LINES
http://oracleappsviews.blogspot.in/

215/256

13/05/2015

KrishnaReddyOracleAppsInfo

select*fromrcv_shipment_lineswherepo_header_id=
RCV_TRANSACTIONS
select*fromrcv_transactionswherepo_header_id=
RCV_ACCOUNTING_EVENTS
SELECT*FROMrcv_Accounting_EventsWHERErcv_transaction_idIN(select
transaction_idfromrcv_transactionswherepo_header_id=)
RCV_RECEIVING_SUB_LEDGER
select*fromrcv_receiving_sub_ledgerwherercv_transaction_idin(selecttransaction_id
fromrcv_transactionswherepo_header_id=)
RCV_SUB_LEDGER_DETAILS
select*fromrcv_sub_ledger_detailswherercv_transaction_idin(selecttransaction_id
fromrcv_transactionswherepo_header_id=)
MTL_MATERIAL_TRANSACTIONS
select*frommtl_material_transactionswheretransaction_source_id=
MTL_TRANSACTION_ACCOUNTS
select*frommtl_transaction_accountswheretransaction_idin(selecttransaction_id
frommtl_material_transactionswheretransaction_source_id==)
Stage3:Invoicingdetails
AP_INVOICE_DISTRIBUTIONS_ALL
select*fromap_invoice_distributions_allwherepo_distribution_idin(select
po_distribution_idfrompo_distributions_allwherepo_header_id=)
AP_INVOICES_ALL
select*fromap_invoices_allwhereinvoice_idin(selectinvoice_idfrom
ap_invoice_distributions_allwherepo_distribution_idin(selectpo_distribution_idfrom
po_distributions_allwherepo_header_id=))
Stage4:ManyTimethereistieupwithProjectrelatedPO
PA_EXPENDITURE_ITEMS_ALL
select*frompa_expenditure_items_allpeiawherepeia.orig_transaction_referencein(
selectto_char(transaction_id)frommtl_material_transactionswheretransaction_source_id
=)
Stage5:GeneralLedger
Prompt17.GL_BC_PACKETS..Thisisforencumbrances
SELECT*FROMgl_bc_packetsWHEREreference2IN()
GL_INTERFACE
SELECT*FROMGL_INTERFACEGLIWHEREuser_je_source_name=PurchasingAND
gl_sl_link_table=RSLANDreference21=POANDEXISTS(SELECT1FROM
rcv_receiving_sub_ledgerRRSLWHEREGLI.reference22=RRSL.reference2AND
GLI.reference23=RRSL.reference3ANDGLI.reference24=RRSL.reference4AND
RRSL.rcv_transaction_idin(selecttransaction_idfromrcv_transactionswhere
po_header_id))
GL_IMPORT_REFERENCES
SELECT*FROMgl_import_referencesGLIRWHEREreference_1=POAND
gl_sl_link_table=RSLANDEXISTS(SELECT1FROMrcv_receiving_sub_ledger
RRSLWHEREGLIR.reference_2=RRSL.reference2ANDGLIR.reference_3
=RRSL.reference3ANDGLIR.reference_4=RRSL.reference4AND
RRSL.rcv_transaction_idin(selecttransaction_idfromrcv_transactionswhere
po_header_id=))
Posted29thAugust2012byKrishnareddy

http://oracleappsviews.blogspot.in/

216/256

13/05/2015

KrishnaReddyOracleAppsInfo

0 Addacomment

29thAugust2012 TCA(TradingCommunityArchitecture)
Overview:
TradingCommunityArchitecture(TCA)isanarchitectureconceptdesignedtosupportcomplex
tradingcommunities.Thisdocumentprovidesinformationabouthowtocreateacustomerusing
TCAAPI.TheseAPIsutilizethenewTCAmodel,insertingdirectlytotheHZtables.

[http://1.bp.blogspot.com/N3VWhPDL0aM/UD2YSmOvduI/AAAAAAAAAQ0/8W4bdQ1z
vk/s1600/hz_tables_in_ar.jpg]

Architecture
http://oracleappsviews.blogspot.in/

217/256

13/05/2015

KrishnaReddyOracleAppsInfo

CreateOrganization
DECLARE
p_organization_rechz_party_v2pub.organization_rec_type
x_return_statusVARCHAR2(2000)
x_msg_countNUMBER
x_msg_dataVARCHAR2(2000)
x_party_idNUMBER
x_party_numberVARCHAR2(2000)
x_profile_idNUMBER
BEGIN
p_organization_rec.organization_name:=erpschools
p_organization_rec.created_by_module:=ERPSCHOOLS_DEMO
hz_party_v2pub.create_organization(T,
p_organization_rec,
x_return_status,
x_msg_count,
x_msg_data,
x_party_id,
x_party_number,
x_profile_id
)
DBMS_OUTPUT.put_line(partyid||x_party_id)
DBMS_OUTPUT.put_line(SUBSTR(x_return_status=||x_return_status,
1,

http://oracleappsviews.blogspot.in/

218/256

13/05/2015

KrishnaReddyOracleAppsInfo

255
)
)
DBMS_OUTPUT.put_line(x_msg_count=||TO_CHAR(x_msg_count))
DBMS_OUTPUT.put_line(SUBSTR(x_msg_data=||x_msg_data,1,255))
IFx_msg_count>1
THEN
FORiIN1..x_msg_count
LOOP
DBMS_OUTPUT.put_line
(i
||.
||SUBSTR
(fnd_msg_pub.get(p_encoded=>fnd_api.g_false),
1,
255
)
)
ENDLOOP
ENDIF
END
Note:TheaboveAPIcreatesarecordinhz_partiestableandonerecordin
hz_organization_profilestable.Similarlyyoucancallhz_party_v2pub.create_personto
createarecordintheHZ_PARTIESandonerecordinHZ_PERSON_PROFILEStables.
CreateaLocation
DECLARE
p_location_recHZ_LOCATION_V2PUB.LOCATION_REC_TYPE
http://oracleappsviews.blogspot.in/

219/256

13/05/2015

KrishnaReddyOracleAppsInfo

x_location_idNUMBER
x_return_statusVARCHAR2(2000)
x_msg_countNUMBER
x_msg_dataVARCHAR2(2000)
BEGIN
p_location_rec.country:=US
p_location_rec.address1:=2500WHigginsRd
p_location_rec.address2:=Suite920
p_location_rec.city:=Thumuluru
p_location_rec.postal_code:=60118
p_location_rec.state:=IL
p_location_rec.created_by_module:=ERPSCHOOLS_DEMO
hz_location_v2pub.create_location(
T,
p_location_rec,
x_location_id,
x_return_status,
x_msg_count,
x_msg_data)
dbms_output.put_line(locationid||x_location_id)
dbms_output.put_line(SubStr(x_return_status=||x_return_status,1,255))
dbms_output.put_line(x_msg_count=||TO_CHAR(x_msg_count))
dbms_output.put_line(SubStr(x_msg_data=||x_msg_data,1,255))
IFx_msg_count>1THEN
FORIIN1..x_msg_count
http://oracleappsviews.blogspot.in/

220/256

13/05/2015

KrishnaReddyOracleAppsInfo

LOOP
dbms_output.put_line(I||.
||SubStr(FND_MSG_PUB.Get(p_encoded=>FND_API.G_FALSE),1,255))
ENDLOOP
ENDIF
END
Note:TheaboveAPIshallcreateanaddressrecordinhz_locationstable.
CreateaPartySite:
Usetheorganization_idandlocation_idcreatedaboveandcreateapartysite.
DECLARE
p_party_site_rechz_party_site_v2pub.party_site_rec_type
x_party_site_idNUMBER
x_party_site_numberVARCHAR2(2000)
x_return_statusVARCHAR2(2000)
x_msg_countNUMBER
x_msg_dataVARCHAR2(2000)
BEGIN
p_party_site_rec.party_id:=1272023
p_party_site_rec.location_id:=359086
p_party_site_rec.identifying_address_flag:=Y'
p_party_site_rec.created_by_module:=ERPSCHOOLS_DEMO
hz_party_site_v2pub.create_party_site(T,
p_party_site_rec,
x_party_site_id,
x_party_site_number,
x_return_status,
http://oracleappsviews.blogspot.in/

221/256

13/05/2015

KrishnaReddyOracleAppsInfo

x_msg_count,
x_msg_data
)
DBMS_OUTPUT.put_line(partysiteid||x_party_site_id)
DBMS_OUTPUT.put_line(SUBSTR(x_return_status=||x_return_status,
1,
255
)
)
DBMS_OUTPUT.put_line(x_msg_count=||TO_CHAR(x_msg_count))
DBMS_OUTPUT.put_line(SUBSTR(x_msg_data=||x_msg_data,1,255))
IFx_msg_count>1
THEN
FORiIN1..x_msg_count
LOOP
DBMS_OUTPUT.put_line
(i
||.
||SUBSTR
(fnd_msg_pub.get(p_encoded=>fnd_api.g_false),
1,
255
)
)
ENDLOOP
ENDIF
http://oracleappsviews.blogspot.in/

222/256

13/05/2015

KrishnaReddyOracleAppsInfo

END
Note:TheaboveAPIcreatesarecordinhz_party_sitestable.
CreatePartySiteUse
Usetheabovepartysitecreated
DECLARE
p_party_site_use_rechz_party_site_v2pub.party_site_use_rec_type
x_party_site_use_idNUMBER
x_return_statusVARCHAR2(2000)
x_msg_countNUMBER
x_msg_dataVARCHAR2(2000)
BEGIN
p_party_site_use_rec.site_use_type:=SHIP_TO
p_party_site_use_rec.party_site_id:=349327
p_party_site_use_rec.created_by_module:=ERPSCHOOLS_DEMO
hz_party_site_v2pub.create_party_site_use(T,
p_party_site_use_rec,
x_party_site_use_id,
x_return_status,
x_msg_count,
x_msg_data
)
DBMS_OUTPUT.put_line(SUBSTR(x_return_status=||x_return_status,
1,
255
)
http://oracleappsviews.blogspot.in/

223/256

13/05/2015

KrishnaReddyOracleAppsInfo

)
DBMS_OUTPUT.put_line(x_msg_count=||TO_CHAR(x_msg_count))
DBMS_OUTPUT.put_line(SUBSTR(x_msg_data=||x_msg_data,1,255))
IFx_msg_count>1
THEN
FORiIN1..x_msg_count
LOOP
DBMS_OUTPUT.put_line
(i
||.
||SUBSTR
(fnd_msg_pub.get(p_encoded=>fnd_api.g_false),
1,
255
)
)
ENDLOOP
ENDIF
END
CreateaContactPoint
DECLARE
p_contact_point_rechz_contact_point_v2pub.contact_point_rec_type
p_edi_rechz_contact_point_v2pub.edi_rec_type
p_email_rechz_contact_point_v2pub.email_rec_type
p_phone_rechz_contact_point_v2pub.phone_rec_type
p_telex_rechz_contact_point_v2pub.telex_rec_type
http://oracleappsviews.blogspot.in/

224/256

13/05/2015

KrishnaReddyOracleAppsInfo

p_web_rechz_contact_point_v2pub.web_rec_type
x_return_statusVARCHAR2(2000)
x_msg_countNUMBER
x_msg_dataVARCHAR2(2000)
x_contact_point_idNUMBER
BEGIN
p_contact_point_rec.contact_point_type:=PHONE
p_contact_point_rec.owner_table_name:=HZ_PARTIES
p_contact_point_rec.owner_table_id:=1272023
p_contact_point_rec.primary_flag:=Y'
p_contact_point_rec.contact_point_purpose:=BUSINESS
p_phone_rec.phone_area_code:=650
p_phone_rec.phone_country_code:=1
p_phone_rec.phone_number:=5067000
p_phone_rec.phone_line_type:=GEN
p_contact_point_rec.created_by_module:=ERPSCHOOLS_DEMO
hz_contact_point_v2pub.create_contact_point(T,
p_contact_point_rec,
p_edi_rec,
p_email_rec,
p_phone_rec,
p_telex_rec,
p_web_rec,
x_contact_point_id,
x_return_status,
http://oracleappsviews.blogspot.in/

225/256

13/05/2015

KrishnaReddyOracleAppsInfo

x_msg_count,
x_msg_data
)
DBMS_OUTPUT.put_line(SUBSTR(x_return_status=||x_return_status,
1,
255
)
)
DBMS_OUTPUT.put_line(x_msg_count=||TO_CHAR(x_msg_count))
DBMS_OUTPUT.put_line(SUBSTR(x_msg_data=||x_msg_data,1,255))
IFx_msg_count>1
THEN
FORiIN1..x_msg_count
LOOP
DBMS_OUTPUT.put_line
(i
||.
||SUBSTR
(fnd_msg_pub.get(p_encoded=>fnd_api.g_false),
1,
255
)
)
ENDLOOP
ENDIF
END
http://oracleappsviews.blogspot.in/

226/256

13/05/2015

KrishnaReddyOracleAppsInfo

CreateanOrgContact:
DECLARE
p_org_contact_rechz_party_contact_v2pub.org_contact_rec_type
x_org_contact_idNUMBER
x_party_rel_idNUMBER
x_party_idNUMBER
x_party_numberVARCHAR2(2000)
x_return_statusVARCHAR2(2000)
x_msg_countNUMBER
x_msg_dataVARCHAR2(2000)
BEGIN
p_org_contact_rec.department_code:=ACCOUNTING
p_org_contact_rec.job_title:=ACCOUNTSOFFICER
p_org_contact_rec.decision_maker_flag:=Y'
p_org_contact_rec.job_title_code:=APC
p_org_contact_rec.created_by_module:=ERPSCHOOLS_DEMO
p_org_contact_rec.party_rel_rec.subject_id:=16077
p_org_contact_rec.party_rel_rec.subject_type:=PERSON
p_org_contact_rec.party_rel_rec.subject_table_name:=HZ_PARTIES
p_org_contact_rec.party_rel_rec.object_id:=1272023
p_org_contact_rec.party_rel_rec.object_type:=ORGANIZATION
p_org_contact_rec.party_rel_rec.object_table_name:=HZ_PARTIES
p_org_contact_rec.party_rel_rec.relationship_code:=CONTACT_OF
p_org_contact_rec.party_rel_rec.relationship_type:=CONTACT
p_org_contact_rec.party_rel_rec.start_date:=SYSDATE
http://oracleappsviews.blogspot.in/

227/256

13/05/2015

KrishnaReddyOracleAppsInfo

hz_party_contact_v2pub.create_org_contact(T,
p_org_contact_rec,
x_org_contact_id,
x_party_rel_id,
x_party_id,
x_party_number,
x_return_status,
x_msg_count,
x_msg_data
)
DBMS_OUTPUT.put_line(SUBSTR(x_return_status=||x_return_status,
1,
255
)
)
DBMS_OUTPUT.put_line(x_msg_count=||TO_CHAR(x_msg_count))
DBMS_OUTPUT.put_line(SUBSTR(x_msg_data=||x_msg_data,1,255))
IFx_msg_count>1
THEN
FORiIN1..x_msg_count
LOOP
DBMS_OUTPUT.put_line
(i
||.
||SUBSTR
(fnd_msg_pub.get(p_encoded=>fnd_api.g_false),
http://oracleappsviews.blogspot.in/

228/256

13/05/2015

KrishnaReddyOracleAppsInfo

1,
255
)
)
ENDLOOP
ENDIF
END
Note:TheaboveAPIcreatesarecordinhz_org_contactstableandonerecordinhz_relationships
table.Whenacontactiscreated,arecordinhz_partiestablegetscreatedwithparty_typeas
PARTY_RELATIONSHIP.
CreateaCustomerAccount:
DECLARE
p_cust_account_rechz_cust_account_v2pub.cust_account_rec_type
p_person_rechz_party_v2pub.person_rec_type
p_customer_profile_rechz_customer_profile_v2pub.customer_profilerec_type
x_cust_account_idNUMBER
x_account_numberVARCHAR2(2000)
x_party_idNUMBER
x_party_numberVARCHAR2(2000)
x_profile_idNUMBER
x_return_statusVARCHAR2(2000)
x_msg_countNUMBER
x_msg_dataVARCHAR2(2000)
BEGIN
p_cust_account_rec.account_name:=JohnsA/c
p_cust_account_rec.created_by_module:=ERPSCHOOLS_DEMO
http://oracleappsviews.blogspot.in/

229/256

13/05/2015

KrishnaReddyOracleAppsInfo

p_person_rec.person_first_name:=John
p_person_rec.person_last_name:=Smith
hz_cust_account_v2pub.create_cust_account(T,
p_cust_account_rec,
p_person_rec,
p_customer_profile_rec,
F,
x_cust_account_id,
x_account_number,
x_party_id,
x_party_number,
x_profile_id,
x_return_status,
x_msg_count,
x_msg_data
)
DBMS_OUTPUT.put_line(SUBSTR(x_return_status=||x_return_status,
1,
255
)
)
DBMS_OUTPUT.put_line(x_msg_count=||TO_CHAR(x_msg_count))
DBMS_OUTPUT.put_line(SUBSTR(x_msg_data=||x_msg_data,1,255))
IFx_msg_count>1
THEN
FORiIN1..x_msg_count
http://oracleappsviews.blogspot.in/

230/256

13/05/2015

KrishnaReddyOracleAppsInfo

LOOP
DBMS_OUTPUT.put_line
(i
||.
||SUBSTR
(fnd_msg_pub.get(p_encoded=>fnd_api.g_false),
1,
255
)
)
ENDLOOP
ENDIF
END
Note:
ThisroutineisusedtocreateaCustomerAccount.TheAPIcreatesarecordinthe
HZ_CUST_ACCOUNTStableforpartytypePersonorOrganization.Accountcanbecreatedfor
anexistingpartybypassingparty_idoftheparty.Alternatively,thisroutinecreatesanewparty
andanaccountfortheparty.
CustomerprofilerecordintheHZ_CUSTOMER_PROFILEScanalsobecreatedwhilecallingthis
routinebasedonvaluepassedinp_customer_profile_rec.TheroutineisoverloadedforPerson
andOrganization.
CreateaCustomerAccountSite
UseanexistingPartySite
DECLARE
p_cust_acct_site_rechz_cust_account_site_v2pub.cust_acct_site_rec_type
x_return_statusVARCHAR2(2000)
x_msg_countNUMBER
x_msg_dataVARCHAR2(2000)
http://oracleappsviews.blogspot.in/

231/256

13/05/2015

KrishnaReddyOracleAppsInfo

x_cust_acct_site_idNUMBER
BEGIN
p_cust_acct_site_rec.cust_account_id:=3472
p_cust_acct_site_rec.party_site_id:=1024
p_cust_acct_site_rec.LANGUAGE:=US
p_cust_acct_site_rec.created_by_module:=TCAEXAMPLE
hz_cust_account_site_v2pub.create_cust_acct_site(T,
p_cust_acct_site_rec,
x_cust_acct_site_id,
x_return_status,
x_msg_count,
x_msg_data
)
DBMS_OUTPUT.put_line(SUBSTR(x_return_status=||x_return_status,
1,
255
)
)
DBMS_OUTPUT.put_line(x_msg_count=||TO_CHAR(x_msg_count))
DBMS_OUTPUT.put_line(SUBSTR(x_msg_data=||x_msg_data,1,255))
IFx_msg_count>1
THEN
FORiIN1..x_msg_count
LOOP
DBMS_OUTPUT.put_line
http://oracleappsviews.blogspot.in/

232/256

13/05/2015

KrishnaReddyOracleAppsInfo

(i
||.
||SUBSTR
(fnd_msg_pub.get(p_encoded=>fnd_api.g_false),
1,
255
)
)
ENDLOOP
ENDIF
END
CreateCustomerAccountSiteUseCode:
DECLARE
p_cust_site_use_rechz_cust_account_site_v2pub.cust_site_use_rec_type
p_customer_profile_rechz_customer_profile_v2pub.customer_profile_rec_type
x_site_use_idNUMBER
x_return_statusVARCHAR2(2000)
x_msg_countNUMBER
x_msg_dataVARCHAR2(2000)
BEGIN
p_cust_site_use_rec.cust_acct_site_id:=3580
p_cust_site_use_rec.site_use_code:=INV
p_cust_site_use_rec.LOCATION:=TCA
p_cust_site_use_rec.created_by_module:=ERPSCHOOLS_DEMO
hz_cust_account_site_v2pub.create_cust_site_use(T,
p_cust_site_use_rec,
http://oracleappsviews.blogspot.in/

233/256

13/05/2015

KrishnaReddyOracleAppsInfo

p_customer_profile_rec,
,
,
x_site_use_id,
x_return_status,
x_msg_count,
x_msg_data
)
DBMS_OUTPUT.put_line(SUBSTR(x_return_status=||x_return_status,
1,
255
)
)
DBMS_OUTPUT.put_line(x_msg_count=||TO_CHAR(x_msg_count))
DBMS_OUTPUT.put_line(SUBSTR(x_msg_data=||x_msg_data,1,255))
IFx_msg_count>1
THEN
FORiIN1..x_msg_count
LOOP
DBMS_OUTPUT.put_line
(i
||.
||SUBSTR
(fnd_msg_pub.get(p_encoded=>fnd_api.g_false),
1,
http://oracleappsviews.blogspot.in/

234/256

13/05/2015

KrishnaReddyOracleAppsInfo

255
)
)
ENDLOOP
ENDIF
END
MoreCustomerAPIs:
OrgContactRole Hz_party_contact_v2pub.Create_Org_Contact_Role
Relationships

HZ_CUST_ACCOUNT_V2PUB.CREATE_CUST_ACCT_RELATE

CustomerProfile HZ_CUSTOMER_PROFILE_V2PUB.create_customer_profile
CustomerProfile
HZ_CUSTOMER_PROFILE_V2PUB.create_cust_profile_amt
Amount
CustomerCredit
HZ_PARTY_INFO_V2PUB.create_credit_rating
Rating
SalesPerson

JTF_RS_SALESREPS_PUB.CREATE_SALESREP

Salesreps
Territories

JTF_RS_SRP_TERRITORIES_PUB.CREATE_RS_SRP_TERRITORIES

Customer
contacts

HZ_CUST_ACCOUNT_ROLE_V2PUB.CREATE_CUST_ACCOUNT_ROLE

Customer
ContactRole

HZ_CUST_ACCOUNT_ROLE_V2PUB.create_role_responsibility

Posted29thAugust2012byKrishnareddy
0 Addacomment

29thAugust2012

FAQ'S

PURCHASINGFAQ'S:
Purchasing
WhataredifferenttypesofPOs?[http://erpschools.com/faq/whataredifferenttypesofpos]
Whatisdollarlimitandhowcanyouchangeit?[http://erpschools.com/faq]
Cananyongivemethadetailedtables&theirerelationship.indetail.
[http://erpschools.com/faq]

EXPLAINABOUTPOFLOW[http://erpschools.com/faq]
Afterdonecontactpurchaseorder.wecanCreatestandardorderforcontract.,inthat
wementionContractPoNo.inReffDoccolumn.Inwhichtableandwhatcolumnthat
valueisstored?[http://erpschools.com/faq]
http://oracleappsviews.blogspot.in/

235/256

13/05/2015

KrishnaReddyOracleAppsInfo

WhatiscommonIdforRequisitionandpo?[http://erpschools.com/faq]
WhatisbackdatedReceipt?[http://erpschools.com/faq]
IsitpossibletocreateabackdatedreceiptwithareceiptdatefallinginclosedGLperiod?
[http://erpschools.com/faq]

WhatisReceiptDateTolerance?[http://erpschools.com/faq]
HowdowesettheReceiptTolerance?[http://erpschools.com/faq]
whatarethetableslinkbetweenPO&Gltechnically?[http://erpschools.com/faq]
CanyoucreatePOiniProcurement?[http://erpschools.com/faq]
GivemesomePOtables[http://erpschools.com/faq]
TellmeaboutPOcycle?[http://erpschools.com/faq]
ExplainApprovalHeirarchiesinPO.[http://erpschools.com/faq]
HowdoesworkflowdetermineswhomtosendthePOforapproval?
[http://erpschools.com/faq]

WhatisPurchaseorderworkflow?[http://erpschools.com/faq]
WhatisPlannedPO?[http://erpschools.com/faq]
WhatfunctionsyoudofromiProcurement?[http://erpschools.com/faq]
Whatisdifferencebetweenpositionalhierarchyandsupervisorhierarchy?
[http://erpschools.com/faq]

WhatisthedifferencebetweenpurchasingmoduleandiProcurementmodule?
[http://erpschools.com/faq]

WhatisBlanketPO?[http://erpschools.com/faq]

ORDERMANAGEMENTFAQ'S:

OrderManagement
Cantherebeanystep/procedureofExpiryofaSalesOrderwhetherallshipmentshave
beenmadeornot?[http://erpschools.com/faq]
WhataretherequiredfieldswhenenteringanorderintheOrderEntryScreen?
[http://erpschools.com/faq]

Whatistheprerequisitetodobeforecustomerconverion?[http://erpschools.com/faq]
WhatisQuilifierandModifier?[http://erpschools.com/faq]
whataretheaccountswillpopulateinOM?[http://erpschools.com/faq]
Whatisthedifferencebetweenpurchaseorder(PO)andsalesorder?
[http://erpschools.com/faq]

WhataretheProcessConstraints?[http://erpschools.com/faq]
WhatisaPickSlipReport?[http://erpschools.com/faq]
Atwhatstageanordercannotbecancelled?[http://erpschools.com/faq]
Whentheorderimportprogramisrunitvalidatesandtheerrorsoccurredcanbeseenin?
[http://erpschools.com/faq]

Whatarepickingrules?[http://erpschools.com/faq]
WhatdoesBackorderedmeaninOM?[http://erpschools.com/faq]
WhatisONTstandsfor?[http://erpschools.com/faq]
Whatisordertype?[http://erpschools.com/faq]
Howismoveordergenerated?[http://erpschools.com/faq]
Namesometablesinshipping/order/moveorder/inventory?[http://erpschools.com/faq]
Whatareprimaryandsecondarypricelists?[http://erpschools.com/faq]
ExplaintheOrderCycle?[http://erpschools.com/faq]
Whatispackingslip?[http://erpschools.com/faq]
WhatisDocumentSequence?[http://erpschools.com/faq]
Wheredoyoufindtheorderstatuscolumn?[http://erpschools.com/faq]
WhatisOrderImportandWhataretheSetupsinvolvedinOrderImport?
http://oracleappsviews.blogspot.in/

236/256

13/05/2015

KrishnaReddyOracleAppsInfo

[http://erpschools.com/faq]

Whatarevalidationtemplates?[http://erpschools.com/faq]
WhataredifferentOrderTypes?[http://erpschools.com/faq]
WhatareDefaultingRules?[http://erpschools.com/faq]
WhatisdropshipinOM?[http://erpschools.com/faq]
WhatisAdvancedShippingNotice?[http://erpschools.com/faq]
Whenanordercannotbedeleted?[http://erpschools.com/faq]
WhatisDropshipment?[http://erpschools.com/faq]
Whatispickslip?[http://erpschools.com/faq]
whatislinkbetweenPurchaseOrdertoSalesOrder?[http://erpschools.com/faq/whatislink
betweenpurchaseordertosalesorder]

2ND

Canobjectgrouphaveablock?[http://erpschools.com/faq]
Whatistheprocedureandtriggercalledwhenawindowisclosed?
[http://erpschools.com/faq]

WhataredifferentVisualAttributesinForms?[http://erpschools.com/faq]
Whatareuserexits?[http://erpschools.com/faq]
WhatisSECUREproperty?[http://erpschools.com/faq]
WhatisDataBlock?[http://erpschools.com/faq]
Howmanytypesofcanvasesarethere?[http://erpschools.com/faq]
GivesomeBuiltinPackageNames?[http://erpschools.com/faq]
Whatarethetypesoftriggersandhowthesequenceoffiringintextitem?
[http://erpschools.com/faq]

WhattriggersareavailableinForms?[http://erpschools.com/faq]
Ifyouhavepropertyclassattachedtoanitemandyouhavesametriggerwrittenforthe
item.Whichwillfirefirst?[http://erpschools.com/faq]
WhatareObjectGroups?[http://erpschools.com/faq]
CanyoucallWINSDKthroughuserexits?[http://erpschools.com/faq]
WhatispathsettingforDLL?[http://erpschools.com/faq]
Whatarepropertyclasses?Canpropertyclasseshavetrigger?[http://erpschools.com/faq]
Whatiscustom.pllusedfor?[http://erpschools.com/faq]
Whatismousenavigatepropertyofbutton?[http://erpschools.com/faq]
Whatareprogramunitsinforms?Howtodoyouusethem?[http://erpschools.com/faq]
whatarekeymodeandlockingmodeproperties?level?[http://erpschools.com/faq]
Canyoustorepicturesindatabase?How?[http://erpschools.com/faq]
Whatarerecordgroups?[http://erpschools.com/faq]
Canrecordgroupscreatedatruntime?[http://erpschools.com/faq]
DoesuserexitssupportsDLLonMSWINDOWS?[http://erpschools.com/faq]
Howdoyouattachalibrarytoaform?[http://erpschools.com/faq]
CanyouissueDDLinforms?Ifsohowdoyou?[http://erpschools.com/faq]
Howdoyoubuildapopupmenu?[http://erpschools.com/faq]
Howtocreateafileinforms?[http://erpschools.com/faq]
howtodevelopnewforminoracleapps?[http://erpschools.com/faq]
WhatisFORMS_MDI_WINDOW?[http://erpschools.com/faq]
Whataresavepointmodeandcursormodepropertieslevel?[http://erpschools.com/faq]
WhatisdifferencebetweenPL/SQLlibraryandobjectlibraryinForms?
[http://erpschools.com/faq]

Canabuttonhaveiconandlableatthesametime?[http://erpschools.com/faq]
Whatistheprocess/stepsforVendorConversion?[http://erpschools.com/faq]
http://oracleappsviews.blogspot.in/

237/256

13/05/2015

KrishnaReddyOracleAppsInfo

WhatisInvoiceTolerance?[http://erpschools.com/faq]
ExplainthesetupusedforAutomaticorManualSupplierNumbering.
[http://erpschools.com/faq]

WhatisContractPO?[http://erpschools.com/faq]
WhatisaPayableDocument?[http://erpschools.com/faq]
Inwhichtablewecanfindthevendornumber?[http://erpschools.com/faq]
GivethecyclefromcreatinganinvoicetotransferringittoGLinAP.
[http://erpschools.com/faq]

WhatarethedifferenttypesofInvoicesinPayables?[http://erpschools.com/faq]
YouhavecreatedanewSOB.HowwillyouattachthisSOBtoAP?
[http://erpschools.com/faq]

canwecreateinvoicewithoutPOinpayables?thenhow?[http://erpschools.com/faq]
InAPthesuppliersdidntvisibleinIndiaCreditorsLedgerReportParameter?
[http://erpschools.com/faq]

WhatwillaccrueinPayables?[http://erpschools.com/faq]
WhatisaHold?ExplainthetypesofHold.[http://erpschools.com/faq]
WhichmoduleistheownerofVendor/Suppliertables?[http://erpschools.com/faq]
WhatisPaymentTerms?[http://erpschools.com/faq]
HowmanykeyflexfieldsarethereinPayables?[http://erpschools.com/faq]
WhatistheDistributionTypewhileenteringtheInvoice?[http://erpschools.com/faq]
WhatarethePrepaymenttypes?[http://erpschools.com/faq]
WhatisAgingPeriods?[http://erpschools.com/faq]
WhatsthedifferencebetweenthePayablesOpenInterfaceImportProgramandthe
PayablesInvoiceImportprogram?[http://erpschools.com/faq]
Whatisprepayment&stepstoapplyittoanInvoice?[http://erpschools.com/faq]
Canyouholdthepartialpaymentifyesthenhow?[http://erpschools.com/faq]
Howyouwilltransferpayablestogeneralledger?[http://erpschools.com/faq]
WhatprogramisusedtotransferAPtransactionstoGL?[http://erpschools.com/faq]
WhatisuseofAPAccountingPeriods?[http://erpschools.com/faq]
WhatarethedifferentinterfaceprogramsinAP?[http://erpschools.com/faq]
WhatisDebitMemo&CreditMemoinPayables?[http://erpschools.com/faq]
NamesomeFlexfieldsinAR.[http://erpschools.com/faq]
ExplainthestepsinvolvedinTransfertoGLfromAR.[http://erpschools.com/faq]
WhatisthedbnumberofaparticularcusotmerTCA?[http://erpschools.com/faq]
WherecanyoufindtheCustomerpaymentterms?[http://erpschools.com/faq]
WhatisthelinkbetweenOMandAR?[http://erpschools.com/faq]
WhatkindoftransactionscanbecreatedusingAutoInvoice?[http://erpschools.com/faq]
WhatarethedifferentTransactiontypesinAR?[http://erpschools.com/faq]
ExplainthedifferentstepsinimplementingAutolockbox.[http://erpschools.com/faq]
WhatarethedifferentInvoicematchingtypes?[http://erpschools.com/faq]
WhataretheunderlyingtablesandvalidationsrequiredduringAutoInvoiceInterface?
[http://erpschools.com/faq]

howcanweadjustthemoneyinAR?[http://erpschools.com/faq]
TellmeaboutTCA?[http://erpschools.com/faq]
WhataredifferenttypesofPOs?[http://erpschools.com/faq/whataredifferenttypesofpos]
Whatisdollarlimitandhowcanyouchangeit?[http://erpschools.com/faq]
Cananyongivemethadetailedtables&theirerelationship.indetail.
[http://erpschools.com/faq]

EXPLAINABOUTPOFLOW[http://erpschools.com/faq]
Afterdonecontactpurchaseorder.wecanCreatestandardorderforcontract.,inthat
wementionContractPoNo.inReffDoccolumn.Inwhichtableandwhatcolumnthat
http://oracleappsviews.blogspot.in/

238/256

13/05/2015

KrishnaReddyOracleAppsInfo

valueisstored?[http://erpschools.com/faq]
WhatiscommonIdforRequisitionandpo?[http://erpschools.com/faq]
WhatisbackdatedReceipt?[http://erpschools.com/faq]
IsitpossibletocreateabackdatedreceiptwithareceiptdatefallinginclosedGLperiod?
[http://erpschools.com/faq]

WhatisReceiptDateTolerance?[http://erpschools.com/faq]
HowdowesettheReceiptTolerance?[http://erpschools.com/faq]
whatarethetableslinkbetweenPO&Gltechnically?[http://erpschools.com/faq]
CanyoucreatePOiniProcurement?[http://erpschools.com/faq]
GivemesomePOtables[http://erpschools.com/faq]
TellmeaboutPOcycle?[http://erpschools.com/faq]
ExplainApprovalHeirarchiesinPO.[http://erpschools.com/faq]
HowdoesworkflowdetermineswhomtosendthePOforapproval?
[http://erpschools.com/faq]

WhatisPurchaseorderworkflow?[http://erpschools.com/faq]
WhatisPlannedPO?[http://erpschools.com/faq]
WhatfunctionsyoudofromiProcurement?[http://erpschools.com/faq]
Whatisdifferencebetweenpositionalhierarchyandsupervisorhierarchy?
[http://erpschools.com/faq]

WhatisthedifferencebetweenpurchasingmoduleandiProcurementmodule?
[http://erpschools.com/faq]

WhatisBlanketPO?[http://erpschools.com/faq]
Cantherebeanystep/procedureofExpiryofaSalesOrderwhetherallshipmentshave
beenmadeornot?[http://erpschools.com/faq]
WhataretherequiredfieldswhenenteringanorderintheOrderEntryScreen?
[http://erpschools.com/faq]

Whatistheprerequisitetodobeforecustomerconverion?[http://erpschools.com/faq]
WhatisQuilifierandModifier?[http://erpschools.com/faq]
whataretheaccountswillpopulateinOM?[http://erpschools.com/faq]
Whatisthedifferencebetweenpurchaseorder(PO)andsalesorder?
[http://erpschools.com/faq]

WhataretheProcessConstraints?[http://erpschools.com/faq]
WhatisaPickSlipReport?[http://erpschools.com/faq]
Atwhatstageanordercannotbecancelled?[http://erpschools.com/faq]
Whentheorderimportprogramisrunitvalidatesandtheerrorsoccurredcanbeseenin?
[http://erpschools.com/faq]

Whatarepickingrules?[http://erpschools.com/faq]
WhatdoesBackorderedmeaninOM?[http://erpschools.com/faq]
WhatisONTstandsfor?[http://erpschools.com/faq]
Whatisordertype?[http://erpschools.com/faq]
Howismoveordergenerated?[http://erpschools.com/faq]
Namesometablesinshipping/order/moveorder/inventory?[http://erpschools.com/faq]
Whatareprimaryandsecondarypricelists?[http://erpschools.com/faq]
ExplaintheOrderCycle?[http://erpschools.com/faq]
Whatispackingslip?[http://erpschools.com/faq]
WhatisDocumentSequence?[http://erpschools.com/faq]
Wheredoyoufindtheorderstatuscolumn?[http://erpschools.com/faq]
WhatisOrderImportandWhataretheSetupsinvolvedinOrderImport?
[http://erpschools.com/faq]

Whatarevalidationtemplates?[http://erpschools.com/faq]
WhataredifferentOrderTypes?[http://erpschools.com/faq]
http://oracleappsviews.blogspot.in/

239/256

13/05/2015

KrishnaReddyOracleAppsInfo

WhatareDefaultingRules?[http://erpschools.com/faq]
WhatisdropshipinOM?[http://erpschools.com/faq]
WhatisAdvancedShippingNotice?[http://erpschools.com/faq]
Whenanordercannotbedeleted?[http://erpschools.com/faq]
WhatisDropshipment?[http://erpschools.com/faq]
Whatispickslip?[http://erpschools.com/faq]
whatislinkbetweenPurchaseOrdertoSalesOrder?[http://erpschools.com/faq/whatislink
betweenpurchaseordertosalesorder]

Howtoretrymultipleerroredworkflowprocesses?[http://erpschools.com/faq]
Whatistheaccesslevelinworkflowusedfor?[http://erpschools.com/faq]
Howdoyoudefinestartandendfunctionsinworkflow?Howdoestheydifferfromnormal
functions?[http://erpschools.com/faq]
Givemesomeworkflowtables?[http://erpschools.com/faq]
Whatisthedifferencebetweenafunctionandnotificationinworkflow?
[http://erpschools.com/faq]

IhavesenttwodifferentnotificationstotwodifferentusersandIwanttowaittillboththey
areapprovedtosend3rdnotification.Howcanyouachieveit?[http://erpschools.com/faq]
Whatisitemtypeanditemkeyinworkflow?[http://erpschools.com/faq]
Howdoyouuseattributevaluesinworkflowmessages?[http://erpschools.com/faq]
Howdoyouuselookupsinworkflow?[http://erpschools.com/faq]
Whatarerolesinworkflowandhowtheyareused?[http://erpschools.com/faq]
Howdoyoudownloadoruploadaworkflowfromaserver?[http://erpschools.com/faq]
Whatarestepstocustomizetheworkflow?[http://erpschools.com/faq]
Whatfunctionscanyouperformfromworkflowadministratorresponsibility?
[http://erpschools.com/faq]

Tosendanemailtotheuserworkflownotificationistheonlywayoristhereanyother
waystosendit?[http://erpschools.com/faq]
Givemesomeworkflowstandardprocedures?[http://erpschools.com/faq]
Howcanyourun/start/kickoffworkflow?[http://erpschools.com/faq]
Whatiswf_enginepackageusedfor?[http://erpschools.com/faq]
Howmanyprocessescaneachworkflowcontain?[http://erpschools.com/faq]
WhatisRunnableoptioninworkflow?Atwhatlevelitexists?[http://erpschools.com/faq]
Whataredifferenttypesofattributesinworkflow?[http://erpschools.com/faq]
Howdoyoureassignanotification?[http://erpschools.com/faq]
Whatisprocessinworkflow?[http://erpschools.com/faq]
Howcanyousenddirectoracleformlinkthroughworkflownotifications?
[http://erpschools.com/faq]

Howcanyousendanotificationtomultipleusers?Canyouchangethelistdynamically?
[http://erpschools.com/faq]

Canyousendhtmlcodeinworkflownotification?[http://erpschools.com/faq]
IhavesenttwodifferentnotificationstotwodifferentusersandIwanttowaittillatleast
oneisapprovedtosend3rdnotification.Howcanyouachieveit?[http://erpschools.com/faq]
Howcanyougreyout/highlight/hidesomerecordsbasedonconditionsinareport?
[http://erpschools.com/faq]

Whatisthediff.betweennormalreportandXMLreport?givemeatleast4differences?
[http://erpschools.com/faq]

Whatispickslipreportandcustomizationsofthereport[http://erpschools.com/faq]
WhatissalesorderDFF [http://erpschools.com/faq]
wahtisDataconversion?[http://erpschools.com/faq]
Howdoyoucallaconcurrentprogramoranotherreportfromareport?
[http://erpschools.com/faq]
http://oracleappsviews.blogspot.in/

240/256

13/05/2015

KrishnaReddyOracleAppsInfo

Howdoyoumailtheoutputofareport?[http://erpschools.com/faq]
Whereinreportsdoyousetthecontextinformation(likeorg_id)?[http://erpschools.com/faq]
WhatisAnchorinreports?[http://erpschools.com/faq]
HowdoyouwritethereportoutputtoExcelfileortextfile?[http://erpschools.com/faq]
Howdoyouresolvethefollowinglayoutissuesinreports?[http://erpschools.com/faq]
Giveanexampleoftheimplementationofbetweenpagestriggerinreports.
[http://erpschools.com/faq]

Thetotalprintedatthebottomoffirstpagehastobecarriedtothetopofthenextpage.
Howdoudothistechnically?[http://erpschools.com/faq]
WhatisthedifferencebetweenConditionalFormattingandformattrigger?
[http://erpschools.com/faq]

Howdoyoudisplayonlyonerecordoneachpageinareport?[http://erpschools.com/faq]
Howdoyouprintbarcodeinthereports?[http://erpschools.com/faq]
WhatarethedifferentsectionsintheLayout?[http://erpschools.com/faq]
WhatisSRWpackageandsomeproceduresinSRW?[http://erpschools.com/faq]
Whatarebindparameterandlexicalparameterusedfor?[http://erpschools.com/faq]
Whatareuserexitsinreportsandnameafew?[http://erpschools.com/faq]
Namethereporttriggers.[http://erpschools.com/faq]
HowmanyminimumfieldsarerequiretodeveloptheMatrix,MatrixwithGroupReports?
[http://erpschools.com/faq]

Whatisthemandatoryparameterinmutliorgreport?[http://erpschools.com/faq]
Ifwehavetwodatamodelsthenhowmanyframesweneedtodesign?
[http://erpschools.com/faq]

WhatisthedifferencebetweenAFTERPARAMETERFORMtriggerandBEFORE
REPORTtrigger?[http://erpschools.com/faq]
Howdoyouresolvethefollowinglayoutissuesinreports?[http://erpschools.com/faq]
WhatarethemandatoryparametersgiveninReports[http://erpschools.com/faq]
Reportisnotdisplayingdatapresentindatabase,whatcouldbethereason?
[http://erpschools.com/faq]

Isitpossibletochangethemarginsfororaclereport?[http://erpschools.com/faq]
WhatisReportBusting?[http://erpschools.com/faq]
whatisreportbursting?[http://erpschools.com/faq]
HowcanwedisplayheaderinformationforeverypagewhiledevelopingXMLreport?
[http://erpschools.com/faq]

whilecreatingXMLreoprt,whichoneismandatoryeitherDataDefinitionorTemplate
creation?andwhy?[http://erpschools.com/faq]
whyweuseincompatabilityoptioninconcurantprogramwindow?Explianwithanexample
inrealtime.[http://erpschools.com/faq]
WhatdoyouknowaboutTraceandTuning?[http://erpschools.com/faq]
HowdoyousettheprofileoptioninPL/SQLProcedure?[http://erpschools.com/faq]
HaveyoueverusedTABLEdatatypeandwhatisitusedfor?[http://erpschools.com/faq]
HowdoyousetprofileoptionsfromPL/SQLprocedure?[http://erpschools.com/faq]
whatisExternaltable?[http://erpschools.com/faq]
Cantwousersupdatethesamerowatthesametime?ifsohow?[http://erpschools.com/faq]
HowdoyouretrievethelastNrecordsfromatable?[http://erpschools.com/faq]
Howdoyoueliminateduplicaterowsfromatable?[http://erpschools.com/faq]
HowdoyoudeclareuserdefinedException?[http://erpschools.com/faq]
Whatisamutatingtable?[http://erpschools.com/faq]
UPDATECREATETABLEROLLBACKTowhichsavepointwillthechangesbeRolled
Back?[http://erpschools.com/faq/updatecreatetablerollbacktowhichsavepointwillthechanges
berolledback]
http://oracleappsviews.blogspot.in/

241/256

13/05/2015

KrishnaReddyOracleAppsInfo

Whatistkprofandthesyntax?[http://erpschools.com/faq]
HowdoyousettheprofileoptionfromaPL/SQLprocedure?[http://erpschools.com/faq]
WhatistheSQLstatementusedtodisplaythetextofaprocedurestoredindatabase?
[http://erpschools.com/faq]

HowdoyouretrievethelastNrecordsfromatable?[http://erpschools.com/faq]
Namethedifferentdatabasetriggers?[http://erpschools.com/faq]
WhatisthedifferencebetweenTRUNCATEandDELETE?[http://erpschools.com/faq]
CanyouuseCOMMITinatrigger?[http://erpschools.com/faq]
Cantriggersbeusedonviews?IfsoHow?[http://erpschools.com/faq]
WhatisRefCursor?[http://erpschools.com/faq]
CanyoucallasequenceinSQLLoader?[http://erpschools.com/faq]
WhatarethethreefilesthataregeneratedwhenyouloaddatausingSQLLoader?
[http://erpschools.com/faq]

WhatarethetypesofExceptions?[http://erpschools.com/faq]
WhatarethedifferencesbetweenFunctionandProcedure?[http://erpschools.com/faq]
WhatisdynamicSQL?[http://erpschools.com/faq]
HowdoyousubmitaconcurrentprogramfromPL/SQLProcedure?
[http://erpschools.com/faq]

WhatisthedifferencebetweenViewandMaterializedview?[http://erpschools.com/faq]
WhatisRAISE_APPLICATION_ERRORusedfor?[http://erpschools.com/faq]
Givethestructureofthetrigger?[http://erpschools.com/faq]
Whatisanautonomoustransaction?[http://erpschools.com/faq]
WhatarethedifferentcursorsavailableinPL/SQL?[http://erpschools.com/faq]
WhatisdifferencebetweenTRUNCATE&DELETE[http://erpschools.com/faq]
WhatisROWID?[http://erpschools.com/faq]
WhataretheadvantagesofVIEW?[http://erpschools.com/faq]
WhatareSQLCODEandSQLERRMandwhyaretheyimportantforPL/SQLdevelopers?
[http://erpschools.com/faq]

Whatistkprofandhowisitused?[http://erpschools.com/faq]
Whatisglobaltemporarytable?[http://erpschools.com/faq]
howtofindoutduplicaterecordsfromthetable?[http://erpschools.com/faq]
Whatisconditionalfilteringatdatabaselevel?(Hint:Newfeaturereleasedin10g)
[http://erpschools.com/faq]

HowtodevelopaPOprintreportusingXMLpublisher?[http://erpschools.com/faq]
Whatisthedifferencebetweenorg_idandorganization_id?[http://erpschools.com/faq]
InOAFramework,canwehavetwoAMsforsinglepage?[http://erpschools.com/faq]
whatisAPIandhowcanwefindtheAPIsinoracleapps?[http://erpschools.com/faq]
Whatistheinitialsetupbeforeusingutl_filetype?[http://erpschools.com/faq]
WhataretypesofversioncontroltoolsusedinOracleapps?[http://erpschools.com/faq]
Eventhoughweareloadingsegmentvaluesintotables,WhyshouldweloadKFFdatain
combinedformat?[http://erpschools.com/faq]
whatarethetablesofDFFflexfields?[http://erpschools.com/faq]
Whatarethestepstobefollowbeforeimplementationforacustomerwithrelateto
documents?[http://erpschools.com/faq]
Canweusediscardfileasdatafileagain(afterremovingerrors)?
[http://erpschools.com/faq]

Inwhichmodeyouwilltransferfiles(defaultorascii)?[http://erpschools.com/faq]
CanweusedatefunctioninSQLloader?[http://erpschools.com/faq]
Whatareglobalvariables?Howtheycanbeused?[http://erpschools.com/faq]
Whatarecustomeventsinappsandhowtoyouenable/disableit?
[http://erpschools.com/faq]
http://oracleappsviews.blogspot.in/

242/256

13/05/2015

KrishnaReddyOracleAppsInfo

Howdoyouenabletrace/debuginAPPS?[http://erpschools.com/faq]
WhatisthedifferencebetweenKeyflexfieldandDescriptiveflexfield?
[http://erpschools.com/faq]

WhatarethestepstoregisterConcurrentProgram?[http://erpschools.com/faq]
TellmeaboutMultiOrg?[http://erpschools.com/faq]
Whatisdifferencebetweenconcurrentprogramandconcurrentrequest?
[http://erpschools.com/faq]

WhatisALERT?[http://erpschools.com/faq]
WhatisprofileoptioninAPPS?[http://erpschools.com/faq]
Whatisdiagnosticsinapps?Howdoyouenable/disableit?[http://erpschools.com/faq]
ExplaintheOrdertoCashcycleandtheunderlyingtables.[http://erpschools.com/faq]
WhatisFNDLOADERusedforitssyntax?[http://erpschools.com/faq]
ExplaintheProcuretoPaycycleandtheunderlyingtables.[http://erpschools.com/faq]
Ifthebusinessentityhas5OperatingUnits,Howmanytimesdoyouhavetoimplement
Apps?[http://erpschools.com/faq]
HowdoyourundiagnosticsforaparticularmoduletosendittoOraclesupport?
[http://erpschools.com/faq]

Whatarefolders?Howdoyoumodifythem?[http://erpschools.com/faq]
whatisasp.net[http://erpschools.com/faq]
WhatisFormsPersonalization?Whereitisused?WhatFor?[http://erpschools.com/faq]
Whataredifferenttriggersthatcanbeusedinpersonalization?[http://erpschools.com/faq]
Whatisthedifferencebetweenhavingpersonalizationatfunctionlevelratherthanform
level?[http://erpschools.com/faq]
Canyouuseglobalvariablesinformspersonalization?IfsoHow?
[http://erpschools.com/faq]

Canyouhideatextfieldusingpersonalization?How?[http://erpschools.com/faq]
HowdoyoumakeafieldmandatoryornotmandatoryusingFormsPersonalization?
[http://erpschools.com/faq]

Canyoutransferthedatafromoneformtoanotherformusingpersonalization?
[http://erpschools.com/faq]

Howdoyoumovepersonalizationfromoneinstance/databasetoother?
[http://erpschools.com/faq]

Whatispersonalizationandwhatfeaturescanbeachievedthroughpersonalization?
[http://erpschools.com/faq]

Canyoudefaultavalueinatextfiledthroughpersonalization?How?
[http://erpschools.com/faq]

Howcanyourestricttheaccess(tooracleapps)toAGROUPOFusersusing
personalization?[http://erpschools.com/faq]
Atwhatlevelyoucanrestrictpersonalizationcode?[http://erpschools.com/faq]
WhatcanbeimplementedthroughFormsPersonalization?[http://erpschools.com/faq]
HowtodoimplementZOOMFunctionalityusingpersonalization?[http://erpschools.com/faq]
Whataretheadvantages/disadvantagesofFormsPersonalizationwhencomparedto
CUSTOM.pll?[http://erpschools.com/faq]
WhenyoudisplayaerrormessageatWHENVALIDATETriggerwillthedatawillbesaved
intodatabase?[http://erpschools.com/faq]
TestFAQ[http://erpschools.com/faq/testfaq]
Whatisthebestapproachtoload50,000rowsintoatable?[http://erpschools.com/faq/what
isthebestapproachtoload50000rowsintoatable]

HowisCasestatementdifferentfromDecodestatement?[http://erpschools.com/faq/howis
casestatementdifferentfromdecodestatement]

http://oracleappsviews.blogspot.in/

243/256

13/05/2015

KrishnaReddyOracleAppsInfo

GENERALFAQ'S:

General
HowtodevelopaPOprintreportusingXMLpublisher?[http://erpschools.com/faq]
Whatisthedifferencebetweenorg_idandorganization_id?[http://erpschools.com/faq]
InOAFramework,canwehavetwoAMsforsinglepage?[http://erpschools.com/faq]
whatisAPIandhowcanwefindtheAPIsinoracleapps?[http://erpschools.com/faq]
Whatistheinitialsetupbeforeusingutl_filetype?[http://erpschools.com/faq]
WhataretypesofversioncontroltoolsusedinOracleapps?[http://erpschools.com/faq]
Eventhoughweareloadingsegmentvaluesintotables,WhyshouldweloadKFFdatain
combinedformat?[http://erpschools.com/faq]
whatarethetablesofDFFflexfields?[http://erpschools.com/faq]
Whatarethestepstobefollowbeforeimplementationforacustomerwithrelateto
documents?[http://erpschools.com/faq]
Canweusediscardfileasdatafileagain(afterremovingerrors)?
[http://erpschools.com/faq]

Inwhichmodeyouwilltransferfiles(defaultorascii)?[http://erpschools.com/faq]
CanweusedatefunctioninSQLloader?[http://erpschools.com/faq]
Whatareglobalvariables?Howtheycanbeused?[http://erpschools.com/faq]
Whatarecustomeventsinappsandhowtoyouenable/disableit?
[http://erpschools.com/faq]

Howdoyouenabletrace/debuginAPPS?[http://erpschools.com/faq]
WhatisthedifferencebetweenKeyflexfieldandDescriptiveflexfield?
[http://erpschools.com/faq]

WhatarethestepstoregisterConcurrentProgram?[http://erpschools.com/faq]
TellmeaboutMultiOrg?[http://erpschools.com/faq]
Whatisdifferencebetweenconcurrentprogramandconcurrentrequest?
[http://erpschools.com/faq]

WhatisALERT?[http://erpschools.com/faq]
WhatisprofileoptioninAPPS?[http://erpschools.com/faq]
Whatisdiagnosticsinapps?Howdoyouenable/disableit?[http://erpschools.com/faq]
ExplaintheOrdertoCashcycleandtheunderlyingtables.[http://erpschools.com/faq]
WhatisFNDLOADERusedforitssyntax?[http://erpschools.com/faq]
ExplaintheProcuretoPaycycleandtheunderlyingtables.[http://erpschools.com/faq]
Ifthebusinessentityhas5OperatingUnits,Howmanytimesdoyouhavetoimplement
Apps?[http://erpschools.com/faq]
HowdoyourundiagnosticsforaparticularmoduletosendittoOraclesupport?
[http://erpschools.com/faq]

Whatarefolders?Howdoyoumodifythem?[http://erpschools.com/faq]
whatisasp.net[http://erpschools.com/faq]
Whatisthebestapproachtoload50,000rowsintoatable?[http://erpschools.com/faq/what
isthebestapproachtoload50000rowsintoatable]

Wahtisthebestapproachtowrite50,000rowstoadatafile?
[http://erpschools.com/faq/wahtisthebestapproachtowrite50000rowstoadatafile]

PAYABLESFAQ'S:

Payables
Whatistheprocess/stepsforVendorConversion?[http://erpschools.com/faq]
WhatisInvoiceTolerance?[http://erpschools.com/faq]
http://oracleappsviews.blogspot.in/

244/256

13/05/2015

KrishnaReddyOracleAppsInfo

ExplainthesetupusedforAutomaticorManualSupplierNumbering.
[http://erpschools.com/faq]

WhatisContractPO?[http://erpschools.com/faq]
WhatisaPayableDocument?[http://erpschools.com/faq]
Inwhichtablewecanfindthevendornumber?[http://erpschools.com/faq]
GivethecyclefromcreatinganinvoicetotransferringittoGLinAP.
[http://erpschools.com/faq]

WhatarethedifferenttypesofInvoicesinPayables?[http://erpschools.com/faq]
YouhavecreatedanewSOB.HowwillyouattachthisSOBtoAP?
[http://erpschools.com/faq]

canwecreateinvoicewithoutPOinpayables?thenhow?[http://erpschools.com/faq]
InAPthesuppliersdidntvisibleinIndiaCreditorsLedgerReportParameter?
[http://erpschools.com/faq]

WhatwillaccrueinPayables?[http://erpschools.com/faq]
WhatisaHold?ExplainthetypesofHold.[http://erpschools.com/faq]
WhichmoduleistheownerofVendor/Suppliertables?[http://erpschools.com/faq]
WhatisPaymentTerms?[http://erpschools.com/faq]
HowmanykeyflexfieldsarethereinPayables?[http://erpschools.com/faq]
WhatistheDistributionTypewhileenteringtheInvoice?[http://erpschools.com/faq]
WhatarethePrepaymenttypes?[http://erpschools.com/faq]
WhatisAgingPeriods?[http://erpschools.com/faq]
WhatsthedifferencebetweenthePayablesOpenInterfaceImportProgramandthe
PayablesInvoiceImportprogram?[http://erpschools.com/faq]
Whatisprepayment&stepstoapplyittoanInvoice?[http://erpschools.com/faq]
Canyouholdthepartialpaymentifyesthenhow?[http://erpschools.com/faq]
Howyouwilltransferpayablestogeneralledger?[http://erpschools.com/faq]
WhatprogramisusedtotransferAPtransactionstoGL?[http://erpschools.com/faq]
WhatisuseofAPAccountingPeriods?[http://erpschools.com/faq]
WhatarethedifferentinterfaceprogramsinAP?[http://erpschools.com/faq]
WhatisDebitMemo&CreditMemoinPayables?[http://erpschools.com/faq]

RECEIVABLESFAQ'S:

Receivables
NamesomeFlexfieldsinAR.[http://erpschools.com/faq]
ExplainthestepsinvolvedinTransfertoGLfromAR.[http://erpschools.com/faq]
WhatisthedbnumberofaparticularcusotmerTCA?[http://erpschools.com/faq]
WherecanyoufindtheCustomerpaymentterms?[http://erpschools.com/faq]
WhatisthelinkbetweenOMandAR?[http://erpschools.com/faq]
WhatkindoftransactionscanbecreatedusingAutoInvoice?[http://erpschools.com/faq]
WhatarethedifferentTransactiontypesinAR?[http://erpschools.com/faq]
ExplainthedifferentstepsinimplementingAutolockbox.[http://erpschools.com/faq]
WhatarethedifferentInvoicematchingtypes?[http://erpschools.com/faq]
WhataretheunderlyingtablesandvalidationsrequiredduringAutoInvoiceInterface?
[http://erpschools.com/faq]

howcanweadjustthemoneyinAR?[http://erpschools.com/faq]
TellmeaboutTCA?[http://erpschools.com/faq]

REPORTSFAQ'S:

Reports
http://oracleappsviews.blogspot.in/

245/256

13/05/2015

KrishnaReddyOracleAppsInfo

Howcanyougreyout/highlight/hidesomerecordsbasedonconditionsinareport?
[http://erpschools.com/faq]

Whatisthediff.betweennormalreportandXMLreport?givemeatleast4differences?
[http://erpschools.com/faq]

Whatispickslipreportandcustomizationsofthereport[http://erpschools.com/faq]
WhatissalesorderDFF [http://erpschools.com/faq]
wahtisDataconversion?[http://erpschools.com/faq]
Howdoyoucallaconcurrentprogramoranotherreportfromareport?
[http://erpschools.com/faq]

Howdoyoumailtheoutputofareport?[http://erpschools.com/faq]
Whereinreportsdoyousetthecontextinformation(likeorg_id)?[http://erpschools.com/faq]
WhatisAnchorinreports?[http://erpschools.com/faq]
HowdoyouwritethereportoutputtoExcelfileortextfile?[http://erpschools.com/faq]
Howdoyouresolvethefollowinglayoutissuesinreports?[http://erpschools.com/faq]
Giveanexampleoftheimplementationofbetweenpagestriggerinreports.
[http://erpschools.com/faq]

Thetotalprintedatthebottomoffirstpagehastobecarriedtothetopofthenextpage.
Howdoudothistechnically?[http://erpschools.com/faq]
WhatisthedifferencebetweenConditionalFormattingandformattrigger?
[http://erpschools.com/faq]

Howdoyoudisplayonlyonerecordoneachpageinareport?[http://erpschools.com/faq]
Howdoyouprintbarcodeinthereports?[http://erpschools.com/faq]
WhatarethedifferentsectionsintheLayout?[http://erpschools.com/faq]
WhatisSRWpackageandsomeproceduresinSRW?[http://erpschools.com/faq]
Whatarebindparameterandlexicalparameterusedfor?[http://erpschools.com/faq]
Whatareuserexitsinreportsandnameafew?[http://erpschools.com/faq]
Namethereporttriggers.[http://erpschools.com/faq]
HowmanyminimumfieldsarerequiretodeveloptheMatrix,MatrixwithGroupReports?
[http://erpschools.com/faq]

Whatisthemandatoryparameterinmutliorgreport?[http://erpschools.com/faq]
Ifwehavetwodatamodelsthenhowmanyframesweneedtodesign?
[http://erpschools.com/faq]

WhatisthedifferencebetweenAFTERPARAMETERFORMtriggerandBEFORE
REPORTtrigger?[http://erpschools.com/faq]
Howdoyouresolvethefollowinglayoutissuesinreports?[http://erpschools.com/faq]
WhatarethemandatoryparametersgiveninReports[http://erpschools.com/faq]
Reportisnotdisplayingdatapresentindatabase,whatcouldbethereason?
[http://erpschools.com/faq]

Isitpossibletochangethemarginsfororaclereport?[http://erpschools.com/faq]
WhatisReportBusting?[http://erpschools.com/faq]
whatisreportbursting?[http://erpschools.com/faq]
HowcanwedisplayheaderinformationforeverypagewhiledevelopingXMLreport?
[http://erpschools.com/faq]

whilecreatingXMLreoprt,whichoneismandatoryeitherDataDefinitionorTemplate
creation?andwhy?[http://erpschools.com/faq]
whyweuseincompatabilityoptioninconcurantprogramwindow?Explianwithanexample
inrealtime.[http://erpschools.com/faq]

http://oracleappsviews.blogspot.in/

246/256

13/05/2015

KrishnaReddyOracleAppsInfo

Posted29thAugust2012byKrishnareddy
0 Addacomment

29thAugust2012

URLsforAPPS

URLsforAPPS
OAFramework
===============
http://rajakumareddy.blogspot.com
http://oracle.anilpassi.com/oaframework.html
http://oracle.anilpassi.com/xmlimporterinoracleapplicationsframework.html
http://apps2fusion.com/at/61kv/317oaframeworkpagewithoutloginguestnosecurity
http://www.orafaq.com/wiki/JDeveloper
http://oracle.anilpassi.com/jdrutils.html
http://oracle.anilpassi.com/oaframeworktutorialstraining.html
http://www.dulcian.com/papers/MAOPAOTC/2002/Don'tBeAMuggle.htm
http://www.dulcian.com/papers/OracleOpenWorld/2002/What%20You%20Need%20to%20
Know%20Before%20Building%20Applications%20with%20JDeveloper%209i.htm
http://apps2fusion.com/apps/oaframework/14fwk/151oaframeworkscreenextension
byembeddingacustompage
http://oracle.anilpassi.com/oaframeworktutorial012.html
http://oracle.anilpassi.com/oaframeworktablebasedscreen2.html
http://www.dbforums.com/oracle/1630066jdeveloperresolvingerrorsencountered.html
http://appstechnical.blogspot.com/2007/01/oaframeworktutorials.html
http://oraclearea51.com/oracletechnicalarticles/oaframework/oaframeworkbeginners
guide/322exportingoapagedefinitions.html
http://oraclearea51.com/oracletechnicalarticles/oaframework/oaframeworkbeginners
guide.html
http://www.oracle.com/technology/products/jdev/tips/muench/designpatterns/index.html
http://www.oracle.com/technology/pub/articles/vohrajdevxmlpub.html
http://mukx.blogspot.com/2010/01/uploadfiletoapplicationserverusing.html
http://blog.cholaconsulting.com/search/label/OA%20Framework
http://sabersurge.com/oracleappsdev/index.php?
option=com_content&view=article&id=54%3Afileuploadtodatabaseserveroa
framework&catid=34%3Aoaframework&Itemid=1
http://www.tier1inc.com/blog_comments.php?pid=12ComparingOAFrameworkwith
Forms6i
http://oracleapplicationsrama.blogspot.com/2009/01/howtosearchappsdocumentsin
google.html
http://www.confluentminds.com/Trainings/SCM/>scm

http://oracleappsviews.blogspot.in/

247/256

13/05/2015

KrishnaReddyOracleAppsInfo

OracleFormsWeb
Upload,editanddownloadfilesfrom/tothedatabasewiththe
Webutillibrary
================================
http://sheikyerbouti.developpez.com/webutildocs/Webutil_store_edit_docs.htm

CheckJavaVersion
===============
http://java.com/en/download/installed.jsp?
jre_version=1.6.0_07&vendor=Sun+Microsystems+Inc.&os=Windows+2000&os_version=5
.0
LinuxCommands
===============
http://www.ss64.com/bash/
http://teachmeoracle.com/unixa.html
http://www.nixblog.org/post/2008/03/14/UNIXIDORACLESESSION
http://www.unix.com/shellprogrammingscripting/84635unixscriptdetectnewfileentry
directory.html
RegisterShellScriptsAsConcurrentProgram
===================================
http://www.notesbit.com/index.php/scriptsoracle/oracleapplicationsstepstoregister
shellscriptasaconcurrentprogram/
UTL_FILE_DIR
======================
http://oracleappstechnology.blogspot.com/2008/03/minimizeusageofutlfiledir.html
OracleApplications
===============
http://becomeappsdba.blogspot.com/
http://www.ddbcinc.com/askDDBC/
http://beginapps.blogspot.com/2007_09_01_archive.html
http://knoworacle.wordpress.com/tag/appstable/
http://appsdba4u.blogspot.com/2007/08/oracleappsdbainterviewquestions.html
http://cnubandi.blogspot.com/
http://idbasolutions.com/category/papers/3480000115102/3480000finalrun/
http://becomeappsdba.blogspot.com/2006/08/startupshutdownappsservices.html
http://oracleappss.blogspot.com/2008/07/supplieradditionalinformation.html
http://erpconsultancy.blogspot.com/2008/03/tdsflowinaccountspayableoracle.html
http://etrm.oracle.com/license/MustLogin.html
http://oraclemagic.blogspot.com/2007/06/concurrentrequestanditsdatabasesid.html
http://oracleapplicationsrama.blogspot.com/
http://www.oracleappshub.com/11i/purchaseorderapprovalhierarchy/
http://confluentminds.com/Trainings/SCM/Topic1.1_Ch1_Part4.html
http://forums.oracle.com/forums/thread.jspa?threadID=457983
http://download.oracle.com/docs/cd/A60725_05/html/comnls/us/alr/multins.htm
http://oracle.ittoolbox.com/groups/technicalfunctional/oracleappsl/
http://www.aboutoracleapps.com/2007/07/oraclepurchasingpofaq.html
http://oracleappsviews.blogspot.in/

248/256

13/05/2015

KrishnaReddyOracleAppsInfo

http://forums.oracle.com/forums/thread.jspa?threadID=664806&tstart=0
http://oracle.anilpassi.com/technicalinterviewquestionsinoracleapps.html
http://www.oracleappshub.com/accountsreceivable/arbacktobasictechnicalfoundation/
http://www.oracleappshub.com/aol/settingdefaulttoexcelforexportedfilefromfile
export/
http://asoracle.blogspot.com/2007/11/keytablesfinancials.html
http://oracle.ittoolbox.com/groups/technicalfunctional/oracleappsl/switchresponsibility
iconontoolbar283079
http://oracle.anilpassi.com/formspersonalizations.html
http://www.erpschools.com/Oracle_Apps_Form_Customization.asp
http://www.erpschools.com/
http://realworldoracleapps.blogspot.com/search/label/Welcome%20Note
http://oracleappsrealworld.blogspot.com/
http://mastanreddy.blogspot.com/
http://www.scribd.com/doc/3256741/OracleApplicationsDevelopersGuide
http://garethroberts.blogspot.com/2007/10/excelfileoutputfromoracle.html
http://garethroberts.blogspot.com/2008/01/changingdefaultlayoutformatfrompdf.html
http://erpcrmapps.blogspot.com/2008/01/usingkeyboardshortcuts.html
http://www.hrmsaces.co.uk/ubbthreads.php/forums/8/1
http://bbs.erp100.com/archiver/tid36506.html
http://edelivery.oracle.com/EPD/WelcomePage/get_form?ARU_LANG=US
http://oraclepitstop.wordpress.com/2007/04/18/versionsofcomponentsinoracleapps/
http://www.aboutoracleapps.com/2007/08/oraclegeneralledger.html
http://oracle.anilpassi.com/oraclepayrolltables.html
http://confluentminds.com/Trainings/SCM/Topic2.3_Ch2_Part2.html
http://aksenthil.blogspot.com/
http://knoworacle.wordpress.com/category/oracleapplicationstechnical/oraclefixed
assetstechnical/
https://metalink.oracle.com/
http://solutionbeacon.blogspot.com/2007/07/simpletutorialforpublishingfsg.html
http://sbllc3.solutionbeacon.net/pls/a159vis2/fndgfm/fnd_help.get/US@PSA_US/fnd/@e_c
p
http://apps2fusion.com/apps/oraclehrms/oraclehr/hrms
http://oracle.anilpassi.com/creatingcustomeraddressintcastepbystep.html
http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html
http://forums.oracle.com/forums/thread.jspa?threadID=590547
(AllInoneBlog)http://www.sapimg.com/oracledatabase/oracleapplicationhintsand
tips.htm
http://www.dbaoracle.com/art_dbazine_conc_mgr.htm
http://dineshnair.wordpress.com/
http://oracle.anilpassi.com/basicconceptslistofusefuloracleappsarticles2.html
http://chandramatta.blogspot.com/search/label/Concurrent%20ProgramsVeryUseful
BlogforallTopics
Interfaces
===========
(ARCustomerInterfaceInfo.)
http://sbllc3.solutionbeacon.net/pls/a159vis2/fndgfm/fnd_help.get/US@PSA_US/ar/@n_tbl
_val@PSA_US
http://download
west.oracle.com/docs/cd/A60725_05/html/comnls/us/ar/cusimprt.htm#n_cust_import
http://oracleappsviews.blogspot.in/

249/256

13/05/2015

KrishnaReddyOracleAppsInfo

http://download.oracle.com/docs/cd/A60725_05/html/comnls/us/ar/autoin05.htm#n_autova
l
http://www.erpschools.com/apps/oracleapplications/Articles/General/Interfacesand
ConversionsinOracleApplications/index.aspx
(Payables)
http://sbllc3.solutionbeacon.net/pls/a159vis2/fndgfm/fnd_help.get/US@PSA_US/AP/@r_op
enaud@PSA_US
http://irep11i10.oracle.com/OA_HTML/OA.jsp?
page=/oracle/apps/fnd/rep/webui/OpenInterfaceDetailsPG&CategoryValue=F&_ti=199580
375&retainAM=Y&addBreadCrumb=Y&oapc=7&oas=biKg9_cvMvUQM4gNQIA6ug..
(CustomerInterfaceErrorCodeMeaning)
http://sbllc3.solutionbeacon.net/pls/a159vis2/fndgfm/fnd_help.get/US@PSA_US/ar/@custe
rrs@PSA_US

FNDLOAD
===========
http://oracle.anilpassi.com/fndloadfororaclewebadi.html
R12VisionInstanceLogin
=======================
http://vis1200.solutionbeacon.net/OA_HTML/RF.jsp?
function_id=1032924&resp_id=1&resp_appl_id=1&security_group_id=0&lang_code=US
ms=gEzpj7eR1rfQLgP8Ol8DQ3u3xBOeCmcdxx.JgrY94g&oas=
Q6TtBxoQEySwZJoZFr0Fw..
General
==============
http://www.httpsurf.com/
http://www.webindia123.com/history/index.html
http://download.oracle.com/docs/cd/A57673_01/DOC/api/doc/PC_22/ch02.htm
http://www.wapuser.co.cc/2009/12/howtohackothersyahoopassword.html
http://www.osun.org/
http://oracleapplicationsrama.blogspot.com/2009/01/howtosearchappsdocumentsin
google.html
OracleAppsDataStructure
=======================
http://www.scribd.com/doc/404946/OracleAppsDataStructure
OracleAppsScripts
=================
http://www.erpschools.com/Oracle_Apps_Scripts.asp
http://www.erpschools.com/
http://scripts4oracle.blogspot.com/
MetalinkNotes
===============
http://teachmeoracle.com/metalink.html
http://www.oracle.com/technology/tech/globalization/index.html
http://oracleappsviews.blogspot.in/

250/256

13/05/2015

KrishnaReddyOracleAppsInfo

OrcaleDBConcepts
===============
http://www.adpgmbh.ch/ora/concepts/
Autoconfig
===============
http://becomeappsdba.blogspot.com/2006/10/autoconfiginappstemplatefiles.html
http://onlineappsdba.com/index.php/2008/01/28/autoconfiginoracleapps11ir1212i/
TroubleShootingConcurrentManagers
================
http://becomeappsdba.blogspot.com/2006/10/troubleshootingconcurrentmanagers.html
NLSLanguageParameters
===================
http://it.toolbox.com/wiki/index.php/ORA12700#NLS_Parameters
http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm#_Toc110
410543
TraceConcurrentRequestandGenerateTKPROF
=======================
http://knoworacle.wordpress.com/2008/06/27/tkproftraceaprogram/
HowtofindProcessesrunninginSunsolarisOperatingSystem
=================================================
http://www.unix.com/sunsolaris/25208howfindnumberprocesses.html
CharacterSet
===================
http://download
uk.oracle.com/docs/cd/B19306_01/server.102/b14225/ch11charsetmig.htm
http://download.oracle.com/docs/cd/B10500_01/server.920/a96529/ch2.htm#745
http://download.oracle.com/docs/cd/B28359_01/server.111/b28298/applocaledata.htm#i6
34428
http://www.oracledba.co.uk/tips/character_set.htm
ASCIICharacters
===================
http://www.alcyone.com/max/reference/compsci/ascii.html
http://www.oracle.com/technology/obe/obe9ir2/obenls/localbld/localbld.htm
OracleSMSGetwayGuide
=====================
http://www3.ozekisms.com/index.php?ow_page_number=166
HindustanTimesCorporateNews
======================
http://www.hindustantimes.com/ListingPage/ListingPage.aspx?Category=ChunkHTUI
BusinessSectionPage
Corporate&SectionName=BusinessSectionPage&BC=CorporateNews
http://oracleappsviews.blogspot.in/

251/256

13/05/2015

KrishnaReddyOracleAppsInfo

MSWordMailMergeTutorial
=======================
http://personalcomputertutor.com/mailmerge.htm
http://www.frontpage2002.com/frontpage_2003_tutorial_guide.htm
HowtostartperticularConcurrentManager
============================
http://teachmeoracle.com/forum/viewtopic.php?t=4320
CompanyProfile&Overview
==========================
http://info.shine.com/company/InfosysTechnologiesLtd/102.aspx
LetterGenerationusingWEBADI
=============================
http://apps2fusion.com/at/38ss/351generaterecruitmentletterswebadi
OracleHRMSFastFarmulaTutorial
=============================
http://www.aboutoracleapps.com/2008/11/oraclehrmsfastformulatutorial.html
http://oracle.anilpassi.com/index.php?
Itemid=4&id=117&option=com_content&show=1&task=view
http://www.erpschools.com/Apps/oracleapplications/articles/hrms/fastformulasin
hrms/index.aspx
http://www.aboutoracleapps.com/2009/01/howtogeneratedeveloporedit.html
OracleWorkflow
========
http://oracleappstechnology.blogspot.com/2008/02/workflowmailsnotmovingafter
fresh.html
http://forums.oracle.com/forums/thread.jspa?messageID=2327979
http://apps2fusion.com/at/gt/tc/328workflowmailerdebuggingscriptfordebugging
emailsissues
http://onlineappsdba.com/index.php/2008/07/16/oracleworkflownotificationmailer
outboundprocessing/
http://oracleebusinesssuite.wordpress.com/2008/10/18/debuggingtheapprovalworkflow
forpurchaseorderorpurchaserequisition/
http://oracle.anilpassi.com/workflowsbusinesseventstraininglesson4.html
http://oracleappstechnology.blogspot.com/2008/05/disableretentiononworkflow
queues.html
http://www.freelists.org/post/oraappsdba/EXPIREDmessagesintheWF
NOTIFICATIONOUTqueueTHESOLUTION
https://csslxa03.hkcss.org.hk:16298/OA_HTML/oam/helpdoc/oam_wfoam_notificationmail
erg.htm
http://arunrathod.blogspot.com/2008/08/workflowwfloadthroughunix.html
http://oracle.anilpassi.com/appstechnology/2.html
http://www.erpschools.com/Oracle_Applications_Workflow_Launching.asp
http://www.erpschools.com/Oracle_Applications_Workflow_Tutorial.asp
http://oracleebusinesssuite.wordpress.com/2008/10/18/debuggingtheapprovalworkflow
forpurchaseorderorpurchaserequisition/
http://oracleappsviews.blogspot.in/

252/256

13/05/2015

KrishnaReddyOracleAppsInfo

AME
======
http://greenoracleapps.blogspot.com/
MakePackagesValid
====================
http://idbasolutions.com/3480000115102firstrun/
DBUpgradeContextFileCreation
=========================
http://forums.oracle.com/forums/thread.jspa?
threadID=672921&tstart=0&messageID=2612978
OraclePL/SQLSMS
===========================
http://forums.oracle.com/forums/thread.jspa?messageID=1827704
http://www.dbasupport.com/forums/archive/index.php/t24763.html
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:839412906735
http://www.erpschools.com/Apps/oracleapplications/InterviewQuestions/Tools/PL
SQL/default.aspx
OracleAppsDBA
============================
http://www.teachmeoracle.com/imptables.html
http://www.dbaoracle.com/art_tr_dyn_sga.htm
http://download.oracle.com/docs/cd/A60725_05/html/comnls/us/alr/multins.htm
http://blogs.oracle.com/gverma/2007/11/accrue_economically_dont_recal.html
http://becomeappsdba.blogspot.com/2007/01/changeoracleappspassword
fndcpass.html
http://oracleappstechnology.blogspot.com/2007/07/querytofindoutyouratgpfh
rollup.html
http://onlineappsdba.blogspot.com/2008/06/personalizingloginpage.html
http://www.oracleutilities.com/
http://www.shutdownabort.com/
http://www.dbatoolz.com/sqlscripts
http://krackoracle.blogspot.com/2009_02_01_archive.html
InsertBOBObject(Image)inDatabaseandDisplayInReport6i
===============================================
http://sureshvaishya.blogspot.com/2009/08/insertblobimagefileintodatabase.html
http://oracleappsexperience.blogspot.com/
TunningOracleReports
==========================
http://download.oracle.com/docs/cd/B10464_05/bi.904/b13673/pbr_tune.htm#i1007365
FSGReports
=======================
http://www.oracleappshub.com/finance/fsgwhatisit/
http://oracleappsviews.blogspot.in/

253/256

13/05/2015

KrishnaReddyOracleAppsInfo

XML/BIPublisher
======================
http://www.oracleappshub.com/xmlpublisher/migrationofxmlpubtemplatesanddata
definitionsacrossinstances/#more1084
http://blogs.oracle.com/xmlpublisher/2007/05/howto_java_concurrent_programs.html
http://blogs.oracle.com/xmlpublisher/templates/templates_rtf/
http://asun.ifmo.ru/docs/XMLP/help/en_US/htmfiles/B25951_01/T421739T421827.htm
appsmodules=
http://oracleappss.blogspot.in/2008/07/wipjobcreation.html
http://www.confluentminds.com/Trainings/SCM/>scm
http://www.appsbi.com/category/erp
http://www.oracleappshub.com/accountpayable/payablestransfertogl/
http://oraclemaniac.com/2012/04/08/enableaudittrailsfororacleappstables/
http://www.appsbi.com/oracleaccountspayableskeytables1
http://docs.oracle.com/cd/A60725_05/html/comnls/us/po/index.html
http://oraclemaniac.com/category/techstack/plsql/
http://oracle.ittoolbox.com/groups/technicalfunctional/oracleappsl/purchaserequisition
poreport443015
http://webtopicture.com/oracle/oracleapplicationsdbajoyjeetbanerjeepdf.html
http://pavandba.com/
http://psoug.org/browse.htm?cid=4
http://psoug.org/definition/SELECT.htm
http://psoug.org/reference/library.html

http://www.oracleappsonlinetraining.com/interview.html>
http://docstore.mik.ua/orelly/oracle/prog2/ch08_05.htm
http://garethroberts.blogspot.in/search/label/ap
http://knoworacle.wordpress.com/2010/03/02/oraclepayablesusefultables/
http://knoworacle.wordpress.com/2010/03/22/oraclefinancialsaccountinginterview
technicalfucntionalquestions/
http://oracleappsviews.blogspot.in/

254/256

13/05/2015

KrishnaReddyOracleAppsInfo

http://eoracleapps.blogspot.in/2009/05/oracler12internalrequisitionand.html
=====
http://alloracletech.blogspot.in/
ContactPerson:
PhanindharReddyPhoneNo:
9877349809,9866349809
http://functionalguy.blogspot.in/2009/02/backtobackordercycle.html
http://oracleapplicationsfunctional.blogspot.in/2011/08/ordertocashcycleinorder
management_28.html
http://knoworacle.wordpress.com/2010/04/14/oracleapplicationsgeneralinterview
technicalfunctionalquestions/
http://freshersoracleapplications.blogspot.in/2008/06/someoffrequentlyasked
questionsin.html
http://www.techonthenet.com/oracle/questions/index.php
http://www.oracledatabasetips.com/oracle_sql_background.html
http://www.psoug.org/reference/merge.html
======
http://www.dbaoracle.com/training.html
http://osamamustafa.blogspot.in
http://support.sas.com/documentation/cdl/en/sqlproc/62086/HTML/default/viewer.htm#a00
1349366.html
http://sairamgoudmalla.blogspot.in/2008/12/interfacetablesformostusedmodules.html
http://oracleappsyashrajvarsity.blogspot.in/>good
http://sandeeporaclenotes.blogspot.in/2011/07/unixmaterial.html?spref=bl>
interfaces,conversionsusingbulkcollect
http://www.oratable.com/nthhighestsalaryinoracle/
http://sandeeporaclenotes.blogspot.in/2011_07_19_archive.html
http://oracally.blogspot.in/2010/03/r12howmoacenviornmentissetup.html
http://2lyoracleapps.blogspot.in/>purchasingmodule
http://oracleappsviews.blogspot.in/

255/256

13/05/2015

KrishnaReddyOracleAppsInfo

https://incometaxindiaefiling.gov.in/portal/KnowTan.do
http://www.erpstuff.com/forums/default.asp?CAT_ID=1>forumfororacleapps
http://oracleappsa2z.blogspot.in/2011/09/alltablesinoracleapps11ir12.html
http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html
http://sandeeporaclenotes.blogspot.in/

Readmore:http://prasanthapps.blogspot.com/2011/05/urlsforapps.html#ixzz1Tfuff9aY
Posted29thAugust2012byKrishnareddy
0 Addacomment

http://oracleappsviews.blogspot.in/

256/256