SAP BLOG S4 HANA – Debugging Validation Rules (GGB0) in F110 – Automatic Payment Program

SAP Blog

Kayıtlı Üye
Katılım
22 Ara 2017
Mesajlar
1,367
Tepki puanı
7
Puanları
6
Hello and Welcome to my blog post for Debugging Validation Rules in F110 Automatic Payment Program

Introduction:

Validation Rule is a tool where finance consultants can implement control checks at the time of Document Posting / Save as Complete to generate messages (Error/Information/Warning) with out the help of ABAP. They also use the trace function to check whether the validation rules are working as required.

Activate-Trace-GGB0.png


When the document is being posted in FI module, the system shows whether the conditions are “True” or “False”.

Trace-in-FB60-1.png


However, this is not the case in F110 because F110 generates a background job. In this case we should know some basic debugging skills for validation rules.

Break-Point for the Validation Steps:

First we need to identify the Program and Step. You can identify it by select the validation rule and entering “=SHCD” in the T-Code Bar and press Enter.

Find-Program.png


It will take you to the specific ABAP program.

SHCD-Program.png


Now you have to find the step no. for the validation rules. In this case as an example I have used Step No. 1. So within the above program you have to find “G_STEP = ‘001”.

Step-no.-1.png


Double Click on the PERFORM “VALCOND_1ZFI003#001” so that you can go to the specific step.

Condition-Check.png


You may identify the ABAP Logic for the Pre-Requisite that you have entered in the GGB0. You can put a break point here (For E.g. Line No. 39) for the validation check.

Condition-Check-GGB0.png


Execute F110

For Debugging, we don’t need to execute the F110 on immediate basis. We will set a start time and then go to SM37 to check the background job.

F110.png


Execute SM37

Enter JDBG in the T-Code Bar and press Enter

SM37.png


Initially it will take you to the standard program. Then when you press F8, it will take you to the break point that you selected earlier.

Debugging-mode-1.png


On the right hand side in the variable Tab, I have added variable “RES001”. If it is “T” which is true, the validation check is successful. In the program, press “F5” to check the steps.

The above steps will check the validation Pre-Requisites are met or not. You will have to press F5 till you reach Program: GBTFUFI0 / GBTFUFID.

Check.png


If the Pre-Requisites are met, the condition is considered as “TRUE” and it will perform the Check Condition from GGB0. Press F5 to further evaluate the checks.

Conclusion:

Validation Rules are very essential part of a FICO Consultant and it helps the client to implement checks and balances on a FI document.

Hopefully I am able to explain the debugging skills related to subject and I wish that this blog helps other consultants manage the business requirements on their implementation projects.

Best Regards,

Anss Shahid Essani

Okumaya devam et...
 
Üst