Proces chain decision with formula method: which proces chain is performing

I want to know which chain is processing while i am in a decision. I made a decision in a proces chain. From that decision i call a formula. In that formula i call a method which i defined myself (client specific fomula/method). Now i want to know from which proces chain this method has been called. I tried the following ABAP statements in this method:
IMPORT instance TO l_instance
log_id TO l_logid
chain_id TO l_chainid
FROM DATABASE rspc_buffer(ab)
ID i_chain.
I found this statements in another SDN thread and from experience i know it works fine when you process normal ABAP in your proces chain.
Unfortunately this does not work in a method from a decision. Maybe i need to access another table?
Any suggestions?

Ok, if you worry about that, let's do it in series...
you create a local chain per IP/DTP (with link "if succesfull")...so you will have 10 local chains
then create a big chain with these 10 local chain (with link "always")
so, if a IP (eg of loacl chain 1) fails the DTP will not be triggered, the local chain 1 will go to status red, but as you put between the local chain option "always", the local chain 2 will start...and so on
For inforamtion, I would put the attribute change run for the specific attribute in the local chain...this way you will only activate data of succesfull IP/DTP's...
this way you should achieve what you aim for...
M.

Similar Messages

  • Defining enum with abstract method which returns a generic type

    Is it possible to define an abstract method which returns an geneic type like below? Thanks
    public enum Type{
         A{
              public List<Integer> getData(){}
         B{
              public Set<String> getData{}
         abstract<T> T getData();
    }

    vulee wrote:
    Why not?
    List<Integer> lst = Type.A.getData();Wonder, which compiler you use. Can't be Java6:
    # javac Enums.java
    Enums.java:23: incompatible types
    found   : java.util.Collection<capture#376 of ?>
    required: java.util.List<java.lang.Integer>
                    List<Integer> data = Type.A.getData();
                                                       ^
    1 errorEdit: Unless you do it the generic way as you proposed, which actually is a phoney. Because of the T being a generic method parameter, the compiler will infer it from the type of the variable it gets assigned to. Hence, both of the following will compile:
    List<Integer> lst = Type.A.getData();
    Set<String> lst2 = Type.A.getData(); // Runtime exceptionActually, javac is telling you that giving warnings on the enum constants redefined method return types.
    Edited by: stefan.schulz on Sep 10, 2008 11:38 PM

  • User Decision with Secondary Method

    Dear All,
    I have created a user decision step for Leave Request workflow (ie. to approve or reject ).
    This is done for multiple approvals of leave request through UWL i.e. user can select multiple requests & take decisions(approve/reject).
    In the user decision step, i want to use a method other than standard task TS00008267.
    In the methods tab i have used Secondary Method,
    Object Category as Class
    Obj.Type as CL_PT_REQ_WF_ATTRIBS
    Method DUMMY.( as per the standard workflow - WS12300111).
    But no value is returned by this method. How can binding be done here so as to use the values in further steps??
    Please help.
    Regards,
    Vidya

    Hey it is very easy to know whetehr the leave is approved or not. and even you can get this decision into the workflow container
    No need of using any secondary methods SURE
    See the step Approval in the Leave workflow will use Dummy method of that class that you have mentioned.
    Your staus is updated in the REQ container element of the workflow , it is the that you mentioned, in that class you have a attribute with name Status whe you approve it will be changed to Approved when the leave is created it will be Sent , so by using a Condition step check this attribute value if it is approved then in update one conatiner element  by using Container operation step.

  • How to find out which PL/SQL Proc is Compiled with Debug?

    Hi,
    is there any View where i can see, which PL/SQL Proc is compiled with the debug flag?
    Thanks
    Marco
    Message was edited by:
    mpatzwah

    Alternatively:
    select name, plsql_debug from sys.all_plsql_object_settings

  • Return process for the PO which has done the usage decision with QM

    Hi Guru,
    We are running below process right now, and stop there, don't know how to return to vendor:
    PO for external vendor -> Goods purchased physically arrive -> Create a inbound delivery for this PO -> Post the GR with the inbound delivery created -> QA team performed the usage decision and rejected.
    At this moment, how can we reverse the good receipt? We canu2019t use VL09 to reverse the inbound delivery, and we can not use MBST to reverse the material doucment which created during Post good receipt.
    What's the correct process to return it to vendor?
    Thanks,

    Hi Rick,
    Can use t.code MIGO and select return delivery for material document or delivery note.
    Then select the respective document, it will display the details, now you can select the material which you want return and unselect the materials which you dont want to return and the quantities accordingly.
    Save the document.
    This will use movement type 122.
    Regards
    vk

  • In which case we need a class with all methods defined as abstract ?

    In which case we need : A class with all methods defined as abstract (or should we go for Interface always in this case)

    The concept of interface and abstract class overlaps sometime, but we can have the following thumb rule to use them for our specific need:
    1) Interface: This should be use for code structuring. They standardize your application by providing a specific contract within and outside. If you think abstract class also provide structure, then reconsider as it limits the structure re-usability when there are many super-classes to inherit from. Java allow multiple inheritance by interface and not by Abstract class.
    2) Abstract Class: This should be use for code-reusability. Interface doesn't have any code so can't be used for code-reusability.
    Actually we can use both to provide the best.Taking a refernce to J2EE framework, the "Servlet" is an interface. It laids down the contract/structure for any code to be a servlet.
    But the "GenericServlet" class is an abstract class which provides implementation of some of the methods defined in the "Servlet" interface and leave some method abstract.
    Thus we see that the "Servlet" interface standardise the structure and the "GenericServlet" abstract class gives code re-usability.
    Original Question:
    In which case we need a class with all methods defined as abstract ?To this question, as all methods are abstarct we don't have option for code-reusability. so why not add standard structure concept to your application. So if there is not any restriction on making the field variable(if any) as final, we should go with the interface concept.

  • How to Map Proces form field with Resource form field?

    Hi,
    How to Map Proces form field with Resource form field while creating Process form in Form designer

    Are you talking about Provisioning ?
    then you do that in Data Flow under Process Defintion in OIM 10g
    In OIM 11g you use Request Dataset. In that you can directly map fields to process form.

  • Process and Forms - Issue with Method which Uses Imported Form Values

    We are doing a project to implement ESS and MSS. Using Adobe Process and Forms we generated a process with form and workflow.
    The workflow's first step uses a version of TS17900110 task to move the form to the workflow container.
    Binding:
    export:
    &FORM_STANDARD& @0E\QAssign Value@ @9T\QGets data for...@ &FORM&
    'USER_ID' @0E\QAssign Value@ @9T\QGets data for...@ &FORM_FIELD_NAME_1&
    'PERNR' @0E\QAssign Value@ @9T\QGets data for...@ &FORM_FIELD_NAME_2&
    'AWART' @0E\QAssign Value@ @9T\QGets data for...@ &FORM_FIELD_NAME_3&
    Binding
    import:
    &EMPL_USERID.OBJID& @9S\QReceives data from...@ @0D\QAssign Value@ &FORM_FIELD_VALUE_1&
    &PERNR& @9S\QReceives data from...@ @0D\QAssign Value@ &FORM_FIELD_VALUE_2&
    &AWART& @9S\QReceives data from...@ @0D\QAssign Value@ &FORM_FIELD_VALUE_3&
    The workflow is bringing values for: EMPL_USERID, PERNR, AWART.
    We need to write these field values to a table using a method.  We are using a custom task to do this.
    The task triggers a method which calls a FM which makes the update to the table.
    The step with the custom task is a foreground step which the workflow stops for so we can test execute it.
    When we execute there is a breakpoint in the ABAP code which stopps us at the point where the values are being read.
    We are trying to read values:  'USER_ID', 'PERNR', and 'AWART' but the debugger is not showing any values being brought in.
    The binding we currently have for the step we feel is the problem:
    This is all we have in there so far - NEED suggestions/advice:
    Binding export:
    &ZABSREQ&     @0E\QAssign Value@     @9T\QGets data for...@     &_WI_OBJECT_ID&
    (&ZABSREQ& - This is a BOR)
    Any information is appreciated.
    alicia.morante at gmail.com
    alicia.morante at us.army.mil
    Edited by: Alicia Morante on Jan 23, 2012 8:43 PM

    We were very anxious to solve this issue.
    While I was posting my counterpart realized that we did not have target containers setup to receive the values from the workflow.
    Once those were set the values were able to be read from the FM.
    Here's the binding updated to:
    &EMPL_NUM&     @0E\QAssign Value@     @9T\QGets data for...@     &EMPL_NUM&
    &SUBTYPE&     @0E\QAssign Value@     @9T\QGets data for...@     &SUBTYPE&
    Still gave you some points for helping - Thank you.

  • Howto proces SOAP Header with security info

    My incoming Soap messages contain security info in the soapenv:Header part.
    However, I only need the contents of the Body element.
    If I do NOT handle the Soap Message, then an Exception is thrown: something like: 'Do not know how to handle MustUnderstand'.
    So something must be done with the Security info in the header, but I do not know how. Do I have to remove the header completely in the Soap handler, after checking the singning? If somebody can point me to some examples of Soap header processing for this case it would be helpful.
    kind regs.
    Harry

    Hi Harry
    The header in Soap Messages is optional. Is is used to carry security information, that is security on the level of the Soap message. So when the header of an incoming Soap message is 'handled', the header is of no use any longer and can (must) be discarded. Indeed discarded, because the rest of the handlers don't expect a header in the Soap message. They extract the 'contents' from the body of the Soap message, and deliver that to you backend system.
    I will describe the header handling in the webservice: to get access to the Soap message in your code, you have to write a 'handler' Class. This Class should implement the Handler Interface or extend the abstract GenericHandler Class. To handle only the incoming Soap messages, the 'Requests', the method 'handleRequest' should be implemented. This handleRequest method has 1 parameter (mc) with type MessageContext. This parameter contains the original Soap message in Object format. You can access the original header information via:
    SOAPMessageContext smc = (SOAPMessageContext)mc;
    SOAPMessage message = smc.getMessage();
    SOAPPart part = message.getSOAPPart();
    SOAPEnvelope envelope = part.getEnvelope();
    SOAPHeader header = envelope.getHeader();
    With: Iterator iterator = header.getChildElements();
    you can navigate through the header elements and do whatever you like. If you decide that security info in this header does not match the contents of the body for instance, you can issue an Exception and log it.
    After processing the header you have to discard it with:
    header.detachNode(); and let your handleRequest method return 'true'.
    The rest of the webservice processing takes the contents from the body element, and delivers that to your application.
    To let you webservice make use of your Handler, you have to name it in the web-services.xml as follows:
    <webservices>
    <handler-chains>
    <handler-chain name="myChain">
    <handler class-name="a.b.c.MyHandler" />
    </handler-chain>
    </handler-chains>
    <web-service name="MyService">
    <operations>
    <operation ... handler-chain="myChain" .... />
    </operations>
    When the webservice 'MyService' gets a request, the handler 'MyHandler' is automatically invoked. you can have more handlers in a chain. Also you can declare more chains in your <webservices> section and refer to them from the <operation> elements.
    Items of interest:
    javax.xml.rpc.handler.soap.*
    javax.xml.rpc.handler.*
    javax.xml.namespace.*
    javax.xml.soap.*
    May be this of use for you :).

  • Can u send me the link which describes me in about bdc with direct method

    Can u send me the link which describes me in about bdc with direct method with examples in detail

    Hi,
    http://help.sap.com/saphelp_nw04/helpdata/en/eb/3e7cf7940e11d295df0000e82de14a/frameset.htm
    and
    http://help.sap.com/saphelp_nw04/helpdata/en/eb/3e7cf7940e11d295df0000e82de14a/frameset.htm
    For BDC:
    http://myweb.dal.ca/hchinni/sap/bdc_home.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/bdc&
    http://www.sap-img.com/abap/learning-bdc-programming.htm
    http://www.sapdevelopment.co.uk/bdc/bdchome.htm
    http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/69/c250684ba111d189750000e8322d00/frameset.htm
    http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html
    Check these link:
    http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
    http://www.sap-img.com/abap/question-about-bdc-program.htm
    http://www.itcserver.com/blog/2006/06/30/batch-input-vs-call-transaction/
    http://www.planetsap.com/bdc_main_page.htm
    reward if useful
    regards,
    Anji

  • [svn:bz-trunk] 5137: Fix failing security tests on BlazeDS/ trunk by using a remote object to invalidate the FlexSession at the end of each test method which should cause each test method to run with a new /clean session.

    Revision: 5137
    Author: [email protected]
    Date: 2009-03-02 10:28:59 -0800 (Mon, 02 Mar 2009)
    Log Message:
    Fix failing security tests on BlazeDS/trunk by using a remote object to invalidate the FlexSession at the end of each test method which should cause each test method to run with a new/clean session. It looks like some test methods were leaving some things in a bad state which was causing the next test that ran to fail. These may be legitimate bugs/issues so we should investigate further to see what sequence of events gets things into a bad state but for these tests we want all of the test methods to run in isolation.
    Modified Paths:
    blazeds/trunk/qa/apps/qa-manual/WEB-INF/flex/services-config.mods.xml
    blazeds/trunk/qa/apps/qa-regress/WEB-INF/flex/remoting-config.mods.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/messagingService/security/stream ing-amf/JMSAuthSendSubscribeConstraintTest.mxml
    blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/messagingService/security/stream ing-amf/MessagingAuthProSendTest.mxml
    blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/messagingService/security/stream ing-http/JMSAuthSendSubscribeConstraintTest.mxml
    blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/messagingService/security/stream ing-http/MessagingAuthProSendTest.mxml
    Added Paths:
    blazeds/trunk/qa/apps/qa-regress/WEB-INF/src/qa/messaging/SessionManager.java

    In general theory, one now has the Edit button for their posts, until someone/anyone Replies to it. I've had Edit available for weeks, as opposed to the old forum's ~ 30 mins.
    That, however, is in theory. I've posted, and immediately seen something that needed editing, only to find NO Replies, yet the Edit button is no longer available, only seconds later. Still, in that same thread, I'd have the Edit button from older posts, to which there had also been no Replies even after several days/weeks. Found one that had to be over a month old, and Edit was still there.
    Do not know the why/how of this behavior. At first, I thought that maybe there WAS a Reply, that "ate" my Edit button, but had not Refreshed on my screen. Refresh still showed no Replies, just no Edit either. In those cases, I just Reply and mention the [Edit].
    Also, it seems that the buttons get very scrambled at times, and Refresh does not always clear that up. I end up clicking where I "think" the right button should be and hope for the best. Seems that when the buttons do bunch up they can appear at random around the page, often three atop one another, and maybe one way the heck out in left-field.
    While I'm on a role, it would be nice to be able to switch between Flattened and Threaded Views on the fly. Each has a use, and having to go to Options and then come back down to the thread is a very slow process. Jive is probably incapable of this, but I can dream.
    Hunt

  • Problems with secondary methods in workflow

    Hi experts.
    I am starting my WF through the SAP_WAPI_START_WORKFLOW in SE37.
    My WF consistst of a decision step with a secondary method, amodal method, which calls a custom method (call_url).
    The method call_url has been tested in SE80 and in WF with synchronous dialog chain(BMWP) where it works fine.
    Since UWL doesn`t support Synchronous dialog chain, I need to make a workaround.
    Problem:
    When I start the WF and enter MSS to open the workitem, I can see the attachment (call_url method). However, when I try to click on the link for the attachment (which is going to execute my custom method) I only get an errormessage.
    The errormessage says:
    "An error has occured during calling attachment. Try again and inform the system administrator about this problem".
    I have been checkin SU53, it is not an authorization issue.
    I have been reading Gatlings blog about secondary methods and searching the web about the issue with no luck.
    Any ideas how to solve it?
    <<text removed>>
    Thanks in advance.
    Best regards,
    Tor
    Edited by: Matt on Feb 10, 2009 5:06 PM - please do not offer rewards.  Please do read the Terms of Engagement of these forums

    Ok, now i'm a little bit closer to the solution.
    I've run thru the programm in debugging mode...
    the reason is: function module SWO_INVOKE give me the return message OL850: You do not have authorization to execute method EDIT
    But when the user calls the transaction ME52n everything is ok.
    So what is the missing authorization object?
    Thank you very much in advance
    Andrey

  • Which Meta Chain is used ?

    Hi Experts,
    If a Chain's Scheduling Options in Start Variant is "Start Using Meta Chain or API"
    I want to know which meta chain is used to start this local chain, could you pls let me know the way to do so?
    Thanks in advance!

    Hi,
    Using API:
    >When the selection options according to your requirement are not available, you should go for API and write code to suit your requirements.. .
    Using MetaChain:
    > You can also trigger the start of a process chain using a metachain
    > If you start the start process using a metachain, it is not scheduled after you have activated the related process chain. The process chain is only started when the metachain, to which it is linked, is running.
    Please Refer:
    http://sap-help.nestle.com/sap_nw2004s/helpdata/EN/01/15843b74f7be0fe10000000a114084/frameset.htm
    And to find out which meta chain has been linked with this start process:
    > Goto planning view of the chain
    > Select start proces, right click to open context menu
    > Click display all jobs
    > In the list of jobs displayed, select one
    > click step
    > select the program/command displayed
    > from menu select goto-> Variant
    and there you may find the name of the metachain
    (But in case if it is a program(API) which is triggering this chain, the varaint in step will show again this chain name only)
    Hope this helps....
    Cheers,
    Habeeb

  • How to know to which process chain a infopackage belongs to?

    Hi experts!
    I got the name of a infopacakage (also its technical name), but I would like to know to which process chain it belongs to,
    Does someone a quick way to know it?
    Thank you very much in advance!!

    Hi Raul,
    If you open the infopackage there is an option at the top 'process chain maint.'  Click this and it will give you the proces chain it belongs to.
    Thanks,
    Nick.

  • BW 3.5 - Issue with formula variable with replacement path

    Dear experts,
    I'm facing an issue with formula variable with replacement path.
    Just to clarify, I know replacement paths is raising a lot of questions but I've been using this functionnality extensively in the past, both in 7.0 and 3.5, so I'm not looking for basic information about how to use it.
    I'm trying to setup a simple report that would show total values per plant of Purchase Order < 100 €
    To do so I've setup a calculated key figure as follow:
    VAR1 * ("PO value" < 100 ) * "PO value"
    VAR1 is a formula variable with replacement path on 'purchase order' and value attribute 'constant =1'.
    (The report has to show values summarized by plant but should not show the detail PO by PO, so I'm not looking at a solution based on condition)
    The report as characteristic "plant" in rows and my CKF in columns.
    Now let's take an example. I have 3 POs in Plant 1:
    PO1 -> 150€
    PO2 -> 90€
    PO3 -> 80€
    Because of the variable with replacement path, the result in my query should be:
    plant1 = 170 (even though characteristic "purchase order" is not in my rows, system should evaluate PO one by one and return values only for those two that are below 100).
    But the result coming is 320, which is wrong.
    I've done the same report on many other 3.5 systems and it worked perfectly, and I am not able to get proper support from SAP OSS who keep saying that this functionnality is not ready in 3.5 (although I've provided screenshot of this working on another 3.5 system!!! how frustrating...)
    They have also pointed to problems of Before and After aggregation but that has absolutely no impact. Once again, the scenario is working perfectly on other 3.5 systems with the same query design, so i'm sure it has nothing to do with Query Designer options.
    Would anyone have ever come to an equivalenet problem? I'm wondering whether the DB itself could not play a role in the variable with ref  characteristic 'constant =1' ...
    Any though is welcome!
    thanks

    Hi,
    The text variable is replaced when the exact date is clear for this key figure column according to the restriction.
    To achive this, please make sure that either the variable is directly restricted in the key figure selection, or that the date characteristic is in drilldown.
    Regards,
    Patricia

Maybe you are looking for

  • Class not registered

    HD-4310 Webcam software. When installing I get this error message: " Class not registered " (without speech marks) I followed a tip to use " sfc /VERIFYONLY " to scan for a permissions problem but my system comes up clean. Can anyone help? Much appre

  • Images overlap with text when after creating pdf: InDesign CS

    Good morning, I am using bot InDesign CS and CS2, and I am having a problem as the following: After creating the pdf, images overlap with one another, or the text overlap behind the images so on. First, I would like to mention the overlapped images h

  • Logging a synchronous message using diagnostic header (WITHOUT LOGGING_SYNC

    This [link|http://help.sap.com/saphelp_nw70/helpdata/EN/d6/49543b1e49bc1fe10000000a114084/frameset.htm] indicates that a synchronous message can be logged by using: <SAP:Logging>1</SAP:Logging> within the message header even if LOGGING_SYNC is deacti

  • Choosing the paper type when Printing to Canon S9000

    How do I choose the paper-type setting from the print options menu? The Canon OS X manual speaks about a pull down menu which allows for selection of "quality and media." I am finding options for printer choice, rendering, layout, print image etc, bu

  • Does ARRI RAW footage even work in Premiere Pro CC?

    Does ARRI RAW footage even work in Premiere Pro CC? After importing, some footage just says "media pending", and some just appears as a black video. The interface is also extremely sticky. I am working on a current generation Mac Pro, so I don't thin