Using SAP_WAPI_CREATE_EVENT with BOR event parameters

Paul.Bakker@osr.treasury.qld.gov.au Paul.Bakker at osr.treasury.qld.gov.au
Wed Dec 1 16:41:21 EST 2010


Hej Derek,

It's not working because you haven't specified the name of the BOR object
(only the name of the container element, which is arbitrary).

When populating ls_cont-value, you have to supply both the BOR object name
*and* key.

Try creating the same event via SWUE and you'll see how it works.

cheers
Paul Bakker



From:	Derek Cheng <XDECH at dongenergy.dk>
To:	"SAP-WUG at mit.edu" <SAP-WUG at mit.edu>
Date:	02/12/2010 07:23 AM
Subject:	Using SAP_WAPI_CREATE_EVENT with BOR event parameters
Sent by:	sap-wug-bounces at mit.edu



Hi all,

Is that a way to set BOR event parameter on 'input_container' to be used on
SAP_WAPI_CREATE_EVENT?

I have the following code within a CLASS, SAP_WAPI_CREATE_EVENT return '0',
but both BOR objects cannot be seen in the triggered workflow.
* Assign EmpolyeeUser, EmployeeT to container.
  REFRESH lt_cont.
  CLEAR: ls_cont, ls_emp_key.
  ls_emp_key-number = lw_objkey.
  ls_emp_key-validitybegin  = imp_empuser_begin.
  ls_cont-element = 'EMPLOYEEUSER'.
  ls_cont-value = ls_emp_key.
  APPEND ls_cont TO lt_cont.

  CLEAR: ls_cont, ls_emp_key.
  ls_emp_key-number = lw_objkey.
  ls_emp_key-validitybegin  = imp_emptime_begin.
  ls_cont-element = 'EMPLOYEET'.
  ls_cont-value = ls_emp_key.
  APPEND ls_cont TO lt_cont.
  CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
    DESTINATION lw_rfcdest
    EXPORTING
      object_type     = 'BUS1065'
      object_key      = lw_objkey
      event           = 'HIRED'
      commit_work     = 'X'
    IMPORTING
      return_code     = lw_return
    TABLES
      input_container = lt_cont.

Any suggestion?
__________________________________________
Best Regards/Med venlig hilsen/Met vriendelijke groet

Derek Cheng
SAP IS-U/CRM/Workflow Consultant
Mobile: +45 31602028
 _______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug



******************************************************************************************************************************************************

Only an individual or entity who is intended to be a recipient of this e-mail may access or use the information contained in this e-mail or any of its attachments.  Opinions contained in this e-mail or any of its attachments do not necessarily reflect the opinions of Queensland Treasury.

The contents of this e-mail and any attachments are confidential and may be legally privileged and the subject of copyright.  If you have received this e-mail in error, please notify Queensland Treasury immediately and erase all copies of the e-mail and the attachments.  Queensland Treasury uses virus scanning software.  However, it is not liable for viruses present in this e-mail or in any attachment.  

******************************************************************************************************************************************************




More information about the SAP-WUG mailing list