Application Development and Automation 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: 
Read only

Can we add new fields using he T-Code IW64

uzair_1234
Explorer
0 Likes
1,415

Hello All,

I just want detailed info on whether I can add a new field or fields using the t-code iw64 and if yes please answer with an example/ examples for better understanding.

Hello All,

I just want detailed info on whether I can add a new field or fields using the t-code iw64 and if yes please answer with an example/ examples for better understanding.

4 REPLIES 4
Read only

RaymondGiuseppi
Active Contributor
1,338

Did you already look at Enhancement IWOC0004 Change single-level list editing PM/QM/SM ALV settings EXIT_SAPLIREP1_001

Read only

Jeansy
Active Contributor
1,338

Hi,

I checked for you the proposed user-exit IWOC0004 .

This allows you to change several ALV-specific settings including the field catalog. But you do not have direct access to the internal table with the output data. I would suggest the following steps to solve this requirement:

  • Implement an append structure for DDIC-stucture rihaufk_list which is used as basis for internal table OBJECT_TAB in include MIOLXF14.
  • Implement the mentioned user-exit (please check for the report RIQMEL60 which is reponsible for IW64) and check if you need to change the field catalog to add the new field. I guess that this is not needed as SAP seems to build the fieldcat based on the OBJECT_TAB using function module REUSE_ALV_FIELDCATALOG_MERGE. So your additional fields should be included already.
  • You could use dirty assign to access the data of OBJECT_DATA in order to fill you additional fields
ASSIGN ('(RIAUFK20)OBJECT_DATA') TO <lt_data>.
CHECK sy-subrc = 0. LOOP AT <lt_data> ASSIGNING FIELD-SYMBOL(<ls_data>) " Fill the additional fields ENDLOOP.

I hops this helps you as step-by-step guide.

Kind regards
Jens

Read only

0 Likes
1,338

Hello Jens,

Thank you for your answer but i specifically need to know where i can add the new code in the RIQMEL60 to add the new fields using IW64

Read only

Jeansy
Active Contributor
0 Likes
1,338

Hi,

that is exactly what I described for you in my answer.

KR
Jens