on 2007 May 18 2:46 AM
Hi,
I have a flat file which contains date format as MM/DD/YYYY,how to convet this into SAP format YYYYMMDD.
Pls update me..................
Yes... You need update to YYYYMMDD
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is a continuous process,so i have to make permanent solution.
Every time flat file load i have to change the format,so i have written the code as follows:
DATA: BILL_DATE LIKE SY-DATUM,
S1(4) TYPE C,
S2(2) TYPE C,
S3(2) TYPE C.
SPLIT TRAN_STRUCTURE-BILL_DATE AT '/' INTO S1 S2 S3.
CONCATENATE S3 S1 S2 INTO BILL_DATE.
RESULT = BILL_DATE.
User | Count |
---|---|
82 | |
12 | |
10 | |
10 | |
10 | |
9 | |
8 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.