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

Maintenance Plan

Hi,

In Maintenace Plan i need the Values of Maintenance plan Cycle..

its storing in table MMPT-ZYKL1 and the value is comming like this 3.1104000000000000E+07 i am dividing by T006-ZAEHL.

Is there any FM to get the values of Maintenance plan Cycle...

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 07:58 AM

    plz send me the solution....

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 08:21 AM

    Hi Mohan,

    try this

    data f1 type f value '3.1104000000000000E+07'.
    data f2(10)  type n.
     
    move f1 to f2.

    Now divide f2 by T006-ZAEHL.

    Regards,

    Satish

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 04, 2007 at 08:24 AM

    Hi,

    Try FM

    *--Call the function module to get the data based on maintenance plan

    CALL FUNCTION 'IWP1_READ_MAINTENANCE_PLAN_DB'

    EXPORTING

    i_warpl = wa_final-warpl

    i_aktyp = space

    IMPORTING

    e_wmpla = wa_wmpla

    TABLES

    tab_wmpos = i_wmpos

    tab_wiloa = i_wiloa

    tab_wmmpt = i_wmmpt

    tab_wmhis = i_wmhis

    tab_wmhio = i_wmhio

    tab_t351p = i_t351

    EXCEPTIONS

    invalid_number = 1

    lvorm_set_for_plan = 2

    plan_not_activ = 3

    lokz_set_for_plan = 4

    number_initial = 5

    OTHERS = 6.

    and to convert the value use FM

    *--Call function module to convert cycle & offset from floating to

    • character

    CALL FUNCTION 'FLTP_CHAR_CONVERSION_FROM_SI'

    EXPORTING

    char_unit = v_unit

    decimals = lc_dec

    fltp_value_si = v_offset

    indicator_value = c_check

    IMPORTING

    char_value = v_cycle

    EXCEPTIONS

    no_unit_given = 1

    unit_not_found = 2

    OTHERS = 3.

    IF sy-subrc <> 0.

    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

    ENDIF.

    Regards,

    Prashant

    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.