In the accounting document reprogramming program (/EDGE/SII_REPROCESA_DOCS_CONT) a screen enlargement BAdI has been created to be able to add more fields of select-options in the program selection screen. The entered values will be considered as a filter during the execution of the same.
Step 1. Creating the enhancement
Through transaction SE18 we access the enhancement spot /EDGE/ II_MONITOR_REPROCESO. Within it we access the BAdI /EDGE/BADI_SII_MON_REPROCE_ECC and create an implementation of it.
Once created, access the option "Sccreen Implementation" to see the detail of the image and the subscreen area generated. The image corresponding to this extension is number 3. Next to these fields, we can see another two that can be completed called "Program" and "Subscreen" that will indicate how to complete in a later step.
Paso 2. Creating the Function Group
Through transaction SE80 we create a new group of functions and declare a selection subscreen in the corresponding include.
In the subscreen mentioned, you enter the select-options fields to be considered in the dynpro and in the subsequent data selection.
Then, within the aforementioned function group, a new function is created in order to retrieve the values entered in the select-options declared in the subscreen of the function group itself.
In Cockpit BAdIs there is a very similar step-by-step example that can serve as a guide.
Paso 3. Referencing the function group and creating methods in the enhancement
Once the previous steps have been performed, you must reference in the BAdI implementation the function group and subscreen created. The function group always has to have the SAPL * nomenclature when it is indicated as a program.
In the methods of the implementation we will have to program the recovery of the values of the select-options that we have declared and also the filtering using the recovered values.
In Cockpit BAdIs there is a very similar step-by-step example that can serve as a guide.