Skip to Content
author's profile photo
Former Member

how look the flat file for CALL Transaction

Hi ABAPERS

i am new for BDC i want to know how the flat file format for call transaction execution.

if any one have sample flat file data for any transaction please send me.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • Best Answer
    Oct 03, 2005 at 11:06 AM

    Hi,

    The file format differ for different transaction. Basically you can have the field in any order. It matters how you upload into SAP. Use the function module GUI_UPLOAD to upload the flat file.

    Please see this sites for more info.

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

    Help with BDCs and flat files.....

    Cheers

    Vinod

    Message was edited by: Vinod C

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 03, 2005 at 11:06 AM

    Hi Rao,

    the preparation of flat file is based on your application,i.e tcode, fields that you fill .etc.,

    Flat file may be a txt file or prn file(Tab delimited or Space delimited ).

    Prepare file with elements of same order and size as you fill it in screen while recording.

    Use Upload function to upload the flat file into internal table.

    In the internal table loop use call transaction for posting row by row data.

    Hope this will help you.

    Reg,

    Viswanath Babu

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 03, 2005 at 11:07 AM

    For call transaction you have to format data in BDCDATA structure . ( See in SE11 structure BDCDATA ). Flat file can be of any format , you have to convert it in your program to a BDCDATA format to do a call transaction.

    Cheers .

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 03, 2005 at 11:12 AM

    file could have any format. the issue is only to read the file in one of your program internal tables and thereafter populating the BDCDATA structure for posting the transaction. Once u load the data from the file into your internal table, its up to you how u handle it.

    rgds,

    PJ

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 03, 2005 at 11:28 AM

    hai,

    first of all for BDC THere are two Formats one is of DAT(tabspace is the delimeter) and the other ASC(where here there wont be any delmeter but the value of each field should be same lenght as taht of its data type )

    once your flat file is ready then

    you can make use of

    1. upload

    2. ws_upload...etc..

    function modules to transfer the data from the flat file to the internal table ( you should declare the internal table of same structure as that of flat file .

    then you should make use of BDCDATA structure to transfer he values of teh fields to teh transaction either through batch input method or call trnsaction method

    any doubts pls return back

    cheers

    Add comment
    10|10000 characters needed characters exceeded