User Details in the Check FM Module SWB_2_CHECK_FB_START_COND_EVAL

Hi All,
While triggering the Workflow, I have to do some validations based on the user who created the Purchase Order. We are using standard workflows.
How exactly to get the user details (Details of the user who created Purchase Order) from the check FM SWB_2_CHECK_FB_START_COND_EVAL.
Import Parameters were
1. SENDER
2. EVENT
3 .RECTYPE
4. EVENT_CONTAINER associated type is IF_SWF_IFS_PARAMETER_CONTAINER
I am able to get the user details from the check FM  SWB_CHECK_FB_START_COND_EVAL from EVENT_CONTAINER.
The associated type in this FM is SWCONT.
Regards,
Venky

Hi
<u><b>Please go through the SAP OSS Notes and their relevant Correction instructions (to implement the FM - BBP_2_CHECK_FB_START_COND_EVAL) for detailed source code in this case -></b></u>
Which SRM version are you using ?
<u>Note 1049146 BBP_2_CHECK_FB_START_COND_EVAL does not start workflow</u>
<u>Note 993753 BAdI Workflow cannot be started using standard tools</u>
Note 853360 Unclear error message when you evaluate the start condition
<u>Hope this will answer your queries. Do let me know.</u>
Regards
- Atul

Similar Messages

  • FM for populating internet user details in the internet user tab of a BP

    Hi  Everyone urgent requirement ,
    I have a unique requirement , I have created a BP and assigned it with internet user role which as usual has Internet user TAB where a Internet user details have to be assigned . I have a creted a user also but can some one tell me which FM i can use to link the user created with the BP. 
    any help or suggestions are highly appreciated and will reward the points  .

    Hi Ram,
    Sorry for the delay but I was on holiday . If you still want the solution here it is :
    FM that has to be used is : COM_BPUS_INTERNETUSER_CREATE for internet user creation .
    And to update the internet user details in the internet user tab use : CRM_BUPA_CREATECENTRALPERSON .
    Regards,
    Reddy.

  • How to find out the User Details for the particular transaction

    Hi,
    Actually AJAB -Asset Year closing was done by One User.How and Where to find out the User details who executed the Transaction.Kindly tell me the T-code for this.
    Thanks
    Sap Guru

    Hi:
    Please contact you basis administrator.Give him the T.code and date when Year closing was done. He may resolve your problem.
    Please let me know if you need more information,
    Assign points if useful.
    Regards
    MSReddy

  • SQL to show a given users rights in the various hyperion modules

    Hi All,
    We need to create a Business Objects security report to outline the User access in HFM ,Essbase and Planning . We can't use the Hyperion Security report , since we use the BO report to mointor user access across all applications we have.
    I need to provide the BO report writer with the SQL that will show all users access rights within HFM,Essbase and Planning.
    Please help.

    I'm also curious about this. I would like users to be able to view objects from other schemas through the object viewer.
    Any help would be much appreciated. Thanks!

  • Tabular Form - How to store in a column the User details (APP_USER)

    Hi all,
    I have let's say the following table:
    USER_COMMENTS(
    ID number primary key,
    COMMENT_TEXT varchar2(50),
    POSTED_BY_USER varchar2(50),
    DATE_POSTED date,
    UPDATED_BY_USER varchar2(50),
    DATE_UPDATED date)
    How do I, using a Tabular Form, get the USER details in the columns POSTED_BY_USER and UPDATED_BY_USER and the SYSDATE in DATE_UPDATED...
    I've tried the following:
    Created tabular form, all fields included. In Report Attributes > edit UPDATED_BY_USER > Display as Display as Text (saves state); Default Type: Item (application or page item); Default: APP_USER.
    It's not working.
    Thanks!
    Andrei

    It has to be a text field column type with source like the other updatable columns. You should hide that column and create a second of display as text if you want to show the content. Once this is done then you can use the default value and just type the item name there as you did:
    P1_ITEM
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

  • How do I "see" a check function module in the debugger?

    I am correctly starting a custom workflow based on an event raised by standard SAP code in transaciton QE51N.
    I have to write a check function module to interrogate the event and start/not start
    the workflow because the same event is raised by SAP code in transaction QA02, and I have to be sure to start the workflow only if the event is raised in QE51N, not QA02.  (I also have to check some other properties of the QALS row for the inspection lot.)
    I know how to code the check function module, but if I need to debug it, how do I "set-up" for seeing the check function module in the debugger?
    I'm sure this is an obvious question and that I'm missing something simple.
    So thanks in advance for the answer.
    djh

    Dear DJH,
    Put a break-point in the function module and process the transaction. It will stop at runtime.
    Hope this will help.
    Regards,
    Naveen.

  • Check-out button is not disable after the check out request from the same user

    HI all,
            I want to use check out/ in procedure in solution manager along with email notification. For that, I have maintained required settings and maintenance project for the intended solution. I want to implement a team leader- manger hiearchy for any changes to the solution. When a team member requests for the check out for any process scenario/ step, the status goes to check out requested. But, the problem is, check-out button is not disable and same user can do the check out which I want to restrict. The check out can be done only by the project manger. I guess, this is related to authorization roles for both team member and manger. But I am not able to find out. Please help me to have the authorization roles for this.
    Thanks,
    Rutvik Upadhyay.

    Why not putting a af:fileDownloadActionListener inside the command button. In the bean you need an method like
        public void exportExcel(FacesContext aFacesContext, OutputStream aOutputStream)
    } You can use the output stream and when you finished just flush it. Don't close the stream and don't complete the response.
    Timo

  • Display Cutomer Details in the Order Confirmation - Webtools

    Hi
    I just need to need to display the user details in the email send to
    the user. With the reference to API I put the following html
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
         <tr>
         <td width="25%">Email</td>
         <td width="75%"> %%Email%%  </td>
         </tr>
         <tr>
          <td>Telephone</td>
         <td>%%DayPhone%% </td>
         </tr>                              
            </table>
    %%DayPhone%% seems to work fine but I cannot make email display. I check the user and user already filled the email and the dayphone fields. Could you please help me to display user email address.
    I have notice that section tags been used in the email template to define other table. Where can I find the reference to section names.
    e.g.:<section name="orderdetail">
    Thanks in advance.
    Sanjaya

    Hi Sanjaya,
    This is probably a bug.
    Since account and user both have the Email field, I believe the Email that is being displayed is the account email.  Perhaps this account does not have one.
    There is currently no way to resolve this situation.
    The section tags are currently undocumented.
    They define which database object that section binds to.  The Webtools api documentation will tell you which fields are available in each object.
    For the invoicetemplate, the sections and bindings are as follows:
    "weight" section binds to the netpoint.api.commerce.NPOrder object
    "orderdetail" section binds to the netpoint.api.commerce.NPOrderDetail object
    "orderdiscounts" section binds to the netpoint.api.commerce.NPOrderDiscount object (not available in 5.9)
    "expenses" section binds to the netpoint.api.commerce.NPOrderExpense.OrderTotals (not available in 5.9)
    "orderpayments" section binds to the netpoint.api.commerce.NPOrder.OrderPayments collection
    "billingaddress" section binds to the netpoint.api.account.NPAddress object using the BillingAddressID on the OrderMaster object to build the object.
    shippingaddress" section also uses an NPAddress object derived from the ShippingAddressID defined on the OrderDetail
    "shipments" section binds to the netpoint.api.commerce.NPOrder.Shipments (collection of NPShipment objects)

  • GRC 10 - Legacy connector as user detail data source

    Hello, 
    I'm trying to use a legacy connector (with a text file as input) as a user data-source.
    Repository user sync for this legacy connector works : checked GRACUSER table, it is populated with all the user details from the input file (id,firstname,lastname,mail,department,phone
    I got it working for user search data source : when creating an access request for "other" user, searching for a user ID/name works : data are displayed in search result, however when I select the user from the serach result the user details are not populated in an access-request form.
    Any clue about this ? Any one already got this working ?
    GRC 10.0 SP13.
    Checked SP14 and SP15 release notes, and found no relevant notes yet.
    repository-related notes applied :
    -1864423
    -1950231
    Regards,
    Emmanuel.

    Hi Pedro,
    You only have confirmed that 2 accounts are maintained in HCM and in SU01 as well, so you would be able to see these accounts' details both ways.
    Yes, you are right about user account maintenance first in HCM at the time of new hire, then you can manually raise the access request to grant them access to various SAP systems. Or in order to automate this process as Prasahant suggested, you can take help from HR Triggers.
    You can refer: GRC 10.0 - HR Trigger configuration - Governance, Risk and Compliance - SCN Wiki
    But responding to your original discussion, whatever user accounts are maintained in HCM you would see those details provided you define HR for the "user search data source" AND from SU01 for "user detail data source"
    In your case you have 2 accounts which have been maintained in HCM as well as SU01, so that is what creating confusion for you.
    Let us know if you need any more clarifications.
    Regards,
    Ameet

  • Check function module

    hi friends
    what does the check function module and receiver function module do?
    what is the usage of these function module?
    Explain details
    Regards
    vijay

    Hi,
    Using check function module you can trigger the work flow under some conditions.
    For example you are using PO workflow. If plant 1000 means only you want to trigger the work flow means you can write the code in ordinary Function module and then you can make it as a check function module.
    Start condition and the check function module has the same functionlity.
    SWW_WI_CREATE_VIA_EVENT is the Receiver function module, which is responsible for triggering the workflows (for all Workflows in SWE2). This will be assigned automatically when the linkage (SWE2) is created. This function module is common for all.
    Edited by: Viji on Mar 27, 2008 1:37 PM

  • User Details of F110 Run

    Hi,
    I want to get the details of the USER who did the Payment Run using F110.Neither REUGH nor REGUP is storing those details.There is a table called REGUA which is having the details but not for every run.
    Do anyone here know the table which stoes the User details of the User who did the Payment Run in F110.
    Thanks,
    K.Kiran.

    Andreas,
    I got the Payment Doc number from REGUH w.r.t the RUNDATE/ID and then passed vblnr,year from the rundate,bukrs to BKPF to get the user details.
    Thanks,
    Kiran.

  • Read workitem Container Value in Terminating event Check Function Module

    Hi
    I have some problems reading work item data / values of a work item container element in a check function module on a terminating event – Do any of you know if this is possible, and if so, how it’s done ?
    In My scenario I have created a multiline approval step for my business document, one task pr Line Owner.  The Event Approved is defined as a terminating event for this task, and the line owner is passed to the task container.
    Now, when I raise the event, with the line owner as an event parameter, I would like to check if the line owner on the raised event, matches the line owner in the task container in question in a check fm. But here I faced the problem, that only event data, and not work item data, are passed to the Check Function module.
    Regards,
    Morten Nielsen

    Hello Morten, hello Arghadip,
    in the instance linkage's check function module (entered via transaction SWEINST) you'll have the workitem-id in the system event parameter EVTRECEIVER_ID
    With this number you can use the frame work in order to read the work item container.
    This is a sample coding, how you access the correct work item container using SAP Enterprise and it's new OO frame work, which checks on the terminating event of BUS2105.Released the correct release code for a work item.
    INCLUDE <cntn01>.
    INCLUDE <SWFCNTN01>.
    INCLUDE RSWEINCL.
    *** Read workitem instance and container from event
           DATA: wi_id            TYPE swwwihead-wi_id.
           swc_get_element EVENT_CONTAINER evt_receiver_id wi_id.
           IF sy-subrc <> 0.
              MESSAGE E015(ZPREL) WITH evt_receiver_id
                                           RAISING wrong_call.
           ENDIF.
           DATA: lv_wi_handle    TYPE REF TO if_swf_run_wim_internal.
           DATA: ls_context      TYPE sww_wimctx.
           DATA: lv_wi_container TYPE REF TO if_swf_cnt_container.
    *    - set context
           ls_context-do_commit  = ' '.
           ls_context-called_btc = 'X'.
           ls_context-exec_user  = sy-uname.
           ls_context-fbname     = 'Z_CHECK_RELEASE_CODE'.
           CLEAR lv_wi_handle.
           CALL METHOD cl_swf_run_wim_factory=>initialize( ).
           CALL METHOD cl_swf_run_wim_factory=>find_by_wiid
                   EXPORTING
                      im_wiid             = wi_id
                      im_read_for_update  = ' '
    *                 im_enqueue_owner    = fb_name
    *                 im_wait_for_enqueue = 'X'
                      im_context          = ls_context
                   RECEIVING
                      re_instance         = lv_wi_handle.
    *** This check is only done for workitem linkage TS90100081
           IF lv_wi_handle->m_sww_wihead-wi_rh_task <> 'TS90100081'. "#EC_SYNTEXT
              EXIT. "Let event pass, as this is an instance linkage to another workitem
           ENDIF.
           DATA: releaseCode_wi        TYPE t16fc-frgco.
    *    - read releaseCode from workitem container
           lv_wi_container = lv_wi_handle->get_wi_container( ).
    *    - perform binding event container -> workitem container
           swf_get_element lv_wi_container 'RELEASECODE' releaseCode_wi.
          DATA: e             TYPE REF TO cx_swf_run_wim.
          CATCH cx_swf_run_wim INTO e.
             RAISE WORKFLOW_RUNTIME_ERROR.
       ENDTRY.
    *** From here on, the variable releaseCode_WI hold the
    *** container element RelaseCode of the work item, that
    *** is going to be terminated...
    *** Further coding from here as appropriate...
    Best regards,
    Florin

  • Update Request User Details with updateRegistrationUserDetails

    Hi,
    I have the following scenario: The Self-Registration form is defined with the fields First Name, Middle Name, Last Name, Manager Login. When the request is created, based on the Manager Login, the other user's attributes are set according to the Manager's Attributes. So when the manager goes to approve the request, most of the user information are already set. To update the User Details in the request, I can call the updateRegistrationUserDetails of Request API.
    Problem: I can not update the fields other than those defined in the FormMetadata.Xml. So I have to add the fields and set them as optional but I don't want to show non required fields to the end-user. I wish to have those attributes as not visible in the self-request form. Then I can update the information using the API.
    Question: How to add fields to the User Details of the request and not show them in the self-request form?
    Thanks,

    As I've said, I could not update the request fields that were not declared in the FormMetadata.xml. You can try set them as not visible but I am not sure the visibile attribute works for the SelfRegistration form. If it is not a problem, you can show the fields and set them as optional true. In my exaple, the SelfReg form has a manager employee code field.
    Create an entity adapter and assign it to the Request object, pre-insert.
    1) create two variables: requestKey, requestObjecAction, managerEmpCode (in my example)
    2) test if the request object action is Create Entity.
    3) call the method to update the request. below is my example:
         // Updates the request with the information of manager: Manager Login,
         // Location, Department and Organization
         public String updateRequestWithManagerInfo(long requestKey, String managerEmpCode) {
              String result = JavaTaskBase.EXECUTION_ERROR;
              logger.debug("******** Starting updateRequestWithManagerInfo *************");
              logger.debug("requestKey: " + requestKey);
              logger.debug("managerEmpCode: " + managerEmpCode);
              try {
                   HashMap<String, String> filter = new HashMap<String, String>();
                   filter.put(JavaTaskBase.USR_UDF_EMPLOYEE_ID, managerEmpCode);
                   String[] columns = new String[] { JavaTaskBase.USER_KEY_FIELD,
                             JavaTaskBase.USER_LOGIN_FIELD, JavaTaskBase.USR_UDF_LOCATION,
                             JavaTaskBase.USR_UDF_HR_DEPARTMENT,
                             JavaTaskBase.ORGANIZATION_ATTRIBUTE_NAME };
                   logger.debug("Querying User by EmpCode...");
                   // Update Request Attributes: requestKey, ManagerId
                   tcResultSet resultSet = this.getUserOperations().findUsersFiltered(filter, columns);
                   logger.debug("tcResultSet.getTotaRowCount(): "+ resultSet.getTotalRowCount());
                   resultSet.goToRow(0);
                   String organizationName = resultSet.getStringValue(JavaTaskBase.ORGANIZATION_ATTRIBUTE_NAME);
                   String managerLogin = resultSet.getStringValue(JavaTaskBase.USER_LOGIN_FIELD);
                   String managerLocation = resultSet.getStringValue(JavaTaskBase.USR_UDF_LOCATION);
                   String managerDepto = resultSet.getStringValue(JavaTaskBase.USR_UDF_HR_DEPARTMENT);
                   String managerKey = resultSet.getStringValue(JavaTaskBase.USER_KEY_FIELD);
                   logger.debug("Manager Organization: " + organizationName);
                   logger.debug("Manager Login: " + managerLogin);
                   logger.debug("Manager Location: " + managerLocation);
                   logger.debug("Manager Department: " + managerDepto);
                   logger.debug("Manager Key: " + managerKey);
                   // Prepares the information to update the request
                   HashMap<String, String> values = new HashMap<String, String>();
                   values.put(JavaTaskBase.ORGANIZATION_ATTRIBUTE_NAME, organizationName);
                   values.put(JavaTaskBase.USR_UDF_LOCATION, managerLocation);
                   values.put(JavaTaskBase.USR_UDF_HR_DEPARTMENT, managerDepto);
                   values.put(JavaTaskBase.USER_MANAGER_LOGIN, managerLogin);
                   logger.debug("Updating Request Info...");
                   // Updates the request
                   this.getRequestOperations().updateRegistrationUserDetails(
                             requestKey, values);
                   logger.debug("Request Updated Successfulfy.");
                   result = managerKey;
              } catch (Exception ex) {
                   logger.error("Error in updateRequestWithManagerInfo method", ex);
                   ex.printStackTrace();
                   result = JavaTaskBase.EXECUTION_ERROR;
              return result;
    thanks,
    Renato.

  • Issue in Check Function Module

    Hi All,
    Am doing a custom Workflow for Goods Movement.
    In my Workflow am using the Triggering event "created" of Business Object "/SAPCEM/02".
    I need to trigger my Workflow only for specific "Movement Type" (Eg. 551).
    The Event Container is having only the values Material Document & Year. I have created a check function module in which I built the logic to get the MovementType(BWART) from table MSEG for the Material Document & raising exception in case of other than 551.
    But the function module is not working as I expected. The problem is the MSEG table is not getting updated with the new Material Doc, while the Check Function Module is being called. (MSEG is updated after Check FM, it seems).  So no record in MSEG for our MaterialDoc during the call to check function module. So the query always fails.
    I need to restrict my workflow for specific Movement Types(MSEG-BWART).
    Could you please advice me in this ?
    Regards,
    Anbarasan K

    I have absolutely no idea if this works, but you could try to place a check FM on the event only in transaction SWEINST with a wait up to 1 second statement in it.
    Maybe, just maybe then you can properly use the check FM on the event-->WF in SWE2.
    Alternatively if you are of the opinion that the data should be updated when the event is triggered you could raise an OSS message (obviously search OSS first to see if this has come up previously)
    Kind regards, Rob Dielemans

  • Disabling "User Details window" when adding modifiedby  to LAyout

    I am very new to the KM layout tools, So I appreciate any basic information you can share.
    I have copied the SimpleExplorer Layout set and I am in the process of Layout customization.
    I want only the DocumentName, Modified Date and Modified By to appear. I have taken out most actions: settings, goto... etc.
    I have been able to get this done,
    The problem is:
    When I include the "ModifiedBy" to the Displayed Properties of the  Collection List Renderer Settings the ModifiedBy field appears but allows a user to Click on it,
    when Clicked a new window opens  with "Users Details".
    The Users Details Window has the following options and we do not need/want this functionality.
    Send E-mail... Create Appointment...
    Show Availability Send Instant Message...
    How do I include the ModifiedBy field for display and sorting but deactivate the Link to the new window "Users Details"
    Thanks for any help,
    Sarah

    Hi BP,
    I just came accross the solution below given by you in another thread.Is this the one I need to do?
    And one more question.I see the "Send Instant message","Create Appointment" and "Show Availability" in the "UserDetailsGroup"
    So is it enough if I remove these 3 command properties from the "UserDetailsGroup"?
    I am using the DiscussionGroupsContributor layoutset.
    BP's SOLUTION:
    Business Card Pop Up Customization (Removing the standard collaboration options)
    Changing the default options available in the Business card Popup, We need to go to
    System Administration->System Configuration->Collaboration->Properties->Command Groups.
    Now edit the three groups which are:
    1. clpGroup
    2. UserDetailsGroup
    3. UserGroup
    Note:
    The above actions require the server to be restarted to make the changes to be effected
    Edited by: Sudha A on Apr 1, 2008 6:28 PM
    Edited by: Sudha A on Apr 1, 2008 6:37 PM
    Edited by: Sudha A on Apr 1, 2008 6:38 PM

Maybe you are looking for

  • Oracle 10g Rel2(10.2.0.3) on Vista ultimate driving me crazy, Please HELP

    Hello Folks and Expert, I am Certified Ora DBA and am stuck, thats a shame I am going to install and Test Oracle 10g on Vista as my future client will use Just Vista and no othr OS, so there is no OTHER OS options, I ready all the documentaiotn and r

  • Skype crashes upon login 7.2

    Hello. I've been having this problem for days and it's been driving me nuts! I've been using Skype for years and have only encountered this problem now. Please help me fix it. I am using Windows 7, and Skype 7.2. I have already tried uninstalling and

  • RGB Curves & Samplers

    What a great addition to have individual RGB curves.  This is a great enhancement to LR's ability to correct color.  Used in concert with the RGB percentages in the histogram window I just did a quick correction and it worked great.  Something I'd lo

  • Is Credit Check Per Line Item in Sales Order  Possible?

    Dear All, Hope you all are doing well !!! Infact i am currently implementing OPM and SCM modules for a CSD (carbonated soft drinks) industry. They have a specific requirement on Credit Management. Please look at the Requirement Below. Credit Manageme

  • To check Condition Supplements entries in tcode ME31K/ME32K

    Dear Friends, My requirement is to put a check on condition type selection and entries of condition supplements for transaction code ME31K/ME32K. First Requirement: For a Contract PO, we have 2 condition types 'P000' and 'ZP00'. Currently it is allow