Setting up OID with workflow

Hi,
We have installed workflow and OID.
How do we create users in OID and how do we link it to workflow.The users right now in the workflow tables are the database user.what has to be done to make the oid users the workflow user.
kindly help.
regards
raj

i am not sure but i think the following will help you:
on sql seesion where wf is installed, note that the Set the following Global Preferences by accessing the Oracle Workflow
Workflow Web Agent,LDAP HOST, LDAP PORT ....etc
on sql:
set serveroutput on
declare
res boolean := FALSE;
begin
wf_log_pkg.WF_DEBUG_FLAG := TRUE;
res := wf_ldap.synch_all();
if (res) then
dbms_output.put_line('succeeded');
else
dbms_output.put_line('failed ');
end if;
end;
11. As new Oracle Internet Directory users are created, run the following PL/SQL function to provision new Oracle Internet Directory users in Oracle Workflow:
Set serveroutput on
declare
res boolean := FALSE;
begin
wf_log_pkg.WF_DEBUG_FLAG := TRUE;
res := wf_ldap.synch_changes();
if (res) then
dbms_output.put_line('succeeded');
else
dbms_output.put_line('failed ');
end if;
end;
Note
It is recommended that you create a DBMS_JOB that will automatically run this script at regular intervals.
To do this run the following script as a Workflow user (default owf_mgr) and make sure that the job_queue_processes initilization parameter (in the init.ora or SPFILE) is set to a value higher than 0.
/* Sync OID and workflow every ten minutes */
Declare
V_job number;
Begin
Dbms_job.submit
(job => v_job,
what => ?declare res boolean; begin res := wf_ldap.synch_changes(); end;?,
next_date => sysdate,
interval => ?sysdate + (1/24/60 * 10)? );
end;

