Workflow Expression Rule Adapter

Hello there,
this is my first time creating process controlled workflow. Now I have a problem to create the right expressions and events to define the output for my for choosing the right schema.
What I want:
We have created a ZBUS2121 and delegated it to BUS2121. Within ZBUS2121 we created new attribute for workflow starting condition.
In Application controlled workflow it works all fine.
But now migrating the workflow to process controlled workflow framework there is the problem.
I need the value of the new Z Attribute from my ZBUS2121 to trigger the right schema.
I Created a new expression Z_C_GET_APPR as OCF001 to call the funktion module /SAPSRM/WF_BFR_0EXP000
my parameters are
1. OC_C1_C_FWFSCRLCNTNT   (its the constant class name /SAPSRM/CL_WF_RULE_CONTXT_SC)
2. OC_C2_C_GET_PROPERTY
3. Z_C2_ZGENEHMIGUNGSWF   (Thats the name of the attribute in ZBUS2121)
with another expression Z00_SC_E_CHECK from type simple SAP Formularinterpreter (OFB001) I will check the result of Z_C_GET_APPR
I wrote the "Z_C_GET_APPR = 'E'
The result type is boole.
then a third expressions gives me the schema name. It's checks if  Z00_SC_E_CHECK is true.
My problem is that the expression Z_C_GET_APPR  containing the function module call delivers not the expected result. One field with the value from ZBUS2121.
Whats my mistake?

Hello Saravanan,
You are right these are the parameters of the expression.
I did'nt know about a naming conversion in brf. Thanks for the hint.
Now I created a new constant expression called Z_C4_ZGENEHMIGUNGSWF but it solved not my problem.
these are my parameters now:
1. OC_C1_C_FWFSCRLCNTNT (its the constant class name /SAPSRM/CL_WF_RULE_CONTXT_SC)
2. OC_C2_C_GET_PROPERTY
3.Z_C4_ZGENEHMIGUNGSWF (Thats the name of the attribute in ZBUS2121)
When I look into other expressions which using the same function module they all have
1. OC_C1_C_FWFSCRLCNTNT (its the constant class name /SAPSRM/CL_WF_RULE_CONTXT_SC)
2. OC_C2_C_GET_PROPERTY
3. OC_C3_C.....
as parameters.
Is /SAPSRM/WF_BRF_0EXP000 the right fm for me? And parameter two the right method?
Maybe it isn't the wrong fm because I'm using ZBUS2121? Or Maybe I have more naming problems. Where can I see the naming conversions of BRF Objects?
How can I trace the workflow and the result of the expression? Currently I will trigger an workflow schema with it and I have to create shopping cards to test my workflow and the expressions. Is there a simple way for finding out the result of the expression?

