Activity Templates - User Defined

Hi all,
I want to execute a shell from a process flow. I have created a User Defined Activity as follows:
COMMAND - #!/usr/bin/ksh
PARAMETER_LIST -
SUCCESS_THRESHOLD - 0
SCRIPT - full path+shell_name (/folder1/folder2/file.sh)
RESULT_CODE - 1
I have added it in a process flow and I deployed it without errors. Then when I start the process flow it doesn't work and the Control Center doesn't provide me any information/log about the error.
Could someone please help me on that?
Thanks in advance!
Castella.

Also, note that OS calls are disabled by default in OWB for security reasons (shell, email, sqlplus). You can read the discussion about the parameters that need to be set to enable those activities here if you have not done so:
Re: Manual Commit using Process Flows

Similar Messages

  • How to Update Activity & SubActivity (User Defined Form)

    Dear All Experts,
    I have a difficult condition with me. I am working on a project which end on 8th Level. Now condition is all 8 levels are connected in some manner. Suppose if I change quantity on 8th level then this quantity should update to 7th level. After updating at 7th Level, the other levels get disturbed. So they also should be updated.
    So it can be explained as follows:
    1. I change quantity at 8th level for an item.
    2. That item is in the row on 7th level. It should be updated by the quantity in step1.
    3. Now sum of quantity on the 7th level should be updated to 6th level at row.
    4. It should be so on upto level1.
    I am just asking about like it happens in Microsoft project. Plz suggest me how can I do that ?
    Reagrds

    Dear All,
    Plz reply to this.
    Regards

  • Populate User Defined Fields

    Hello everyone,  I have an add on that puts a button on the invoice that when clicked, brings up a screen to fill in some information and submits the information.  The add-on then takes some of that info and populates UDFs on the invoice and submits the invoice.  1.  My first question is, do I have to have the UDF's visible in order to populate them?  I found that I received an error when I tried to set their value when they were not visible, but wasn't sure if there was a way around that.  2.  I am finding that it is difficult to track which UDF form links to the invoice form.  Is there a way to tie back the UDF form (-133) to the invoice (133)?  It is not FormTypeCount, because that goes solely by the order in which the screens were displayed...  Please let me know.  My true goal here is for someone to be able to have multiple invoices up with multiple versions of my add on and when they submit, they all submit the right thing. 
    Your assistance as always is greatly appreciated.  Thank you so much.

    Hi, today I've also looked for a solution to be sure that the UDF-Form (in my case for sales quotation) is always open.
    Now I do it with activating View User Defined Fields:
    SboUI.Menus.Item("6913").Activate()
    when the Form is opened.
    Catching Item-Event et_FORM_LOAD seems to be too early for that.
    Now I'm catching the Menu-Event ('after') for Sales Quotation:
    MenuEvents:
    If pVal.MenuUID = "2049" And Not pVal.BeforeAction Then
       SboUI.Menus.Item("6913").Activate()
    End If
    And preventing the UDF-Form to be closed
    Item Events:
    If pVal.FormTypeEx = "-149" (....) Then
       If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_CLOSE And pVal.BeforeAction Then
          BubbleEvent = False
       End If
    endif
    I'm still not sure if this is really a good solution...

  • Crystal Report Templates for User-Defined Objects

    Hello Experts,
    I am running SAP B1 8.8 PL11. In the current patch SAP has default Crystal Reports that can be used as Layouts for Invoices, Credit Memo's so on. Is it possbile to have layouts for user defined objects ( say for instance i have a customized form under sales module, can i import a crystal template for this customized form?). In the report layout manager i don't see an option to import user-defind objects.
    Any help would be appreciated.
    Thanks,
    Praneeth

    If this is still a problem please re-post to the SAP Integration Kit forum.

  • Best practice for Active Directory User Templates regarding Distribution Lists

    Hello All
    I am looking to implement Active Directory User templates for each department in the company to make the process of creating user accounts for new employees easier. Currently when a user is created a current user's Active directory account is copied, but
    this has led to problems with new employees being added to groups which they should not be a part of.
    I have attempted to implement this in the past but ran into an issue regarding Distribution Lists. I would like to set up template users with all group memberships that are needed for the department, including distribution lists. Previously I set this up
    but received complaints from users who would send e-mail to distribution lists the template accounts were members of.
    When sending an e-mail to the distribution list with a member template user, users received an error because the template account does not have an e-mail address.
    What is the best practice regarding template user accounts as it pertains to distribution lists? It seems like I will have to create a mailbox for each template user but I can't help but feel there is a better way to avoid this problem. If a mailbox is created
    for each template user, it will prevent the error messages users were receiving, but messages will simply build up in these mailboxes. I could set a rule for each one that deletes messages, but again I feel like there is a better way which I haven't thought
    of.
    Has anyone come up with a better method of doing this?
    Thank you

    You can just add arbitrary email (not a mailbox) to all your templates and it should solve the problem with errors when sending emails to distribution lists.
    If you want to further simplify your user creation process you can have a look at Adaxes (consider it's a third-party app). If you want to use templates, it gives you a slightly better way to do that (http://www.adaxes.com/tutorials_WebInterfaceCustomization_AllowUsingTemplatesForUserCreation.htm)
    and it also can automatically perform tasks such as mailbox creation for newly created users (http://www.adaxes.com/tutorials_AutomatingDailyTasks_AutomateExchangeMailboxesCreationForNewUsers.htm).
    Alternatively you can abandon templates at all and use customizable condition-based rules to automatically perform all the needed tasks on user creation such as OU allocation, group membership assignment, mailbox creation, home folder creation, etc. based on
    the factors you predefine for them.

  • User Defined Activity "hangs" Process Flow if it runs for more than 10mins

    I have been using OWB (10g r2) for a while and have used "User Defined" activities in production process flows successfully before.
    However my problem now is that the activity (shell command) I want to perform, takes more than 10 minutes to complete. If I run the process flow with a parameter that generates a shell command that executes in two or three minutes, the process flow continues past the sucessfully executed user defined activity to the next activity.
    BUT
    If I run the same process flow (without modification or even redeployment) with a different parameter , the user defined acivity sucessfully executes (after about 11 minutes or so) but the process flow , doesnt seem to know that it is finished and just says it is still executing.
    my "user defined" activity has
    COMMAND: /usr/bin/ksh
    PARAMETER_LIST bound to a variable which is set earlier in the process flow.
    RESULT_CODE:
    SCRIPT :
    SUCESS_THRESHOLD : 0
    by examining (RUNTIME CONTROL CENTER SCHEMA).all_rt_audit_execution_params
    I can see that the variable contents assigned to RESULT_CODE look like this
    '/usr/bin/rsh -n WINSRV1 dtsrun /usa /ppw /S WINSQLSRV /N JOBNAME_SHORT'
    or this
    '/usr/bin/rsh -n WINSRV1 dtsrun /usa /ppw /S WINSQLSRV /N JOBNAME_LONG'
    I put the -n in because I thought that may have been the problem, but I think its more likely that there is come sort of ".properties" in a runtime file that needs to be set to control the "timeout" of user defined activities.
    (like in Runtime.properties
    property.RuntimePlatform.0.NativeExecution.Shell.security_constraint = NATIVE_JAVA
    except maybe
    .........Nativeexecution.timeout = .....?????
    Has anybody had a problem like this? Found a document describing available configuration properties for PF activites?
    Can anyone help?

    I have been using OWB (10g r2) for a while and have used "User Defined" activities in production process flows successfully before.
    However my problem now is that the activity (shell command) I want to perform, takes more than 10 minutes to complete. If I run the process flow with a parameter that generates a shell command that executes in two or three minutes, the process flow continues past the sucessfully executed user defined activity to the next activity.
    BUT
    If I run the same process flow (without modification or even redeployment) with a different parameter , the user defined acivity sucessfully executes (after about 11 minutes or so) but the process flow , doesnt seem to know that it is finished and just says it is still executing.
    my "user defined" activity has
    COMMAND: /usr/bin/ksh
    PARAMETER_LIST bound to a variable which is set earlier in the process flow.
    RESULT_CODE:
    SCRIPT :
    SUCESS_THRESHOLD : 0
    by examining (RUNTIME CONTROL CENTER SCHEMA).all_rt_audit_execution_params
    I can see that the variable contents assigned to RESULT_CODE look like this
    '/usr/bin/rsh -n WINSRV1 dtsrun /usa /ppw /S WINSQLSRV /N JOBNAME_SHORT'
    or this
    '/usr/bin/rsh -n WINSRV1 dtsrun /usa /ppw /S WINSQLSRV /N JOBNAME_LONG'
    I put the -n in because I thought that may have been the problem, but I think its more likely that there is come sort of ".properties" in a runtime file that needs to be set to control the "timeout" of user defined activities.
    (like in Runtime.properties
    property.RuntimePlatform.0.NativeExecution.Shell.security_constraint = NATIVE_JAVA
    except maybe
    .........Nativeexecution.timeout = .....?????
    Has anybody had a problem like this? Found a document describing available configuration properties for PF activites?
    Can anyone help?

  • How to configure "User defined" activity in a process flow

    I want to start a shell script from a workflow process in an Unix environment. I use owb 10.2.0.1
    Name of shell_script:           verify_infile.sh
    Location of shell_script:     /ASW/dw
    3 parameters to the script:     X X /local/db/import/rain/finans.dat
    First parameter is the letter X
    Second parameter is the letter X
    Third parameter is the path and file name I want to verify
    I assume it's the User defined activity I should use and the parameters of the user defined activity are as follows
    4 IN PARAMETERS
    COMMAND
    PARAMETER LIST
    SUCCESS THRESHOLD
    SCRIPT
    1 OUT PARAMETERS
    RESULT_CODE
    So my question is what shall I have as in parameters in the User defined activity?
    Kind regards
    Jan

    Here is the solution to the case
    First make sure parameter in (owb_home)\owb\bin\admin\Runtime.properties is not disabled.
    If it is, change the parameter to the value NATIVE_JAVA as described in the file:
    property.RuntimePlatform.0.NativeExecution.Shell.security_constraint = NATIVE_JAVA
    Second
    COMMAND: /bin/sh
    PARAMETER LIST: ?/ASW/dw/verify_infile.sh?X?X?/local/db/import/rain/finans.dat?
    RESULT_CODE: 0
    SCRIPT:
    SUCESS_THRESHOLD: 0
    Regards
    Jan

  • User defined java function-compilation error! Activation cancelled

    Hi all!
    I have written an User defined Function in java for converting XML to PDF which is available at this blog:
    /people/divya.vidyanandanprabhu/blog/2005/06/28/converting-xml-to-pdf-using-xi
    I added both dom4j-1.6.1.jar and itext-1.4.1.jar files in (XIserver machine)D:/usr/sap/....server0/bin.
    When i try to activate in IR, i got the following error.
    Activation of the change list canceled Check result for Message Mapping test | http://httpadp.com/send:  Starting compilation  Source code has syntax error:  D:/usr/sap/QN7/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map7bf962e0f21411daae8a00111120e6db/source/com/sap/xi/tf/_test_.java:3: package com.xml2pdf does not exist import com.sap.aii.mappingtool.tf3.;import com.sap.aii.mappingtool.tf3.rt.;import java.util.;import java.io.; import java.lang.reflect.*;import com.xml2pdf.XmlToPdf; ^ D:/usr/sap/QN7/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map7bf962e0f21411daae8a00111120e6db/source/com/sap/xi/tf/_test_.java:51: cannot resolve symbol symbol : class XmlToPdf location: class com.sap.xi.tf._test_ XmlToPdf x = new XmlToPdf("D:
    qf
    source
    Input.xml", "D:
    qf
    target
    Output.pdf"); ^ D:/usr/sap/QN7/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map7bf962e0f21411daae8a00111120e6db/source/com/sap/xi/tf/_test_.java:51: cannot resolve symbol symbol : class XmlToPdf location: class com.sap.xi.tf._test_ XmlToPdf x = new XmlToPdf("D:
    qf
    source
    Input.xml", "D:
    qf
    target
    Output.pdf");

    Hi
    My java program is:
    import com.xml2pdf.XmlToPdf;
    public String testing(String a,String b,String c,Container container){
    XmlToPdf  x = new XmlToPdf("D:
    qf
    source
    Input.xml", "D:
    qf
    target
    Output.pdf");
      x.Convet();
      return "";
    Can you please figureout any errors in my prg.
    I have imported the 2(itext-1.4.1 and dom4j-1.6.1) jars into Imported Archives in my scenario in IR.
    I placed these jars in D:/usr/sap/..../server0/bin
    also. I followed the blog thoroughly and carefully.
    Thanks a lot for your suggestion.

  • User Defined Activity: Run OS Command with OS parameters

    OS: OELR5 U3 x64
    DB: 11.1.0.7
    OWB: 11R1
    I would like to be able to run an os command from a user defined activity within a process flow. I am trying to make use of VMWare's vmrun to control a virtual machine. From the OS command line I enter:
    /usr/bin/vmrun -T server -h https://server:port/sdk -u user -p userpassword -gu guest -gp guestpassword runProgramInGuest "[standard] VM/Virtual Machine.vmx" -activeWindow -interactive "c:\path_to_program\program.exe" /switch
    How many I duplicate this OS command from within a user defined activity in a process flow?
    I create a user defined activity:
    COMMAND: /usr/bin/vmrun
    PARAMETER_LIST:
    RESULT_CODE:
    SCRIPT: -T server -h https://server:port/sdk -u user -p userpassword -gu guest -gp guestpassword runProgramInGuest "[standard] VM/Virtual Machine.vmx" -activeWindow -interactive "c:\path_to_program\program.exe" /switch
    SUCCESS_THRESHOLD: 0
    The process runs without error in the log, but the os command is not being run.
    I tried again with:
    COMMAND: /usr/bin/vmrun
    PARAMETER_LIST: ?-T?server?-h?https://server:port/sdk?-u?user?-p userpassword?-gu?guest?-gp guestpassword?runProgramInGuest "[standard] VM/Virtual Machine.vmx"?-activeWindow?-interactive?"c:\path_to_program\program.exe"?/switch?
    RESULT_CODE:
    SCRIPT:
    SUCCESS_THRESHOLD: 0
    with the same result.
    And I also tried calling sh:
    COMMAND: bin/sh
    PARAMETER_LIST:
    RESULT_CODE:
    SCRIPT: /usr/bin/vmrun -T server -h https://server:port/sdk -u user -p userpassword -gu guest -gp guestpassword runProgramInGuest "[standard] VM/Virtual Machine.vmx" -activeWindow -interactive "c:\path_to_program\program.exe" /switch
    SUCCESS_THRESHOLD: 0
    also with the same result.
    The process runs in each case, and ends with: "Log file is available", but when I look in the log, I don't see errors or any information that might help me adjust the user defined activity.

    This method works:
    COMMAND: bin/bash
    PARAMETER_LIST:
    RESULT_CODE:
    SCRIPT: /usr/bin/vmrun -T server -h https://server:port/sdk -u user -p userpassword -gu guest -gp guestpassword runProgramInGuest "standard VM/Virtual Machine.vmx" -activeWindow -interactive "c:\path_to_program\program.exe" /switch
    SUCCESS_THRESHOLD: 0
    The issue seems to be caused on an upgrade to OWB 11R2. Our installation does not always update the VALUE entry when a user types in a value, meaning that our entry changes were not reflected into the deployed process package.

  • Tabbed navigation,Theme change and User define templates problem

    Hi,
    ·     I have created an application in which I have defined many page,page regions,buttons,forms templates myself.
    ·     The end user has now requested for a tabbed look and feel for the same and that too in a different theme (color red)
    ·     However, inclusion of tabs to the application plus a change in the theme color (to red) in this case causes all user defined templates to behave erratically.
    ·     I guess these templates will have to be redefined in this new theme. I tried to copy some of these today but got weird results.
    Without all these templates in place the look and feel of the application will not be as usual.
    ·     Also,I had posted a thread on the APEX forums concerning tabs and have received information that each page in the application has to be manually added to the tab set in a situation such as this.This will really increase the time taken to achieve the desired application navigation.
    I would appreciate some good advice as how to get this appliction navigation running smoothly in a tabbed format in the least possible time.
    Thanks and Regards,
    Priya Jetley

    Hello,
    I would have a look at the Lists in Shared Components which allow you to create Tabs as well.
    They are a bit more flexible.
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/

  • How to Create User Defined Template in Back Office with Labels and Tags App

    Hello,
    Can anyone help me in creating a user defined template in Back Office with Labels and Tags Application. I'm currently using version 13.2.?
    Kindly help me out asap.
    Thanks,
    Monica.

    Hi Monica
    Third party software is available,from AccessVia, that can be used to create and update templates. Sample sample sqt can help you to understand the required inputs (batchID, templateID, departmentID, locale).
    Thanks
    Himanshu

  • User Defined CoA  Level 6 for Active Accounts

    I have not selected indian CoA. Through User defined i have created entire CoA. There, i have given Active Accounts as Level 6 instead of Level 5 . Will it create Problem.
    Rakesh N

    Hi,
    Absolutely no problem.  Levels are only for COA grouping.  IN B1 Upto 10 levels you can group your COAs.
    Regards,
    Venkatesan G.

  • User-defined alert based on Top Activity screen?

    Does anyone know the query used to populate the Top Activity screen in Grid Control? I want to make a user-defined alert that will page me if the Top Activity is over a certain amount.

    Hi Bishal,
    Rather than using an alert, you could put validation code in the SBO_SP_TransactionNotification stored procedure to check for the same job number before the document is added. This is a permitted solution as SAP allow users to add their own sql code to this proc (provided it's not inserting or updating data in SBO system tables).
    To set up this solution (on a test system):
    1) Open SQL Studio Management
    2) In the Object Explorer expand the company database, expand Programmability and Stored Procedures
    3) Right-click the SBO_SP_TransactionNotification stored procedure and choose Modify. This will create an update script in the main window.
    4) Look for the following section in the script:
    --     ADD     YOUR     CODE     HERE
    5) Underneath the above section, paste the following code:
    if @OBJECT_TYPE = '17' and @TRANSACTION_TYPE in ('U', 'A')
         if exists(select DocEntry from ORDR where DocEntry <> cast(@LIST_OF_COLS_VAL_TAB_DEL as int)
                        and U_Jobnumber is not null and U_Jobnumber <> ''
                        and U_Jobnumber = (select U_Jobnumber from ORDR where DocEntry = cast(@LIST_OF_COLS_VAL_TAB_DEL as int)) )
              begin
                   set @ERROR = '9999' -- Set your own error code here
                   set @ERROR_MESSAGE = 'The Job Number entered has already been used on a previous sales order.'
              end
    6) Click on Execute and you should get a message stating that the update was successful
    7) Test adding a new sales order
    The above script will raise an error when the user clicks on Add if a job number has been specified on the sales order and that number has already been used. It will not check if a job number has not been specified
    Kind Regards,
    Owen

  • User defined activity problem in process flow

    Hi ,
    any one can help me out
    I have added a user defined activity in process flow , and given command values as \\windows\system32\cmd.exe
    and parameter list : ${input.value}
    and in script : kpi.bat
    where i written
    cd \kpi_sap
    for /f "tokens=1-5 delims=/ " %%d in ("%date%") do copy "c:\kpi_sap\kpi_sap.csv" %%e-%%f-%%g.dat
    but its not working ...
    can any one give me direction to get success in this activity
    best regards,
    mahi

    Hi Mahi,
    I see that your post is a few days old and you might have resolved this issue, but if you haven't you might want to change the command value to c:\windows\system32\cmd.exe instead. Its been a while since I worked with commands, but I remember that I had a lot of problems when I defined paths with '\\'. What I found out was that OWB jobs was run under the windows system account and the system account don't have access to networkshares (even if its really not on the network).
    I can't say whether the script in the kpi.bat is wrong, but as long as you can run it manually using cmd.exe you should be ok.
    If this doesn't help it might be helpful with some more specific error messages.
    regards Ragnar

  • User Defined activity does not log messages

    I have created a User Defined activity which calls a unix shell script.
    This script writes messages to standrard output ("echo") that I want
    the process flow to catch in its log, so I can see the messages in
    Control Center Manager.
    This was actually the behaviour of my User Defined activity until recently.
    I must have changed, unintentionally, some parameter/configuration that
    I cannot remember. Maybe some "suppress script-messages" parameter? :-)
    Anyone in this forum who knows which paramater I might have changed
    and/or how I can get back the old behaviour of my activity?
    // Pontus

    I had the same experience recently: I was trying to log a message to a Unix file, but the process flow would always fail, even though the script executed well from the Unix prompt.
    The problem in my case was that redirection is not supported from within an OWB version 9.0.4 process flow. Once I eliminated the "echo My message > logfile" everything was fine. You can even keep "echo My message" with no redirection and it's still ok.
    The above holds regardless of where you put your script -- external Unix file, or as part of an "external process" icon in the flow.
    If things are the same in your case, you'll need to figure out an alternative way of logging messages when executing the script. I decided to use external files as flags, by renaming them from the script.
    Santiago

Maybe you are looking for