Transfer Control

Hi,
I have a function that inserts a blob column into the database. I am using that in the WHEN_BUTTON_PRESSED form trigger. The problem is that the control goes to the function and then it ends there, due to this the next part of trigger code is not being run. Here is the trigger and function code.
declare
file_name varchar2(30) := name_in('FILE_NAME');          
get varchar2(20);
begin
get := blob1(file_name);
/*THIS PART NOR BEING DISPLAYED*/
message('This is the filename '||file_name);
message(' ');
end;
create or replace function blob1(file_name varchar)
return varchar
as
a blob;
loc bfile := bfilename('D1','''||file_name||''');
begin
insert into das.pictures values(empty_blob())
returning photo into a;
/*opening the location to load the file*/ dbms_lob.fileopen(loc);
/*loading into the blob variable which inturns
loads into the table*/
dbms_lob.loadfromfile(a,loc,dbms_lob.getlength(loc));
/*closing the location*/
dbms_lob.fileclose(loc);
return 'TRUE';
end;
Can anyone tell me how to transfer the control back to the form? Also is there a way to attach a screen shot in this forum?

I know this will seem really silly...but
loc bfile := bfilename('D1','''||file_name||'''); - Text Literal error
loc bfile := bfilename('D1',file_name); - Running fine
Thanks for your time guys

