Application Development 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: 

Adding fields in Standard ALV Display for IW38 /39 T-code

0 Kudos

Hi ,

I have a requirement I need to add custom fields in standard ALV Display of  IW38 / IW39 T code.

Any one please tell me the procedure.

Regards,

Ankamma.

12 REPLIES 12

pranay570708
Active Contributor
0 Kudos

Hi,

- Append database table CI_AUFK with your new fields and activate

- Populate your order header fields with data via user-exit, BADI or program

- Append structure RIHAUFK_LIST with exactly the same fields as CI_AUFK and activate

Check below link:

New field List display at IW38 or IW39 when activating screen exit at IW31 Maintenance Order create ...

0 Kudos

Hi Pranay,

The fields which i am going to add can be visible only in  Standard ALV Display, No need to add in IW38 screen, is it possible .

Regards,

Ankamma.

0 Kudos

Yes, it's possible. Don't include this field in screen enhancement.

0 Kudos

Hi Pranay,

Can you please tell me BADI or any enhancement to populate data into custom fields in standard ALV Display, now my fields are displaying in  ALV Display with blank data.

Regards,

Ankamma.

0 Kudos

Try writing your code in Function Exits : EXIT_SAPLCOIH_018 and  EXIT_SAPLCOIH_019 .

Populate structure COCI_AUFK_IMP-<your_fied>.

0 Kudos

Hi pranay,

I tried above two function exits, but debugging does not stop here.

Now my requirement is based on order NO.  i need to display those 3 fields data which is from  Z table.

Those 3 fields data already maintained in Z table against Order No.(Aufnr).

Regards,

Ankamma

0 Kudos

Hi,

Then, pls try below:

In program RIAUFK20 (report for IW38), click 'enhance' button at toolbar, then MUNU->enhancement operation->show implicit enhancement option. create a implicit enhancement.

Look for internal table OBJECT_ITAB fetch logic.Write your logic to fetch custom field data, select fld1 fld2 fld3  from Z-DB, and modify the internal table OBJECT_ITAB before passing it to

'REUSE_ALV_GRID_DISPLAY'.

0 Kudos

Hi Pranay,

Thanks for valuable suggestions, Is Implicit enhancement is the only way to fulfil this requirement?

If so i will go a head with Implicit Enhancement only.

But

As per my  client requirement I need to fulfil this Requirement using Enhancements (Either BADI or exits)Only.

Regards,

Ankamma.

0 Kudos

This message was moderated.

Shubham1
Employee
Employee
0 Kudos

Hello

Please go through this document.

It is a very standard approach.

Shubham

vinita_kasliwal
Active Contributor
0 Kudos

Hi Ankamma

Please check Tcode SMOD  and find the relevant enhancement ID in your case would be Iw*018 I believe and in that exit EXIT_SAPLCOIH_019 can be used to add new fields

The discussion also details the same thing .

Regards

Vinita

jogeswararao_kavala
Active Contributor
0 Kudos

If you have already added the custom fields to CI_AUFK and IW31/IW32 then you will be able to add these fileds to IW38/IW39 with the help of BAdi BADI_EAM_SIGNLELEVEL_LIST .

OR

Go through my detailed post here,  IWO10018: User Fields in Maintenance Order    where it was explained how to take custom fields to IW38 / IW39 in Part4.