<?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 PROGRAM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/4344578#M1034773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Search in SDN i feel here lots of sample code already available for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Aug 2008 14:43:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-19T14:43:37Z</dc:date>
    <item>
      <title>BDC PROGRAM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/4344575#M1034770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to write BDC program of T.C( BGM2).&lt;/P&gt;&lt;P&gt;Here header fields are : MGANR, GAART , GAERB  &lt;/P&gt;&lt;P&gt;and items fields are : GAKTX , LSTNR, POSNM, SELEK, GAZNA, GAZWE, KZOPR_AND, KLART, CLASS, MWERT,MNAME, PAGPOS, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also I have given the following recording using SHDB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report Z_BGM1&lt;/P&gt;&lt;P&gt;       no standard page heading line-size 255.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include bdcrecx1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform open_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLBG00' '0101'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RBGM00-MGANR'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '/00'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RBGM00-MGANR'&lt;/P&gt;&lt;P&gt;                              'C00002'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLBG00' '1000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=ENTR'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'GBGMK-GAKTX'&lt;/P&gt;&lt;P&gt;                              'Customer Warranty for Small Cars-001'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'GBGMK-GAART'&lt;/P&gt;&lt;P&gt;                              '3'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'GBGMK-GAERB'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'GBGMP-LSTNR(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'GBGMP-LSTNR(01)'&lt;/P&gt;&lt;P&gt;                              'wty_service'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLBG00' '1000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=TAB2'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'GBGMK-GAKTX'&lt;/P&gt;&lt;P&gt;                              'Customer Warranty for Small Cars-001'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'GBGMK-GAART'&lt;/P&gt;&lt;P&gt;                              '3'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'GBGMK-GAERB'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'GBGMP-POSNM(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RBGM00-SELEK(01)'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLBG00' '1000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=ENTR'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'GBGMK-GAKTX'&lt;/P&gt;&lt;P&gt;                              'Customer Warranty for Small Cars-001'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'GBGMK-GAART'&lt;/P&gt;&lt;P&gt;                              '3'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'GBGMK-GAERB'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'GBGMZ-GAZNA(02)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RBGM00-KZOPR_AND'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'GBGMZ-GAZNA(02)'&lt;/P&gt;&lt;P&gt;                              'WTY_PERIOD'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLBG00' '1000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=ENTR'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'GBGMK-GAKTX'&lt;/P&gt;&lt;P&gt;                              'Customer Warranty for Small Cars-001'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'GBGMK-GAART'&lt;/P&gt;&lt;P&gt;                              '3'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'GBGMK-GAERB'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RBGM00-GAZWE(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RBGM00-KZOPR_AND'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RBGM00-GAZWE(01)'&lt;/P&gt;&lt;P&gt;                              '       24000'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLBG00' '1000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=ENTR'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'GBGMK-GAKTX'&lt;/P&gt;&lt;P&gt;                              'Customer Warranty for Small Cars-001'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'GBGMK-GAART'&lt;/P&gt;&lt;P&gt;                              '3'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'GBGMK-GAERB'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RBGM00-GAZWE(02)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RBGM00-KZOPR_AND'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RBGM00-GAZWE(02)'&lt;/P&gt;&lt;P&gt;                              '               18'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLBG00' '1000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=CLZU'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'GBGMK-GAKTX'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'GBGMK-GAKTX'&lt;/P&gt;&lt;P&gt;                              'Customer Warranty for Small Cars-001'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'GBGMK-GAART'&lt;/P&gt;&lt;P&gt;                              '3'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'GBGMK-GAERB'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLCLCA' '0602'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RMCLF-KLART'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=ENTE'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RMCLF-KLART'&lt;/P&gt;&lt;P&gt;                              '039'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLCLFM' '0500'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RMCLF-CLASS(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '/00'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RMCLF-CLASS(01)'&lt;/P&gt;&lt;P&gt;                              'Z_BGM1_CLASS'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLCTMS' '0109'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RCTMS-MWERT(05)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '/00'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RCTMS-MNAME(01)'&lt;/P&gt;&lt;P&gt;                              'Z_VEH_USAGE'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RCTMS-MNAME(02)'&lt;/P&gt;&lt;P&gt;                              'Z_CUST_CATEG'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RCTMS-MNAME(03)'&lt;/P&gt;&lt;P&gt;                              'Z_MODEL_TYPE'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RCTMS-MNAME(04)'&lt;/P&gt;&lt;P&gt;                              'Z_EFF_DT_FROM'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RCTMS-MNAME(05)'&lt;/P&gt;&lt;P&gt;                              'Z_EQMNT_TYPE'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RCTMS-MWERT(01)'&lt;/P&gt;&lt;P&gt;                              '01'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RCTMS-MWERT(02)'&lt;/P&gt;&lt;P&gt;                              '01'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RCTMS-MWERT(03)'&lt;/P&gt;&lt;P&gt;                              '612'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RCTMS-MWERT(04)'&lt;/P&gt;&lt;P&gt;                              '01.01.2008'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RCTMS-MWERT(05)'&lt;/P&gt;&lt;P&gt;                              '01'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLCTMS' '0109'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RCTMS-MNAME(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=BACK'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLCLFM' '0500'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RMCLF-CLASS(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=ENDE'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RMCLF-PAGPOS'&lt;/P&gt;&lt;P&gt;                              '1'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLBG00' '1000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RBGM00-KZOPR_AND'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLBG00' '1000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=BUCH'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'GBGMK-GAKTX'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'GBGMK-GAKTX'&lt;/P&gt;&lt;P&gt;                              'Customer Warranty for Small Cars-001'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'GBGMK-GAART'&lt;/P&gt;&lt;P&gt;                              '3'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'GBGMK-GAERB'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RBGM00-KZOPR_AND'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'BGM1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform close_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So can anybody send me the sample coding for this so that i can proceed my program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2008 14:29:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/4344575#M1034770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-19T14:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: BDC PROGRAM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/4344576#M1034771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sample code??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2008 14:37:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/4344576#M1034771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-19T14:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: BDC PROGRAM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/4344577#M1034772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Plz send me sample code for this so that I can proceed .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2008 14:42:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/4344577#M1034772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-19T14:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: BDC PROGRAM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/4344578#M1034773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Search in SDN i feel here lots of sample code already available for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2008 14:43:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/4344578#M1034773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-19T14:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: BDC PROGRAM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/4344579#M1034774</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;Following is a sample code of handling table control in BDC. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT ZS_BDC5 .
