‎2006 Jul 23 4:12 PM
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.
‎2006 Jul 23 4:19 PM
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
‎2006 Jul 23 4:35 PM
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
‎2006 Jul 29 2:09 PM
<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
‎2006 Jul 29 3:55 PM
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
‎2006 Jul 23 4:42 PM
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
‎2006 Jul 23 5:00 PM
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!!