2009 Apr 21 1:19 PM
Hi Experts,
I want to separate a sentance Shah & Shah Transporter/GJ.1.ER.1234/789 which contain Name,Car No and Lic. No .
Now i want this three in separate variables .
is there any FM which can help.
Thnx.
REGARDS,
Nishit Joshi
Edited by: NISHIT JOSHI on Apr 21, 2009 5:50 PM
2009 Apr 21 1:21 PM
Hi,
Use SPLIT statemnt .
You can split the string at '/' into three parts and then store them in different variables.
Press f1 on split to get syntax details.
Hi Experts,
I want to separate a sentance Shah & Shah Transporter/GJ.1.ER.1234/789 which contain Name,Car No and Lic. No .
Now i want this three in separate variables .
is there any FM which can help.
Thnx.
REGARDS,
Nishit Joshi
Edited by: NISHIT JOSHI on Apr 21, 2009 5:50 PM
2009 Apr 21 1:21 PM
Hi,
Use SPLIT statemnt .
You can split the string at '/' into three parts and then store them in different variables.
Press f1 on split to get syntax details.
2009 Apr 21 1:23 PM
Hi,
Use this
data : w_str type string,
w_name(20),
w_car(10),
w_lic(10).
w_str = Shah & Shah Transporter/GJ.1.ER.1234/789
SPLIT w_str AT '/' INTO w_name,w_car,w_lic.
Regards
Krishna
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |