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 Upload

Former Member
0 Likes
843

Hi! I have a question- Can some one please explain the steps to pick or select the source file from the Application server. This file is the source file for that i have to write a BDC in ABAP in SAP system.

6 REPLIES 6
Read only

Former Member
0 Likes
808

Hi,

Check this links ,

http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3c7f358411d1829f0000e829fbfe/frameset.htm

Regards,

Azaz Ali.

Message was edited by: Azaz Ali

Read only

Manohar2u
Active Contributor
0 Likes
808

Sample links for BDC's

http://www.sap-img.com/abap/learning-bdc-programming.htm

http://www.sap-img.com/bdc.htm

Reading files from application server

Regds

Manohar

Read only

Former Member
0 Likes
808

<b>Thanks All for your rsponses.</b>

May I know how to reward points to those who helped me.

I am new to this forum.

<b>Look forward towards more involvement here. Thanks.</b>Many thanks to Vikram for the code snippet.

Message was edited by: AMIT VERMA

Message was edited by: AMIT VERMA

Message was edited by: AMIT VERMA

Read only

Manohar2u
Active Contributor
0 Likes
808

Amit,

If you think you got what you required. You can close the same, you can reward it you can see the reward options for every reply. Reward the response which helped you.

And close the thread by <b>Problem solved</b>.

Regds

Manohar

Read only

abdul_hakim
Active Contributor
0 Likes
808

hi

welcome to sdn..

if your file is in application server then you need to read it using the below statements

OPEN DATASET

READ DATASET

if your file is in presentation server then you can read it using GUI_UPLOAD.

have a look at the sample program for the same in http://help.sap.com

Cheers,

Abdul Hakim

Read only

Former Member
0 Likes
808

Hi Amit,

Check this code snippet to retrieve Data file from Application server(Upload from Unix)

*Code start

DATA: i_file like rlgrap-filename value '/usr/sap/tmp/file.txt'.

OPEN DATASET i_file FOR INPUT IN TEXT MODE.

IF sy-subrc NE 0.

MESSAGE e999(za) WITH 'Error opening file' i_file.

ENDIF.

DO.

  • Reads each line of file individually

READ DATASET i_file INTO wa_datatab.

  • Perform processing here

  • .....

ENDDO.

*Code end

Cheers,

Vikram

Pls reward for helpful replies!!