Function Activation

Hi all,
I used RS_FUNCTION_COPY to create a new copy of an
existing FM and then I used RS_FUNCTION_ACTIVATE on a
function Module to activate it. It returns an error code
indicating exception MESSAGE_SEND.
But when i use SE37 to go to that transaction, it is
activated. What is the reason behind the exception??
Sample Code:
      CALL FUNCTION 'RS_FUNCTION_COPY'
       EXPORTING
         DARK_FLAG                    = 'X'
         NEW_GROUP                    = L_NEW_FG
         NEW_NAME                     = L_FM_NAME
         OLD_NAME                     = L_SAMPLE_FM_NAME
         SUPPRESS_DEACTIVATE          = 'X'
         ASK_ACTIVE_OR_INACTIVE       = ' '
         SUPPRESS_COPY_DOCU           = ' '
       "IMPORTING
         "NEW_GROUP                    =
         "NEW_NAME                     =
       EXCEPTIONS
         ERROR_MESSAGE                = 1
         CANCELLED                    = 2
         OTHERS                       = 3
      CALL FUNCTION 'RS_FUNCTION_ACTIVATE'
        EXPORTING
          ACTION                       = 'X'
          CORR_INSERT                  = 'X'
          FUNCNAME                     = L_FM_NAME
          "WITH_POPUP                   = ' '
          SUPPRESS_WORKING_AREA        = 'X'
          OBJECT_SAVED                 = 'X'
        EXCEPTIONS
          CANCELLED                    = 1
          CANCELED_IN_CORR             = 2
          EDITOR_NAVIGATION_FLAG       = 3
>    MESSAGE_SEND                 = 4
          NOT_FOUND                    = 5
          NO_ACTION                    = 6
          PERMISSION_FAILURE           = 7
          OTHERS                       = 8
Thanks in advance.

The exception MESSAGE_SEND is coming from the FM RS_FUNCTION_ACTIVATE.See the include MS38LFFU and put a breakpoint in the form fu_function_ex_activate.The return parameter ACTION if set to 0 raises this exception.Put a breakpoint inside this form and check for the value of ACTION.See why it's getting set to 0 and you will get to know the reason behind the exception.

