Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Field exit for IW52 tcode

Former Member
0 Likes
1,129

Hello!

We are working on a field exit for a field ANLZU(data element ANLZU) for tcode IW52.

Our requirement : In transaction IW52 when clicked on service order, then tab operations, requirement is to display 'R' in the column SYSTEM CONDITION against the entries in column ACTIVITY after checking certain conditions.

We are getting 'R' for all the activities and not only against the required activities. Also function module DYNP_VALUES_READ reads only the last record i.e the last activity though written in a loop. We have used field STEPL of structure DYNPREAD while reading the activities one after the other. Still we are not able to check the condition for each activity.

We need a solution as how to display R only in a required row.

Seeking solution urgently.

Appropriate points will be awarded.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
938

try one of these exits:

IWOC0001

IWOC0002

IWOC0003

IWOC0004

4 REPLIES 4
Read only

Former Member
0 Likes
939

try one of these exits:

IWOC0001

IWOC0002

IWOC0003

IWOC0004

Read only

Former Member
0 Likes
938

Hi Chandra!

Thanks for your prompt reply.

Customer exits that you are suggesting me to use have a different package(development class) than that of IW52. Can I still use these customer exits? How will I update a screen field using any of these?

Kindly elaborate.

Read only

0 Likes
938

Hi,

These are Enhancement. These you develope in customer namespace. Since these are custom development, you assign them to custom developement class.

The code for calling this user-exit already exist in standard SAP program. Once you implement and ACTIVE the user-exit then only your code in the user-exit will be executed.

For creating any of this user-exit, follow these steps.

- Go to transaction CMOD

- Enter enhancement project name. Let's say "ZSERVORD" and git create button.

- On the next screen enter meaningful description and hit save. When asked, enter your custom "development class" and create a transport request.

- Now on the same screen hit button "enhancement assignment".

- Now enter the enhancement you want to implement, let's say IWOC0002 and hit save button.

- Now hit the component button and then double-click the component you want to implement.

- If it is FM exit, you will have to create a 'Z' include which is already defined in FM. If it is screen exit, you will have to create screen and so on.

- Create this custom component and active it.

- Come back to the first screen of CMOD and hit the "active" button on the top.

Your user-exit implementation is done. It will be called when appropriate code will be executed.

Let me know if you have any other imformation.

Regards,

RS

Read only

Former Member
0 Likes
938

Thanks a ton for your useful suggestions!

I still have a doubt as how to update a field on the sreen using user exit? Do I have to use function module DYNP_UPDATE_FIELDS?