on 09-01-2017 6:15 PM
This code replace first letter only.
PARAMETER P_NAME(10) TYPE C.
REPLACE 'A' WITH 'B' INTO P_NAME.
WRITE P_NAME.
i/p:- ASABAP
o/p:- BSABAP
This code replace all 'A' letters into "B'.
PARAMETER P_NAME(10) TYPE C.
REPLACE ALL OCCURRENCES OF 'A' IN P_NAME WITH 'B'.
WRITE P_NAME.
i/p:- ASABAP
o/p:- BSBBBP
MY requirement is
i/p :- ASABAP
o/p:- ASBBAP
Please, Provide suitable code .
REPLACE 'A' WITH 'B' INTO P_NAME+1.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.