on 02-23-2023 10:58 AM
Dear Experts,
I am new to workflow.
I am triggering BUS2017 Event through BADI and using function module "SAP_WAPI_CREATE_EVENT"
As you can see there are event parameters of MSEG and MKPF in BUS2017 object.
When i pass the MKPF parameter through SWUE its working fine and parameter is passed.
But when using "SAP_WAPI_CREATE_EVENT" , as input container is element - value pair , I am unable to pass
MSEG and MKPF values there.
Can any one guide please how to pass structured or tabled type values in sap_wapi_create_event as parameter of event,
Hi
Or use the more modern form with class
I made a quick and dirty test
REPORT z_bus2017_test.COMMIT WORK. .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello syed_ahmed
I did a little debugging for you. It looks like SAP_WAPI_CREATE_EVENT is not able to handle non-character like structures in event containers. The actual check is done in the CL_SWF_IO_SERVICES->CHECK_STRUCTURE method:
CALL METHOD cl_swf_exp_service=>struct_is_charlike
EXPORTING
structure_ref = l_dref
IMPORTING
is_charlike = l_is_charlike
initial_char_string = l_init_string
num_char_components = l_num_char_comp.
IF l_is_charlike IS INITIAL.
**** Error, this structure is not character-like. It cannot
**** be initialized via a string.
msg_error '120' im_type_name space space space.
EXIT.
ELSE.
You can put a break-point there and check who it is handled in your call to SAP_WAPI_CREATE_EVENT_EXTENDED.
It's a shame though that this problem is not propagated back to SAP_WAPI_CREATE_EVENT log.
At the same time you can create the event and specify its container in SWUE as SWUE does not use SAP_WAPI_CREATE_EVENT. The limitation comes from SAP_WAPI_CREATE_EVENT implementation, not from the event itself.
I guess you have the following options:
I would suggest the last approach.
Best regards
Dominik Tylczynski
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nice catch!
But the OP says it works fine through SWUE, so there should be a way to pass the parameters.
Maybe via parameter IFS_XML_CONTAINER?
Thank you ! Trying this will update when done
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.