This post is a continuation of Security Weaver’s Process Auditor – Developer’s Observations (Part 1)

g. How to Debug the Alert Generation

This section will show where areas of the generated program to focus on in case you need to debug the logic that reads the rules and contols.

As usual, enter /H in tcode to start the debug mode  and ENTER.

/wp-content/uploads/2016/01/926_869031.jpg

/wp-content/uploads/2016/01/927_869032.jpg

/wp-content/uploads/2016/01/928_869036.jpg

… Enter form FCODE_EXECUTE_CONTROL in include /PSYNG/SA_001F01…

Logic that reads the rules and controls
Include /PSYNG/SA_001F01’s form FCODE_EXECUTE_CONTROL contains that the logic that reads the rules and controls…

/wp-content/uploads/2016/01/929_869037.jpg

Logic that calls the Fetch Data Code

Continue to single step to here…

/wp-content/uploads/2016/01/930_869038.jpg

Fetch Code program is called here…

/wp-content/uploads/2016/01/931_869039.jpg

Here are where the parameters are read for the control…..

/wp-content/uploads/2016/01/932_869040.jpg

h. How to Import to a Target Systems

To assign objects to a transport to import Development to a target system, follow the processing steps.

1. Create transport request (manually or in SolMan ChaRM). Manually add the Control program and import into the target system.

/wp-content/uploads/2016/01/933_869041.jpg

2. Now download the Control Matrix files. Please follow the below steps to achieve the same.

a) Go to the source system.

b) Run the transaction /N/PSYNG/PA.  Go to Misc.Tab

c) Click on Upload Download (Backup)

/wp-content/uploads/2016/01/934_869042.jpg

e. Check the Download Radio button.

f. Check all check boxes and specify the file path.

/wp-content/uploads/2016/01/935_869043.jpg

Select EXECUTE to download the files checked.

/wp-content/uploads/2016/01/936_869044.jpg

3. In the Target system,  upload the files. Please follow the below steps:

a) Run the transaction /N/PSYNG/PA.  Go to Misc. Tab

b) Click on Upload Download (Backup)

c) Check the Upload Radio button.

d) Check all check box and specify the file paths that you downloaded to in the source system.

/wp-content/uploads/2016/01/937_869045.jpg

/wp-content/uploads/2016/01/938_869046.jpg

Select EXECUTE.

For some reason, in my Rule Details file, two empty records were created (for reason unknown).This caused an error on the upload.  I edited the file in Notepad to delete the empty records after the download and uploaded the modified file.

To confirm the target system is as expected, check the following areas:
• The tabs
• The user exit(s) (For me, in the target system, I needed to access the screen on the tab Misc, then the entry appeared in the table.)

i. Observations

• When code changes are made, programs and the CODE file need to be downloaded/uploaded.

• By standard, files downloaded/uploaded contain data/values for ALL controls and programs, not just the ones you modified.

j. Additional Controls

For our requirements, the code to process tcodes FB05 and FB50 are had the same ABAP, so I copy/pasted to the new controls. The only differences were the tcodes noted in the control rules and in the variants.

Thank you for reading!  I hope this post will help your developer in your implementation!   If you have any questions or if I missed some details, please let me know and I will update this post.  

Cheers! 

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply