‎2007 Feb 17 4:18 AM
iam uploading data for the tcode XKO1.
i have taken in to one internal table.
now i have to divide the records into 2 internal tables.
one for vendors and one for bank details.
while doing that in flat file if field length is fixed means no problem but
field length varies means then the data is overlapping in another field.
is there any procedure to identify the space or tab. in coding.
any help will be greatly appreciated.
‎2007 Feb 17 9:56 AM
dear cnu,
why you r using BDC u can try for BAPI_VENDOR_CREATE
‎2007 Feb 17 5:33 AM
HI Cnu,
After reading the data, split them at the separator into the internale table.
Loop at UPLOAD_DATA into WA_DATA.
SPLIT WA_DATA
AT SEPERATOR INTO
ITAB-MATNR
ITAB-LIFNR
ITAB-EKORG
ITAB-WERKS.
append itab.
clear wa_data.
endloop.
where declare the separator as :
CONSTANTS: SEPERATOR TYPE X VALUE '09'. "seperator is TAB char
Incase of length issues in the field, you can assign the values to a variable first before transferring to the screen fields.
Regards,
George
Reward points if useful
‎2007 Feb 17 9:56 AM
dear cnu,
why you r using BDC u can try for BAPI_VENDOR_CREATE
‎2007 Feb 17 9:58 AM
dear cnu,
why you r using BDC u can try for BAPI_VENDOR_CREATE