cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow triggered by create on customer infotype

former_member66888
Participant
0 Kudos

Hi,

I have seen a couple of other threads on the topic but could not get a clear concept. First of all, is it simple enough to trigger a workflow when a customer infotype is saved (with lock indicator)?

I have seen the help at <a href="http://help.sap.com/saphelp_47x200/helpdata/en/01/349df7a6e111d1a1dc080009b433a9/frameset.htm">SAP Help</a> and gather that views T777IBO, T779X and V_T588V have to be maintained.

1. I have maintained entry in T588V [Table PA9114 Obj Type PERSDATA]

2. Made entry in T777IBO with key [P 9114 PERSDATA]

3. While maintaining view T777IBO i get the error "No entry in table T777IBO for key P 9114"

4. While maintaining view T588W i get the error "Table in customer name range or invalid for determining the object type"

Can someone please guide me the correct way, perhaps the sequence of above steps is not correct, perhpas they don't have to be maintained at all???

My requriement is to simply be able to trigger a workflow when infotype 9114 is saved with lock indicator.

Thanks and regards,

Zubair Naseer

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

1. Edit > Change release status > Object type component > To implemented

2. Edit > Change release status > Object type > To implemented

3. Object type > Generate

Regards,

Michal

Former Member
0 Kudos

Hi

As Michal has said, implement as he has described.

Then test using the event log (SWEL, SWELS if you haven't switched it on) to ensure your event is being published on the infotype operation. Then build the workflow.

This approach is conservative, but it ensures all the blocks are there before you build. I have been caught before looking for an issue in the workflow which had its cause much earlier in the process.

Regards

Gareth

former_member66888
Participant
0 Kudos

Hi guys,

We have managed to trigger our workflow based on the custom object. Created an event "CreateLockedRecord" and generated an email when the record is created.

So far no programming involved which is a relief

Can anyone tell me if any programming will need to be done? The rest of the scenario is:

1.User creates locked record

2.Based on the personnel sub area (BTRTL) of the pernr, agent will be determined and workitem will be sent to him for unlocking the record.

3.Another agent (this one is static) will get a workitem to create an infotype 15 record.

that is all.

The object we made has a supertype PERSDATA hence a lot of code (990 lines). I was also wondering if i could comment that out.

thanks

Former Member
0 Kudos

Hi Zubair,

You should be OK with T779X. You cannot maintain T588W but this isn't a problem as it is for SAP data only. If your system is 4.0 or later then the 588 tables are deprecated.

Gat your background for workflow from here http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm

Maintain with your infotype, Business Object, update operation (INS, UPD etc) and EVENT.

Now the PERSDATA object will probably not work. You will need to create a business object for your infotype. Best bet is to take a look at ABSENCE as an example of what you need, but follow the methodology given here http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm

When you have finished, start the event log in your client using SWELS and then test. Oh, and the update operations for infotypes are:

INS - Create

UPD - Update

REQ - Create locked

DEL - Delete

RQC - Request Cancelled (Locked Record Deleted)

APP - Unlocked (approved)

Bear in mind there is quite a bit to do here, so start small with keys and a couple of events for your business object, and then enhance in stages, testing at each juncture.

Good Luck

Gareth

former_member66888
Participant
0 Kudos

Hi,

Thanks for the response. i have rewarded points.

Ok, i have created object type Z9114 with supertype PERSDATINT and event CreateLockedRecord. Made entry in T588V and T779X where maintained [Object type P, Infotype 9114, update op. REQ, Sequence 0, Object type Z9114 Event: CREATELOCKEDRECORD].

Now i assume i can start building my workflow. However, while creating workflow template [t-code PFTC_INS], i selected my object type in Triggering events but cannot get any event. When i try to select the event, i get the error "No event defined for object type Z9114."

Is it because the object has not been implemented? How is that done?

Any other tips please?

Thanks

Zubair Naseer