‎2012 Sep 25 11:29 AM
Hi
Actually am reading data from application server so the data is in this format
10B1#M1055#ZADC#AC - 1 Ton Hi Wall split#AC - 1 Ton Hi Wall split#EA#AIR-CON##ACX#1#6000
Now am tyring to split at # and populate to internal table , for this am using
SPLIT WA_FILE (contains data) AT W_TAB_FIELD (#) INTO: WA_MM01-WERKS WA_MM01-MATNR WA_MM01-MTART.
but only WERKS is populated and remaining it is showing blank.
unable to figure it out..Please do help..!
Regards
Vamshi
‎2012 Sep 25 12:27 PM
SPLIT WA_FILE AT CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB INTO: WA_MM01-WERKS WA_MM01-MATNR WA_MM01-MTART.
Try this.
Thanks,
Shambu
‎2012 Sep 25 11:53 AM
Hi,
The syntax for split which you have written is correct. Please check whether the remaining fields are clearing somewhere else.
Keep a break point and check whether the values are populating or not.
Regards,
Kiran
‎2012 Sep 25 12:29 PM
Hi kiran
Am able to get wa_mm01-werks but not getting any values in the remaing fields.
no clear statement is used.
‎2012 Sep 25 12:04 PM
did you upload the file(into app server ) in ASCI format or BINARY format ?
sometimes the space is repalced by a # in Binary format (which is the default value) .
hope this helps.
good luck .
‎2012 Sep 25 12:27 PM
SPLIT WA_FILE AT CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB INTO: WA_MM01-WERKS WA_MM01-MATNR WA_MM01-MTART.
Try this.
Thanks,
Shambu
‎2012 Sep 25 12:31 PM