Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

bdc table control

Former Member
0 Likes
426

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
400

dear cnu,

why you r using BDC u can try for BAPI_VENDOR_CREATE

3 REPLIES 3
Read only

Former Member
0 Likes
400

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

Read only

Former Member
0 Likes
401

dear cnu,

why you r using BDC u can try for BAPI_VENDOR_CREATE

Read only

Former Member
0 Likes
400

dear cnu,

why you r using BDC u can try for BAPI_VENDOR_CREATE