Capture test data at runtime in standard function modules from SRM to ECC.
In day to day life, we come across situations where we have to debug standard code or transaction codes for different issues from SRM to ECC systems. Being standard code, sometimes it may take days to find exact root cause of the issue. Finally after completing the analysis we may end up saying as data issue, based on the data provided at the time of updating or posting to standard FM’s BAPI_PO_CHANGE or BAPI_PO_CREATE etc... So, it will be useful if we have test data created in those function modules at the time of transaction executed.
Below are the steps to activate test data creation:
Step 1: On ECC, set the parameter FBGENDAT ‘X’ in the backend system for the RFC user of the SRM system.
Step 2: on ECC, execute report FBGENDAT in the mode ‘B’.
Step 3: on SRM, reproduce the issue from start.
Step 4: on ECC, check if a test data record was generated in the function builder.
Step 5: on ECC, deactivate the generation of test data records by deleting the entries in report FBGENDAT and resetting the user parameter.