cancel
Showing results for 
Search instead for 
Did you mean: 

how to trigging a object event which the object type has two key fields

Former Member
0 Kudos

Hi,kind guys

I use the object type QMSM about qualification notification task,it has two key fiedls,qualification notification number and task number (can display by t-code -QM03), I want to trigging the event 'create' in BOR 'QMSM ' by function SWE_EVENT_CREATE(or SAP_WAPI_event_create), but it only has one object key ,

example:

CALL FUNCTION 'SWE_EVENT_CREATE'

EXPORTING

OBJTYPE = OBJTYPE

OBJKEY = OBJKEY " only one key

EVENT = EVENT

but the BOR object 'QMSM' has two keys,so it cann't be trigged rightly.

thanks for any help.

Accepted Solutions (1)

Accepted Solutions (1)

former_member190818
Active Contributor
0 Kudos

Hi Shawn,

Use the below statement. You must need to concatenate your key fields.

CONCATENATE first-key second-key INTO objkey

and give objkey in yr FM.

Answers (1)

Answers (1)

Former Member
0 Kudos

You have to Concatenate the Business object keys and pass it in one variable OBJKEY.

Thanks

Arghadip