Similar Messages

  • How to transfer control along with Data to the another page (Out of JVM)

    Hi,
    Please bear with me, incase this turns out to be a dumb question.
    I want to transfer control to a non JSP page after I hit submit. Apart from
    this I am also sending some data as a HTTPS POST. In case of using
    response.sendRedirect(), it doesn't take care of the POST data.
    So, can anybody help me with what's the best practice in sending POST
    request from a Struts (1.3.8) based J2EE application to another page (which is not a J2EE Application)
    Thank you

    Hi,
    you should run two different import comand.
    The first import with only metadata, just to recreate the structure.
    With the second import you will import data only for the tables you need.
    I think this is the simplier solution.
    Acr

  • OKTZ what is Transfer Control use for?

    Hello all:
    can anybody explain in very easy meaning what is this apply for?
    Best Regards,
    Manthana

    Hi
    Transfer control is a tool to customise the way SAP has handle cost estimates. With Tcode OKKM you can do the customising. Press F1 to look at what SAPhas to say to it: "Key that determines, for each plant, how the system is to search for existing cost estimates."
    Re: Error Message CK 170 and CK 171
    Hope this will help you.
    Regards
    Edited by: Dublin on Nov 16, 2009 9:19 PM

  • Transfer Control in CK40N

    Dear all,
    i trying to update the standard cost of a material and those components that are in its multi-level BOM.
    Scenario:
    Material     Level      Std Cost
    A                  1            $0
    |
    B                  2            $1
    |
    C                  3            $0
    Material A has 3 levels in its multilevel BOM. I trying to update the std cost of material A and C without updating cost of B and std cost of B was previoulsy updated by CK24.
    I tried to use transfer Control in CK40N but transfer Control once recongise that its BOM has a std cost won't procced on to the next . Is it possible whereby i can updates cost of those selected materials and their multilevel BOM that do not have a cost estimate?
    Regards
    YM

    Dear Yiming,
    While executing CK11N only single level BOM explosion will be happening and the system calculates
    the cost.
    If you execute CK40N for the same product then the system considers multi level BOM and calculates
    the Sub-assemblies standard cost also, provided if they dont have any standard cost estimate for that
    current period.
    If you execute CK11N,then for marking and release you have to use CK24 for marking and release.
    In CK40N cost estimae ,marking and release can be carried out in steps.
    Regards
    Mangalraj.S

  • Transfer control in Costing Run

    Hi ,
    I was trying costing a material in ck40n using standard costing variant.Here if I don't specify any
    Transfer control, I am able to cost the material multiple times. How ever if I use a specific transfer control,
    The material is nor getting selected for costing run.Is there any specific reason for the same.
    Please highlight.
    Regards
    Rudra

    Hi
    The purpose of Transfer Control is to transfer the existing Cost Estimates... It cant prevent the selection of a material for costing
    In Transfer Control - You can choose Single Plant / Cross Plant strategy.... based on that, the existing cost estimates are either Transferred or not transferred
    br, Ajay M

  • How SAP use transfer control or material cost estimate

    Hello!
    I have strategy "3-Previous standard cost estimate" in transfer control material cost estimate.
    I have cost estimate for product AAA with status KA and costing date from 01.01.2014.
    Product AAA produced from component BBB.
    Component BBB has two cost estimates with costing date from 01.01.2014 and 01.02.2014.
    I run cost estimate for product AAA with costing date from 06.03.2014.
    Cost estimate not use existing cost estimate for component and create new cost estimate.
    In help.sap.com contains next information about transfer strategy 3 - The system searches for existing previous cost estimate.
    why my system does not use the existing cost estimate for component?
    Thanks for attention.

    Thanks, Szymon!
    I use russian interface and read russian help. Where stragegy 3 has name "Прошедшая плановая калькуляция" which means "The last planned cost estimate".
    This led me astray.
    In english help i read next:
    Previous standard cost estimates
    The system searches for an existing previous standard cost estimate.
    You are completely right!
    two more questions:
    - We can not use strategy 3 if we not realesed cost estimate as standard price?
    - What strategy we should use for transfer material cost estimate with status KA?
    Thanks

  • Transfer control Strategy

    Hello all,
    What is relevenece of using transfer control in costing variant
    why we use it.
    suggest

    Hi prem
    It is for partial costing. The purpose of partial costing is to prevent the system from creating a new cost estimate for a material when costing data already exists. Instead, the existing costing data is simply transferred into the new cost estimate. This improves performance.
    You can create at TCode OKKM
    Cheers
    Srinivas

  • Liquid transfer control/monitoring using valves, pumps, & sensors

    Hi there,
    My project is writing a labview program to control & monitor the transfer of a liquid from a tanker truck to a 70-tonne storage tank, and from the storage tank to multiple 3-tonne railroad tankers. We will be using a NI controller (I don't remember the name of it right now) to control this system. The piping network for this transfer process consists of several remote control valves, 1 flow meter, 2 pumps (centrifugal & diaphragm), level sensors, & load cells. The labview program needs to:
    1. control the flow of liquid (i.e. start/stop transfer, open/close valves & activate/deactivate pumps when certain setpoints are reached)
    2. monitor the inventory of liquid in the tanker truck, storage tank, & railroad tanker (flow meter will indicate the flow rate, level senors will be in both tankers to indicate levels, and storage tank has a load cell which can be used to indicate the inventory of liquid iside the tank)
    The transfer is split into 2 phases: tanker truck to storage tank & storage tank to railroad tanker. Both are separate processes (i.e. they do not occur simultaneously). So my labview program needs to be able to switch between these two processes.
    I am relatively new to using labview, and this is a pretty tall order. I was just wondering if anyone had any advice on how I could set the program up? Or possibly lead me to some example programs I could look at to help me out.
    I appreciate any feedback.
    Thanks,
    Daryn

    Daryn,
    You are right that "this is a pretty tall order" for a LabVIEW beginner. However, if you are patient and do not try to do too mcuh too quickly, you should be able to get it working.
    First, I recommend that you get some LV training to make sure that you are sound on the fundamentals before you do mcuh on this project.  Fumbling around making novice errors could become a big problem for a project like this.
    Next, break the problem down into "bite-sized" chunks. You will need to be able to read from the sensors. Write to controllers. Perform logical decision-making. Display data to the operators. Probably log information to files. Certainly handle error conditions.  LabVIEW makes it easy to keep things modular by using subVIs.
    Also, carefully design the program before you write much code.  Your system will probably include a state machine. Document the states, what happens in each state, and the conditions for transition to other states. (Do not forget error conditions and "that will never happen" possibilites).  This state design document will make writing the program much easier.
    Then look at the examples which come with LV. There are examples for data acquistion, for control, for state machines, and for other relevant parts of the code.  The examples most likely will not be directly useful in your final program but will save you lots of time in learning how to do some of these essential parts of your project.
    Lynn

  • Bin to bin transfer control

    Dear All,
    User request to restrict some bin to bin stock transfer between some specific storage types.
    ex. 320 --> 321 allowed
         302 --> 320 disallowed.
    Is there anybody knows how to make this control in configuration ?
    Thanks in advance
    Regards
    Corey

    Dears,
    I've tried enhancements MWMTO001 and MWMTO003 but not work.
    Is there anyone know which enhancement I should set up?
    Regards
    Corey

  • Inter company stock transfer control issue

    Hello All,
    In inter company Stock Transfer process, plant A has received scheduling agreement or PO from plant B. Is there any possibility of receiving material by plant B w/o sending / dispatching material by plant A? I guess this should not be possible.. but in our case it is happening. Being document type is of ZUB (which is similar process as intra company process).. also we have implemented WM. Material issuance or receipt will happen from outbound or inbound process.
    Though there is a process violation but system would have restricted user not to receive materials. Can someone let me know is there any configuration issue ? If yes how to fix the issue? If no how to restrict user?
    Edited by: Krish9 on Aug 13, 2011 10:03 PM

    Hi,
    As per your scenario you described, it is rather unclear what you are trying to achieve there.
    How would the stock posting be balanced if we do not relief materials from Plant A if we are receiving it in Plant B?
    The stock have to come from somewhere in order for Plant B to receive it. The same quantity of stock has to be reduced accordingly from the source plant (be it Plant A or some other plants).
    I reckon if you just merely do not want to reflect that the stock is being dispatched from Plant A to Plant B, then you may want to consider using a dummy plant to represent Plant A or something to that effect.
    Hope the above helps.
    Thanks.

  • Transfer control back to calling program from infotype screen

    i've developed a module pool program that uses 'call transaction pa30'BDC  to an custom infotype screen... after the 'save' button is pressed the control goes to the infotypes initial screen.
    but i want the control to come back to the calling module pool program.. how do i do that??

    Hi Joseph,
    have you considered using function module HR_INFOTYPE_OPERATION with parameter DIALOG_MODE = '2' instead of CALL TRANSACTION?
    Regards,
    Christian.

  • Unable to transfer control from one action to another action

    In my jsp i ve one html link, in that <html:link action=" " ></html:link>
    i ve given the respection path. with the same name i specified in the
    struts-config.xml file also.
    When i am pressing that html link, i am unable to get the respective
    jsp page.
    What i need to do ? pls help me in this area.
    Advance thanks.
    with regards,
    chandu

    You will need to phyically copy the file from your one pc to the other. Then drag it into iTunes (drop it on the rigntone menu).
    Then try to play it in iTunes (it will ask to enter login info to authorize it).
    Then from there it is on that machine ready to go.
    I belive the location it saved the file is
    C:\Documents and Settings\YourLoginName\My Documents\My Music\iTunes\Ringtones
    I would put it in the same location (editing login name part of the path of course) before dragging it into iTunes.
    Message was edited by: DaVBMan

  • In DEV client i have to copy controlling area or i mantain controlling area

    Hi
    in DEV client i have to copy controlling area or
    i mantain controlling area which is preferable.

    Hi,
    Transfer Controlling area created request from golden client to Dev client.
    Rgds
    sunfico

  • Transfering control between main and a thread

    Hi,
    How to transfer control from a thread which has been initiated from main, back to main.I have a variable and if the value of the var is true the control should go back to main after performing a task the value of the var is set false and the control should be passed to the thread.
    Please help me with a sample code.

    hullo
    control back and forth between threads????
    i'm sorry i dont know if i'm getting you right.
    unlike in method calls where the control returns back to calling method, threads are designed to execute independently.
    and if you spawn a thread from main method both main and spawned thread would be executing simultaneously and only JVM simulates the operating system's control switching between the created threads.
    we can however sleep, yield or wait on a resource.
    you can do all that you were mentioning in the spwaned thread. by writing it in the run method.
    skeleton code:
    public class Exp {
    public boolean choice;
    public exp(boolean choice) {
    this.choice = choice;
    SpawnedThread st = new SpawnedThread(choice);
    if(choice == true) {
    //perform whatever
    notify();
    public static void main(String ar[]) {
    new Exp(choice);
    class SpawnedThread extends Thread {
    boolean choice;
    public SpawnedThread (boolean choice) {
    this.choice = choice;
    start();
    public void run() {
    if(choice == true) {
    wait();
    // resume the task

  • Is it possible to interact with the browser progress controls ?

    I�m programming an Applet and I want to interact with the browser transfer controls, like the animated Icon and the bottom progress bar...
    Is it possible ??

    No. Only thing it can touch is the status bar.

Maybe you are looking for