Similar Messages

  • Problem calling PL/SQL procedures from Function Activity Issue

    Hi,
    I am working with Oracle Workflow and I have found some problems adding a function activity in the process diagram. This function only updates some registers on the data base, or at least it should do that.
    I have been looking through the items in this forum and I have found similar things but not the right one. Of course I am a learner in all this and maybe the answer in there.
    I will try to show you my problem:
    When the procedure is supposed to be called, it doesnt´t do that and instead I found the following error:
    Wf_Engine_Util.Function_Call(usuario.WF_FIN_TG.FINTG1, FLUJO1, 092S0087, 588782, RUN) ORA-01403: no data found
    I have tested all the queries from TOAD and SAL Server, and all of them return some results.
    I have tried to take out all the queries from the procedure as the following to try to avoid or change the error but it continues as "ORA-01403: no data found":
    PROCEDURE FINTG1(
    p_itemtype IN VARCHAR2,
    p_itemkey IN VARCHAR2,
    p_actid IN NUMBER,
    p_funcmode IN VARCHAR2,
    p_resultado IN OUT VARCHAR2
    ) IS
    flujo VARCHAR2(;
    p_resultado :=1;
    END FINTG1;
    It seems as the workflow engine try to search something before executing my procedure.
    Has anybody any idea about how to solve this problem? Thanks a lot.

    WF_ENGINE_UTIL.Function_Call is the lowest level procedure executed by the engine before it executes the procedure associated with the function activity. I am not sure if this procedure would throw ORA 1403 since this does not have a query or a collection.
    Please note that ORA 1403 could occur from a SQL query or a collection.
    Looking at your code, p_resultado :=1;
    The function activity should return a resultout that the workflow engine understands. The valid results from the function activities as per the workflow guide are,
    wf_engine.eng_completed - 'COMPLETE'; -- Normal completion
    wf_engine.eng_active - 'ACTIVE'; -- Activity running
    wf_engine.eng_waiting - 'WAITING'; -- Activity waiting to run
    wf_engine.eng_notified - 'NOTIFIED'; -- Notification open
    wf_engine.eng_suspended - 'SUSPEND'; -- Activity suspended
    wf_engine.eng_deferred - 'DEFERRED'; -- Activity deferred
    wf_engine.eng_error - 'ERROR'; -- Completed with error
    You would normally use COMPLETE or ERRORED within your activity. Please change your code to use a valid resultout and try again.
    Hope this helps.
    Thanks

  • Java function activity agent fails

    Hello,
    Trying to run workflow java function activity agent ends with dr. Watson. Environment:
    OS: NT40 sp 6
    DB: 8.1.7.0.0
    JRE: 1.1.8
    Anybody came across this or is this a known problem? Please share your findings.
    Thank you.
    Anatoliy

    Sorry,
    The problem was with the wrong jar file.

  • How to use java api for function activity in embed oracle workflow?

    because i can't install standalone oracle workflow successfully.
    pls tell me how to use java api for function activity in embed oracle workflow?
    are there some patch or pulg-in package?
    ths a lot...........

    The Java Function Activity Agent is not certified for Oracle Workflow embedded in Oracle Applications. Installing standalone workflow should be a lot easier than what you have found, although it looks like you did hit a Pentium 4 issue with the Oracle Universal Installer. I suggest you contact Oracle Support or Oracle Consulting for assistance.
    because i can't install standalone oracle workflow successfully.
    pls tell me how to use java api for function activity in embed oracle workflow?
    are there some patch or pulg-in package?
    ths a lot...........

  • Java Function Activity Agent not starting

    Hi,
    I am facing some problem in starting Java Function Activity Agent on Windows XP.
    I hav modified WF_CLASSPATH of wfjavlsnr.bat script to include classes12.jar, ojdbc14.jar & my custom jar files.
    But when I run this script from command prompt using following syntax
    wfjvlsnr.bat owf_mgr/password@host:portid:sid or
    wfjvlsnr.bat owf_mgr/password@sidfollowing messge is thrown...
    Oracle Workflow 2.6.0 JAVA Function Activity Agent
    t2cCreateState
    Connected to owf_mgr@dbserver:1521:ORA10G with character set
    UTF8
    Unable to connect to dbserver:1521:ORA10G
    Can anybody please point out what could be the problem....?
    what is this t2cCreateState? I have never see this "t2cCreateState" when we run JFAA in unix box.
    Any points will be appreciated..
    Regards,
    Nitin

    Hi,
    I tried to run the same without entering password,but still i am getting error.
    The error description is:
    Oracle Workflow 2.6.3 JAVA Function Activity Agent
    Please Enter Database Password :
    ORA-06401: NETCMN: invalid driver designator
    Unable to connect to nn0734.nucleussoftware.com:1521:asdb
    Accepted arguments:
    java <program> <user> <conStr> [oci8]
    java <program> <user> <conStr> thin
    Where <conStr> is in the form of <host>:<port>:<sid> for thin
    and DB Service name for oci8
    Please Help. Is there any problem with my tnsnames.ora or something else.
    Thanx in advance,
    Sarab

  • LIPS-CMPNT (credit function active) field origination

    Hi All,
    In the DB Table LIPS there is a field called Credit function active (LIPS-CMPNT) 
    Can you please tell from where this is comming into the deliverydocument. What could be the basis for it.
    I need it because when ever this field is "X" the credit value is being seen in the VKM1, VKM4 T.code. When it is blank then no credit value is comming in the VKM1 & VKM4.
    Advance thanks,
    praveen

    Rakesh,
    Yes!. you are correct. ..sir
    But in my scenario here is little different,
    In some deliveries this field (LIPS-CNPMT) is checked/marked/activated  even if the VOV7 item category is not credit active. i am not sure from where this is comming?
    Hence I still have a feeling that CNPMT comes from some where else. 
    Any clues about it..............please let me know.
    thanks,
    Praveen

  • Procedure Business Function Activation - How To

    Hi all,
    i have a customer that just upgraded it's systems to ehp4, our newest available release. He is now asking on a general best practice procedure how business functions should be activated in which client and what needs to be transported or not.
    He has a system with a reference client (000) and a customizing client (200). My guess would be:
    - Activate all required business functions in client 000.
    - Make sure, all BC-Sets have been extracted and activated perfectly.
    - Activate all missed BC-Sets manually in client 000.
    - Transport all changes to client 200.
    - Make sure the transport was performed successfully.
    - Activate all required business functions in 200.
    Is that the correct approach? I guess BC-Sets containing C-Tables can only be activated in a reference client!?
    Thanks. Kay.

    Sunny - Thanks for the reply and I appreciate the help.  You indicated that if transports do not have objects related to the business function, they may not be affected.  That's the crux of my question.  I certainly understand if SAP requires matching BF activation for any transports that change config in that area, but want to be sure an upgrade of one piece of functionality is not impacting ALL transports to related systems.
    Our main driver for the EHP project is updating functions in FSCM (Dispute Management, Collections, etc).  These are the only BFs we're intending to activate at this time.  I'll lay out an example of my question:
    EHP4 installed in all systems (Dev/QA/Prod).  Active Business Functions from EHP4 are only related to FSCM and they are only active in Dev system for unit testing.  Now say an issue arises in Prod related to Fixed Assets that requires a config change.  The normal method would be config in Dev, followed by unit testing.  Transport to QA for integration testing.  Finally transport to Prod.
    Would this transport go through b/c the config has nothing to do with the new business functions activated or would the transport not move to QA b/c the same BFs were not active in QA that were in Dev?
    Hope this helps clarify.  It seems SAP would never "back you in a corner" like that and the transport should go through, but I've seen stranger things happen!
    Thanks again!
    CK

  • Java function activity getting deferred

    Hi
    I have created a simple Java Class File which set values to the item type attributes and return.
    Placed the class file in jdk/bin folder.
    Then i associated the class name to a function activity as “External Java” type. When i launched this process that function activity is moved to deferred state.
    When i checked the WF_OUTBOUND_TABLE all the java related activities which i executed are still in the Queue.
    And I tried by giving a wrong class name to a function, which is not at all in the server. That process activity also moved to deferred state without showing error.
    So Java Function activity agent not even picks that function/class to process.
    I tried the standard workflow provided by Oracle Workflow Standalone Server for demonstration. For that also same thing is happening (moving to deferred state).
    Your help is much appreciated
    Regards
    Ariv

    Hi,
    Are you running the external processor for Java? IIRC, it's a .bat script which does the dequeue for you, calls your code, and then puts a message on the inbound queue - but it's been a LONG time since I looked at working with Java in standalone workflow.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • Function Activity based on PL/SQL procedure

    Hi All
    I have a function activity in a workflow, which is based on a PL/SQL procedure. When I make any changes to the package or the stored procedure, workflow gives "Could not find package or program unit" error, even though the status of the package is valid in database.
    Essentially everytime I re-apply the package, I get this error. I then drop the package and then recreate it. Even then the error is not resolved immediately. Does this requires Apache bounce? Is there any other step that I am missing when we make changes to database packages that are based on workflow activities?
    It would be of great help if someone can throw light on the above.
    Many thanks in advance
    cheers
    Murari

    Hi,
    Have you tried searching this forum for the error message? There are plenty of posts about it here, on the WorkflowFAQ forum, and also in my blog about the issue, why it happens, and how you can avoid it.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://thoughts.workflowfaq.com ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • Unable to start Java Function Activity Agent

    When I try to start the Java Function Activity Agent
    I get the following message:
    Workflow JAVA Execution Agent
    Oracle Workflow 2.6.0 JAVA Function Activity Agent
    Error in parameters
    Is there any way to tell what parameters it is referring to?
    Thanks, Tom

    Just to clarify:
    The Oracle Workflow Java Function Activity Agent is supported by Oracle for the Database and Application Server releases. It was not certified for Oracle E-Business Suite customers, as we thought it better to focus our efforts on the Oracle Workflow J2EE Engine. In the next standalone releases, we will be provinding better system management for the Java Function Activity Agent, on demand processes, that sort of thing.
    We did a lot of work to make sure that messages do not get lost ie. if an unexpected error is encountered, the transaction will get rolled back and the message will go back on the queue. If you are finding messages get lost, there are 2 possibilities: a bug in your code (ie. the transaction was committed in your code, so roll back would not help), or a bug in our code (a reproducible test case would be helpful).
    Cheers
    Mark

  • What's Java Function Activity Agent?it's wfapi.jar?

    pls explain the words below,tks a lot:
    You must include the JAR files containing your custom classes in your
    CLASSPATH to make the classes accessible to the Java Function
    Activity Agent. The custom class files should reside on the same
    platform where the Java Function Activity Agent is run. The Java
    Function Activity Agent does not need to reside on the same tier as the
    database, however.

    Hi,
    I am facing some problem in starting Java Function Activity Agent on Windows XP.
    I hav modified WF_CLASSPATH of wfjavlsnr.bat script to include classes12.jar, ojdbc14.jar & my custom jar files.
    But when I run this script from command prompt using following syntax
    wfjvlsnr.bat owf_mgr/password@host:portid:sid or
    wfjvlsnr.bat owf_mgr/password@sidfollowing messge is thrown...
    Oracle Workflow 2.6.0 JAVA Function Activity Agent
    t2cCreateState
    Connected to owf_mgr@dbserver:1521:ORA10G with character set
    UTF8
    Unable to connect to dbserver:1521:ORA10G
    Can anybody please point out what could be the problem....?
    what is this t2cCreateState? I have never see this "t2cCreateState" when we run JFAA in unix box.
    Any points will be appreciated..
    Regards,
    Nitin

  • Is Function Activity execution synchronous/asynchronous?

    Hi,
    I would like to know the mode of execution of Function activity, that is whether it is synchronous/asynchronous?
    Suppose if I have 2 activities in a process, one is of type PL/SQL and another is of type External Java. When I start the process from a java program, when will the calling program get the control back? will the exceution of each activity is synchronous or asynchronous?
    thanks in advance
    Regards
    honnur

    Thanx for the reply.
    I find that if the function activity is of type PL/SQL then the calling function(WF Engine) waits till the PL/SQL procedure/function exection is complete. But if the function activity is of type External Java then the calling function(WF Engine) does not wait until the Java function execution is complete. In this case, when External Java Agent finishes the function excution, we have to explicitely invoke background process to complete that activity.
    So the Java function activity execution is asynchronous from calling function perspective.
    is my understanding right??
    TIA
    honnur

  • HT201365 Find My iPhone no longer works for me to know where my wife and children's phones are. In earlier IOS versions, I added my iCloud account to their devices and only had Find My iPhone function active.  Can't do that now; what do I do?

    Before IOS 7, I created an account on my wife and childrens iPhones, iPads and iPod devices with my iCloud account, only having the Find My iPhone function turned on.  It worked great.  Now, with IOS 7, it is not working and I don't have the option to have the Find My iPhone function on my iCloud account on their devices.  Does anyone know how to make this work?  My family loses their devices frequently and I am concerned I won'e be able to help them find them.  Thanks!!

    They only need their main iCloud account to have Find My iPhone on. If your account is not their main account it won't work. Only one account can enable that function on a device. They don't need to have the app on their devices unless you want them to find you.
    If you can see the devices when you log into their accounts on your Find My iPhone app they are being recognized by the app. But as Winston said if they're not turned on, if they are not on a network, cell or wifi, then they will read as offline. This often happens when I look for my wife's phone when she is at work, her wifi system there does not keep the connection active when the device goes to sleep and in some areas of the building there is poor to no cell connection. And sometimes the service just doesn't pick them up for no obvious reason.
    iOS 7 has several annoying glitches right now that hopefully will be resolved soon and this could be one for you. I would try this again by having all the devices in one location , restart all of them, make certain the function is enabled on all of them and that wifi is connected ( if you have a wifi network available ) or that they are connected to a cell network with a strong signal. Then launch the app on your phone and log in with their accounts, their locations should show up.

  • Business function Activation

    Hi All,
    Wanted to understand what would be the impact activating business function "FIN_TRAVEL_2" for Travel management.
    Presently we are on FIN_TRAVEL_1 and EHP6. Wanted to have both Travel request and Travel expense report output view though PR05.
    As FIN_TRAVEL_2 has this extended feature, wanted to activate that before which thought of taking the experts view on the impact it can have on the existing system.
    As new fields get activated on TRIP, Travel Request and Travel expense report, will this have issue for the ones created before the activation.
    Regards...

    Wanted to know, if we activate "the FIN_TRAVEL_2" business function now, will that impact anything on the current Travel Requests or Expense sheet in any ways for processing. Also there is portal in place through which Travel requests are created too.
    The answer to that and to the activation of any business function in general is always YES. There's loads of coding in hundreds of subparts of the frame program that polls the Switchframework whether certain switches are switched on. I'm pretty sure there's nobody (including myself) who can line out every change in programmable process that takes place due to the activation.
    You say you are using a portal, I assume you are using the WebDynpro JAVA Services here? Or are you using transaction iviews with TA TRIP?
    What is stated in the help simply means that trips that are created in TA TRIP and WDA are not interchangeably processable. This does not mean that you cannot use the TA TRIP anymore once the business function is activated, but in case in your current business process you are furhter processing requests that are at the moment created in WebDynpro JAVA, that is not going to work likewise with WDA. (I hope this answers your question).
    Hence, just wanted to know if i activate this which cant be irreversable, will that have adverse impact on the existing TR or Travel expense reports or any other functionality.
    Careful. The activation of FIN_TRAVEL_2 IS irreversable, this means it is NOT reversable. The only unofficial way to deactivate such a business function is to roll back the Database.
    I have a question: What exactly are you using the Transaction TRIP for anyway? From EHP2 onwards it's practically obsolete, so you could shift your processes completely to the WDA services and TA PR05.
    Cheers, Lukas

  • Problem calling PL/SQL procedure from Workflow function activity.

    Hi,
    I am trying to call a PL/SQL procedure from within my workflow activity.
    While I am able to execute the procedure through SQLDeveloper, the workflow function does not seem to call it.
    It seems that custom PL/SQL procedures have to conform to certain standards to be called within workflow applications. I have written my procedure to conform to those standards (referred to the example workflows).
    Could someone please help me with it?
    Thanks and regards.

    Hi,
    When I've received enough alpha reviews of the first few chapters of my book, I'll make chapter five available, which deals with writing functions for Workflows.
    Matt
    Alpha review chapters from my book "Developing With Oracle Workflow" are available on my website:
    http://www.workflowfaq.com
    http://forum.workflowfaq.com

Maybe you are looking for

  • No sound device

    Hi all, I need some help for a little problem. Got my new 13" MacBook Pro today and after starting it with the delivered HDD and quick checking its functionality I swapped the HDD. I took the bigger and faster drive with the Leopard installation from

  • Creating links to other topics very slow

    Hi, I have RH 7 and when creating links from one topic to another it takes a long time for the dialog boxes to appear. I have about 10 links per topic and at three minutes per link, that's a lot of time. Thanks, Becky

  • Adobe Reader X (10.1.1) Visual C++ Runtime error - Citrix XenApp 4.5

    Error: Microsoft Visual C++ Runtime Library Runtime Error! Program: C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe I work for a large government agency, and we are experiencing the above error, but we have the added complexity of Citrix (XenA

  • RH Server 9 compatibility with Windows Server 2008 SP2/SQL Server

    Our tech support people are preparing for a first install of RH Server 9. They have asked me to find out whether there is a recent patch that would enable it to work with Windows Server 2008 SP2 64 bit and MS SQL Server 2008. If there is not yet a pa

  • Error 255 launching Bex 3.x for SAPGUI 7.20 on Win 7

    Hi, We are upgrading our workstations to Win 7 and rolling out SAPGUI 7.20 at the same time.  We are getting error 255 when launching the Bex 3.x browser. This is relating to the theme files (which shows the little logo in the top right of the Busine