Error using a method call in the starting conditions of a Workflow
Hi,
In SRM 4, I have a doubt about a start condition with WFWS14000109 I need to trigger the WF depending on organizational unit of the requester (not purchase group or purchase organization).
I have seen in the editor, in SWB_COND in the part of requisitionerUser the Method ReadOrgUnit.
I change to traditional mode of the editor and when I select the method I get in Express1. field
&_EVT_OBJECT.REQUISITIONERUSER.READORGUNIT(_RESULT='OBEG';ACTORGUNIT= )&
If I use = and the organizational unit in express2 field I get error
Partial expression expected (expression '&_EVT_OBJECT_REQUISITIONERUSER.READORGUNIT(_RESULT',position 76)
Can anybody say me where is the error? how I should express the condition.
Thanks
Best Regards
I don't think you can use a BOR method in a condition. At least not as far as I know. I think it would be better to create a virtual attribute in your delegated subtype of BUS2121 and use that in the condition.
Regards,
Martin
Similar Messages
-
Z field in the start conditions of a workflow
Hi all,
Is it possible to add a z field in the start conditions of a workflow?
My requirement is to use a z field created in the shopping cart, in the start conditions for the workflow WS14000044.
Thanks and regards
KishanYes you can undo the delegation at any point of time not to worry. It is just atable entry.
Go to swo1->Settings->Delegates
If you want to use a Custom Business object that is a delegate of a Standard Business Bo you can use it. You create a Virtual attribute in your custom Business Object. If you delegate the Custom bo with Standard BO. Whenever you refer to standard Business Object you will have this Custom attribute in your kitty. This will help in start Condition.
<b>Reward points if useful</b> -
I have a SSIS project that I am newly running on the SQL server (2005) . It was previously run on my PC. I am importing data from a DB2 server to the SQL server.
I am in the SA group on the server
My connection to DB2 works
When open the package and run it in preview mode, I can retrieve the data.
When I execute the package I get the below errors:
[MIDAS OLE DB Source [1]] Error: The AcquireConnection method call to the connection manager "NGMDSPA.alharris" failed with error code 0xC0202009.
[DTS.Pipeline] Error: component "MIDAS OLE DB Source" (1) failed validation and returned error code 0xC020801C.
What I have already done that has not worked:
The original Protection level was set to EncryptSensitiveWithPassword.
I have reset the Package Password.
I have set the protection level to DontSaveSensitive
I saved the package on the server and set a Package Password.
I created a new package, set the Protection level to DontSaveSensitive, set a package password in a configuration file using the Package Configuration Wizard.
Error continuesYes. The Drivers are installed and I have a successfull connection. I am trouble shooting the issue on the server in BIDS. I can connect to the DB2 server via the Connectionmanager. I can also preview the data in the OLE
DB source connection. Therefore I know that I have a proper connection
If you're setting option as DontSaveSensitive then you need to pass the connection information from configuration file/ config table. Otherwise it wont be able to use it for connecting to your source/destination servers. This is the recommended way as it
will enable you to change connection info at runtime.
If you want connection info to persist you need to use protection level as EncryptSensitiveUsingUserKey or EncryptSensitiveUsingPassword and set a password.
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Error
[Load data from excel file [1]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009. There
may be error message
I am using BIDS Microsoft Visual Studio 2008 and running the package to load the data from excel .
My machine has 32 bit excel hence have set property to RUN64BITRUNTIME AS FALSE.
But the error still occurs .
I checked on Google and many have used Delay validation property at Data flow task level to true but even using it at both excel connection manager and DFT level it doesnt work
MudassarThats my connection string
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=E:\SrcData\Feeds\Utilization.xlsx;Extended Properties="Excel 12.0;HDR=NO";
Excel 2010 installed and its 32 bit edition
Are you referring to install this component -AccessDatabaseEngine_x64.exe?
http://www.microsoft.com/en-us/download/details.aspx?id=13255
Mudassar
You can try an OLEDB provider in that case
see
http://dataintegrity.wordpress.com/2009/10/16/xlsx/
you might need to download and install ms access redistributable
http://www.microsoft.com/en-in/download/details.aspx?id=13255
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
AcquireConnection method call to the connection manager Excel connection Manager failed
I used VS Studio 2008 (BIDS version 10.50.2500.0) on an WinXp machine (v 5.1.2600 SP3 Build 2600) to create a package that writes multiple query results to different tabbed sheets of a single excel spreadsheet. The package was working just fine and has run
successfully multiple times, but all of a sudden when opening the project, every single Data Flow task with an Excel Connection Manager displayed error icons. Each raises the following error message when attempting to open the Advanced Editor:
SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005 Description: "Unspecified error". Error at DataFlow task name: SSIS error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method
call to the connection manager Excel connection Manager failed with error code 0xC0202009. There may be error messages posted before this with more information on why the Acquire Connection method call failed. Exception from HRESULT: 0Xc020801c (Microsoft.SQlServer.DTSPipelineWrap)
From the time I created the original package (when it worked fine) until now:
1) I have been using the same computer, the same login account and the same permissions.
2) I have been writing to the same (32 bit) 2010 Excel file (which I created) in a folder on my local machine.
3) The filename and location have not changed; a template file is used each time to move and overwrite the previous file. Both are in the same locations.
4) I can independently open the target Excel file and the template Excel files with no errors.
6) The ConnectionString has not changed. The Connnection String I am using is
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Conversion\Conversion\Results_dt01.xlsx;Extended Properties="EXCEL 12.0 XML;HDR=YES;".
7) Run64BitRuntime is set to False.
8) Delay Validation is set to true
9) This is not running under a SQL job
10) There are no child packages being run
I CAN create a NEW Excel Connection Manager, assigning it the exact same target Excel spreadsheet, successfully, but when I attempt to assign it to the Data Flow destination this error occurs:
"Test connection failed because of an error in initializing provider. Unspecified error."
Thinking that the driver might be corrupt, I opened a second SSIS package, which also uses the Excel Connection Manager (same driver) and this package continues to work fine on the same workstation with no errors.
I have searched online for causes of this error for many hours and found nothing that helps me to solve this issue.
Does anyone have any suggestions for me?Yes, I have verified that the Excel file is not in use or opened by anyone, including me. It has been two months since I opened this particular package, although I have been working with other packages in this project. I just discovered that another
package in the same project has the same problem - all Data Flows that output to an Excel Destination now have the same error icons. This second packages outputs to an entirely different Excel file than in the first package. A summay:
Package #1 has error on every Excel Destination and uses templateA to overwrite fileA and then writes to fileA
Package #2 has error on every Excel Desintation and uses templateB to overwrite fileB and then writes to fileB
Package #3 has no error on any Excel Destination and is linked to multiple files (none are A or B)
Package #1 and #2 are in the same project, but Package #3 is in a separate project .
I will try replacing the Excel files with new ones for Package 1 and 2. -
How to print a method trace to a file (first method called to the end)
I have a tomcat war that I am deploying. I want to use some command line parameter or some tool that will show me a method trace of each method that gets executed.
There is some static initializer in the code that starts everything in the war (the war is not a web app) but simply a process that runs in the background that does stuff.
I want to find out what the first method called in the war is and to locate the static initializer. Having a method trace would do this because this method would be printed out first.
After the static initializer gets called I want to see a method trace of all methods called. Having this printed to a file like Class:Method(params) would be nice.
Even better would be some sort of tool that I could open a trace file with and see method calls in the order they were called.
I tried several Java profiling tools but none of them show me the order (first to last) of the methods called. All I need is to see a method trace from beginning to end.
Any help would be appreciated.JProbe provided almost everything I needed to see a method call trace. The method graph feature was great.
I have a single static class with a static initializer that runs in a loop but did not know what the class name was (I inherited some code and was told about the static initializer).
So when I fired it up in JProbe it showed me the class running off the root thread. In fact I found another static initializer that was unknown to me and another oddity as well.
The only problem is that the method call graph is collapsed and you need to click [+] to expand every method call.
I am told by JProbe support that there was an "expand all" option in JProbe 7.0 but it is not there in 7.1.
Not sure why they took the time, money and energy to take a needed feature out.
It would be great to have something that did the same thing from the command line or to be able to print a method call trace out to a file but not sure how to do this. -
Can the Start conditions editor of a Standard WF be changed
Can the Start conditions editor of a Standard WF be changed and transported to Production?
Please suggest
Edited by: kittu reddy on Dec 12, 2008 2:15 PMHI,
Yes you can do that. You can deactivate the start conditions and transport it.
I think you are working on SRM workflows. Below are few links which might be useful to you.
[http://help.sap.com/saphelp_srm50/helpdata/en/ee/277e3c281f1817e10000000a114084/content.htm]
[http://help.sap.com/saphelp_srm50/helpdata/en/2c/e68d406b305537e10000000a1550b0/content.htm]
Regards,
Raj -
Process an action even if the start condition is no longer fulfilled?
System: SAP CRM 5.0
Background
Using an action in the action profile we want to be able to send a reminder to the person responsible for a service transaction at a specific date. The person responsible should himself be able to maintain the date at which he should receive the reminder. Therefore we have added a new date type, zreminder_date, in the date profile where it is possible to manually enter the date at which the reminder should be sent.
The actions are processed using a selection report which is run in a batch-job each night. The action has a start condition: zreminder_date = Todays Date, i.e. the reminder should be sent when the reminder date equals todays date.
Problem
As long as the batch-job is run each day we have not encountered any problems. However, if for any reason the batch-job is cancelled and can only be run the next day we dont know how to process actions where the start condition is no longer fulfilled. Can we for example force actions for specific dates to be processed afterwards?Hi Lisa,
Actually My requirement is also similar to your process.
I have to send a reminder mail to particular manager one month before contract end date.
For ex: Contract start date: toda's date,
Contract end date : startdate+12 months
reminder date: one month befroe end date.
so I have to send reminder mail.
My problem is I don't know how to set the process in background.
I have takn the condition : reminder date= Today's date.
For time being I have tested the similar scenarion :
start date: toda's date
end date : start date+2 days.
reminder date: end date- one day
that means If I create the contract today ,my mail should trigger tomorrow.
But I couldn't send the mail .
please help me how to put this process in background .
My id is: [email protected]
Thanks -
How to select data from a table using a date field in the where condition?
How to select data from a table using a date field in the where condition?
For eg:
data itab like equk occurs 0 with header line.
select * from equk into table itab where werks = 'C001'
and bdatu = '31129999'.
thanks.Hi Ramesh,
Specify the date format as YYYYMMDD in where condition.
Dates are internally stored in SAP as YYYYMMDD only.
Change your date format in WHERE condition as follows.
data itab like equk occurs 0 with header line.
select * from equk into table itab where werks = 'C001'
and bdatu = <b>'99991231'.</b>
I doubt check your data base table EQUK on this date for the existince of data.
Otherwise, just change the conidition on BDATU like below to see all entries prior to this date.
data itab like equk occurs 0 with header line.
select * from equk into table itab where werks = 'C001'
and <b> bdatu <= '99991231'.</b>
Thanks,
Vinay
Thanks,
Vinay -
How to find the start condition of a ABAP program?
Hello Gurus!,
Could any one please explain how to find the start condition of a ABAP program?
like its a event based or time based?and also how to find that event and time..
Thanks in Advance...
DinakarHi Dinkar,
Go to Job Schedule, put Job Step parameter as your program and see scheduled Job.
In Schedule Job double click to see start condition. and steps to see details and variant.
Hope it helps.
Thanks
CK -
Can we change the start conditions of SAP standard workflows
Can we change the start conditions of SAP standard WF10400002
Where i want to assign my own Gross amount in the start conditions.Check out the link below.
[http://help.sap.com/saphelp_nw2004s/helpdata/en/90/83ed38f5f41a28e10000000a114084/content.htm]
[http://help.sap.com/saphelp_nw2004s/helpdata/EN/4c/86bf43feca11d2a64f0060087a79ea/content.htm]
Regards,
Raj -
How to create new starting conditions for a workflow of shopping cart
Hi all,
How to create new starting conditions for a workflow of shopping cart
SATYAExcecute SWB_COND
Creating New:
Click on Create button. If you cannot see that it could be a authorization issue
then Business Object: BUS2121
Double Click the event linkage for one step workflow
Define the expressions, Check Consistency and click on Traansfer
Start Condition is created. If it is not Active click on the Red Button to make it Active
Editing Already existing:
Click on Edit Button If you cannot see that it could be a authorization issue
then select Business Object: BUS2121
Click on the condition part (White area) of the start condtion needing editing
Change the expressions, Check Consistency) and click on Traansfer.If it is not Active click on the Red Button to make it Active -
G/L account in start conditions of a workflow
Hi SRM gurus,
is is possible to check the G/L account in a start condition of a workflow? Can not find it.
Example: Company 1234 and TotalValue >= 1000 and G/L account=777777 --> Then WS10000129 "One Step approval of shopping cart" should be initiated?
Would be great if that works!
Thanks and best regards,
HenningHi
As per standard one step WF..GL account is not built as criteria. You have have your own custom code for this. Thanks
Piece of logic from standard WF task
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Workflow WS10000129 No default currency
Event Shopping cart created
( " Einkaufen von Employee
&EC Requirement Coverage Request.TotalValue& < 100,000.00
and &EC Requirement Coverage Request.RFQ Follow-On Doc.& u2260 X
and &EC Requirement Coverage Request.TotalValue& u2265 1,000.00
and &EC Requirement Coverage Request.Requester User.Activity Group& NE SAP_BBP_STAL_MANAGER
and &EC Requirement Coverage Request.Unlimited& u2260 X
and &EC Requirement Coverage Request.Spending Limit& NX
and &EC Requirement Coverage Request.UserBudgetDefined& NX
and &EC Requirement Coverage Request.Exists w.out Price& u2260 X
) " Einkaufen von Employee
or ( " Einkaufen von Manager
&EC Requirement Coverage Request.Requester User.Activity Group& CE SAP_BBP_STAL_MANAGER
and &EC Requirement Coverage Request.RFQ Follow-On Doc.& u2260 X
and &EC Requirement Coverage Request.TotalValue& u2265 500,000.00
and &EC Requirement Coverage Request.Unlimited& u2260 X
and &EC Requirement Coverage Request.Spending Limit& NX
and &EC Requirement Coverage Request.UserBudgetDefined& NX
and &EC Requirement Coverage Request.Exists w.out Price& u2260 X
) " Einkaufen von Manager
or &EC Requirement Coverage Request.RFQ Follow-On Doc.& u2260 X
and &EC Requirement Coverage Request.Unlimited& = X
or ( " Einkaufsbudget Scenario
&EC Requirement Coverage Request.UserBudgetDefined& EX
and &EC Requirement Coverage Request.RFQ Follow-On Doc.& u2260 X
and &EC Requirement Coverage Request.UserBudgetSpent& > &EC Requirement Coverage Request. UserBudgetDefined&
and &EC Requirement Coverage Request.Unlimited& u2260 X
and &EC Requirement Coverage Request.Exists w.out Price& u2260 X
) " Einkaufsbudget Scenario
True
Start workflow: One Step approval of shopping cart
False
No action
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Rgds
Kiran -
Pop Up Error using MVC method after Validation in DO_HANDLE_EVENT Method
Hi Experts,.
I am rather new to BSP applications and I am working using MVC at the moment. I have a requirement which apparently is simple, but am yet to get that done successfully.
I have a couple of buttons on my BSP View screen, on click of these buttons, the User Name would be verified with entries in a Custom table and if the User Name is not found, an error message would pop up stating, "You are not Authorized to use this option".
On click of the button, the event which is triggered is handled in the DO_HANDLE_EVENT Method of the Controller for the view.
The check is performed in that method. Thereafter the method DO_REQUEST follows automatically which loads the view yet again. I want to throw a pop up error message at this instance if the User Name was not the authorized one.
I have used Java Script to throw pop up message but only in case of field content validation where I did not need to navigate away from the view for the validations. But how do I bo about for this example.
Any help would be highly appreciated.
Regards,
SubhrangsuHi
1. You can call the view in pop-up because you will be calling the controller using open.window.
Here is the sample code:
method DO_REQUEST .
data:
li_vw type ref to if_bsp_page,
lv_form_field type string,
li_md type ref to zcl_model01.
dispatch_input( ).
li_md ?= get_model( 'm01' ).
lv_form_field = request->get_form_field( 'invoice_create' ).
if lv_form_field is initial.
*------ Request to display main page
li_vw = create_view( view_name = 'main.htm' ).
li_vw->set_attribute( name = 'model' value = li_md ).
call_view( li_vw ).
elseif lv_form_field eq 'true'.
*------ Request to display Invoice page in pop-up
li_vw = create_view( view_name = 'invoice.htm' ).
li_vw->set_attribute( name = 'model' value = li_md ).
call_view( li_vw ).
endif.
endmethod.
Layout :
function do_Invoice()
{ var s=0; r=1; w=300; h=300; x=screen.width/2;
x=x-w/2;
var y=screen.height/4;
y=y-h/2;
popUp=window.open('main.do?invoice_create=true','win','width='+ w
+',height='+ h +', left=' + x +',top='+ y +');
Regards,
G. Nikhil Kumar -
ERROR_WAIT_NO_CHILDREN error while native method calling
I have some self-made DLL and call it from Java over JNI.
Under 100% repeatable conditions, the calling of the native method conduce to
java.exe(JVM) termination with errorlevel 128L. Without any trace or reports.
If to assume, that java.exe uses OS error codes, then 128L is
'ERROR_WAIT_NO_CHILDREN - There are no child processes to wait for.'
What that? JVM crashed by the Dll?
Some additional information:
I found the position(approximately) in C code where the execution is stopping.
It far from JNI/C function declaration.
Dll is compiled by Watcom C/C++32 Compiler and Linker, Version 11.0.
I tried to compile Dll by Borland C++ 5.5.1 free command-line compiler, and error
disappears. But I don't think it right way to refer the error to compiler.
And something else. Native code work fine, if it was called not from Java but
from native application.
Any ideas?
Thanks.Hmm, could You send the header of the method from Your
DLL which you are calling from Java?Sure.
JNIEXPORT jint JNICALL Java_mypackage_NativeBuilder_build
(JNIEnv *env, jobject obj, jstring project)
Maybe you are looking for
-
Help needed in OIM 11g with respect to Target Recon
Hi Experts, I have OIM 11.1.1.5.0 installed with AD Connector configured. We have 3 AD instances, so we have cloned the full AD Connector to "A_AD_RO User", "B_AD_RO User" and "C_AD_RO User" resourced with separate-separate Process defn, scheduled ta
-
Error when calling a method inside a form routine...
Hello experts, I am trying to call a method inside a form but it is giving me an error. The error is: Access not possible using 'NULL' object reference. Anyway, below is my code guys: START-OF-SELECTION. DATA: main TYPE REF TO lcl_main,
-
What table is the contract number stored for Limit POu2019s
Hi, I wanted to know the table name where the contract numbers are stored for the Limit PO? Are there any specific tables where contract numbers are stored. Thanks in advance. Regards, Deepak BR
-
How do you view on iPhone events from iCal that are six months out?
I am trying to synch my iCal with an iPhone. When I synch the calendar it will only show events for the next few weeks. How do I get my iPhone calendar to show events from iCal that are six or eight months out? Thanks
-
Hi everyone, I just switched over from Ubuntu 14.04 after installing a new hard drive on my Samsung 900x3c. I did a clean Arch install with Lxqt as my desktop and in an attempt to get all the function keys working and installing samsung-tools I disco