Application Development 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: 

BDC session

Former Member
0 Kudos

I have a problem relating BDC download.

First I have a file in .txt (with pipes in between the fields) format and wen I uploaded it in Call Transaction, the errors which i asked to download back is in .txt format with space (with space in between the field. Now wen iam trying to upload the error file using BDC session method to correct them foreground!!! in SM35, the records with correct fields are not loading in correct way as there is a change of positions in the FLAT FILE. Can anyone help me out for downloading the errors in the same format so that i can upload the errors in session and then work foreground for the filed values missing. If any code is required plzz help me in this regard. Thanks heaps

4 REPLIES 4

Former Member
0 Kudos

Hi Mukunda,

Why can't you change your file separator for download from SPACE to PIPE.

Regards,

Atish

0 Kudos

how can we download it with pipes... please send me if there is any code for it thanks heaps

Former Member
0 Kudos

Hi Mukunda,

The problem you are getting is obviously because of pipes you are using as separator when uploading and space during downloading.

1. This problem can be solved by using the same separator while uploading and downloading both.

2. Just program it in a way that you dont depend upon the separator as such.

I mean.

a) declare an internal table with just one field text(255) and upload it without separator.

b) Now loop at this table translate pipe into space.

c) split each record into filds at space

d) Now update the record as usual.

This way it works for every thing.

Hope this answers your curiosity.

Award points if useful or get back.

Aleem.

0 Kudos

can you send me some example like a small code where i can upload and download in the same format either in space or pipes. Thanks heaps