Infact we can find out answers to all our questions by knowing how FNDLOAD works?
FNDLOAD use an lct file (kind of a conguration file) which contains which entity it is used for, what all attributes of the entity it will populate/ download. LCT files also have the SQL Statement using which it will download all the data and API using which it will upload the data into ORACLE APPLICATIONS. So if i want to find out that for which table and entity I can use FNDLOAD, I can search in the ".lct" files in the product code tree and search for table or my entity.
lct files are located in $PROD_TOP/patch/115/import/
Usage: FNDLOAD logon 0 Y mode configfile datafile [ entity [ param ... ] ]
where logon is username/password[@connect] mode is either UPLOAD or DOWNLOAD configfile is the configuration file (lct file) datafile is the data file (for downloading specify any name. A file will be created with that name. For uploading specify you filename) entity is an entity name, or - to specify all values in an upload (Entity name) param is a NAME=VALUE string used for parameter substitution
Heres you can see lct files and choose what all parameters you should pass to run FNDLOAD. I am taking a simple example of a concurrent program.
DEFINE PROGRAM
KEY CONCURRENT_PROGRAM_NAME VARCHAR2(30)
KEY APPLICATION_SHORT_NAME VARCHAR2(50)
CTX OWNER VARCHAR2(4000)
BASE LAST_UPDATE_DATE VARCHAR2(75)
TRANS USER_CONCURRENT_PROGRAM_NAME VARCHAR2(240)
BASE EXEC REFERENCES EXECUTABLE
BASE EXECUTION_METHOD_CODE VARCHAR2(1)
END PROGRAM
PROGRAM is an entity.
KEY Attributes in the entity should be passed for downloading the entity.
CTX Attributes are context parameters which are generally OWNER and LAST_UPDATE_DATE to determine whether to overwrite data or not.
These are generally used for uploadig the data.If owner is other than seed then data will be overriddenif Last_udpate_date is greater than the last_update_date in the database then data will be overridden.
TRANS: THis reperesent that this is transalatable attribute.
So for downloading program "BENLIMOD" I can use following ommand
$FND_TOP\bin\FNDLOAD apps/
Using lct file FNDLOAD create a LDT file which contains data. You can find these files in "$PROD_TOP/patch/115/import/US/". You can find LDT files at the above locations. These files contain the delivered data by oracle like concurrent program definitions, request groups etc.
Now I think we can ourself define our own FNDLOAD command for any of the entities for which FNDLOAD is available.
Hope this helps.
5 comments:
Hi!
Is it possible to migrate translations of RXi reports to other instances using FNDLOAD?
Tnx in advance!
Natasa
Hi Natasa
I am sorry, I not aware of the technology used for RXi reports so can not comment on this as of now. I will see if I can get any material for you.
Gaurav,
Love your blog. Learn a lot.
Have you ever tried FNDLOAD on "User Table Structure, Columns, Rows and Values" with pyusertable.lct? In our business, business_group_id = 0; it's not null, so I have to modify the pyusertable.lct a little to make the download work. But the UPLOAD never works. It never gives error either. Do you happen to have any ideas? How to do debug it?
Keep the good posts.
Thanks.
YZ
Lao
I never tried uploading the user tables. But in the LCT file you can see load_row or some other procedure must be written there to load table and table values. Let me know if it works or not
Gaurav/Lao,
How did you overcome the issue with the upload for pyusertable.lct ...I'm running into the same issue.
Appreciate any help on this.
Post a Comment