Overview:

Spare Part structure list doesn’t have a provision for the users to see the Manufacturer Details.

On the Work Order Component-List screen, the BOM of the PM Assembly can be expanded by clicking on

the structure list button. It will expand the BOM and display all the spare parts (BOM Items), line by line.

However this structure list doesn’t have a provision for the users to see the Manufacturer Details like

Manufacturer, Manufacturer Part Number and Preference number of the spares.

This kind of situation may arise when the business users want to find/pick the right component based on the Manufacturer, Manufacturer Part Number and Preference number.

                 

Requirement:

Display Spare Part Manufacturer details in ALV popup when user selects spare part and click on the display button.

Affected Transactions:

IW31/32/33

Solution Overview:

1. Add a custom button on application toolbar on Component-List tab of IW32.

2. Enhance include MIHIXF83 of program RIIFLO10 to display details in ALV popup.


Step-by-step Solution:

1. Add a custom button on application toolbar on Component-List tab of transaction IW32

Image1.png

Image2.png

Steps to add custom button on this screen


a.Create a custom PF-Status from transaction SE41

  – Copy standard PF-Status MAIN to custom PF-Status ZMAIN

Image3.png

  – Add a custom button in the PF-Status

Image4.png

b.Enhance the method ML_PBO of standard class CL_EAML_REPORTING to add Post Exit method.

  How to enhance standard class, please see

  How to enhancment standard ABAP class | SCN or **************** – Enhancement of a Standard Class 


  This will set the custom PF-Status on IW32-Component-List

Image5.png

  – Add lines of codes in post exit method to set custom PF-Status

Image6.png

  Execute IW32-Component-list and we can see the newly added button on application toolbar as shown in step 1.


2.Enhance include MIHIXF83 of program RIIFLO10 to display Manufacturer details in ALV popup

Image7.png

  a. Create implementation for this Enhancement Section

Image8.png

Create custom include and get manufacturer details from database for selected Spare part number. HIER table has all the spare parts from screen with    selected spare part as SELECTED = Y. Selected spare part number is available in DATA parameter of HIER table, therefore separate it from other data  and  get it into local variable. Pass this spare part number to BMATN of table AMPL and get manufacturer table.

Image9.png

                                                                           OR

Selected spare part number is directly available in STRNO parameter of table HIER based on the configuration or version of SAP, so there is no need to separate the selected spare part number from DATA of HIER, directly pass this number to get manufacturer details from database table. Logic for selection of manufacturer details and displaying in ALV popup remains the same.

Image10.png


  c.Call FM REUSE_ALV_POPUP_TO_SELECT to display internal table as ALV popup

/wp-content/uploads/2016/02/image10_a_890762.png


Scenario Test:

1.Go to Tcode IW32 Component overview and click on List

Image11.png

Expand tree, select spare part and click on custom button Manufacturer Details

Image12.png

3.ALV popup is displayed showing Manufacturer details

Image13.png


Conclusion: IW32-Component screen application toolbar is enhanced to add a custom button and display

                        Manufacturer details of Spare Part number.     




To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

  1. VINAY REDDY

    Hi nimish,

    very useful document,

    thanks for posting.

    one very important thing how do i bookmark this inĀ  new community ,

    there is no bookmark option here.

    regards
    vinay reddy.

    (0) 

Leave a Reply