cancel
Showing results for 
Search instead for 
Did you mean: 

IW 31

Former Member
0 Kudos

Hi gurus,

I have an FS where I need to assign a task list to a work order.

I am using User Exit IWO10009.

I need a BAPI or Function Module to modify fields:

Group (source: CAUFVD-PLNNR / CHAR 8).

Group Counter (source: CAUFVD-PLNAL / CHAR 2).

If anyone has any idea, please make me know.

Thanks in advance,

Jay

Edited by: emanuel_sap on Jul 19, 2011 9:33 PM

Edited by: emanuel_sap on Jul 19, 2011 9:35 PM

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Solved

Former Member
0 Kudos

Hi everyone,

The solution to this is the following:

Use cmod to open up user exit EXIT_SAPLCOIH_009.

(IWO10009 "PM Order: Customer Check for 'Save' Event")

and here, in include ZXWOCU07, put this code:

PERFORM FCODE_PLSU(SAPLCOIH). "This form calls User Exit IWO20001

Then, use cmod to open up user exit EXIT_SAPLCOIH_003

(IWO20001 PM order: User exit to pass routing to order).

Here in INCLUDE ZXWOCU03, I entered the follwing code:

SEL_TAB-PLNTY = 'A'. "This is the radio button (A=General List)

SEL_TAB-PLNNR = 'SAFE_INS'. " This is the name of the task list

SEL_TAB-PLNAL = '01'.

APPEND SEL_TAB.

Hope this helps,

Have a great day,

Jay

Edited by: emanuel_sap on Jul 20, 2011 7:40 PM

Former Member
0 Kudos

PeteA,

But user-exit IWO10020 has only structure CAUFVD_IMP as import.

How can I set Group (CAUFVD-PLNNR ) and Group Counter values ( CAUFVD-PLNAL )?

Thanks in advance,

Jay

peter_atkin
Active Contributor
0 Kudos

IN Tcode SMOD, have a look at the Sample Code

PeteA

Former Member
0 Kudos

This is the description from the FS:

This enhancement will enable automatic assignment of a task list to a work order, based on the order type and maintenance activity type combination.

A custom table will be created to store relationship between maintenance activity types and task list that will be automatically assigned to the work order. A customer exit at the work order creation will seek task list on custom table depending on activity type associated to work order, and will attached task list to the work order.

Table:

Column 1: Order Type (source: AUFPAR-PM_AUFART / CHAR 4)

Column 2: Maintenance Activity Type (source: CAUFVD-ILART / CHAR 3)

Column 3: Group (source: CAUFVD-PLNNR / CHAR 😎

Column 4: Group Counter (source: CAUFVD-PLNAL / CHAR 2)

Hope it helps.

Jay

peter_atkin
Active Contributor
0 Kudos

Jay,

As Pushpa suggests, you can use user-exit IWO10020 to do this

PeteA

peter_atkin
Active Contributor
0 Kudos

Jay,

Can you please give more details on how you would expect this to work?

PeteA

Former Member
0 Kudos

Hi,

I am not sure of the FM but have a look at User exit :- IWO10020 Maintenance order: Automatically include task list

regrds

pushpa