Hi experts,
I have implemented a BADI in FTR_CREATE tcode(contract creation). The BADI is triggered in save event. Here is the scenario:
Inside the standard program, one standard subroutine (PERFORM generate_number) is called that generates the contract number. After that, my BADI will be triggered to check some validation. Then when the BADI validation fails, user will remain in the contract creation screen to correct the inputted data. Upon the second time the user clicks the save button, the BADI is not triggered anymore because inside the subroutine (PERFORM generate_number) it is checking if the field NUMBER (which contains the contract number) is not blank:
IF number <> space.
exit
ENDIF.
But the field number is not blank anymore because at the first time the user clicked the save button the contract number is generated.
My problem is how can I refresh the number field when validtion fails so that whenever the user clicked the save button the BADI will always be triggered.
Edited by: Marc Ng on Jan 30, 2009 5:30 AM