Professional Documents
Culture Documents
(https://www.erpdb.info/)
SAP General (https://www.erpdb.info/category/sap-general/) Tips & Tricks (https://www.erpdb.info/category/tips-tricks/) Subscribe to ERP Newsletter
3 (https://www.erpdb.info/how-to-modify-the-code-in-quality-or-production-systems/)
STAY CONNECTED!!!
How to modify any code in Quality or Production
without the need for an access key.
(https://facebook.com/erpdb)
(https://twitter.com/erpdb)
Imagine, you are doing a unit test for an object in QA, suddenly a test case fails and oh!
Functional
come onemanagementSales
Material you have to change
and this one line again in
DistributionFinance the development
(FI)Controlling and moveManagement
(CO)Warehouse it to Quality
(WM)Customer Relationship Management (CRM)
toEnterprise
test. ThatPortal
will take definitely
(EP)Industry at least(IS)Knowledge
Solutions 5 minutes toManagement(KM)Master
30 minutes, dependingData
on how your
Management(MDM)Production Planning (PP)
Projectis
system Systems (PS)Quality
configured. ManagementStrategic
How about Enterprise
changing the code Management
directly in quality (SEM)Supplier
and continuingRelationship
the Managemen (SRM)
Supply Chain Management (SCM)Functional Designs
testing. One little suggestion before we proceed with the tutorial, always use this trick only
Technical FAQsArchivesERP
in quality and not in production or it may create chaos. I work on 4.6c and have not used this
Web DynproABAP ProgramsData TransferWorkflowABAP Keywords Ads by
trick in all the other SAP versions. Please try it and let me know your comments.
Stop seeing this ad Why this ad?
Total Subsidy Released
When you click on the change button in quality, you will get a screen like this saying ‘Error in Open
Object Editing’.
https://www.erpdb.info/how-to-modify-the-code-in-quality-or-production-systems/ 1/6
3/11/24, 12:47 AM How to Modify the code in Quality or Production Systems?
Now, we will work out a way to skip this message and make the change to the code. You will
need this handy debugger (https://www.erpdb.info/wp-
content/uploads/2008/03/sapdbinfodebug.sap) to start the debugger from a popup
(https://www.erpdb.info/how-to-debug-from-a-popup/).
Drag the debug tool and place it on the above popup. then, Click Continue or Press Enter.
This will take you into ABAP Debugger. Click on Call stack button –> double click on
Function TRINT_CORR_CHECK.
Now click on Fields button and then set a breakpoint on the line LV_SUBRC = SY-SUBRC (
see image below) after the call to the function module ‘TRINT_CORR_CHECK’.
Press F8 and the code will stop on the line ‘LV_SUBRC = SY-SUBRC’. Double click on SY-
SUBRC and the value must be ’12’ now change the value to ‘0’. Now, press F8 again, this
should bring you back to the editor with change mode. Functional
Material managementSales and DistributionFinance (FI)Controlling (CO)Warehouse Management (WM)Customer Relationship Management (CRM)
Wait, there is an another step to it. Once you edit the code and make the changes and press
Enterprise Portal (EP)Industry Solutions (IS)Knowledge Management(KM)Master Data Management(MDM)Production Planning (PP)
activate. The program
Project Systems will again
(PS)Quality bring you to theEnterprise
ManagementStrategic same window saying (SEM)Supplier
Management ‘Error in Editing
Relationship Managemen (SRM)
Object’
Supply. Chain Management (SCM)Functional Designs
Technical FAQsArchivesERP
Web DynproABAP ProgramsData TransferWorkflowABAP Keywords
https://www.erpdb.info/how-to-modify-the-code-in-quality-or-production-systems/ 2/6
3/11/24, 12:47 AM How to Modify the code in Quality or Production Systems?
Debugging
Execute
Production
Choices
Now, again drag and drop our little Debug Tool (https://www.erpdb.info/wp-
content/uploads/2008/03/sapdbinfodebug.sap). Then click continue or press enter. This
will take you to the ABAP Debugger, well this is a similar code, but it’s a different include so
you have to carry the steps again. Click on Call stack button –> double click on Function
TRINT_CORR_CHECK. Now, you will get a screen like below.
Now, set the break-point at line ‘When 0′. Press F8 and now change the value of SY-SUBRC
from ’12’ to ‘0’.
Press F8(execute) and now the program will going through a set of break-points set by you.
Change the value everytime from ’12’ to ‘0’ and press F8. Finally after three or four execute
sy-subrc changes, the program will finally get activate and you will have the new modified
code available to execute.
Do you know about the syntax ‘INSERT REPORT‘. We can also modify the code using it.
Previous Next
SAP Upgrade.. How to, Tips & Tricks, Documents What is ABAP? (https://www.erpdb.info/what-is-
(https://www.erpdb.info/sap-ecc6-upgrade/) abap-2/)
More Stories
Functional
Material managementSales and DistributionFinance (FI)Controlling (CO)Warehouse Management (WM)Customer Relationship Management (CRM)
Enterprise Portal (EP)Industry Solutions (IS)Knowledge Management(KM)Master Data Management(MDM)Production Planning (PP)
Project Systems (PS)Quality ManagementStrategic Enterprise Management (SEM)Supplier Relationship Managemen (SRM)
Supply Chain Management (SCM)Functional Designs
Technical
SAP General (https://www.erpdb.info/category/sap-general/) FAQsArchivesERP
Web DynproABAP ProgramsData TransferWorkflowABAP Keywords
(https://www.erpdb.info/production-planning-overview-sap-erp/)
Production Planning Overview in SAP ERP (https://www.erpdb.info/production-planning-
overview-sap-erp/)
0 (https://www.erpdb.info/production-planning-overview-sap-erp/)
https://www.erpdb.info/how-to-modify-the-code-in-quality-or-production-systems/ 3/6
3/11/24, 12:47 AM How to Modify the code in Quality or Production Systems?
(https://www.erpdb.info/configure-output-types-sap-sd/)
Configure Output Types in SAP SD (https://www.erpdb.info/configure-output-types-sap-sd/)
0 (https://www.erpdb.info/configure-output-types-sap-sd/)
(https://www.erpdb.info/output-configuration-determination-sap-sd/)
Output Configuration and Determination in SAP SD (https://www.erpdb.info/output-
configuration-determination-sap-sd/)
0 (https://www.erpdb.info/output-configuration-determination-sap-sd/)
Reply (https://www.erpdb.info/how-to-modify-the-code-in-quality-or-production-
systems/?replytocom=549#respond)
If there is a open TR for the object and not yet moved to production, will the changes made
in quality be also moved to production
Reply (https://www.erpdb.info/how-to-modify-the-code-in-quality-or-production-
systems/?replytocom=42757#respond)
No, it won’t.
Reply (https://www.erpdb.info/how-to-modify-the-code-in-quality-or-production-
systems/?replytocom=45780#respond)
Functional
Material managementSales and DistributionFinance (FI)Controlling (CO)Warehouse Management (WM)Customer Relationship Management (CRM)
Enterprise Portal (EP)Industry Solutions (IS)Knowledge Management(KM)Master Data Management(MDM)Production Planning (PP)
Leave a Reply
Project Systems (PS)Quality ManagementStrategic Enterprise Management (SEM)Supplier Relationship Managemen (SRM)
Supply
Your Chain
email Management
address will not be(SCM)Functional Designs
published. Required fields are marked *
Technical FAQsArchivesERP
Web DynproABAP
Comment * ProgramsData TransferWorkflowABAP Keywords
https://www.erpdb.info/how-to-modify-the-code-in-quality-or-production-systems/ 4/6
3/11/24, 12:47 AM How to Modify the code in Quality or Production Systems?
Name * Email *
Website
Post Comment
(https://www.erpdb.info/production-planning-overview-sap-erp/) (https://www.erpdb.info/defining-enterprise-structure-sap-erp/)
Production Planning Overview in SAP ERP Defining Enterprise Structure in SAP ERP
(https://www.erpdb.info/production-planning-overview-sap-erp/) (https://www.erpdb.info/defining-enterprise-structure-sap-erp/)
0 (https://www.erpdb.info/production-planning-overview-sap-erp/) 0 (https://www.erpdb.info/defining-enterprise-structure-sap-erp/)
(https://www.erpdb.info/material-master-overview-sap-erp/) (https://www.erpdb.info/everything-know-purchase-requisition/)
Material Master Overview in SAP ERP (https://www.erpdb.info/material- Everything to Know About Purchase Requisition
master-overview-sap-erp/) (https://www.erpdb.info/everything-know-purchase-requisition/)
0 (https://www.erpdb.info/material-master-overview-sap-erp/) 0 (https://www.erpdb.info/everything-know-purchase-requisition/)
(https://www.erpdb.info/everything-know-purchase-order-processing/)
Everything to know about Purchase Order Processing
(https://www.erpdb.info/everything-know-purchase-order-processing/)
Functional
0 (https://www.erpdb.info/everything-know-purchase-order-processing/)
Material managementSales and DistributionFinance (FI)Controlling (CO)Warehouse Management (WM)Customer Relationship Management (CRM)
Enterprise Portal (EP)Industry Solutions (IS)Knowledge Management(KM)Master Data Management(MDM)Production Planning (PP)
Project Systems (PS)Quality ManagementStrategic Enterprise Management (SEM)Supplier Relationship Managemen (SRM)
Supply Chain Management (SCM)Functional Designs
Technical FAQsArchivesERP
Archives
Web DynproABAP ProgramsData TransferWorkflowABAP Keywords
Select Month
https://www.erpdb.info/how-to-modify-the-code-in-quality-or-production-systems/ 5/6
3/11/24, 12:47 AM How to Modify the code in Quality or Production Systems?
https://www.erpdb.info/how-to-modify-the-code-in-quality-or-production-systems/ 6/6