Application Development Blog Posts
Learn and share on deeper, cross technology development topics such as integration and connectivity, automation, cloud extensibility, developing at scale, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member

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

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

  - Add a custom button in the PF-Status

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

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

  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

  a. Create implementation for this Enhancement Section

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.

                                                                           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.


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


Scenario Test:

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

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

3.ALV popup is displayed showing Manufacturer details


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

                        Manufacturer details of Spare Part number.     




1 Comment