Similar Messages

  • SSO/OID with Workflow

    Do we have to purchase Advanced Security option of 9i database if we want to use SSO with Workflow ?
    Thank you
    Aamir

    Aamir,
    I don't belive so, but you might want to check the licensing terms for using the Oracle Single-Sign-On server. For workflow to work, all you need it the mod_osso module which comes with Oracle SSO server.
    Thanks,
    Raja

  • Synchronizing OID with Oracle Workflow

    Hi,
    I am trying to synchronize Workflow directory services with OID.
    But when executing the wf_ldap.synch_all (it is a workflow procedure), an exception is raised with the following message:
    Error code: -31202
    Error Message: ORA-31202:DBMS_LDAP: LDAP client/server error: *********Rubbish*********
    Unable to set the OID orclsizelimit parameter
    Exception encountered.. exiting
    - I am following the steps in the Oracle Workflow Guide.
    - the platform is Win2000, and workflow version is 2.6.2
    Any Idea?
    Regards,
    Belal

    Check these out
    OWF Builder - Sample Workflows
    http://www.itk.ilstu.edu/docs/Oracle/workflow.101/b10284/dfwf03.htm
    HTH
    Srini

  • How to set Changed_by field with User ID not by Workflow ID, when Status Update from Workflow

    Hi Frds,
    I am updating the Order Status from Workflow. So the Status update (or Order Changed) is save with Workflow ID. I need to insert UserID instead of workflow ID. Please help me out of this.
    Thanks
    Imran

    Hi Imran
    With the very few details available on your process, the workflow design and the "Order", all I can suggest is that:
    1) In your workflow definition, go to the step which sends the user decision, in the binding FROM the TASK TO the Workflow, set _ACTUAL_AGENT to a workflow container element , say DECISION_AGENT (of type SWHACTOR)
    2) Assuming that the next step in APPROVAL branch is setting of the status, go the task ID of that Step -> make it a dialog step (remove the Background Processing check) -> set it's agent assignment to general task
    3) Back in the workflow, set that STATUS SETTING step to Advance With Dialog under the details tab
    4) In the control tab of the same step, in the agents section, set agent as EXPRESSION and the value as &DECISION_AGENT&
    When a user approves the decision item, his ID will be stored in DECISION_AGENT
    The status set will execute immediately (because of "Advance with Dialog")  in the same session of approving as the user who approved is the same running this step now
    The status will be set by the ID of the Approver
    The above is hypothetical considering
    1) You do not have dynamic parallel processing
    2) Status setting happens immediately after the approval; as a first step in the approval branch
    3) The Decision Task does not has "Confirm End of Processing" checked.
    Regards,
    Modak

  • How to set up SAPconnect with email server

    Hi,
    Does any one know <b>how to set up SAPconnect with email server</b>
    We are using workflow and when it fails it we are sending the notification mail to the user on his company mail id, i.e. [email protected]
    This is working in the current production system. We are doing the new development which will replace the current production system. The existing Basis team does not know how it was setup in production system and how to set it up in the new system.
    When we send any mail notification from workflow we can see the mail in SCOT transaction but it is not received at the specified mail address.
    Can any one provide the configuration steps or any document for this.
    Thanks in advance..
    Pratik

    Hi Pratik,
    Check the following link:-
    /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
    http://help.sap.com/saphelp_nw04/helpdata/en/2b/d925bf4b8a11d1894c0000e8323c4f/frameset.htm
    these link will help u to config SMTP.
    And one more thing u have to do..
    Go to SE11 n open Table sxnodes in change mode.
    And change F_ESMTP field to false i.e. BLANK for the Field NODE = SMTP.
    Hope this will work For U.
    Regards
    Sachin Dhingra

  • Problems setting up WNA with OAS 10.1.2.0.2 and Windows 2008

    Hi,
    I am trying to set up WNA with an OAS 10.1.2.0.2 in a RHEL 4 platform. I have been able to configure Synchronization and Windows External Authentication following these steps:
    http://download.oracle.com/docs/cd/B14099_19/idmanage.1012/b14085/odip_actdir003.htm#i1010999
    I have also tried to configure WNA without success with those steps.
    The scenario is here:
    * OAS 10.1.2.0.2 infra in a RHEL 4
    * Windows 2008 SP1 (only i use AD from it)
    * Windows XP (client) that should be able to log in without problems when WNA is configured
    How can make it work? I haven´t find any useful documentation
    Thanks,
    Max

    Check these out:
    http://www.freeoraclehelp.com/2011/09/oid-integration-with-ms-active.html
    http://www.freeoraclehelp.com/2011/09/enable-ssl-for-oid-instance-of-oracle.html
    http://www.freeoraclehelp.com/2011/09/oracle-password-filter-to-sync.html

  • ABAP Objects with Workflows / Classes and Instances

    Hello,
    I am currently designing a workflow using an ABAP-Objects. So far I have been been able to get my Workflow to run with my class, but I have a couple of problems:
    - I am using the Function 'SAP_WAPI_START_WORKFLOW' to start other subflows, which enables me to decide which subflow to start at runtime. All of the subflows have standart importing-parameters in their containers, such as the key of my class. In each workflow I instantiate my class using a self-written method, which checks the table T_INSTANCES in my object, and then either returns the object reference to an existing instance or creates a new one. Obviously all of the subflows that I call from my main workflow should be able to find the instance. As far as I can see in their protocolls, this happens without any problems. The problem starts when I make changes to the instance. For example the changing of attributes (with setter methods) seems not to work. After the subflows are finished, in my main workflow, I do not see (with getter methods) any changes that has been made to the object. Is local persistence really limited to one workflow ?
    - My second problem is basically about the workflow container in workflow protocoll. In the same workflow, I can change the attributes of my object. Nevertheless, the protocoll always show the initial attribute, even though, my task with the getter-method returns the new value of the attribute.
    I appreciate any help and thanks a lot in advance.

    Hello Pauls,
    Thank you for your answer. I think we are misunderstanding each other. The problem occurs (I think) because my class is not a singleton class. Or am I mistaken ?
    When I directly start a subflow from my main workflow, then the instance that I have created in my main workflow is also visible to the subflow. As well as the static table which actually keeps track of the instances. So, in this case the subflows finds the instance and then can use the object as is.
    When I start a subflow from my main workflow using the function I mentioned above, then even though the same object key is used, there is a new instance. And the static table (I assume that you mean a static variable from type table, when you say "class table") is completely empty. In this case, my "new" instance is created which overwrites every attribute that I have set in the main workflow, before I started the subflow. More interestingly, my main workflow instantiates another new object, as soon as the subflow has finished. (I am using an event to wait for the subflow to finish.)
    On the other hand, I am not quite sure that I understood your approach with refresh and how it could help me. This method is not well documented anywhere, and all of the examples that I have found are about "leave it empty"
    As far as I understood, this method is called by the workflow between the steps, when an object is used. I slowly start to think that I need advanced information about Workflows and Memory Management.
    Thanks a lot again. Apparently, I am the only person who came across such a problem
    Greetz
    G.Fendoglu

  • "No payload set" error in CQ5 workflow

    I'm trying to programmatically start a workflow from an OSGi service/servlet. Everything seems to work fine, I checked the WorkflowData and the model to verify they are correct. However, when the startWorkflow method runs, it creates a new instance of the workflow, but doesn't set the payload, and i get this in the error.log file:
         com.day.cq.workflow.impl.jcr.WorkflowManager No payload set
         com.day.cq.workflow.impl.CQWorkflowSession Workflow instance started with model: /etc/workflow/models/skill-request/jcr:content/model and  ID: /etc/workflow/instances/2012-07-17/model_2347856755318064 for payload: skill,Software,barmstrong
    As far as I can tell, it has the right data, but refuses to set it to the workflow. Any thoughts or hints would be much appreciated.
    My code:
    protected void doPost(SlingHttpServletRequest request, SlingHttpServletResponse response) throws IOException
         String skillname = request.getParameter("skillname");
         String skilltype = request.getParameter("skilltype");
         String userid = request.getParameter("userid");
                        // Getting variables ready for a Workflow
                        ResourceResolver resourceResolver = null;
                        Session session = null;
                        try {
                                  SlingHttpServletRequest slingReq = (SlingHttpServletRequest) request;
                                  session = slingReq.getResourceResolver().adaptTo(Session.class);
                                  WorkflowSession wfSession = _workflowService
                                                      .getWorkflowSession(session);
                                  String workflowId = "/etc/workflow/models/skill-request/jcr:content/model";
                                  // Starting a Workflow
                                  WorkflowModel model = wfSession.getModel(workflowId);
                                  WorkflowData wfData = wfSession.newWorkflowData("SKILL_DATA",
                                                      skillname + "," + skilltype + "," + userid);
                                  Workflow wf = wfSession.startWorkflow(model, wfData);
                        } catch (WorkflowException e) {
                                  ps.println(e.getMessage());
                                  e.printStackTrace(ps);
                        } catch (Throwable e){
                                  ps.println(e.getMessage());
                                  e.printStackTrace(ps);

    Thanks for the quick response Scott. I tried setting the Object to the path of a repository node:
         WorkflowData wfData = wfSession.newWorkflowData("SKILL_DATA",  pagepath);
    but it still failed to set as the workflow's payload. I also tried starting the dialog from the Sidekick, which does work.Here are the log messages for the two runs (Sidekick run first, failing run second):
    POST /etc/workflow/instances HTTP/1.1] com.day.cq.workflow.impl.CQWorkflowSession Workflow instance started with model: /etc/workflow/models/skill-request/jcr:content/model and  ID: /etc/workflow/instances/2012-07-17/model_2352496948786228 for payload: /content/icubed_profile_site/index/resources/barmstrong
    POST /apps/icubed/skill_request HTTP/1.1] com.day.cq.workflow.impl.CQWorkflowSession Workflow instance started with model: /etc/workflow/models/skill-request/jcr:content/model and  ID: /etc/workflow/instances/2012-07-17/model_2352486082873661 for payload: /content/icubed_profile_site/index/resources/barmstrong
    Yet the first run sets the payload just fine, while the second sends back the "No payload set" error.
    Brian

  • Fail to Delete synchronize oid with sun/iPlanet

    I intergrated OID with SUN iplanet with external authen. iPlanet is the master and oid read
    user information from iplanet. The password of user store in iPlanet only.
    After setting up SunOne/Iplanet Synchronize with OID, Adds and Changes work but Deletes Do Not Work.
    In IplanetImport.aud file , I found error like this :
    25 : Success : DELETE : * : Attempt to synchronize deletion. Entry is not found. Ignore.
    How to solve this problem ?
    Regards
    Sukunya

    If it is on 10.1.2.3 Apply the patch 10.1.2.3 ARU 10350043 completed for Generic Platform

  • Integrating OID with AD: Import Config/ Synchronization fails

    I am trying to integrate OID with AD. The bootstrap is successful. I added a new entry to the AD after the bootstrap. The sync interval in OID is set to 10 seconds. The Synchronization Status in OID changes, but it is not successful.
    The updated Synchronization status is "Agent Execution Successful, Mapping/IMPORT operation Failure".
    Please help me with the following exception. Here is the text from the trace file:
    Changetype is 5
    Processing modifyRadd Operation ..
    Entry Not Found. Converting to an ADD op..
    Processing Insert Operation ..
    Performing createEntry..
    Exception creating Entry : javax.naming.NoPermissionException: [LDAP: error code 50 - Insufficient Access Rights]; remaining name 'cn=test,cn=users,dc=its-ese,dc=local'
    [LDAP: error code 50 - Insufficient Access Rights]
    javax.naming.NoPermissionException: [LDAP: error code 50 - Insufficient Access Rights]; remaining name 'cn=test,cn=users,dc=its-ese,dc=local'
    at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:2996)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2934)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2740)
    at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(LdapCtx.java:777)
    at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_createSubcontext(ComponentDirContext.java:319)
    at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:248)
    at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:236)
    at javax.naming.directory.InitialDirContext.createSubcontext(InitialDirContext.java:176)
    at oracle.ldap.odip.gsi.LDAPWriter.createEntry(LDAPWriter.java:1056)
    at oracle.ldap.odip.gsi.LDAPWriter.insert(LDAPWriter.java:409)
    at oracle.ldap.odip.gsi.LDAPWriter.modifyRadd(LDAPWriter.java:748)
    at oracle.ldap.odip.gsi.LDAPWriter.writeChanges(LDAPWriter.java:335)
    at oracle.ldap.odip.engine.AgentThread.mapExecute(AgentThread.java:581)
    at oracle.ldap.odip.engine.AgentThread.execMapping(AgentThread.java:306)
    at oracle.ldap.odip.engine.AgentThread.run(AgentThread.java:186)
    DIP_LDAPWRITER_ERROR_CREATE
    Error in executing mapping DIP_LDAPWRITER_ERROR_CREATE
    DIP_LDAPWRITER_ERROR_CREATE
    at oracle.ldap.odip.engine.AgentThread.mapExecute(AgentThread.java:722)
    at oracle.ldap.odip.engine.AgentThread.execMapping(AgentThread.java:306)
    at oracle.ldap.odip.engine.AgentThread.run(AgentThread.java:186)
    DIP_LDAPWRITER_ERROR_CREATE
    ActiveChgImp:Error in Mapping EngineDIP_LDAPWRITER_ERROR_CREATE
    DIP_LDAPWRITER_ERROR_CREATE
    at oracle.ldap.odip.engine.AgentThread.mapExecute(AgentThread.java:741)
    at oracle.ldap.odip.engine.AgentThread.execMapping(AgentThread.java:306)
    at oracle.ldap.odip.engine.AgentThread.run(AgentThread.java:186)
    ActiveChgImp:about to Update exec status
    Updated Attributes
    orclodipLastExecutionTime: 20080915141948

    Hi,
    you will need to follow Metalink Note
    276481.1 Troubleshooting OID DIP Synchronization Issues -> Problem 11
    What you see is an ACI issue on OID server, caused by the fact that you are using a different container.
    BR,
    Octavian

  • Using PowerShell Remoting with Workflows and Functions

    Hello,
    I have an existing set of scripts with a mixture of Modules containing the functions, Workflows that call the functions and Main script that invokes the workflows.
    Step 1: The Main script picks up the list of servers from a custom db and invokes the relevant workflow for further operation
    Step 2: The workflow runs as foreach parallel and calls a function by passing the server name as a parameter
    Step 3. The function in the module does the real job
    All of this runs, from a central location. 90% of the server are geo dispersed. This seems to be a bit of a concern in terms of turnaround time is too high. 
    Hence, I would like to use WinRM (PowerShell Remoting). I have configured WinRM on all the Server with Firewall Exception.
    My Queries:
    1. Apart from using Enter-PSSession or Invoke-Command, are there any other CMDLet's?
    2. Say for example; I plan to use Enter-PSSession, should I embed the code with Workflow?
    3. How will it retrieve the output?
    Please advice, Thanks
    Rajiv

    You cannot use Enter-PSSession in a script.  
    It's only intended to be used interactively from the console. If you try to use it in a script, the script will run the subsequent commands on the local system, not in the remote session.
    You'll need to use Invoke-Command, and you'll have to include the function definitions in the invoked script block, since those functions will not exist in the remote sessions.
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

  • Take Control of Workflow with Workflow Analyzer!  See Note 1369938.1

    Take Control of Workflow with Workflow Analyzer!  Immediate Analysis and Output of your EBS Workflow Environment.          
    The EBS Workflow Analyzer is a script that reviews the current Workflow Footprint, analyzes the configurations, environment, providing feedback, and recommendations on Best Practices and areas of concern.          
    Video - Watch a 9-minute overview video (9:00)          
    Go to [Doc 1369938.1|https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=1369938.1] for more details and Script Download.          
    Proactive Benefits:          
    Immediate Analysis and Output of Workflow Environment          
                   Identifies Aged Records          
                   Identifies Workflow Errors & Volumes          
                   Identifies looping Workflow items and stuck activities          
                   Identifies Workflow System Setup and configurations          
                   Identifies and Recommends Workflow Best Practices          
    Easy To Add Tool for regular Workflow Maintenance          
    Execute Analysis anytime to compare trending from past outputs          
    [Please send any items to Feedback.|https://communities.oracle.com/portal/server.pt?open=514&objID=224&mode=2&threadid=297966]
    Edited by: user715498 on Feb 14, 2012 11:09 AM
    Edited by: user715498 on Feb 14, 2012 11:12 AM

    14. Once my photos look the way I want, I then export them to JPEG. I have set up a Photoshop droplet for Lightroom that will then do all my sharpening after export.
    That's it! I know it sounds like a lot of steps, but once you've done it a couple of times it goes by really quick. I'm really loving most things about Lightroom in terms of its cataloging and export options. But the image quality of the Lightroom raw conversions just isn't there yet. I've found by integrating both Capture NX and Lightroom I can get top quality results while still gaining advantage of Lightroom's many nice features. It took me a few days of exploration and experimentation to nail down the optimal workflow for my needs. Hopefully this will help some others out and maybe give them some ideas of their own toward a better workflow.
    Please feel free to share your thoughts or own experience on all of this.
    Thanks to Tony Long for his suggestion in this thread, which caused me to go on a search for the optimal Lightroom/Capture workflow: http://www.adobeforums.com/cgi-bin/webx?7@@.3bc719df/3
    If you are interested in taking a look at the final output of the workflow listed above, please look here: http://photos.unsavory.com/p634883589
    Cheers everyone!
    -©aine

  • Configure OID with BPEL

    Hi
    Can anyone provide me the info on how to integrate OID with BPEL?
    My requirement is to pick email ids from OID and send emails from BPEL.
    Any tutorial or demo would he a great help
    Regards
    Deepak

    I am doing that as well but we are really short on time we have delivery date on 1st of August. And our man SOA guy has resigned so i had to take over without its knowledge.
    I have a document called Oracle® BPEL Process Manager, shall i read Service Configuration with
    Configuring the Identity Service
    ■ Configuring the Notification Services
    ■ Configuring the Workflow Service
    ■ Integrating Oracle BPEL Process Manager with the Oracle Application Server
    Service Registry
    would that enough?
    Pls suggest

  • Bdc not working with workflow

    Hallo,
    I have an issue with a bdc FM i created not working with workflow.
    If I test the FM, it works ok.
    If i Test the method calling the FM it works ok.
    if i test the task calling the method it works ok.
    If I run the workflow it doesn't work, and i get the following messages:
    S     DC     1     Unable to initialise ABAP Control Framework ...             
    S     DC     1     Unable to initialise ABAP Control Framework ...          
    S     DC     6     Control Framework: Fatal error - GUI cannot be reached     
    A     SY     2     Exception condition "CNTL_ERROR" raised.
    What is the meaning of this??     
    Bdc is calling Me54n to set to click on reject button during Purchase Requisition Release,
    putting the PR processing state in status '08'
    I checked all the binding which are fine. No container parameter are passed a part from the business object.
    here is the FM coding:
    FUNCTION ZME_N_WF_REJ_PR.
    ""Local interface:
    *"  IMPORTING
    *"     VALUE(CTU) LIKE  APQI-PUTACTIVE DEFAULT 'X'
    *"     VALUE(MODE) LIKE  APQI-PUTACTIVE DEFAULT 'N'
    *"     VALUE(UPDATE) LIKE  APQI-PUTACTIVE DEFAULT 'L'
    *"     VALUE(GROUP) LIKE  APQI-GROUPID OPTIONAL
    *"     VALUE(USER) LIKE  APQI-USERID OPTIONAL
    *"     VALUE(KEEP) LIKE  APQI-QERASE OPTIONAL
    *"     VALUE(HOLDDATE) LIKE  APQI-STARTDATE OPTIONAL
    *"     VALUE(NODATA) LIKE  APQI-PUTACTIVE DEFAULT '/'
    *"     VALUE(BANFN_003) LIKE  BDCDATA-FVAL
    *"  EXPORTING
    *"     VALUE(SUBRC) LIKE  SYST-SUBRC
    *"  TABLES
    *"      MESSTAB STRUCTURE  BDCMSGCOLL OPTIONAL
    subrc = 0.
    perform bdc_nodata      using NODATA.
    perform open_group      using GROUP USER KEEP HOLDDATE CTU.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=MECHOB'.
    *perform bdc_field       using 'DYN_6000-LIST'
                                 LIST_001.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MEREQ3328-AFNAM'.
    *perform bdc_field       using 'MEREQ3328-EKGRP'
                                 EKGRP_002.
    perform bdc_dynpro      using 'SAPLMEGUI' '0002'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=MEOK'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MEPO_SELECT-BANFN'.
    perform bdc_field       using 'MEPO_SELECT-BANFN'
                                  BANFN_003.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=MEREJECT'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'DYN_6000-LIST'.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=MESAVE'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'DYN_6000-LIST'.
    perform bdc_transaction tables messtab
    using                         'ME54N'
                                  CTU
                                  MODE
                                  UPDATE.
    if sy-subrc <> 0.
      subrc = sy-subrc.
      exit.
    endif.
    perform close_group using     CTU.
    ENDFUNCTION.
    INCLUDE BDCRECXY .
    I tries the same approach on ML81N to block a service entry sheet.(pressing the lock icon),
    I get exactly the same issue.
    Anybody knows how to resolve?
    Or how to do the same without using a bdc call?
    regards,
    marco

    Hi
    this is the Method callind the FM
    object is BUS2105 w delegation ZBUS2105.
    BEGIN_METHOD ZRELEASEREJECTED CHANGING CONTAINER.
    Data: CTU TYPE APQI-PUTACTIVE,      
          MODE TYPE APQI-PUTACTIVE,     
          UPDATE TYPE APQI-PUTACTIVE,
         NODATA TYPE APQI-PUTACTIVE.  
    CTU = 'X'.               
    MODE = 'N'.                
    UPDATE = 'L'.              
    NODATA = '/'.              
    iobjectkey = object-key.
       CALL FUNCTION 'ZME_N_WF_REJ_PR'             
         EXPORTING                                 
           BANFN_003 = iobjectkey                  
           NODATA = NODATA                                            
           UPDATE = UPDATE                         
           MODE = MODE                             
           CTU = CTU                               
         IMPORTING                                 
           SUBRC = SUBRC                           
         TABLES                                    
           MESSTAB = MESSAGE                       
         EXCEPTIONS                                
           OTHERS = 01.                            
       CASE SY-SUBRC.                              
         WHEN 0.            " OK                   
         WHEN OTHERS.       " to be implemented    
       ENDCASE.                                    
    SWC_SET_ELEMENT CONTAINER 'Subrc' SUBRC.                   
    SWC_SET_TABLE CONTAINER 'MESSAGE' MESSAGE.                                                                               
    END_METHOD.

  • Bdc not working with workflow - background task

    Hallo,
    I have an issue with a bdc FM i created not working with workflow.
    If I test the FM, it works ok.
    If i Test the method calling the FM it works ok.
    if i test the task calling the method it works ok.
    If I run the workflow it doesn't work, and i get the following messages:
    S DC 1 Unable to initialise ABAP Control Framework ...
    S DC 1 Unable to initialise ABAP Control Framework ...
    S DC 6 Control Framework: Fatal error - GUI cannot be reached
    A SY 2 Exception condition "CNTL_ERROR" raised.
    What is the meaning of this??
    Bdc is calling Me54n to set to click on reject button during Purchase Requisition Release,
    putting the PR processing state in status '08'
    I checked all the binding which are fine. No container parameter are passed a part from the business object.
    here is the FM coding:
    FUNCTION ZME_N_WF_REJ_PR.
    ""Local interface:
    *" IMPORTING
    *" VALUE(CTU) LIKE APQI-PUTACTIVE DEFAULT 'X'
    *" VALUE(MODE) LIKE APQI-PUTACTIVE DEFAULT 'N'
    *" VALUE(UPDATE) LIKE APQI-PUTACTIVE DEFAULT 'L'
    *" VALUE(GROUP) LIKE APQI-GROUPID OPTIONAL
    *" VALUE(USER) LIKE APQI-USERID OPTIONAL
    *" VALUE(KEEP) LIKE APQI-QERASE OPTIONAL
    *" VALUE(HOLDDATE) LIKE APQI-STARTDATE OPTIONAL
    *" VALUE(NODATA) LIKE APQI-PUTACTIVE DEFAULT '/'
    *" VALUE(BANFN_003) LIKE BDCDATA-FVAL
    *" EXPORTING
    *" VALUE(SUBRC) LIKE SYST-SUBRC
    *" TABLES
    *" MESSTAB STRUCTURE BDCMSGCOLL OPTIONAL
    subrc = 0.
    perform bdc_nodata using NODATA.
    perform open_group using GROUP USER KEEP HOLDDATE CTU.
    perform bdc_dynpro using 'SAPLMEGUI' '0014'.
    perform bdc_field using 'BDC_OKCODE'
    '=MECHOB'.
    *perform bdc_field using 'DYN_6000-LIST'
    LIST_001.
    perform bdc_field using 'BDC_CURSOR'
    'MEREQ3328-AFNAM'.
    *perform bdc_field using 'MEREQ3328-EKGRP'
    EKGRP_002.
    perform bdc_dynpro using 'SAPLMEGUI' '0002'.
    perform bdc_field using 'BDC_OKCODE'
    '=MEOK'.
    perform bdc_field using 'BDC_CURSOR'
    'MEPO_SELECT-BANFN'.
    perform bdc_field using 'MEPO_SELECT-BANFN'
    BANFN_003.
    perform bdc_dynpro using 'SAPLMEGUI' '0014'.
    perform bdc_field using 'BDC_OKCODE'
    '=MEREJECT'.
    perform bdc_field using 'BDC_CURSOR'
    'DYN_6000-LIST'.
    perform bdc_dynpro using 'SAPLMEGUI' '0014'.
    perform bdc_field using 'BDC_OKCODE'
    '=MESAVE'.
    perform bdc_field using 'BDC_CURSOR'
    'DYN_6000-LIST'.
    perform bdc_transaction tables messtab
    using 'ME54N'
    CTU
    MODE
    UPDATE.
    if sy-subrc 0.
    subrc = sy-subrc.
    exit.
    endif.
    perform close_group using CTU.
    ENDFUNCTION.
    INCLUDE BDCRECXY .
    I tries the same approach on ML81N to block a service entry sheet.(pressing the lock icon),
    I get exactly the same issue.
    Anybody knows how to resolve?
    Or how to do the same without using a bdc call?
    regards,
    marco

    Hallo,
    I have an issue with a bdc FM i created not working with workflow.
    If I test the FM, it works ok.
    If i Test the method calling the FM it works ok.
    if i test the task calling the method it works ok.
    If I run the workflow it doesn't work, and i get the following messages:
    S DC 1 Unable to initialise ABAP Control Framework ...
    S DC 1 Unable to initialise ABAP Control Framework ...
    S DC 6 Control Framework: Fatal error - GUI cannot be reached
    A SY 2 Exception condition "CNTL_ERROR" raised.
    What is the meaning of this??
    Bdc is calling Me54n to set to click on reject button during Purchase Requisition Release,
    putting the PR processing state in status '08'
    I checked all the binding which are fine. No container parameter are passed a part from the business object.
    here is the FM coding:
    FUNCTION ZME_N_WF_REJ_PR.
    ""Local interface:
    *" IMPORTING
    *" VALUE(CTU) LIKE APQI-PUTACTIVE DEFAULT 'X'
    *" VALUE(MODE) LIKE APQI-PUTACTIVE DEFAULT 'N'
    *" VALUE(UPDATE) LIKE APQI-PUTACTIVE DEFAULT 'L'
    *" VALUE(GROUP) LIKE APQI-GROUPID OPTIONAL
    *" VALUE(USER) LIKE APQI-USERID OPTIONAL
    *" VALUE(KEEP) LIKE APQI-QERASE OPTIONAL
    *" VALUE(HOLDDATE) LIKE APQI-STARTDATE OPTIONAL
    *" VALUE(NODATA) LIKE APQI-PUTACTIVE DEFAULT '/'
    *" VALUE(BANFN_003) LIKE BDCDATA-FVAL
    *" EXPORTING
    *" VALUE(SUBRC) LIKE SYST-SUBRC
    *" TABLES
    *" MESSTAB STRUCTURE BDCMSGCOLL OPTIONAL
    subrc = 0.
    perform bdc_nodata using NODATA.
    perform open_group using GROUP USER KEEP HOLDDATE CTU.
    perform bdc_dynpro using 'SAPLMEGUI' '0014'.
    perform bdc_field using 'BDC_OKCODE'
    '=MECHOB'.
    *perform bdc_field using 'DYN_6000-LIST'
    LIST_001.
    perform bdc_field using 'BDC_CURSOR'
    'MEREQ3328-AFNAM'.
    *perform bdc_field using 'MEREQ3328-EKGRP'
    EKGRP_002.
    perform bdc_dynpro using 'SAPLMEGUI' '0002'.
    perform bdc_field using 'BDC_OKCODE'
    '=MEOK'.
    perform bdc_field using 'BDC_CURSOR'
    'MEPO_SELECT-BANFN'.
    perform bdc_field using 'MEPO_SELECT-BANFN'
    BANFN_003.
    perform bdc_dynpro using 'SAPLMEGUI' '0014'.
    perform bdc_field using 'BDC_OKCODE'
    '=MEREJECT'.
    perform bdc_field using 'BDC_CURSOR'
    'DYN_6000-LIST'.
    perform bdc_dynpro using 'SAPLMEGUI' '0014'.
    perform bdc_field using 'BDC_OKCODE'
    '=MESAVE'.
    perform bdc_field using 'BDC_CURSOR'
    'DYN_6000-LIST'.
    perform bdc_transaction tables messtab
    using 'ME54N'
    CTU
    MODE
    UPDATE.
    if sy-subrc 0.
    subrc = sy-subrc.
    exit.
    endif.
    perform close_group using CTU.
    ENDFUNCTION.
    INCLUDE BDCRECXY .
    I tries the same approach on ML81N to block a service entry sheet.(pressing the lock icon),
    I get exactly the same issue.
    Anybody knows how to resolve?
    Or how to do the same without using a bdc call?
    regards,
    marco

Maybe you are looking for

  • Problem printing Report with Image in BI Publisher 11g

    I am working with BI publisher *11g* but I have problem printing images. Everything works fine if I do not include any images however when I add a image I get following problems. When I tried printing PDF in output I get Type /Xobject subtype /Image

  • It's Time To Talk #RetroThinkPad Design!

    David Hill published his follow-up Retro ThinkPad article on the Lenovo Blog this morning! Read the article: http://blog.lenovo.com/en/blog/retro-thinkpad-survey-keyboard/ The response to the first article far exceeded anyone's expectations, and now

  • Oracle db Migration from one server to another

    Can any body guide me why companies migrate Oracle db from one server to another , & what is the process for doing that?

  • So what's new in iTunes 10?

    Besides the obvious... it would be nice if Apple made a complete list of changes to the program available. I can't even count the number of times I'd be doing something in iTunes only to discover a new option/tab/etc... that probably existed 5 update

  • Oracle 10g sql tuning

    I am on Oracle 10.2.0.3 on Windows 2003. I have a third party package whose code cannot be modified. There are several queries written using NOT clauses, as a result Oracle does full table scan and hash joins. select * from svp_view_s where NOT a_web