2007 Apr 05 1:49 PM
Hey,
I want to use the enhacement framework to modify a SAP standard function module (BUA_ADDRESS_F4). The function module is a F4-help. The available F4 fields are hard coded and I want to a add some fields to the F4.
I add an enhancement implemetation at the beginning of the FM and at the end of the FM.
In the beginning enhancement I simply put "IF 1 = 2."
In the ending enhancement " ELSE. CALL FUNCTION own_function ENDIF."
But that seems to be impossible. I get a syntax error on the IF statement.
Is it impossible to open an if statement in the beginning implementation of an enhancement and close the if statement in the ending implementation of the enhancement?
Does anyone has some suggestions
Thanks in advance.
Steven
Hey,
I want to use the enhacement framework to modify a SAP standard function module (BUA_ADDRESS_F4). The function module is a F4-help. The available F4 fields are hard coded and I want to a add some fields to the F4.
I add an enhancement implemetation at the beginning of the FM and at the end of the FM.
In the beginning enhancement I simply put "IF 1 = 2."
In the ending enhancement " ELSE. CALL FUNCTION own_function ENDIF."
But that seems to be impossible. I get a syntax error on the IF statement.
Is it impossible to open an if statement in the beginning implementation of an enhancement and close the if statement in the ending implementation of the enhancement?
Does anyone has some suggestions
Thanks in advance.
Steven
2007 Apr 05 2:02 PM
if your ENDIF statement is outside of ENDFUNCTION system will not accept
All you IF ELSE and ENDIF statement are with in the ENDFUNCTION.
aRs
2007 Apr 05 3:18 PM
aRs,
If and endif statements are nested correctly (both are within the endfunction).
I found a solution for my problem. Instead of placing the SAP code between the IF and ELSE statement and my own code after the ELSE, I place my code in the beginning between an IF and ENDIF. And I use an exit to skip the SAP code.
I'm however still interested in some comments on my first question?
Steven
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |