<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: bdc in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2139678#M450570</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following single link should give you a good idea about BDC:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3232531"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Mar 2007 21:35:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-30T21:35:01Z</dc:date>
    <item>
      <title>bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2139672#M450564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please give list of  sample bdc program&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2007 21:15:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2139672#M450564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-29T21:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2139673#M450565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Manoj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please click the below link to see a list of&lt;/P&gt;&lt;P&gt;sample codes for BDCs.&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://www.sap-img.com/bdc.htm"&amp;gt;List of BDC sample codes&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, see the below program...a very simple one to understand the flow..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZSJ_BDC_ROOM_CREATE
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Batch Data Input to create Room for a building.
*&amp;amp;---------------------------------------------------------------------*

report  zlso_bdc_room_create no standard page heading.

type-pools:
    slis.

types:
    begin of t_hrvpv6a                   ,
        stext      type hrvpv6a-stext    ,
        short      type hrvpv6a-short    ,
        relobjsrk1 type hrvpv6a-relobjsrk,
        relobjsrk2 type hrvpv6a-relobjsrk,
        kapz1(5)                         ,
        kapz2(5)                         ,
        kapz3(5)                         ,
        build      type hrvpv6a-build    ,
    end of t_hrvpv6a                     .
data:
    gt_hrvpv6a   type table of t_hrvpv6a     ,
    gs_hrvpv6a   type          t_hrvpv6a     ,
    gt_errorlist type table of t_hrvpv6a     ,
    gs_layout    type slis_layout_alv        ,
    gv_integ     type i                      ,
    gv_filename  type string                 ,
    gt_alsmex    type table of alsmex_tabline,
    gs_alsmex    type          alsmex_tabline,
    gv_title     type sy-title               ,
    nodata       value   '/'                 .

data:
     gt_messtab type table of bdcmsgcoll,
     gt_bdcdata type table of bdcdata   ,
     gs_bdcdata type          bdcdata   .

constants:
    gc_x value 'X',
    gc_pvg1(4) value 'PVG1',
    gc_a       value 'A'   .

selection-screen begin of block b1 with frame title text-001.
parameters:
    p_file type rlgrap-filename                             .
selection-screen end of block b1                            .

at selection-screen on value-request for p_file.
    call function 'WS_FILENAME_GET'
    exporting
        def_filename     = ''
        def_path         = ''
        mask             = ',*.xls.'
        mode             = 'O'
        title            = 'Select upload file'
    importing
        filename         = p_file
    exceptions
        inv_winsys       = 1
        no_batch         = 2
        selection_cancel = 3
        selection_error  = 4
        others           = 5.

at selection-screen.
    if p_file is initial.
        message i000(00) with 'Invalid File'.
        exit.
    else.
*  ***** check if file is existing and not empty
        call function 'GUI_GET_FILE_INFO'
        exporting
            fname          = p_file
        importing
            file_size      = gv_integ
        exceptions
            fileinfo_error = 1
            others         = 2.
        if sy-subrc ne 0 or gv_integ le 0.
            message i000(00) with 'Invalid file'.
            exit.
        else.
            gv_filename = p_file.
        endif.
    endif.

start-of-selection.
" upload function module
    call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
    exporting
        filename                      = p_file
        i_begin_col                   = '1'
        i_begin_row                   = '2'
        i_end_col                     = '8'
        i_end_row                     = '9999'
    tables
        intern                        = gt_alsmex
    exceptions
        inconsistent_parameters       = 1
        upload_ole                    = 2
        others                        = 3            .
    if sy-subrc &amp;lt;&amp;gt; 0.
        message i000(00) with 'Invalid file'.
        leave program.
    endif.            .
    sort gt_alsmex by row.
    clear gv_integ.
    describe table gt_alsmex lines gv_integ.
    check not gv_integ is initial.
    read table gt_alsmex into gs_alsmex index gv_integ.
    gv_integ = gs_alsmex-row.
    data:
        lv_rowno(4) type n.
"   convert the linear data to tabular data
    do gv_integ times.
        lv_rowno = lv_rowno + 1.
        loop at gt_alsmex into gs_alsmex where row = lv_rowno .
            case gs_alsmex-col.
                when '0001'.
                    gs_hrvpv6a-short      = gs_alsmex-value.
                when '0002'.
                    gs_hrvpv6a-stext      = gs_alsmex-value.
                when '0003'.
                    gs_hrvpv6a-relobjsrk1 = gs_alsmex-value.
                when '0004'.
                    gs_hrvpv6a-relobjsrk2 = gs_alsmex-value.
                when '0005'.
                    gs_hrvpv6a-kapz1      = gs_alsmex-value.
                when '0006'.
                    gs_hrvpv6a-kapz2      = gs_alsmex-value.
                when '0007'.
                   gs_hrvpv6a-kapz3      = gs_alsmex-value.
                when '0008'.
                     gs_hrvpv6a-build      = gs_alsmex-value.
            endcase.
        endloop.
        append gs_hrvpv6a to gt_hrvpv6a.
        clear gs_hrvpv6a.
    enddo.

end-of-selection.
    loop at gt_hrvpv6a into gs_hrvpv6a.
        perform bdc_dynpro      using 'SAPLRHV6'               '2900'.
        perform bdc_field       using 'HRVPV6A-SRKBEGDA'       '01.10.2006'.
        perform bdc_field       using 'HRVPV6A-GENERSRK'       ''.
        perform bdc_field       using 'HRVPV6A-ISTAT'          '1'.
        perform bdc_field       using 'BDC_OKCODE'             '=INSE'.

        perform bdc_dynpro      using 'SAPLRHV6'               '6100'.
        perform bdc_field       using 'HRVPV6A-STEXT'          gs_hrvpv6a-stext.
        perform bdc_field       using 'HRVPV6A-SHORT'          gs_hrvpv6a-short.
        perform bdc_field       using 'HRVPV6A-RELOBJSRK(01)'  gs_hrvpv6a-relobjsrk1.
        perform bdc_field       using 'HRVPV6A-RELOBJSRK(02)'  gs_hrvpv6a-relobjsrk2.
        perform bdc_field       using 'HRVPV6A-KAPZ1'          gs_hrvpv6a-kapz1.
        perform bdc_field       using 'HRVPV6A-KAPZ2'          gs_hrvpv6a-kapz2.
        perform bdc_field       using 'HRVPV6A-KAPZ3'          gs_hrvpv6a-kapz3.
        perform bdc_field       using 'BDC_CURSOR'             'HRVPV6A-BUILD'.
        perform bdc_field       using 'HRVPV6A-BUILD'          gs_hrvpv6a-build.
        perform bdc_field       using 'BDC_OKCODE'             '=SAVE'.
        call transaction gc_pvg1 using  gt_bdcdata
                                 mode   gc_a
                                 update gc_a
                                 messages into gt_messtab.
        clear   gt_bdcdata.
    endloop.

    check not gt_messtab is initial.
    gs_layout-colwidth_optimize = gc_x.
    gv_title = 'BDC Error Log'.
    call function 'REUSE_ALV_GRID_DISPLAY'
    exporting
        I_GRID_TITLE        = gv_title
        i_structure_name    = 'BDCMSGCOLL'
        is_layout           = gs_layout
    tables
        t_outtab            = gt_messtab
    exceptions
        program_error       = 1
        others              = 2         .
    if sy-subrc &amp;lt;&amp;gt; 0.
    endif.

*----------------------------------------------------------------------*
*        Start new screen                                              *
*----------------------------------------------------------------------*
form bdc_dynpro using program dynpro.
    clear gs_bdcdata.
    gs_bdcdata-program  = program.
    gs_bdcdata-dynpro   = dynpro.
    gs_bdcdata-dynbegin = 'X'.
    append gs_bdcdata to gt_bdcdata.
endform.
*----------------------------------------------------------------------*
*        Insert field                                                  *
*----------------------------------------------------------------------*
form bdc_field using fnam fval.
    if fval &amp;lt;&amp;gt; nodata.
        clear gs_bdcdata.
        gs_bdcdata-fnam = fnam.
        gs_bdcdata-fval = fval.
        append gs_bdcdata to gt_bdcdata.
    endif.
endform.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Sajan Joseph.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 11:52:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2139673#M450565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-30T11:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2139674#M450566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;chk this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3232531"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 11:54:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2139674#M450566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-30T11:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2139675#M450567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manoj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link for sample bdc program&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/bdc/bdc_ctcode.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/bdc/bdc_ctcode.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link for bdc with table control program&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm" target="test_blank"&gt;http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this weblog for steb by step process to crate simple BDC Program as a template&lt;/P&gt;&lt;P&gt;/people/milind.upasani/blog/2007/03/07/step-by-step-approach-to-ceate-simple-bdc-session-program-using-reusable-template&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 12:02:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2139675#M450567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-30T12:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2139676#M450568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BDC is Batch Data Communication where data is transferred from legacy system to SAP system. Different methods of BDC are &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Call Transaction Method. &lt;/P&gt;&lt;P&gt;2. Session Method &lt;/P&gt;&lt;P&gt;3. Direct Input method. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In all the above methods you have to prepare a flat file containing the data in the required format to be uploaded to the SAP system. You need to call the function ' UPLOAD' to do this. Then the contents of the flat file have to copied to your internal table and then u need to call the transaction through which you want to update the database. You internal table should also have the information relating to the structure BDCDATA which is having the details like the module pool program name, screen no. The basic concept of updating the database is same in all the 3 methods but only the method differs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In session method after the data transfer program is coded, in order to process that particular session you have to go to TC: SM 35 to process the session. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Direct input method have some standard programs that have to executed..... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, to be strong you got to try it out.......and check if it works!!! &lt;/P&gt;&lt;P&gt;And for more details see the links:&lt;/P&gt;&lt;P&gt;/people/milind.upasani/blog/2007/03/07/step-by-step-approach-to-ceate-simple-bdc-session-program-using-reusable-template&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/www.sap-img.com/abap/question-about-bdc-program.htm" target="test_blank"&gt;www.sap-img.com/abap/question-about-bdc-program.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/display/HOME/BDC" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/display/HOME/BDC&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/display/HOME/Data" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/display/HOME/Data&lt;/A&gt;&lt;EM&gt;Transfers&lt;/EM&gt;-&lt;EM&gt;LSMW,&lt;/EM&gt;ALE,+BDC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/fa/097119543b11d1898e0000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/fa/097119543b11d1898e0000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://myweb.dal.ca/hchinni/sap/bdc_home.htm" target="test_blank"&gt;http://myweb.dal.ca/hchinni/sap/bdc_home.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/bdc&amp;amp;" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/bdc&amp;amp;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/learning-bdc-programming.htm" target="test_blank"&gt;http://www.sap-img.com/abap/learning-bdc-programming.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/bdc/bdchome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/bdc/bdchome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm" target="test_blank"&gt;http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/69/c250684ba111d189750000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/69/c250684ba111d189750000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html" target="test_blank"&gt;http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1617808"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1582517"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1274601"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="443433"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For BDC:&lt;/P&gt;&lt;P&gt;&lt;A href="http://myweb.dal.ca/hchinni/sap/bdc_home.htm" target="test_blank"&gt;http://myweb.dal.ca/hchinni/sap/bdc_home.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/bdc&amp;amp;" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/bdc&amp;amp;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/learning-bdc-programming.htm" target="test_blank"&gt;http://www.sap-img.com/abap/learning-bdc-programming.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/bdc/bdchome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/bdc/bdchome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm" target="test_blank"&gt;http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/69/c250684ba111d189750000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/69/c250684ba111d189750000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html" target="test_blank"&gt;http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 12:14:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2139676#M450568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-30T12:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2139677#M450569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think this links will useful to u....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/bdc.htm" target="test_blank"&gt;http://www.sap-img.com/bdc.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://myweb.dal.ca/hchinni/sap/bdc_home.htm" target="test_blank"&gt;http://myweb.dal.ca/hchinni/sap/bdc_home.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/bdc&amp;amp;" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/bdc&amp;amp;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/learning-bdc-programming.htm" target="test_blank"&gt;http://www.sap-img.com/abap/learning-bdc-programming.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/bdc/bdchome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/bdc/bdchome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm" target="test_blank"&gt;http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/69/c250684ba111d189750000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/69/c250684ba111d189750000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html" target="test_blank"&gt;http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 17:26:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2139677#M450569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-30T17:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2139678#M450570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following single link should give you a good idea about BDC:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3232531"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 21:35:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2139678#M450570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-30T21:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2139679#M450571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hiii &lt;/P&gt;&lt;P&gt;given are the standard Interface programs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RFBIKR00- batch input for vendor master&lt;/P&gt;&lt;P&gt;RFBIBLG0 - Generating Report: Batch Input for Documents&lt;/P&gt;&lt;P&gt;RFBIDEG0- Generating Report: Batch Input for Customer Master Data&lt;/P&gt;&lt;P&gt;RFBIDE00-Batch Input Interface for Customers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 12:47:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2139679#M450571</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T12:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2139680#M450572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;sample call transaction&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZRKCALLTRANS                                                *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZRKCALLTRANS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES:MARA,MAKT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        MATNR LIKE MARA-MATNR,&lt;/P&gt;&lt;P&gt;        MBRSH LIKE MARA-MBRSH,&lt;/P&gt;&lt;P&gt;        MTART LIKE MARA-MTART,&lt;/P&gt;&lt;P&gt;        MAKTX LIKE MAKT-MAKTX,&lt;/P&gt;&lt;P&gt;        MEINS LIKE MARA-MEINS,&lt;/P&gt;&lt;P&gt;        MATKL LIKE MARA-MATKL,&lt;/P&gt;&lt;P&gt;        END OF ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_UPLOAD'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   FILENAME                      = 'd:\bdc1.TXT '&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'ASC'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB                      = ITAB.&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;DATA : BDCDATA1 LIKE BDCDATA OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH BDCDATA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*SCREEN 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  BDCDATA1-PROGRAM = 'SAPLMGMM'.&lt;/P&gt;&lt;P&gt;  BDCDATA1-DYNPRO = '60'.&lt;/P&gt;&lt;P&gt;  BDCDATA1-DYNBEGIN = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND BDCDATA1.&lt;/P&gt;&lt;P&gt;  CLEAR BDCDATA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FIELD1:MATNR       MATERIAL NUMBER&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  BDCDATA1-FNAM = 'RMMG1-MATNR'.&lt;/P&gt;&lt;P&gt;  BDCDATA1-FVAL = ITAB-MATNR.&lt;/P&gt;&lt;P&gt;  APPEND BDCDATA1.&lt;/P&gt;&lt;P&gt;  CLEAR BDCDATA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; FIELD2:MBRSH       INDUSTRY SECTOR&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  BDCDATA1-FNAM = 'RMMG1-MBRSH'.&lt;/P&gt;&lt;P&gt;  BDCDATA1-FVAL = ITAB-MBRSH.&lt;/P&gt;&lt;P&gt;  APPEND BDCDATA1.&lt;/P&gt;&lt;P&gt;  CLEAR BDCDATA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; FIELD3:MTAR1       MATERIAL TYPE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  BDCDATA1-FNAM = 'RMMG1-MTART'.&lt;/P&gt;&lt;P&gt;  BDCDATA1-FVAL = ITAB-MTART.&lt;/P&gt;&lt;P&gt;  APPEND BDCDATA1.&lt;/P&gt;&lt;P&gt;  CLEAR BDCDATA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CLICKING RIGHT BUTTON&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  BDCDATA1-FNAM = 'BDC_OKCODE'.&lt;/P&gt;&lt;P&gt;  BDCDATA1-FVAL = '/00'.&lt;/P&gt;&lt;P&gt;  APPEND BDCDATA1.&lt;/P&gt;&lt;P&gt;  CLEAR BDCDATA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SCREEN 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  BDCDATA1-PROGRAM = 'SAPLMGMM'.&lt;/P&gt;&lt;P&gt;  BDCDATA1-DYNPRO = '0070'.&lt;/P&gt;&lt;P&gt;  BDCDATA1-DYNBEGIN = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND BDCDATA1.&lt;/P&gt;&lt;P&gt;  CLEAR BDCDATA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SELECTING AND CLICKING BASICDATA1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  BDCDATA1-FNAM = 'MSICHTAUSW-KZSEL(01)'.&lt;/P&gt;&lt;P&gt;  BDCDATA1-FVAL = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND BDCDATA1.&lt;/P&gt;&lt;P&gt;  CLEAR bdcdata1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CLICKING ENTER BUTTON&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  BDCDATA1-FNAM = 'BDC_OKCODE'.&lt;/P&gt;&lt;P&gt;  BDCDATA1-FVAL = '=ENTR'.&lt;/P&gt;&lt;P&gt;  APPEND BDCDATA1.&lt;/P&gt;&lt;P&gt;  CLEAR BDCDATA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SCREEN 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  BDCDATA1-PROGRAM = 'SAPLMGMM'.&lt;/P&gt;&lt;P&gt;  BDCDATA1-DYNBEGIN = '4004'.&lt;/P&gt;&lt;P&gt;  BDCDATA1-DYNBEGIN = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND BDCDATA1.&lt;/P&gt;&lt;P&gt;  CLEAR BDCDATA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ENTERING MATERIAL DESCRIPTION =COCOCOLA&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  BDCDATA1-FNAM = 'MAKT-MAKTX'.&lt;/P&gt;&lt;P&gt;  BDCDATA1-FVAL =  ITAB-MAKTX.&lt;/P&gt;&lt;P&gt;  APPEND BDCDATA1.&lt;/P&gt;&lt;P&gt;  CLEAR BDCDATA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ENTERING BASIC UNIT OF MEASURE = BT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  BDCDATA1-FNAM = 'MARA-MEINS'.&lt;/P&gt;&lt;P&gt;  BDCDATA1-FVAL = ITAB-MEINS.&lt;/P&gt;&lt;P&gt;  APPEND BDCDATA1.&lt;/P&gt;&lt;P&gt;  CLEAR BDCDATA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ENTERING MATERIAL GROUP = 02004&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  BDCDATA1-FNAM = 'MARA-MATKL'.&lt;/P&gt;&lt;P&gt;  BDCDATA1-FVAL = ITAB-MATKL.&lt;/P&gt;&lt;P&gt;  APPEND BDCDATA1.&lt;/P&gt;&lt;P&gt;  CLEAR BDCDATA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CLICKING SAVE BUTTON&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; BDCDATA1-FNAM = 'BDC_OKCODE'.&lt;/P&gt;&lt;P&gt; BDCDATA1-FVAL = '=BU'.&lt;/P&gt;&lt;P&gt; APPEND BDCDATA1.&lt;/P&gt;&lt;P&gt; CLEAR BDCDATA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL TRANSACTION 'MM01' USING BDCDATA1 MODE 'A' UPDATE 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;sample session method&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZSAG_BS                                                     *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZSAG_BS .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********TABLES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : MARA,MAKT .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******INTERNAL TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF ITAB OCCURS 0 ,&lt;/P&gt;&lt;P&gt;MATNR LIKE MARA-MATNR,&lt;/P&gt;&lt;P&gt;MBRSH LIKE MARA-MBRSH,&lt;/P&gt;&lt;P&gt;MTART  LIKE MARA-MTART ,&lt;/P&gt;&lt;P&gt;MAKTX LIKE MAKT-MAKTX,&lt;/P&gt;&lt;P&gt;MEINS LIKE MARA-MEINS ,&lt;/P&gt;&lt;P&gt;END OF ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BDCTAB LIKE BDCDATA OCCURS 0 WITH HEADER LINE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********WS_UPLOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_UPLOAD'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   FILENAME                      = 'C:\DAT1.TXT'&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'DAT'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB                      = ITAB .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****************BDC_OPEN_GROUP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BDC_OPEN_GROUP'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   CLIENT                    = SY-MANDT&lt;/P&gt;&lt;P&gt;   GROUP                     = 'CHANDU'&lt;/P&gt;&lt;P&gt;   KEEP                      = 'X'&lt;/P&gt;&lt;P&gt;   USER                      =  SY-UNAME&lt;/P&gt;&lt;P&gt;   PROG                      = SY-CPROG .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT ITAB .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   REFRESH  BDCTAB .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********FIRST SCREEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDCTAB-PROGRAM = 'SAPLMGMM'.&lt;/P&gt;&lt;P&gt;BDCTAB-DYNPRO =  '0060'.&lt;/P&gt;&lt;P&gt;BDCTAB-DYNBEGIN   = 'X' .&lt;/P&gt;&lt;P&gt;APPEND  BDCTAB .&lt;/P&gt;&lt;P&gt;CLEAR  BDCTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDCTAB-FNAM = 'RMMG1-MATNR' .&lt;/P&gt;&lt;P&gt;BDCTAB-FVAL = ITAB-MATNR .&lt;/P&gt;&lt;P&gt;APPEND  BDCTAB .&lt;/P&gt;&lt;P&gt;CLEAR  BDCTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDCTAB-FNAM = 'RMMG1-MBRSH' .&lt;/P&gt;&lt;P&gt;BDCTAB-FVAL = ITAB-MBRSH .&lt;/P&gt;&lt;P&gt;APPEND  BDCTAB .&lt;/P&gt;&lt;P&gt;CLEAR  BDCTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDCTAB-FNAM = 'RMMG1-MTART' .&lt;/P&gt;&lt;P&gt;BDCTAB-FVAL = ITAB-MTART .&lt;/P&gt;&lt;P&gt;APPEND  BDCTAB .&lt;/P&gt;&lt;P&gt;CLEAR  BDCTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDCTAB-FNAM = 'BDC_OKCODE'.&lt;/P&gt;&lt;P&gt;BDCTAB-FVAL = '=AUSW' .&lt;/P&gt;&lt;P&gt;APPEND  BDCTAB .&lt;/P&gt;&lt;P&gt;CLEAR  BDCTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********SECOND SCREEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDCTAB-PROGRAM = 'SAPLMGMM'.&lt;/P&gt;&lt;P&gt;BDCTAB-DYNPRO =  '0070'.&lt;/P&gt;&lt;P&gt;BDCTAB-DYNBEGIN   = 'X' .&lt;/P&gt;&lt;P&gt;APPEND  BDCTAB .&lt;/P&gt;&lt;P&gt;CLEAR  BDCTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDCTAB-FNAM = 'MSICHTAUSW-KZSEL(01)' .&lt;/P&gt;&lt;P&gt;BDCTAB-FVAL = 'X' .&lt;/P&gt;&lt;P&gt;APPEND  BDCTAB .&lt;/P&gt;&lt;P&gt;CLEAR  BDCTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDCTAB-FNAM = 'BDC_OKCODE'.&lt;/P&gt;&lt;P&gt;BDCTAB-FVAL = '=ENTR' .&lt;/P&gt;&lt;P&gt;APPEND  BDCTAB .&lt;/P&gt;&lt;P&gt;CLEAR  BDCTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***************THIRD SCREEN&lt;/P&gt;&lt;P&gt;BDCTAB-PROGRAM = 'SAPLMGMM'.&lt;/P&gt;&lt;P&gt;BDCTAB-DYNPRO =  '4004'.&lt;/P&gt;&lt;P&gt;BDCTAB-DYNBEGIN   = 'X' .&lt;/P&gt;&lt;P&gt;APPEND  BDCTAB .&lt;/P&gt;&lt;P&gt;CLEAR  BDCTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDCTAB-FNAM = 'MAKT-MAKTX' .&lt;/P&gt;&lt;P&gt;BDCTAB-FVAL =  ITAB-MAKTX.&lt;/P&gt;&lt;P&gt;APPEND  BDCTAB .&lt;/P&gt;&lt;P&gt;CLEAR  BDCTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDCTAB-FNAM = 'MARA-MEINS'.&lt;/P&gt;&lt;P&gt;BDCTAB-FVAL =  ITAB-MEINS .&lt;/P&gt;&lt;P&gt;APPEND  BDCTAB .&lt;/P&gt;&lt;P&gt;CLEAR  BDCTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDCTAB-FNAM = 'BDC_OKCODE'.&lt;/P&gt;&lt;P&gt;BDCTAB-FVAL = '=BU' .&lt;/P&gt;&lt;P&gt;APPEND  BDCTAB .&lt;/P&gt;&lt;P&gt;CLEAR  BDCTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BDC_INSERT'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   TCODE                  = 'MM01'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DYNPROTAB              =  BDCTAB  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BDC_CLOSE_GROUP' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;sample code with both methods in same program&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;EMPID LIKE ZNNR-EMPID,&lt;/P&gt;&lt;P&gt;EMPNAME LIKE ZNNR-EMPNAME,&lt;/P&gt;&lt;P&gt;EMPADR LIKE ZNNR-EMPADR,&lt;/P&gt;&lt;P&gt;END OF ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;FILENAME = 'C:\NARESH\NARESH.TXT'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FILETYPE = 'ASC'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;HAS_FIELD_SEPARATOR = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;HEADER_LENGTH = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;READ_BY_LINE = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DAT_MODE = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CODEPAGE = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IGNORE_CERR = ABAP_TRUE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;REPLACEMENT = '#'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CHECK_BOM = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;VIRUS_SCAN_PROFILE =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NO_AUTH_CHECK = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FILELENGTH =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;HEADER =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;DATA_TAB = ITAB&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;FILE_OPEN_ERROR = 1&lt;/P&gt;&lt;P&gt;FILE_READ_ERROR = 2&lt;/P&gt;&lt;P&gt;NO_BATCH = 3&lt;/P&gt;&lt;P&gt;GUI_REFUSE_FILETRANSFER = 4&lt;/P&gt;&lt;P&gt;INVALID_TYPE = 5&lt;/P&gt;&lt;P&gt;NO_AUTHORITY = 6&lt;/P&gt;&lt;P&gt;UNKNOWN_ERROR = 7&lt;/P&gt;&lt;P&gt;BAD_DATA_FORMAT = 8&lt;/P&gt;&lt;P&gt;HEADER_NOT_ALLOWED = 9&lt;/P&gt;&lt;P&gt;SEPARATOR_NOT_ALLOWED = 10&lt;/P&gt;&lt;P&gt;HEADER_TOO_LONG = 11&lt;/P&gt;&lt;P&gt;UNKNOWN_DP_ERROR = 12&lt;/P&gt;&lt;P&gt;ACCESS_DENIED = 13&lt;/P&gt;&lt;P&gt;DP_OUT_OF_MEMORY = 14&lt;/P&gt;&lt;P&gt;DISK_FULL = 15&lt;/P&gt;&lt;P&gt;DP_TIMEOUT = 16&lt;/P&gt;&lt;P&gt;OTHERS = 17&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BDC_OPEN_GROUP'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;CLIENT = SY-MANDT&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DEST = FILLER8&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;GROUP = 'NARESH'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;HOLDDATE = FILLER8&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;KEEP = 'X'&lt;/P&gt;&lt;P&gt;USER = SY-UNAME&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;RECORD = FILLER1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PROG = SY-CPROG&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;QID =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;CLIENT_INVALID = 1&lt;/P&gt;&lt;P&gt;DESTINATION_INVALID = 2&lt;/P&gt;&lt;P&gt;GROUP_INVALID = 3&lt;/P&gt;&lt;P&gt;GROUP_IS_LOCKED = 4&lt;/P&gt;&lt;P&gt;HOLDDATE_INVALID = 5&lt;/P&gt;&lt;P&gt;INTERNAL_ERROR = 6&lt;/P&gt;&lt;P&gt;QUEUE_ERROR = 7&lt;/P&gt;&lt;P&gt;RUNNING = 8&lt;/P&gt;&lt;P&gt;SYSTEM_LOCK_ERROR = 9&lt;/P&gt;&lt;P&gt;USER_INVALID = 10&lt;/P&gt;&lt;P&gt;OTHERS = 11&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH BDCDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM BDC_DYNPRO USING 'ZNNR_MODULE' '0100'.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'ZNNR-EMPADR'.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'=CRT'.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD USING 'ZNNR-EMPID'&lt;/P&gt;&lt;P&gt;ITAB-EMPID.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD USING 'ZNNR-EMPNAME'&lt;/P&gt;&lt;P&gt;ITAB-EMPNAME.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD USING 'ZNNR-EMPADR'&lt;/P&gt;&lt;P&gt;ITAB-EMPADR.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PERFORM BDC_TRANSACTION USING 'ZNNC'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BDC_INSERT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;TCODE = 'ZNNC'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;POST_LOCAL = NOVBLOCAL&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PRINTING = NOPRINT&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SIMUBATCH = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CTUPARAMS = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;DYNPROTAB = BDCDATA&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;INTERNAL_ERROR = 1&lt;/P&gt;&lt;P&gt;NOT_OPEN = 2&lt;/P&gt;&lt;P&gt;QUEUE_ERROR = 3&lt;/P&gt;&lt;P&gt;TCODE_INVALID = 4&lt;/P&gt;&lt;P&gt;PRINTING_INVALID = 5&lt;/P&gt;&lt;P&gt;POSTING_INVALID = 6&lt;/P&gt;&lt;P&gt;OTHERS = 7&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BDC_CLOSE_GROUP'&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;NOT_OPEN = 1&lt;/P&gt;&lt;P&gt;QUEUE_ERROR = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'SESSION CREATED SUCCESSFULLY'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM BDC_DYNPRO USING PROGRAM DYNPRO.&lt;/P&gt;&lt;P&gt;CLEAR BDCDATA.&lt;/P&gt;&lt;P&gt;BDCDATA-PROGRAM = PROGRAM.&lt;/P&gt;&lt;P&gt;BDCDATA-DYNPRO = DYNPRO.&lt;/P&gt;&lt;P&gt;BDCDATA-DYNBEGIN = 'X'.&lt;/P&gt;&lt;P&gt;APPEND BDCDATA.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM BDC_FIELD USING FNAM FVAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IF FVAL &amp;lt;&amp;gt; NODATA.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CLEAR BDCDATA.&lt;/P&gt;&lt;P&gt;BDCDATA-FNAM = FNAM.&lt;/P&gt;&lt;P&gt;BDCDATA-FVAL = FVAL.&lt;/P&gt;&lt;P&gt;APPEND BDCDATA.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;srinivas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*&lt;STRONG&gt;reward for useful answers&lt;/STRONG&gt;*&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 13:34:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2139680#M450572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T13:34:06Z</dc:date>
    </item>
  </channel>
</rss>

