cancel
Showing results for 
Search instead for 
Did you mean: 

data not passing programe to sap work flow.

Former Member
0 Kudos

I added coding part , work flow container fields , Key fields and Event attributes. i used FM

SWW_WI_CREATE_VIA_EVENT through mail passing to Business Work Place.

When i am doing Action in Business Workplace mail it is trigaring BOR Object Method.

importing data is not comming.

SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L0S31 { font-style: italic; color: #808080; } .L0S33 { color: #4DA619; } .L0S52 { color: #0000FF; } .L0S55 { color: #800080; } .L0S70 { color: #808080; }

***** Implementation of object type ZPF_NOM *****
include <object>.
begin_data object. " Do not change.. DATA is generated
* only private members may be inserted into structure private
data:
" begin of private,
" to declare private attributes remove comments and
" insert private attributes here ...
" end of private,
begin of key,
pernr1 like pa0105-pernr,
pernr2 like pa0000-pernr,
end of key.
end_data object. " Do not change.. DATA is generated

begin_method process changing container.
data : pernr1 type pa0105-pernr,
pernr2 type pa0000-pernr,
userid1 type sysid,
userid2 type sysid,
gv_ans type char5.

swc_get_element container 'PERNR1' pernr1.
swc_get_element container 'PERNR2' pernr2.
swc_get_element container 'USERID1' userid1.
swc_get_element container 'USERID2' userid2.


break-point.


end_method.

Please help me ... asap

Accepted Solutions (0)

Answers (3)

Answers (3)

bpawanchand
Active Contributor
0 Kudos

Hi Thrimurthulu Abbu,

Adding to the above replies, my other concerns with your code could be

  1. The Business object instantiation would not be successful. Is SY-SUBRC is INITIAL after CREATE_EVENT function module call.

If the event creation failed then couple of reasons could be

  1. What is the data element used for PERNR1 and PERNR2. I assume you might have used PERNR_D like data element where the technical attributes of this data element could be NUMC of length 8. However, in the code you have hard coded the personnel numbers of length each 7 digits. I request you to add a leading ZERO to each of them and try to execute the program.
  2. Secondly when you are populating the lv_objkey you have used RESPECTING BLANKS addition of CONCATENATE statement. Probably you should remove this. Upon try to create the event.
  3. Make sure the container element names are case sensitive so you have to use the same names as defined in the workflow container.
  4. I would recommend to to include a exclusive/ separate COMMIT WORK statement rather to enable the COMIT_WORK EQ ABAP_TRUE in the function module call. This can be done upon sy-subrc value validation.

Thanks

Pavan

former_member186746
Active Contributor
0 Kudos

Hi,

Please check Event --> Workflow binding.

Also check if you have created Event parameters for the event.

Kind regards, Rob Dielemans

sbl
Active Contributor
0 Kudos

Hi

Have you tried to trigger the event trace ?

What about the binding between the workflow event and the workflow ?

Can you show all this ?

Cheers

Stephane