Doubt regarding TEXT_IO package ???

Hi,
I recently came to know that TEXT_IO package can only be used in two tier architecture and cannot be provided in three tier architecture, is it true? and if yes why is it so? and is there any other alternative to get things done by three tier architecture???
cheere...

TEXT_IO package can only be used in two tier architecture and cannot be provided in three tier architecture, is it true?FALSE, if this means that TEXT_IO does not work in three tier architecture. TRUE, if this means that TEXT_IO can't read files from Client machine.
See an extract from an Oracle article :
Take the Forms TEXT_IO package. This package provides the programmer with facilities to read and write text files on the Application Server. WebUtil provides an alternative implementation CLIENT_TEXT_IO, which is identical to TEXT_IO except that calls are implemented on the client browser machine rather than on the middle tier.

Similar Messages

  • Create a file using text_io package

    Hi my friends,
    I would like to direct the output from my Reports to a file.
    I was searching in Oracle Forum and I found:
    1.in the before report trigger open a file(.txt file) for write mode using text_io.fopen. You can specify the file name with whatever path u want.
    2.Whatever fields from the report you want to redirect to the this file, go to the repeating frame of that field and use text_io.put or put_line.
    How to I could do this?????
    3.Finally , maybe in the after report or whereever close the file you opened using text_io.close.
    Someone, could give more information about this?
    Thanks...
    Carla

    Hi Carla
    What I understand from your words is that you want to write out a file based on your query in the report using the text_io package.
    You could be doing this in the Format Trigger of the appropriate Repeating Frame.
    You could also be using Delimited output and choose an appropriate delimiter character.
    With Reports 9i, you could be doing File I/O operations using Java calls by importing a Java class.
    Hope this helps.
    Regards
    Sripathy

  • Urgent request - TEXT_IO package

    Hi people,
    I'm in the process of converting one of my client's corporate reports to an Excel
    format, using the "TEXT_IO" package. The client requires his logo to appear in the
    Excel file (for a purely aesthetic purpose).
    I've tried - to no avail, might I add - to embed/insert the company's corporate
    logo into the generated Excel file. This logo is stored as a LONG RAW datatype in
    the associated JCG_EXCEL_DATA table.
    Whenever I attempt to embed this logo, using the "Text_IO.Putf" built-in, Excel
    displays it as "Bit!+".
    Do you perhaps know of a way to do this?
    Here's an example of the statement used:
    "Text_IO.Putf(out_file, chr(9) || :image_file);"
    Thanks and regards,
    Johann.

    Do you know the format of the file? If you've used Oracle*Forms to upload the file to the database then format may not be one recognised by Excel. You could check by saving the file to the filesystem and making sure you can insert it into Excel manually.

  • Embedding images using the TEXT_IO package

    Good morning people,
    I'm in the process of converting one of my client's corporate reports to an Excel format, using the "TEXT_IO" package. The client requires his logo to appear in the Excel file (for a purely aesthetic purpose).
    I've tried - to no avail, might I add - to embed/insert the company's corporate logo into the generated Excel file. This logo is stored as a LONG RAW datatype in the associated JCG_EXCEL_DATA table.
    Whenever I attempt to embed this logo, using the "Text_IO.Putf" built-in, Excel displays it as "Bit!+".
    Do you perhaps know of a way to do this?
    Here's an example of the statement used:
    "Text_IO.Putf(out_file, chr(9) || :image_file);"
    Thanks and regards,
    Johann.

    Hi,
    It will not be possible to do it as it doesn't recognize it as an image.
    What about going for a delimiteddata output having the header with the logo.
    Please see the 6i patch 11 release notes on OTN documentation for Reports
    Thanks
    The Oracle Reports team

  • Doubt regarding SHDB transaction

    Hi All,   
                I have a doubt regarding the Process Tab in the application tool bar of SHDB transaction. What is the use of the following check boxes?
    1)       Default Size
    2)       Cont.after commit
    3)      not a batch input session
    4)      END: Not a Batch Input session
    5)      Simulate Background mode

    Hi,
    Basically these are the properties for CALL TRANSACTION using. You need not worry about these unless you really need those.
    1) Default Size: it will set the Default screen size for CALL TRANSACTION USING...
    2) Cont.after commit : it will set indicator that CALL TRANSACTION USING... is not completed by COMMIT. after commit also the process will continue
    3) not a batch input session: sets indicator that present session is not batch input
    4) END: Not a Batch Input session
    5) Simulate Background mode : session will be run in foreground. but similar to back grpund
    you can see the documentation by placing the cursor on these and click f1.

  • I was looking at the "Find my iPhone" app and I have a doubt regarding how it works for the macbook. In order to detect the location, the macbook should remain signed into iCloud. What if the thief logs out of iCloud. Would we able to locate the macbook?

    I was looking at the "Find my iPhone" app and I have a doubt regarding how it works for the macbook. In order to detect the location, the macbook should remain signed into iCloud. What if the person who has stolen my macbook logs out of iCloud.
    It should work fine for iPhone/iPad because we can enable "Restrictions" to prevent the user from signing out of iCloud. Do we have simialr settings for the macbook?
    Thanks,

    If it's not on the device list, it indicates that someone has gone to Find My iPhone on icloud.com and manually deleted it from the device list (as explained here: http://help.apple.com/icloud/#mmfc0eeddd), and it has not gone back online since (which would cause it to reappear on the device list; Find My iPhone has been turned of in settings on the device; the iClolud account has been deleted from the device; or the entire devices has been erased and restored.
    Unfortunately, there's no other way to track the phone other than through Find My iPhone.  You could call your carrier and see if they would blackliste it so at least the theif couldn't use it.

  • Very urgent: Doubts regarding CRM WORKFLOW OF BUSINESS PARTNER CREATION

    HI ,
    I HAVE DOUBTS REGARDING CRM WORKFLOW OF BUSINESS PARTNER CREATION, WHILE I AM CREATING BUSINESS PARTNER THROUGH R/3 , IT REFLECT IT INTO MYSAP CRM ALSO, AT THAT TIME IT SENDING THE MAIL TWICE TO THE RECEIPIENT. IS THERE ANY WAY THROUGH  WHICH I CAN RESTRICT IT TO SEND THE MAIL ONLY ONCE,
    PLZ SEND ME THE REPLY AS SOON AS POSSIBLE,
    THANKS  ADVANCED,

    HI
    WORKFLOW SEETING. SAP MAIL
    MULTIPLE MAILS AND
    ONLY ONCE CHOOSE
    ONLY ONCE OPTION ON WHICH VERSION U R WORKING?
    REWARD IF HELPFUL
    VENKAT

  • Doubt regarding  ALE SETTINGS in IDOC scenario.

    Hi Friends,
            I have some doubts regarding ALE settings for IDOC scenarios,  can anyone  please clarify my doubts.
    For exmaple take IDOC to FILE scenario
    The knowledge i got from SDN is --
    One need to do at the  R3 side is  --- RFC DESTINATION (SM59)  for the XI system.
                                                       --- TRFC PORT  for sending IDOC  to the  XI system
                                                       --- CREATING LOGICAL SYSTEM
                                                       --- CREATING PARTNER PROFILE 
                   at the XI side is  --- RFC  Destination ( For SAP sender system)
                                           --- CREATING  PORT  for receiving IDOC from the SAP sending system(IDX1).
    1. Do we create two logical systems for both Sender ( R3 system ) and Receiver( XI system ) in R3 system itself or in XI system or in both systems we create these logical systems? Is this a mandatory step in doing ALE configurations?
    In IDOC to IDOC scenario-------
      2.  Do we craete two RFC destinations in XI system? One RFC DESTINATION for the Sender R3 system and another RFC DESTINATION for the Receiver R3 System? and do we create RFC DESTINATION for the XI system in receiver R3 system? If not.....y we don't create like this........Please give me some clarity on this.............
      3.  If we use IDOC adapter ,since IDOC adapter resides on the ABAP STACK ,we don't need sender communication channel ,for the similar reason----
    y we r creating receiver communication channel in the case of FILE to IDOC scenario?
      4. Can any one please provide me the ALE settings for IDOC to FILE scenario,
                                                                                    FILE to IDOC scenario,                                                                               
    IDOC to IDOC scenario individually.
    Thanks in advance.
    Regards,
    Ramana.

    hi,
    1. Yes, we create two logical systems for both Sender ( R3 system ) and Receiver( XI system ) in R3 system itself and
    it is a mandatory step in doing ALE configurations
    2. We create 1 RFC destination each in R3 and XI.
        R3 RFC destination points to Xi and
        XI RFC destination  points to R3
    3 We need to create Communication Channel for Idoc receiver as the receiver channel is always required but sender may not be necessary
    4. ALE settings for all IDOC scenarios are same  as follows....
    Steps for ALE settings:-
    Steps for XI
    Step 1)
         Goto SM59.
         Create new RFC destination of type 3(Abap connection).
         Give a suitable name and description.
         Give the Ip address of the R3 system.
         Give the system number.
         Give the gateway host name and gateway service (3300 + system number).
         Go to the logon security tab.
         Give the lang, client, username and password.
         Test connection and remote logon.
    Step 2)
         Goto IDX1.
         Create a new port.
         Give the port name.
         Give the client number for the R3 system.
         Select the created Rfc Destination.
    Step 3)
         Goto IDX2
         Create a new Meta data.
         Give the Idoc type.
         Select the created port.
    Steps for R3.
    Step 1)
         Goto SM59.
         Create new RFC destination of type 3(Abap connection).
         Give a suitable name and description.
         Give the Ip address of the XI system.
         Give the system number.
         Give the gateway host name and gateway service (3300 + system number).
         Go to the logon security tab.
         Give the lang, client, username and password.
         Test connection and remote logon.
    Step 2)
         Goto WE21.
         Create a port under transactional RFC.(R3->XI)
         Designate the RFC destination created in prev step.
    Step 3)
         Goto SALE.
         Basic settings->Logical Systems->Define logical system.
         Create two logical systems(one for XI and the other for R3)
         Basic settings->Logical Systems->Assign logical system.
         Assign the R3 logical system to respective client.
    Step 4)
         Goto WE20.
         Partner type LS.
         Create two partner profile(one for XI the other for R3).
         Give the outbound or inbound message type based on the direction.
    Step 5)
         Goto WE19
         Give the basic type and execute.
         fill in the required fields.
         Goto IDOC->edit control records.
         Give the following values.(Receiver port,partner no.,part type and sender Partner no. and type)
         Click outbound processing.
    Step 6)
         Go to SM58
         if there are any messages then there is some error in execution.
         Goto WE02.
         Check the status of the IDOC.
         Goto WE47.
         TO decode the status code.
    Step 7)
         Not mandatory.
         Goto BD64.
         Click on Create model view.
         Add message type.
    BD87 to check the status of IDOC.
    In case if not authorized then go to the target system and check in SU53, see for the missing object
    and assign it to the user.
    SAP r3
    sm59(status check)(no message)
    WE02(status check)
    WE05(status check)
    BD87(status check)
    Xi
    IDx5(Idoc check)
    SU53(authorization check)
    Reward points if helpful
    Prashant

  • Doubt Regarding validation of IDOCS

    Hi Gurus,
               I have some doubts regarding IDOCS.
    1. If we are sending a IDOC from XI to R/3, where does we do validations from R/3 side and how do we do that.  Suppose if we are sending a Purchase order IDOC form XI to R/3, how to do validations for that particular IDOC for PO number and some other fields  from R/3 side.
    2. Do we need to do validations in a aABAP Program.
    please clarify me these Questions. Thanks in advance..
    santosh.

    Hi Santhosh,
    If you want to do any validations in ur IDOC,then from XI just push the IDOC,dont post it.
    (ie)Send the IDOC from XI in status 64 :IDoc ready to be transferred to application.
    Once R/3 Received this status then thru your ABAP progream just get this IDOC no: and do the validations then Post the IDOC manually.
    Thanks.
    Note:Reward Points if you find useful.

  • Doubts regarding XML Form Builder

    Hi All,
          I am having some doubts regarding XML Forms (Projects) that is created using XML Form Builder. Where are exactly these projects stored. Can I edit these projects and add my own Java Functionality in these. And also the data which I fill using these project where is it stored. Suppose New Project I ve created using XML Form Builder, now I want to feed in the news. Where exactly are these news stored.
    Thanks in Advance
    Anish

    Hi Anish
    You can make the standard settings and modify the XML forms builder in line with your requirements in the options. You can set the standard paths for your project on the <b>Paths</b> tab page.
    To get a clear understanding, please go through this link.
    http://help.sap.com/saphelp_erp2004/helpdata/en/62/ca6f365a6df84e87ba085f9b5fb350/content.htm
    Hope that was helpful
    Warm Regards
    Priya

  • Have some doubt regarding the  weblog (Lookup's in XI made simpler)

    Hi All,
    I have created the same scenario as mentioned in Siva's weblog (Lookup's in XI made simpler).
    I having some doubts regarding the scenario, it will be great if you help me to resolve the same.
    I am having a file-file scenario where I need to do lookup in database(MS-Access)  through mapping.
    The standard file-file scenario is in place and in addition I have created a receiver jdbc channel . I  have also created the receiver agreement for the same in the cofiguration.
    While creating the receiver agreement you have to specify the interface name which includes the message type…I have specified the normal format which we specify while configuring the jdbc receiver adapter.
    In the message mapping I have created a advance user defined function as mentioned in your weblog which calls my receiver jdbc channel.
    I have also specified the select query to be executed in the mapping program.
    While testing I am getting the following error
    Cannot produce target element /ns0:Role_MT/URole. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
    <b>Can you please suggest me what all I need to do in addition to the file-file scenario for this lookup scenario to work.</b>
    Thanks and Regards
    Rahul

    Hi,
    Following is my user defined function
    //write your code here
    String Query = "";
    Channel channel = null;
    DataBaseAccessor accessor = null;
    DataBaseResult resultSet = null;
    Query = "Select URole from  Lookup where UName = '  " + UName[0] + "  ' and UPassword = '  " + Pwd[0] +" '  ";
    try{
    channel = LookupService.getChannel("DB_service","JDBC_channel_receiver");
    accessor = LookupService.getDataBaseAccessor(channel);
    resultSet  = accessor.execute(Query);
    for(Iterator rows = resultSet.getRows();rows.hasNext();){
    Map rowMap = (Map)rows.next();
    result.addValue((String)rowMap.get("URole"));
    catch(Exception ex){
    result.addValue(ex.getMessage());
    finally{
    try{
    if (accessor!= null) accessor.close();
    catch(Exception ex){
    result.addValue(ex.getMessage());
    Thanks and Regards
    Rahul

  • TEXT_IO package...

    Is there any restriction on the length of record that can be read from text file using text_io package. I want to read a text file that has number of records with length upto 20000 char. I'm putting this data into a table which has 4 columns of varchar2(4000).
    will this work properly?
    thanks much
    ---himanshu

    Check each line of the file for a ','. The heading line will not
    have any. Only insert data from lines that contain a ','.

  • Finding EOF using TEXT_IO package

    Hi everybody,
    I use TEXT_IO package and read all lines of a text file....
    How can the logic of the routine i write come out of the loop when the file ends..(EOF=TRUE).
    Thanks ,
    Simon

    The TEXT_IO raise a NO_DATA_FOUND when the EOF is reached.
    Francois

  • Some doubts regarding sorcing cockpit in EBP

    Hi all,
    This is sankar bhatta , working in IBM . I am new to the EBP module. I got  few doubts regarding the sourcing cockpit.
    When a shopping cart comes to the sourcing cockpit of the purchaser. I mean in what cases??
    i am listing some of the cases where i have doubts.
    1) A user creates a SC , but he doesn't assign any vendors. in that case it comes to the sourcing cockpit of the Purchase . is it right??
    2)A user created a shopping cart ( with more than one item) without vendor and it has gone to SOCO of purchaser . he has assigned the vendor and orders it. the PO is created in the Backend. now because of some reason ( for example the vendor is not able to supply the item ) the purchase deletes one item from the PO in EB. In this case is the SC comes again to SOCO of the Purchaser???
    3) the user created the SC without vendor.The SC goes to the SOCO of the purchaser. The SC is in approval process. Now the user deletes one item and orders it again. In this case whether the SC goes to the SOCO again???
    4) User created a SC ( with more than one item) and approval is over. PO is created in the backend. Now, if the user or somebody who has the authorisation deletes the item in SC , does the SC goes to the SOCO of the purchaser??
    5)According to SAp standard functionallity, PO can be deleted only by one in purcasing organisation. Is this person person csn be a purchaser (or) some other person in the Purchasing organisation??
    Please answer these questions and if you know any other case where a SC comes to the SOCO of the Purcher please include that also.
    Thanks and regards
    Sankar Rao Bhatta.

    Hi Sankara,
    The Sourcing cockpit is much more simple than that. Your questions show you'rre very confused in this.
    There is only one customizing point used : SAP Reference IMG -> SAP Implementation Guide -> Supplier Relationship Management -> SRM Server -> Sourcing -> Define Sourcing for Product Categories
    If Sourcing for Product Categories is not configured, the system creates purchase orders in the local scenario for all requirements; these are incomplete if the source of supply is missing. If you require additional control options, for example, the facility to control processing at product level, you can use the following BAdI: Define Execution of Sourcing.
    The diferent options you have in the customizing point are:
    -Sourcing is never carried out: This is the default setting. Enterprise Buyer does not transfer any items to the purchaser's sourcing application ¨C independent of the status of the shopping cart.
    -Sourcing is always carried out: Enterprise Buyer transfers each item to Sourcing ¨C independent of the status of the shopping cart.
    -Sourcing is carried out for items without a source of supply: Enterprise Buyer transfers all requirements that have multiple sources of supply of which none is assigned, or if there is no source of supply for the requirement, to Sourcing.
    -Automatic requirement grouping; sourcing for items without assigned source of supply:
    If a source of supply is assigned to a requirement, the report BBP_SC_TRANSFER_GROUPED automatically groups requirements together for the creation of a PO. If the requirement does not have a source of supply, it appears in the work list of the sourcing application for manual assignment. Once you have assigned a source of supply, you can submit the requirement to the report.
    -Automatic grouping; sourcing is never carried out: If a source of supply is assigned to a requirement, the report BBP_SC_TRANSFER_GROUPED automatically groups requirements together for the creation of a PO. If the requirement does not have a source of supply, an incomplete PO is created.
    -Automatic bid invitation for items without a source of supply: Enterprise Buyer creates a bid invitation for all requirements that do not have any source of supply.
    So for your questions:
    1)depending on your customizing, this SC will lead to:
    -Backend PR (classic scenario)
    -Local incomplete PO (standalone or extended classic without soircing)
    -Requirement in the Sourcing cockpit (if customized)
    2)The modification of a PO will never change the initial document (SC and/or requirement), nothing 'comes back' into the sourcing cockpit
    3)If you customized the sourcink cockpit, the SC line goes into it only after the approval process
    4)This has nothing to do with the sourcing cockpit
    5)The POs can be deleted by people who have correct authorizations (that is purchasers of the document purch. org. in standard). Be careful the POs cannot be deleted as soon as they have been edited (as of R/3).
    Regards.
    Vadim
    PS: Please don't forget to reward points for helpful answers on your threads.

  • Doubt   regarding   Oracle Database 10g Release 2 (10.2.0.1.0) installation

    hello
    my pc has following configurtion
    256mb ram
    60gb hdd
    p4 2.4 ghz
    win xp pro sp2
    I want to know if my pc will be able to run " Oracle Database 10g Release 2 (10.2.0.1.0) " standard edition on it.
    <<http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10201winsoft.html>>
    I thought of increasing RAM, but it is not feasible.
    I know i could run oracle XE, but can my pc also run the standard edition.
    I could not find minimum hardware requirements for standard edition on this site.
    anyway, i will use it for sql and and other advanced concepts in RDBMS which i may learn during my course in database. so i prefer standard edition instead of XE
    any help greatly appreciated
    thanks in advance

    I suggest you not to doubt   regarding   Oracle Database 10g Release 2 (10.2.0.1.0) installation.
    It is not necessary. If you don't receive an answer within a reasonable amount of time you could edit your thread with whatever ( a period is enough) to raise it to the top once again.
    It becomes difficult for us to track duplicated threads and unnecessarily duplicates efforts.
    ~ Madrid.

Maybe you are looking for