Skip to Content
author's profile photo Former Member
Former Member

How to print Maintenance Cycle Text in IW21?

Hi,

I create a work order from transaction IW21 but before saving it I need to access the maintenance cycle text. As the data is not committed to the database hence I am not able to fetch from T351P or T351X tables based on the maintenance strategy and Maintenance package number.

Can anyone please tell me what is the structure field in IW21 transaction which stores Maintenance package number/Maintenance strategy before it is committed to tables?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 29, 2012 at 08:06 AM

    Hi Prashant,

    For fetching Maintenance cycle text while using IW21, please proceed with following logic.

    Select Task List Type (PLNTY), Key for Task List Group( PLNNR), Group Counter (PLNAL), Sequence(PLNFL), Number of the task list node (PLNKN), Maintenance package number (PAKET), Internal counter (ZAEHL) Maintenance strategy (STRAT) based on AFVGD-PLNTY, AFVGD-PLNNAR, AFVGD-PLNAL, AFVGD-PLNKN and LOEKZ NE 'X'.

    As below:

    SELECT

    plnty Task List Type

    plnnr Key for Task List Group

    plnal Group Counter

    plnfl Sequence

    plnkn Number of the task list node

    paket Maintenance Package Number

    zaehl Internal counter

    strat Maintenance strategy

    from table PLWP

    based on

    plnnr Key for Task List Group

    plnal Group Counter

    plnkn Number of the task list node

    loekz Deletion Indicator

    which you will get from the structure AFVGD even when the work order is not SAVED.

    Now after having Maintenance Package Number and Maintenance strategy

    Select Text for maintenance package/cycle (time/performance) (KTEX1) based on Maintenance package number (PAKET), Maintenance strategy(STRAT) from table T351X

    as below:


    SELECT

    KTEX1 Text for maintenance package/cycle

    from

    T351X

    based on

    Maintenance strategy (STRAT)

    and

    Maintenance Package Number (PAKET).

    Pass the Maintenance Cycle Text (KTEX1) where required.


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.