*HANDLING TABLE CONTROL IN BDC
DATA : BEGIN OF IT_DUMMY OCCURS 0,
DUMMY(100) TYPE C,
END OF IT_DUMMY.
DATA : BEGIN OF IT_XK01 OCCURS 0,
LIFNR(10) TYPE C,
BUKRS(4) TYPE C,
EKORG(4) TYPE C,
KTOKK(4) TYPE C,
NAME1(30) TYPE C,
SORTL(10) TYPE C,
LAND1(3) TYPE C,
SPRAS(2) TYPE C,
AKONT(6) TYPE C,
FDGRV(2) TYPE C,
WAERS(3) TYPE C,
END OF IT_XK01,
BEGIN OF IT_BANK OCCURS 0,
BANKS(3) TYPE C,
BANKL(10) TYPE C,
BANKN(10) TYPE C,
KOINH(30) TYPE C,
LIFNR(10) TYPE C,
END OF IT_BANK.
DATA : IT_BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE,
IT_BDCMSGCOLL LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.

CALL FUNCTION 'WS_UPLOAD'
EXPORTING
FILENAME = 'C:\VENDOR.TXT'
FILETYPE = 'ASC'
TABLES
DATA_TAB = IT_DUMMY.

LOOP AT IT_DUMMY.
IF IT_DUMMY-DUMMY+0(2) = '11'.
IT_XK01-LIFNR = IT_DUMMY-DUMMY+2(10).
IT_XK01-BUKRS = IT_DUMMY-DUMMY+12(4).
IT_XK01-EKORG = IT_DUMMY-DUMMY+16(4).
IT_XK01-KTOKK = IT_DUMMY-DUMMY+20(4).
IT_XK01-NAME1 = IT_DUMMY-DUMMY+24(30).
IT_XK01-SORTL = IT_DUMMY-DUMMY+54(10).
IT_XK01-LAND1 = IT_DUMMY-DUMMY+64(3).
IT_XK01-SPRAS = IT_DUMMY-DUMMY+67(2).
IT_XK01-AKONT = IT_DUMMY-DUMMY+69(6).
IT_XK01-FDGRV = IT_DUMMY-DUMMY+75(2).
IT_XK01-WAERS = IT_DUMMY-DUMMY+77(3).
APPEND IT_XK01.
ELSE.
IT_BANK-BANKS = IT_DUMMY-DUMMY+2(3).
IT_BANK-BANKL = IT_DUMMY-DUMMY+5(10).
IT_BANK-BANKN = IT_DUMMY-DUMMY+15(10).
IT_BANK-KOINH = IT_DUMMY-DUMMY+25(30).
IT_BANK-LIFNR = IT_DUMMY-DUMMY+55(10).
APPEND IT_BANK.
ENDIF.
ENDLOOP.

