03-28-2017 11:53 AM
Hello Experts,
I am adding custom fields to QM12 transaction and I had enhanced structure RQMQMSM
as said in note 370191, now I want to define the field catalog for the newly added custom fields and fill those newly added custom fields. Could you please suggest the best possible way to check the method for filling those newly added fields.
I had already searched SCN and found below link
https://archive.sap.com/discussions/thread/3612810
Thanks,
rg
03-28-2017 1:39 PM
As per my knowledge. You need to add columns in table RQMQMSM in this table. Here append Structure also given.
Simply create what fields you need.
In this include :: MIOLXF14
The field catalog is creating from the below exact points. But i did not remember first point or second point.
but put break point on both functions then open new Debugger then call the Tcode and execute it.Ok
If you observe carefully. Tablename is taking as RQMQMSM Ok. No need to add manullay
03-28-2017 1:42 PM
As suggested by Charan, the fieldcatlog is built based on the structure RQMQMSM. To fill those fields the note suggests to copy the standard report to custom one.
One alternate would be using the customer exit EXIT_SAPLIREP1_001, which gets triggered for PM/QM/CS reports. In this exit you can access the OBJECT_TAB[] from the memory and modify it once the added fields are filled.
Thanks & Regards,
Rakshith Gore
03-28-2017 1:55 PM
To populate the custom fields in RQMQMSM for QM12, I created an Implicit Enhancement at the end of Subroutine TEXT_NACHLESEN_L in Program RQMELL20. The OBJECT_TAB table is the table displayed in the ALV. OBJECT_TAB is typed as an internal table with a header line that includes structure RQMQMSM. I looped through this table in the enhancement and assigned values to my custom fields like object_tab-zzcoord. I didn't have to do anything for the field catalog.
10-29-2019 6:49 PM
I have done the same, but encountering dump when I try to add the fields to the alv output layout. please see my thread:
https://answers.sap.com/questions/12895925/qm12-additional-fields-issue.html