Skip to Content
avatar image
Former Member

Regarding BDC

hi,

could u plz clear this problem.

i am uploading data from application server to sap system then i want to upload flat file which is in presentation server i want to up load this file to sap system.

By using the BDC program could u plz explain the logic of this

how to up load this two files one is form presentation and another is from application server with single BDC program

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 09, 2007 at 01:33 PM

    You can use this FM RZL_READ_FILE_LOCAL

    You need to pass the Directory and the file name and the FM will pass you an Internal Table with all the file information -;)

    Works almost like using GUI_UPLOAD but with the app server

    **********************

    To read file from applciation server, you need to use :

    READ DATASET <dsn> INTO <f> [LENGTH <len>].

    Check this example :

    http://help.sap.com/saphelp_webas620/helpdata/en/fc/eb3d42358411d1829f0000e829fbfe/content.htm

    *************************

    Please check this links for sample codes.

    http://www.sapdevelopment.co.uk/file/file_uploadsap.htm

    http://www.sapdevelopment.co.uk/file/file_uptabsap.htm

    http://www.sapdevelopment.co.uk/file/file_updown.htm

    Regards

    Vasu

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 09, 2007 at 01:38 PM

    Using Open Dataset , Read dataset and Close dataset upload file from aplication server then Using FM GUI_UPLOAD upload flat file from presentation server now both files uploaded to SAP internal tables. write the code for BDC.

    Add comment
    10|10000 characters needed characters exceeded