03-05-2019 5:17 AM
Hello ABAP experts,
I would like some information about the execution of a certain flow.
There is a BAdi that validates that certain values have been filled in a transaction. If that value has not been filled, I want to control to transfer to that particular text field on the screen so that the user knows which value is blank.
The field, however, is on a specific tab on the subscreen (the user might be on a different tab while the validation happens) and therefore it becomes necessary to switch to that tab after the validation fails.
Could someone help me by explaining how to navigate to a different tab from the BAdi code itself?
03-05-2019 7:05 AM
Is the actual BADI that you want to use and the transaction secret?
03-05-2019 7:15 AM
Could you provide more information (which BAdI at least)
Nevertheless you could look at PBO of main dynpro and tab dynpro to identify some variables (and form/method to change those) that handle the displayed tab and cursor position and/or a function code to change displayed tab that you could trigger.
03-06-2019 10:35 AM
The BADI is /SCWM/EX_PS_CORE_VALIDATE and the transaction is /scwm/packspec.
03-05-2019 10:12 AM
Sorry, I thought there would be a more generic solution to this.
The BADI is /SCWM/EX_PS_CORE_VALIDATE and the transaction is /scwm/packspec.
03-06-2019 11:12 AM
Hi,
Check the help https://help.sap.com/doc/saphelp_scm70/7.0/ru-RU/17/5bf1b52ba211d2954f0000e8353423/content.htm?no_ca...
Read the stuff about assigning a function code to the tab, with this you can set it active programmatically.
Kind regards, Rob Dielemans