Substitute variables for external process activity in process flows

Has anyone used with success substitute variables such as ${Working.Rootpath} for external process activity?
I can't get it working. Variables aren't substituted and my scripts fail.
Sample value for parameter_list parameter for external process I use is:
|${Working.Rootpath}|
and in the script I get:
${Working.Rootpath}
which is of course not what I expected.

In documentation is Working.Rootpath so there is a bug in documentation. It is ugly because it's hard to guess.
Thank's for your reply Michael. I checked all that you described. Previously I had Working location set to "Use default location". When I changed it to actual location substitute variables started to work properly.
If I correctly understand "Use default location" means: use location associated with process module. And for execution it works but for substitute variables doesn't. So I think it is a bug.
Next thing is variables in the script itself. From examples sent by Mark (script: cd ${Working.RootPath}...) they should be set in environment and accessible to shell. This doesn't work for me but it is not described in documentation and can be easily achieved by passing parameters. So that's not a problem.
One more question: Should I open tars and file bugs describing what we found?

Similar Messages

  • Logic for Activity Qty and its unit of meas for external network activity,

    Hi,
    For external network activity, controlling key PS02. I want to read Activity Qty and its unit of measure.
    Is there any function module or Bapi for this or any selection table logic?
    I have tried BAPI_PROJECT_GETINFO and BAPI_NETWORK_GETDETAIL but I am not able to get this field?
    If anyone has solution please let me know.
    Thanks.
    Prem

    Got the alternative solution

  • Using System::StartTime in variable for external file name comes out incorrect sometimes

    Hi All,
    I have an interesting dilemma.  I'm using SQL Server 2005 with Visual Studios 2005 (9.00.4035.00).
    I'm writing records from my database table out to an external flat file, nothing fancy other than in the naming of the file being dynamic and using system time.  So I have a couple of variables set:
    CR_Dir = \\host\directory\
    CR_Outfile = "AP_" +  (DT_WSTR, 4)  YEAR( @[System::StartTime] ) + RIGHT("0" + (DT_WSTR, 2) MONTH(@[System::StartTime] ),2) + RIGHT("0" + (DT_WSTR,2) DAY( @[System::StartTime] ),2) + RIGHT("0"
    + (DT_WSTR,2) DATEPART("Hh", @[System::StartTime] ), 2) + RIGHT("0" + (DT_WSTR,2) DATEPART("mi", @[System::StartTime] ),2) + RIGHT("0" + (DT_WSTR,2) DATEPART("ss", @[System::StartTime] ),2)
    + "_chref"
    And then in my Connection Manager properties I have an expression that brings them all together with a file extension:
    @[User::CR_Dir] +  @[User::CR_Outfile] + ".ctl"
    So what I should get for example is something like AP_20140309214502_chref.ctl  (if the job was run on 03/09/2014 @ 9:45pm) When executed properly.  I do this for two flat files one with an extension of .txt and the other with .ctl. 
    These steps are working fine the majority of the time.
    However, my problem is that occasionally, the portion of the filename that contains the datetime stamp is completely incorrect for one of the two files that are created during the same time frame.  And I'm not talking about a few seconds or even a minute
    or two, the date is off by weeks.  Here's an example:
    AP_20140309214502_chref.txt
    AP_20140213152253_chref.ctl
    This has happened twice since starting to run this job over the past four months, once on 12/15/2013 and again 03/09/2014.  This job is run every night at 9:45pm, and all the other days that this job runs the two filenames come out perfectly. 
    So I'm leaning towards something in the system that may be corrupting my variable every once in a while?  But because it happens intermittently how can I verify this?  Or is there a better way to perform what I'm trying to do that would be more accurate
    and consistent?
    Any help would be appreciated.
    Thanks
    Sawyer

    Hi All,
    I haven't found a solution to this issue.  I'm not actually able to reproduce it at will, so it's hard to troubleshoot.  What I've decided to do is rewrite my variable expression and make one system call for date and time and place it into
    a variable and then use the variable to build the file name.  Also I changed from using the System::Startime to using the GFETDATE() function (Don't know if this helps but it was easier to use in my substring when I parsed out the different time elements:
    v_DATETIME   STRING   SUBSTRING((DT_STR,30, 1252)GETDATE(), 1, 19)
    CR_Outfile      STRING   "AP_" + SUBSTRING(@[User::v_DateTime],1 ,4 ) + SUBSTRING(@[User::v_DateTime],6 ,2) + SUBSTRING(@[User::v_DateTime],9 ,2) + SUBSTRING(@[User::v_DateTime],12, 2) + (@[User::v_DateTime],15 ,2) + SUBSTRING(@[User::v_DateTime],18,2)
    + "_chref"
    I don't want to leave this thread as unanswered for too long so I'll give it another day or two and then close it.  I'll report back in a few months to let you all know if this problem has reoccurred or not.
    Thanks for the assistance.
    Sawyer

  • Monitor for external drive activity?

    I want a monitor to see how maxed out my external fw400 lacie drive is when I am using final cut to see how much data is going through the system. Do they have such a thing?

    AJA makes a free one you can download that will test a drives cabable bandwidth.  There are some live ones out there if you look around.  If you're editing video, FW400 is getting maxed out for sure, no question.  FW800 barely keeps up for HD, no question.  What is your exact goal in having a data read/write measurement?

  • Create a new "actual day variable" for 0CALDAY

    Hello,
    i want to create a new "actual day variable" for InfoObject 0Calday. The variable should have the same functions like 0DAT.
    How can I create this? Coding for CMOD?
    Thanks and regards,
    Heiko

    Hi,
    As I understand your question properly, You need a dynamic variable which will give the actual date i.e current date.
    create a variable for 0calday with single value processing type customer exit. reay for input deselect.
    in cmod
    When 'vARIABLE FOR CALDAY'.
    CLEAR L_S_RANGE.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    L_S_RANGE-LOW = SY-DATUM.
    APPEND L_S_RANGE TO E_T_RANGE.
    Regards,
    Ranganath.

  • How to use substitution variables in sqlplus activity of process flow

    I have a process flow that does nothing more than create a couple of packages that I cannot successfully deploy from OWB. A workaround, not something that I want to do, but currently there is not much time to adjust the packages so they can be deployed from OWB.
    I can successfully create the packages from files that are present in a directory on the server. But the location (directory) is not the same in all cases (OTAP). So I thought to use an input parameter to the process flow (named TELLINGEN) and use that in the sqlplus activity.
    I have created the parameter START_PATH with a default value.
    I have added an sqlplus activity and placed the following into the PARAMETER_LIST variable of the activity:
    ?${Target.ConnectString}?@${TELLINGEN.START_PATH}/npl_dbug.pkg?
    When I run the process flow I see the following in the output:
    SQL*Plus: Release 10.2.0.3.0 - Production on Tue Mar 18 18:10:14 2008
    Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SP2-0310: unable to open file "${TELLINGEN.START_PATH}/npl_dbug.pkg"
    SQL> SQL> Disconnected from Oracle Database 10g Enterprise Edition Release
    10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    It obviously connects to sqlplus but then cannot find the file. Presumably because the variable has not been substituted.
    How can I persuade the activity to substitute the variable?
    Kind regards,
    Eric.

    Have been reading around a bit and found the (a) solution:
    I placed the following in PARAMETERLIST:
    ?${Target.ConnectString}?@${Working.RootPath}/base64.sql?
    And it turns out ${Working.RootPath} is pointing to the location you can provide under the configure for the sqlplus activity in the process flow. Just as you have to provide the target destination as indicated here: Re: SQLPLUS Activity in Process Flow
    From the documentation it was not immediately clear to me where Working.RootPath was pointing to.

  • Process  create Purchase order for external instructor in training & event

    Dear Experts
    Need the process  create Purchase order for external instructor in training & event management.
    Regards
    Sonali

    Hi,
    for your requirement raise one servoce PO for 1000-00, with item category 'D',
    for that line item , it is possible to maintain sub-services line items,
    but, it is not possible to maintain raw materials under the service activity ,
    if you want to valuate paint cost also, maintain the sub service line item with short description ,
    at the time of SES , u can create individual SES, for all sub services,
    hope this is helpful,
    chenna kesava reddy

  • Error while opening Workbook:variables for characteristic cannot be process

    Hi all,
    When I try to open the workbook for a particular query, I am getting the following error. Kindly suggest me in rectifying this information message.
    "Variables for characteristic [ZDVCODE]Dealer code cannot be processed"
    Regards,
    Steve

    I am encountering a very similar warning, so this may shed some light on the matter.  I have a Web Application that runs just fine when it is filtered only by Calendar Day.  However, when I filter the Web Application by Calendar Day and Material Group both, then I get a warning at the top of the output that says "Variables for characteristic [0CALDAY]Calendar Day cannot be processed".
    So, at least in my case, the variable isn't deleted, and it actually works just fine buy will spit out this warning under these circumstances.
    -Owen

  • How to execute External Process activity in flow

    Hi,
    I want to run a pl/sql procedure as an external process in a process flow (OWB904 on WinNT). The procedure is run from sqlplus in a .bat file. I try to follow the example in the documentation; setting the value of the Command parameter to c:\winnt\system32\cmd.exe and the Parameter List value to ?/c?c:\\temp\\test.bat .
    The flow deploys ok and executes without errors, but the procedure is not run (I can tell because it contains an INSERT and COMMIT, but the row is never inserted). I'm pretty sure the connection info is correct; the test.bat file executes ok when run in a 'dos' window. I am obviously missing something here....
    Any clues?
    Regards
    Rolf

    Hi Richard,
    The <HOME>\owb\log\owbrt.log.6 file contains the following:
    15:21:05 [93EFE] AuditId=43689: Processing execute request
    15:21:05 [5843C4] Attempting to create adapter 'class.RuntimePlatform.0.NativeExecution'
    15:21:05 [5843C4] Attempting to create native operator 'class.RuntimePlatform.0.NativeExecution.ProcessFlow'
    15:21:06 [93EFE] AuditId=43693: Processing execute request
    15:21:06 [365F84] Attempting to create adapter 'class.RuntimePlatform.0.NativeExecution'
    15:21:06 [365F84] Attempting to create native operator 'class.RuntimePlatform.0.NativeExecution.Shell'
    15:21:07 [365F84] task_end auditId=43693
    15:21:07 [93EFE] AuditId=43693: Request completed
    15:21:07 [5843C4] task_end auditId=43689
    15:21:07 [93EFE] AuditId=43689: Request completed
    Rings any bells for anyone ??
    Regards
    Rolf

  • Completing a BPM process activity externally via API

    Does the new BPM 11g have a way to complete an activity from another application via API?
    Thanks.
    -muktech

    Hi Muktech,
    Currently there is no API for BPM 11g. There is an API for the human task but this will not be sufficient for completing a process activity.
    Hope this helps.
    Kind Regards,
    Nils

  • How to set FROM ADDRESS for EMAIL activity in Process Flow

    Hi all,
    Can any one tell how to set(which address) FROM ADDRESS for EMAIL activity in Process Flow?
    Thanks,
    Suvvi

    Did you set what OWB guide says:
    To execute a process flow with an email activity, you may need to access different host machines and ports. New security measures implemented in Oracle Database 11g Release 1 restrict access to hosts and ports. You must explicitly grant access to hosts and ports that the email activity accesses using the DBMS_NETWORK_ACL_ADMIN package.
    For example, the user OWBSYS needs to send an email through the mail server mail.example.com using port 25. The DBA must perform the following steps:
    1. Create an Access Control List (ACL) for the user OWBSYS using the following command:
    EXECUTE DBMS_NETWORK_ACL_ADMIN.CREATE_ACL
    (’acl_for_owb_cc.xml’,’ACL for Control Center’,’OWBSYS’,’CONNECT’);
    The ACL has no access control effect unless it is assigned to network target.
    2. Assign the Access Control List (ACL) to a network host, and optionally specify a TCP port range. Use the following command:
    EXECUTE DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL (’acl_for_owb_cc.xml’,’mail.example.com’,25)
    3. Commit the changes made using the COMMIT command.

  • Component for external processing

    hello!
    i would like to have special stock indicator '2' for a component that is used for external processing. when i enter 2, it is removed automatically - all components for external processing (and subcontracting) are always plant stock.
    any ideas?
    best regards,
    matthias

    Dear,
    Go to MRP-4 View---> Individual /Coll. Indicator --->
    Change it from 1 Individual Requirements to 2 Collective requirements.
    Is best the solution.
    One suggestion is to remove the indicator "1" manually in CO02-Component overview and then issue material to that production order set it as 2.
    Hope clear to you.
    Regards,
    R.Brahmankar

  • IView for Activating Compensation Process Records (IT 759)

    Does anyone know the iView for activating compensation process records (IT 759). There are iViews for compensation planning and compensation plan approval in the stndard MSS package but don't see one for activation.
    Regards,
    Sanjay Gera

    Hi Sanjay,
    Unfortunately, we do not have an iView for activation. You may need to develop a custom iView to pull in report RHECM_CHANGE_PROC_STATUS. Since that report is intended to run from R/3 and in bulk (read: background), you would want to consider data volume, browser compatibility to display results and last but not the least, security.
    Donnie

  • Control key for external process operation & internal.

    Hello,
    We have created one control key (ZP01) T code OP67.
    In the customisation (OP67) for "External processing" selection field we select "X" i.e. "Internal processed operation / Extarnal processing possible.
    If this field is blank then it is a "Internal operation"
    If this field is "+" Then it is external operation, in this case system creates the purchase requisition after release the production order.
    We want to know,
    If this field is with "X", then what is the proceedure to create the purchase requisition for external operation.
    Thanks in advance.
    Best regards
    Nilesh

    Hello Brahmankar,
    Thanks for your prompt detail reply.
    As per your suggestion already we have that setting for another controll key (PP02)
    It is std for SAP it is working fine, in this control key the setting is "+" for external proceesing in OP67.
    Now my requirement is instead of "+" I made it "X" i.e. Internal processed operation / External processing possible. In this case system is not generating purchase requisition after production order release.
    I want to know for external processing whether I have to create purchase requisition manualy?
    or any other process we have to follow?
    Thanks & Regards,
    Nilesh..

  • Control Key for External processing

    Hi
    I have a work center for external process and a control key created for external as well. In setting up the control key I choose "automatic goods receipt" and "confirmation required".
    Then I have 2 semi parts A and B. Same routings are created for them with the work center and control key mentioned above.
    When I create production orders for A and B, I can get a purchase requisition for external process and convert it to a PO. Further when I make a goods receipt to the PO, the production orders are marked with status "CNF". What's surprising me is only for part A the goods receipt of production order is done automatically when the PO is done with goods receipt. No "DLV" for the B production order.
    I compare the material master of A and B - can't see any difference...
    Please give me some suggestion on where I should look into. Thanks a lot in advance.
    yu

    At least I can see the difference now.
    The scenario is still a production order with an external processing operation (PO to supplier).
    When I use movement type 101 to GR the PO, the production order gets CNF and DLV
    When I use movement type 103+105 to GR the PO, the production order gets nothing and the external processing operation just gets EODL.
    For QC process, we choose to use 103 to GR the PO first and 105 is made when quality check is finished. Is there any solution for this issue?
    Yu

Maybe you are looking for

  • WBS, Business Area and Profit Center not flowing in GR/IR Account

    Hello Experts, I have come across a very strange situation. I have two MIGO documents which are showing different posting characteristics: 1) FI Document 5000000553 In this document, the Business area and profit center is flowing in GR/IR Clearing Ac

  • Get the current value of a managed bean.

    Hi guys I have a register page which takes the Login ID and the password and retype password whose values are stored in the "Managed Beans" in registerServer.java. I have a (PwdValidator.java) Custom validator for Re-type Password which validates its

  • Link Device Switch just doesn't work!

    Hi guys, Was really excited to get my spanking new Z10 but its been marred with issues ever since I got it! Now the biggest problem for me is the sync. I have a 9700 on OS6 and have been trying to use the device switch to get all the data transferred

  • Shared library via Airport Extreme and Bonjour

    Hello, I share my itunes library via a new airport extreme on the Macs in my house. I would like to access the library via the windows machines (via bonjour). I have an external hard drive attached to the airport extreme. I have full access to this h

  • Struts2 - Escape form values while submitting

    Hi, I am using struts2 and annotations for validations. In my form, when i put following text in any textbox and say validation gets failed then same form display again but the textbox (Where I entered following text) shows wrongly, i mean text box s