LOOP AT IT_XK01.
REFRESH IT_BDCDATA.
perform bdc_dynpro using 'SAPMF02K' '0100'.
perform bdc_field using 'BDC_CURSOR'
'RF02K-REF_LIFNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RF02K-LIFNR'
IT_XK01-LIFNR.
perform bdc_field using 'RF02K-BUKRS'
IT_XK01-BUKRS.
perform bdc_field using 'RF02K-EKORG'
IT_XK01-EKORG.
perform bdc_field using 'RF02K-KTOKK'
IT_XK01-KTOKK.
perform bdc_dynpro using 'SAPMF02K' '0110'.
perform bdc_field using 'BDC_CURSOR'
'LFA1-TELX1'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFA1-NAME1'
IT_XK01-NAME1.
perform bdc_field using 'LFA1-SORTL'
IT_XK01-SORTL.
perform bdc_field using 'LFA1-LAND1'
IT_XK01-LAND1.
perform bdc_field using 'LFA1-SPRAS'
IT_XK01-SPRAS.
perform bdc_dynpro using 'SAPMF02K' '0120'.
perform bdc_field using 'BDC_CURSOR'
'LFA1-KUNNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0130'.
perform bdc_field using 'BDC_CURSOR'
'LFBK-KOINH(02)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
DATA : FNAM(20) TYPE C,
IDX TYPE C.
MOVE 1 TO IDX.
LOOP AT IT_BANK WHERE LIFNR = IT_XK01-LIFNR.
CONCATENATE 'LFBK-BANKS(' IDX ')' INTO FNAM.
perform bdc_field using FNAM
IT_BANK-BANKS.

CONCATENATE 'LFBK-BANKL(' IDX ')' INTO FNAM.
perform bdc_field using FNAM
IT_BANK-BANKL.

CONCATENATE 'LFBK-BANKN(' IDX ')' INTO FNAM.
perform bdc_field using FNAM
IT_BANK-BANKN.

CONCATENATE 'LFBK-KOINH(' IDX ')' INTO FNAM.
perform bdc_field using FNAM
IT_BANK-KOINH.
IDX = IDX + 1.
ENDLOOP.

perform bdc_dynpro using 'SAPMF02K' '0130'.
perform bdc_field using 'BDC_CURSOR'
'LFBK-BANKS(01)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_dynpro using 'SAPMF02K' '0210'.
perform bdc_field using 'BDC_CURSOR'
'LFB1-FDGRV'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFB1-AKONT'
IT_XK01-AKONT.
perform bdc_field using 'LFB1-FDGRV'
IT_XK01-FDGRV.
perform bdc_dynpro using 'SAPMF02K' '0215'.
perform bdc_field using 'BDC_CURSOR'
'LFB1-ZTERM'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0220'.
perform bdc_field using 'BDC_CURSOR'
'LFB5-MAHNA'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0310'.
perform bdc_field using 'BDC_CURSOR'
'LFM1-WAERS'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFM1-WAERS'
IT_XK01-WAERS.
perform bdc_dynpro using 'SAPMF02K' '0320'.
perform bdc_field using 'BDC_CURSOR'
'WYT3-PARVW(01)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_dynpro using 'SAPLSPO1' '0300'.
perform bdc_field using 'BDC_OKCODE'
'=YES'.
CALL TRANSACTION 'XK01' USING IT_BDCDATA
MODE 'A'
UPDATE 'S'
MESSAGES INTO IT_BDCMSGCOLL.
ENDLOOP.

FORM BDC_DYNPRO USING PROG SCR.
CLEAR IT_BDCDATA.
IT_BDCDATA-PROGRAM = PROG.
IT_BDCDATA-DYNPRO = SCR.
IT_BDCDATA-DYNBEGIN = 'X'.
APPEND IT_BDCDATA.
ENDFORM.

FORM BDC_FIELD USING FNAM FVAL.
CLEAR IT_BDCDATA.
IT_BDCDATA-FNAM = FNAM.
IT_BDCDATA-FVAL = FVAL.
APPEND IT_BDCDATA.
ENDFORM.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Sarada&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 09:16:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/4344579#M1034774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T09:16:12Z</dc:date>
    </item>
  </channel>
</rss>