Similar Messages

  • Sony DCR-HC62 camcorder won't connect to iMovie with express card adapter

    I got a Sony HC62 Mini DV video camera but it will not connect to iMovie. Since I don't have a firewire 6 pin on my Mac (only a 9 pin) i got an express card adapter. So I am using 4 pin (camera) to 6 pin (Express card) firewire. I have no other devices to test the express card but i tested the firewire and the video camera that I got and it works fine with a Windows XP computer. I have also talked with sony and I ended up with either there is something wrong with the express card or the iMovie software.

    Well there is nothing there because the express card is listed under a PCI card. The express card is recognized when inserted but that is it will not notice the camera attached to the express card. since i couldn't test the card i went and got the card replaced, but still with no luck.
    Would returning the express card and buying a firewire 4 pin to 9 pin be worth it? (given that i can get one since i can only find one company that makes them and they are a wholesales only) This way i can connect it directly to my mac's firewire 9 pin port.

  • Express card adapter for NI Express Card 8360

    Hi All,
    I am trying to find a USB or Firewire or eSATA or PCMICIA to express card adapter for my laptop (DELL Latitude E6400) to connect an NI Express card 8360.
    I have searched for adapters but they are all based on USB2.0 technology but the link below seems to suggest that USB based adapters wont work.
    http://digital.ni.com/public.nsf/allkb/B5E9398279914984862574F700049847 
    I was wondering if any of you had the same issue and got it to work one way or the other?  
    The idea is to use the express card to communicate to a NI PXI-1033 PXI rack.
    thanks and regards,
    ace
    Beginner? Try LabVIEW Basics
    Sharing bits of code? Try Snippets or LAVA Code Capture Tool
    Have you tried Quick Drop?, Visit QD Community.

    Hi ace,
    There isn't really anything I can add to this issue except to echo what it said in that link. NI don't manufacture such adapters so I can't recommend any, hopefully someone else has had some experience with this and can offer some advice on the issue. 
    Kind Regards,
    Jas.W 
    Jason W.
    Applications Engineer
    National Instruments UK & Ireland

  • USB to Express Card adapter/Express Card to Firewire

    Macbook Air October 2010.
    Comes with two USB 2.0 ports
    Can I do the following?
    - Connect  USB to Express Card adapter
    - Connect the Express Card port to a Firewire adapter
    - Connect MiniDV camcorder to Firewire port

    Also... as they went through the trouble to specifically indicate the compatible cards, I would imagine there are known incompatibilities with other card types. None of the cards they list would have difficulty over USB. Each of these cards already have similar counterparts that are available to connect directly to USB (vs. using an express card). This would seem most useful for people that may already have express cards that they use in other notebooks so they could use them in a machine without an express card slot... otherwise I would imagine people would just get the USB versions of these devices. USB hubs can obviously connect directly to a USB port, memory card readers are also available for connecting directly to a USB port. RS232 is pretty dated and USB can easily handle RS 232 throughput. I'm not exactly sure what a printer card is... but printers generally connect via USB (or parallel in older machines)... again... very easy for USB to handle. In order for it to work with firewire, they would have to have a hardware translator built into it. I'm sure they would list firewire if it was an option.

  • Firewire Solution? USB To Express Card Adapter Cable + Firewire Expresscard

    Has anyone tried this as a possible solution for getting firewire on their macbook 13.3 unibody? In theory it would seem that you could use this USB To Express Card Adapter Cable and plug in a firewire expesscard. Anyone tried it?
    http://usb.brando.com.hk/mini-usb-to-express-card-adapter-cable_p00783c042d015.h tml

    Also... as they went through the trouble to specifically indicate the compatible cards, I would imagine there are known incompatibilities with other card types. None of the cards they list would have difficulty over USB. Each of these cards already have similar counterparts that are available to connect directly to USB (vs. using an express card). This would seem most useful for people that may already have express cards that they use in other notebooks so they could use them in a machine without an express card slot... otherwise I would imagine people would just get the USB versions of these devices. USB hubs can obviously connect directly to a USB port, memory card readers are also available for connecting directly to a USB port. RS232 is pretty dated and USB can easily handle RS 232 throughput. I'm not exactly sure what a printer card is... but printers generally connect via USB (or parallel in older machines)... again... very easy for USB to handle. In order for it to work with firewire, they would have to have a hardware translator built into it. I'm sure they would list firewire if it was an option.

  • Agent assignment in Workflows using Rules.

    what is Agent assignment in Workflows using Rules.

    Hi
    [Check this article|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c6c6e7-3ede-2a10-deb8-8da2071fbaf0]
    Regards
    Pavan

  • N PCI Express Desktop Adapter???

    Has anyone found an N PCI Express Desktop Adapter with the 2 or 3 SMA connectors, that will work with the Mac Pro?
    I am traveling in an RV and need to get my antenna outside to get reliable wifi in the rv parks.
    I still can't figure out what type of Crack Steve Jobs is smoking to have thought an internal antenna system mounted inside a metal box, under the motherboard, would be a great idea.

    D-Link makes this: http://www.dlink.com/products/?pid=549.
    It's compatible with this which uses SMA connectors: http://www.dlink.com/products/?pid=545. This is an indoor antenna but it implies the the PCIe card uses the same connector. You could give D-Link a call to verify.
    Edit: Sorry, I just noticed OS X isn't on the list of system requirements.
    Message was edited by: Martin Pace

  • T400 & T500 Express Card Adapter Malfunction

    I purchased an express card to compact flash adapter for use with my T400 running Windows 7.   My machine will not recognize the express card or the compact flash and sometimes the machine will hang up when I insert the express card.  I also tried the express card adapter in a T500 running Windows 7 with the same result.  Has any one had this problem and how did you resolve it?  I have looked for new drivers and haven't found any.

    Re: Reading SDHC drives on the T400/T500.
    Isn't there a separate slot specifically for SD drives right below the express card slot on your machine?  If so, you don't need to use an express adapter to read the SDHC drive, just plug the SD drive.  My T400 works fine when I use that slot with an SD drive.  The laptop just doesn't recognize an express card.  Since my Canon EOS 7 camera uses compact flash drives, I need to either use an express card adapter or a USB adapter.  The USB to compact flash adapter works fine, but I hate to have a dongle hanging out of the computer that can break off.  It would be so much better to use the express card adapter which mostly fits into the laptop.
    Until Lenovo eliminated the PCMCIA slot, I used to use a PCMCIA adapter with a compact flash drive.  This combination completely fit inside the laptop and funtioned well on these laptops: A21p, T40, and T60.  But computer people can't ever leave things that work well alone.  Now that I have the more advanced T400, I can't use the PCMCIA adapter and the express card adapter card doesn't work.  PROGRESS.

  • R61i USB 3.0, 54mm EXPRESS CARD adapter

    Hi there again.
    After doing all the possible upgrades on my laptop ThinkPad R61i TYPE 7650-D7G 15.4in,
    I have this problem with the Express Card slot.
    I've bought this 54mm USB 3.0 express card but when I stick it into the slot it doesn't seem to fit. It just gets into the slot without "locking" anywhere.
    So my question is this. Is there something wrong with my card (new buy) or doesn't my laptop accept such a card?
    Is it just a CardBus slot? And if so, is there a way (adapter, hardware) to use my USB 3.0 Express Card?
    Here's a photo of the card I bought. This cable came with the Express Card. Don't really know what it's for... It seems that one end goes into the slot between the Card's 2 usb slots.
    Link to image
    Thanx a lot.
    just found this... would this work or won't i get the actual usb 3.0 speed?
    http://www.amtron.com/expresscard/cbexp34a.htm
    Moderator comment: Image(s) >50KB converted to link(s). Community Rules.

    To answer the question in your first post, the USB cable that came with the ExpressCard was for power. The other end would have connected to one of your laptop's existing USB ports. You would've used that for certain devices which required more power, in which case you would've only gained 1 USB 3.0 port, not 2
    The picture of your laptop (with the "O" on the eject button) means you definitely have a CardBus PC Card slot, not an ExpressCard slot. You won't be able to use that ExpressCard. PC Card, also referred to as PCMCIA card, is an older, slower technology. As you now realize, a 68-pin Cardbus PC card will fit that slot. If your objective is to gain extra USB ports, your best bet is to return that ExpressCard and search for "usb pc card" online. There are PC Cards which provide 2 USB ports or even 4 USB ports. However, you will be limited to USB 2.0 speeds. Yes, you could use a CardBus-to-ExpressCard Adapter but, once again, you will be limited to USB 2.0 speeds. (Also note the one you link to in your first post converts PC Card to ExpressCard/34 only). An even more inexpensive solution may be a "USB port hub." 
    Basic comparison/ diagrams and size charts of PC Card, ExpressCard/34 and ExpressCard/54 here: http://en.wikipedia.org/wiki/ExpressCard 
    Have a great day. (I do not work for Lenovo)

  • Workflow expression question

    Hi,
    I am trying to create a workflow that says when the Contact country or a custom field on the contact form called country is USA, place the field that is not blank into a field called Primary Contact Country, else if not USA, then place the country field in the Primary Contact country. The code below errors out when I try to save it.
    any ideas?
    IIf(JoinFieldValue('<Contact>',[<KeyContactId>],'<AlternateCountry>') = 'USA' or JoinFieldValue('<Contact>',[<KeyContactId>],'<stCountry_ITAG>') = 'USA',
    IIf(JoinFieldValue('<Contact>',[<KeyContactId>],'<stState_ITAG>') <> '',JoinFieldValue('<Contact>',[<KeyContactId>],'<stState_ITAG>'),JoinFieldValue('<Contact>',[<KeyContactId>],'<AlternateStateProvince>'),
    JoinFieldValue('<Contact>',[<KeyContactId>],'<AlternateCountry>') )

    Hi
    Don't you have some unneccessary double quotes after the the 2nd IIf expression?
    IIf(JoinFieldValue('<Contact>',<KeyContactId>,'<AlternateCountry>') = 'USA' or JoinFieldValue('<Contact>',<KeyContactId>,'<stCountry_ITAG>') = 'USA',
    IIf(JoinFieldValue('<Contact>',<KeyContactId>,'<stState_ITAG>') '' <----
    Guy

  • LDAP search from an Express Rule

    Hi,
    I need to do a simple search in a LDAP directory from inside a Rule. I�m trying to do this from Express code but i�m not able and dont find any info about it in the forum.
    I�m trying to do it with a code like:
    <block>
    <setvar name='context'>
    <new class='javax.naming.ldap.InitialLdapContext'/>
    </setvar>
    <invoke name='search'>
    <ref>context</ref>
    <s>c=es</s>
    <s>(cn=*)</s>
    <s>null</s>
    </invoke>
    </block>
    I dont know if i have to use javax.naming.ldap.InitialLdapContext or maybe the com.sun.jndi.ldap that comes with idM.
    Any clue? Any sample code to do it?
    Regards,

    Here is a simple example of calling a custom Java Class to retrieve a users phone number from LDAP. Hope someone can return the favor by answering some of my posts.
                  <invoke class="JNDIutility" name="getUsersPhoneNumber">
                  <ref>:variables.employeeID</ref>
                  <s>ou=NonEmployees,ou=People,dc=xxx,dc=xxx</s>
                  </invoke>Here is the simple Java class:
    * @(#)JNDIutility.java     1.0   07/16/2007
    * Author: Larry L. Viars
    * Perform an Enterprise Directory search by specifying a set of
    * search attributes to be matched.
    import javax.naming.*;
    import javax.naming.directory.*;
    import java.util.Hashtable;
    import java.util.ArrayList;
    import java.util.StringTokenizer;
    import java.util.*;
    public class JNDIutility {
        static public DirContext context;
        static private Hashtable env;
              public JNDIutility ()
         public static DirContext connect()
             // Set up the environment for creating the initial context
             env = new Hashtable(11);
             env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
                     env.put(Context.SECURITY_AUTHENTICATION, "simple");
             env.put(Context.SECURITY_PRINCIPAL, "cn=Directory Manager");
             env.put(Context.SECURITY_CREDENTIALS, "Y0urP@ssw0rd");
             env.put(Context.PROVIDER_URL, "ldap://yourservername.xxx.xxx:389");
             try
                 context = new InitialDirContext(env);
             catch(NamingException e)
                 System.out.println("Directory server binding error");
                 e.printStackTrace();
                 // logging code goes here
          return context;
    * Perform an Enterprise Directory search by specifying a set of
    * search attributes to be matched.
    * Search Attributes: (userID)
    * Returns a Users Phone Number from LDAP.
    public static String getUsersPhoneNumber(String userID, String contextToSearch) {
         List InitList = new ArrayList();
            String searchType;
            String rc = "false";
              try {
                    // Create initial context
                    context = connect();
                       // Specify the ids of the attributes to return
                       String[] attrIDs = {"TelephoneNumber"};
                    // Specify the attributes to match
                    // Ask for objects that have the attribute
                          Attributes matchAttrs = new BasicAttributes(true); // ignore case
                       matchAttrs.put(new BasicAttribute("enterpriseid", userID));
                       // Search for objects that have those matching attributes
                       NamingEnumeration answer = context.search(contextToSearch, matchAttrs, attrIDs);
                          while (answer != null && answer.hasMore())
                   SearchResult sr = (SearchResult) answer.next();
                   String TelephoneNumber = sr.getName();
                   Attributes attrs = sr.getAttributes();
                              for (NamingEnumeration ne = attrs.getAll(); ne.hasMoreElements();) {
                                   Attribute attr = (Attribute) ne.next();
                                   String attrID = attr.getID();
                                   for (Enumeration vals = attr.getAll(); vals.hasMoreElements();) {
                                   InitList.add(vals.nextElement());
                    } // End while loop displaying list of attributes
                     // Close the context when we're done
                     context.close();
                     } catch (Exception e) {
                       e.printStackTrace();
         String UsersPhoneNumberToString = (InitList.toString());
         String UsersPhoneNumberWithLeftBracketRemoved  = UsersPhoneNumberToString.replaceAll("(?:\\[)+", "");
         String UsersPhoneNumberWithBothBracketsRemoved = UsersPhoneNumberWithLeftBracketRemoved.replaceAll("(?:])+", "");
         return UsersPhoneNumberWithBothBracketsRemoved;
    }

  • ECC 6.0 - WS20000050 - Container Elements from Workflow to Rule in step 172

    Hello Guys/Gals,
    Hope you all are doing good.
    Greatly appreciate if you could help on this with some tips.
    We are under the process of the upgradation to ECC 6.0. Decided to use the std WF WS20000050  for travel request.However work flow ended in error at step 372(Approve Travel request) saying
    "Source (expression '&TRIP.EMPLOYEENUMBER&') of binding assignment is not available" and
    "Source (expression '&TRIP.TRIPNUMBER&') of binding assignment is not available" and
    Error in the evaluation of expression '<???>&TRIP.TRIPNUMBER&' for item '1'..etc.
    Can anyone tell what is are the container elements need to be passed and possible errors.
    Good Day.
    Raj

    Hello,
    Check in SWO1 if the BO related to the TRIP container element has those attributes (EMPLOYEENUMBER and TRIPNUMBER) and if so then check in the workflow log if they have a value.
    regards
    Rick Bakker
    Hanabi Technology

  • Workflow Substitution rules - How can I...

    Hello Guru's
    I am relatively new @ workflow and I am implementing some workflow scenario's.
    Two of them: Release Purchase Order & Release Purchase Contract.
    Release Purchase Order:
    Workflow u201CWS2000075u201D -> TS20000166 -> Agent Determination Rule      "Person Resp. for PO Release"
    In the responsibilities tab I have created several Purchase groups:
    - Purchasing Group of 100 to 299
    - Purchasing Group of 300 to 499
    etc...
    I have assigned agent assigment with correct agents. The rule test is doing well !!
    The workflow first looks at the release strategy, then the rule resolution.
    test 1: Release code 20 > PG 100 = Buyer User A untill F.
    test 2: Release code 30 > PG 200 = Lead Buyer A and B.
    test 3: Release code 40 > PG 300 = Purchase Director A.
    My Question:
    But how can I arrange a special substitution for this workflow? Per user you can set the substitution, but that is NOT what I want. What I want is when a PO is created for Lead Buyer of Purchase Group 100 and is pending for release for more then 2 days, it should go to another Lead Buyer of Purchase Group 200 or 300 for release the PO.
    Another one, when the Purchase Manager for Group A has some workitems, after 2 days they should go to another Purchase Manager, e.g. Purchase Manager for Group D. Is there a possibility to arrange that?
    Thanks for you answers!
    Best Regards,
    G. Leurs
    Edited by: G. Leurs on Dec 16, 2009 11:23 AM

    Hi,
      You can acheive your requirement using deadline. substitution is nto required.
    1)Specify the 2days time in the latest end tab
    2) select the modelled deadline in the options below.
    3) in outcomes tab, activate the processing obsolete line
    4) now u can c 3 lines from the task for release
         1) normal flow whn executed
         2) Will check the deadline. Once it is reached it will progress with the steps in processing obsolete branch.
         3) Processing obsolete branch. In this  branch,
               a) place the 'PRocess Control' step to remove the workitem from the preovious user
               b) Include the workitem step to send it to the next person who shld release the PO.
    Hope this helps you.
    Regards,
    Sivagami R

  • Calling workflow from rule or form

    I have had this question occupied me since a long time.
    Is there no one knows how to trigger a workflow from a rule or a form?

    Hi
    have you been able to solve this problem regarding the "User Form --- Workflow" relationship?
    I am having the same problem at the moment; I've posted it here on the Forum, but have not received any replies yet.
    I have created and customized user forms. But now, I am trying to create Workflows, which will act as a "continuation" of the entire process.
    In other words, I am trying to find out exactly how the relationship between the Forms and the Workflows should be created?
    What code should be written in the Forms themselves, so that once the form is Saved and Submitted, the process will move on straight to the Workflow, and execute whatever activities are coded there?
    How can this be done?
    Thanks

  • Workflow disposition rule category

    Hi all,
    I'm trying to use workflow to review new category disposition.
    I'm following the documentation:
    http://docs.oracle.com/cd/E23943_01/doc.1111/e10640/c07_generalconfig.htm#BHCJHBAJ
    and
    http://docs.oracle.com/cd/E23943_01/doc.1111/e10640/c14_disp_instr.htm#RMDSG483
    When I create new disposition rule, during the save I facing the following error:
    "Not authorized to perform action. Unable to check in a content item with CatDispositionsCheckinDefaults as Content ID. This content item is used to drive default metadata for checking in category dispositions."
    Someone already faced this?
    Edited by: will.BR on 13/09/2012 07:45

    Hi all,
    I'm trying to use workflow to review new category disposition.
    I'm following the documentation:
    http://docs.oracle.com/cd/E23943_01/doc.1111/e10640/c07_generalconfig.htm#BHCJHBAJ
    and
    http://docs.oracle.com/cd/E23943_01/doc.1111/e10640/c14_disp_instr.htm#RMDSG483
    When I create new disposition rule, during the save I facing the following error:
    "Not authorized to perform action. Unable to check in a content item with CatDispositionsCheckinDefaults as Content ID. This content item is used to drive default metadata for checking in category dispositions."
    Someone already faced this?
    Edited by: will.BR on 13/09/2012 07:45

Maybe you are looking for

  • Rollover images using image maps

    alright so heres what im trying to do. I have one really big image, and i have about 4 image maps on it. what i want is for everytime you roll over on of them, a new layer (which are hidden) pops up. Would that be possible using image maps? i cant se

  • Macbook can't see the battery

    macbook can't see the battery

  • Why is this statement failing

    Hello: I tried the following script: CREATE TABLESPACE "INNOBOX_DATA" LOGGING DATAFILE 'F:\Oracle\Database\venkats\venkats\INNOBOX_DATA01.dbf' SIZE 100M CREATE TABLESPACE "INNOBOX_INDEX" DATAFILE 'F:\Oracle\Database\venkats\venkats\INNOBOX_INDEX.dbf'

  • My iCal keeps crashing immediately upon opening it.

    I'm using iCal 4.0.4 and have a MacBook Pro running 10.6.7. This just started to happen yesterday. I havn't had problems with it before now. I'm using MobileMe to sync.

  • Japanese Characters on MI client display.

    Hi All, I am having the Japanese OS PDA.but i am not able to see the Japanese character on the SAP MI Client interface. In mobile 5 english OS device i am able to see the Japanese characters on SAP MI Client interface by making some changes at regist