<?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 problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-problem/m-p/5145590#M1192487</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Your issue can be resolved in this way.&lt;/P&gt;&lt;P&gt;You have various modes for call transaction to execute.&lt;/P&gt;&lt;P&gt;Mode 'A' --- All screen mode where you get to navigate every screen through out the transaction.&lt;/P&gt;&lt;P&gt;Mode 'E' --- The transaction stops only when a error message is encountered, when resolved at that screen, process continuous to other screens.&lt;/P&gt;&lt;P&gt;Mode 'N' --- This is no screen mode, this is similar to back ground processing of the BDC program, you get no screens to see, after all the navigation is done you get to know the status of execution, whether processed completely or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case better capture all your messages into a internal table of type ddic structure BDCMSGCOLL by using addition statement messages into t_message--- where t_message type table of BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;use format_message FM to format the content of t_message and display all the messages in the basic list to know the status of transaction whether completely processed or stopped due to any error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sharath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Feb 2009 04:24:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-08T04:24:16Z</dc:date>
    <item>
      <title>Bdc program problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-problem/m-p/5145589#M1192486</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 am want to know is it possible to have Call Transaction having back ground processing? I had tried it but it is not working. &lt;/P&gt;&lt;P&gt;plzz provide me guiedlines to solve this problem by giving example of it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Feb 2009 03:47:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-problem/m-p/5145589#M1192486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-08T03:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Bdc program problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-problem/m-p/5145590#M1192487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Your issue can be resolved in this way.&lt;/P&gt;&lt;P&gt;You have various modes for call transaction to execute.&lt;/P&gt;&lt;P&gt;Mode 'A' --- All screen mode where you get to navigate every screen through out the transaction.&lt;/P&gt;&lt;P&gt;Mode 'E' --- The transaction stops only when a error message is encountered, when resolved at that screen, process continuous to other screens.&lt;/P&gt;&lt;P&gt;Mode 'N' --- This is no screen mode, this is similar to back ground processing of the BDC program, you get no screens to see, after all the navigation is done you get to know the status of execution, whether processed completely or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case better capture all your messages into a internal table of type ddic structure BDCMSGCOLL by using addition statement messages into t_message--- where t_message type table of BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;use format_message FM to format the content of t_message and display all the messages in the basic list to know the status of transaction whether completely processed or stopped due to any error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sharath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Feb 2009 04:24:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-problem/m-p/5145590#M1192487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-08T04:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Bdc program problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-problem/m-p/5145591#M1192488</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;EX:&lt;/P&gt;&lt;P&gt;DATA:t_opt type CTU_PARAMS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T_opt-DISMODE = 'E/N'. -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;&amp;gt;E&lt;DEL&gt;ERROR ONLY DISPLAY / N&lt;/DEL&gt;No display mode&lt;/P&gt;&lt;P&gt;T_opt-defsize = 'X'.&lt;/P&gt;&lt;P&gt;t_opt-updmode = 'S'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call Transaction 'XX' using BDCTABLE Options T_opt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using N mode Processing will be done in back ground,&lt;/P&gt;&lt;P&gt;Using E SCREEN will be displayed when Error Occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can also schedule the program in backgroung job using Tcode:SM36&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will resolve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Feb 2009 04:27:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-problem/m-p/5145591#M1192488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-08T04:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Bdc program problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-problem/m-p/5145592#M1192489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Do F1 on call transaction, and look at the additions...&lt;/P&gt;&lt;P&gt;you get a clear picture.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj Kumar P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 04:47:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-problem/m-p/5145592#M1192489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T04:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Bdc program problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-problem/m-p/5145593#M1192490</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;Call transaction 'TCODE' using bdcsteps mode 'N'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will do processing in the background.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 04:56:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-problem/m-p/5145593#M1192490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T04:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Bdc program problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-problem/m-p/5145594#M1192491</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 am displaying the code and i this i am able to use  error handling and mode in back gorund processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plzz provide me guidelines how to do this:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ZBDC_MB1B&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;data: begin of record OCCURS 0,&lt;/P&gt;&lt;P&gt;      WERKS_001(004),     "Plant&lt;/P&gt;&lt;P&gt;      MATNR_002(018),     "ItemId&lt;/P&gt;&lt;P&gt;      ERFMG_003(013),     "Quantity in Unit of Entry&lt;/P&gt;&lt;P&gt;      ERFME_004(003),     "Unit of Entry&lt;/P&gt;&lt;P&gt;      LGORT_005(004),     "Storage Location&lt;/P&gt;&lt;P&gt;      CHARG_006(010),     "BatchId&lt;/P&gt;&lt;P&gt;      KDAUF_007(010),     "Sales Order Number&lt;/P&gt;&lt;P&gt;      KDPOS_008(006),     "Item Number in Sales Order&lt;/P&gt;&lt;P&gt;      end of record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : P_FILNAM LIKE RLGRAP-FILENAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  initialization.&lt;/P&gt;&lt;P&gt;  CTUMODE = 'A'.&lt;/P&gt;&lt;P&gt;  CUPDATE = 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILNAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'WS_FILENAME_GET'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     MASK                   = ',. '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     MODE                   = 'O'&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;     FILENAME                 = P_FILNAM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     INV_WINSYS             = 1&lt;/P&gt;&lt;P&gt;     NO_BATCH               = 2&lt;/P&gt;&lt;P&gt;     SELECTION_CANCEL       = 3&lt;/P&gt;&lt;P&gt;     SELECTION_ERROR        = 4&lt;/P&gt;&lt;P&gt;     OTHERS                 = 5&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&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; CALL FUNCTION 'WS_UPLOAD'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     FILENAME                      = P_FILNAM&lt;/P&gt;&lt;P&gt;     FILETYPE                      = 'DAT'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      DATA_TAB                     = RECORD&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     CONVERSION_ERROR              = 1&lt;/P&gt;&lt;P&gt;     FILE_OPEN_ERROR               = 2&lt;/P&gt;&lt;P&gt;     FILE_READ_ERROR               = 3&lt;/P&gt;&lt;P&gt;     INVALID_TYPE                  = 4&lt;/P&gt;&lt;P&gt;     NO_BATCH                      = 5&lt;/P&gt;&lt;P&gt;     UNKNOWN_ERROR                 = 6&lt;/P&gt;&lt;P&gt;     INVALID_TABLE_WIDTH           = 7&lt;/P&gt;&lt;P&gt;     GUI_REFUSE_FILETRANSFER       = 8&lt;/P&gt;&lt;P&gt;     CUSTOMER_ERROR                = 9&lt;/P&gt;&lt;P&gt;     NO_AUTHORITY                  = 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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; ENDIF.&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 RECORD.&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;  BEGIN OF SCREEN 1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*********************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMM07M' '0400'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RM07M-SOBKZ'.&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 'RM07M-BWARTWA'&lt;/P&gt;&lt;P&gt;                              '411'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RM07M-SOBKZ'&lt;/P&gt;&lt;P&gt;                              'E'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RM07M-WERKS'&lt;/P&gt;&lt;P&gt;                              RECORD-WERKS_001.             "Plant&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'XFULL'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RM07M-WVERS2'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;*********************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BEGIN OF SCREEN 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*********************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMM07M' '0421'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'MSEG-CHARG(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 'MSEG-MATNR(01)'&lt;/P&gt;&lt;P&gt;                              RECORD-MATNR_002.             "ITEMID&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MSEG-ERFMG(01)'&lt;/P&gt;&lt;P&gt;                              RECORD-ERFMG_003.             "QTY.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MSEG-ERFME(01)'&lt;/P&gt;&lt;P&gt;                              RECORD-ERFME_004.             "UOM&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MSEG-LGORT(01)'&lt;/P&gt;&lt;P&gt;                              RECORD-LGORT_005.             "ST.LOC&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MSEG-CHARG(01)'&lt;/P&gt;&lt;P&gt;                              RECORD-CHARG_006.             "BATCHID&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MSEGK-MAT_KDAUF'&lt;/P&gt;&lt;P&gt;                              RECORD-KDAUF_007.             "S.O.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MSEGK-MAT_KDPOS'&lt;/P&gt;&lt;P&gt;                              RECORD-KDPOS_008.             "S.O.LINE ITEM&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'DKACB-FMORE'&lt;/P&gt;&lt;P&gt;                              'X'.&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;  BEGIN OF SCREEN 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*********************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLKACB' '0002'.&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 'DKACB-FMORE'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLKACB' '0002'.&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_dynpro      using 'SAPMM07M' '0421'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'MSEG-ERFMG(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=BU'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'DKACB-FMORE'&lt;/P&gt;&lt;P&gt;                              'X'.&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;  BEGIN OF SCREEN 4&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*********************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLKACB' '0002'.&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;&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'MB1B'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 05:16:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-problem/m-p/5145594#M1192491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T05:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Bdc program problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-problem/m-p/5145595#M1192492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Just call the transaction like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call transaction 'ME51' into t_bdcdata mode 'N'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goto se11 and type bdcdata...u will get an idea..why i used internal table t_bdcdata&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;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 05:16:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-problem/m-p/5145595#M1192492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T05:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Bdc program problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-problem/m-p/5145596#M1192493</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 in the initialization event you have written ctumode = 'A'.&lt;/P&gt;&lt;P&gt;if you change it to 'N' then it will work fine...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;CTUMODE = 'N'.&lt;/P&gt;&lt;P&gt;CUPDATE = 'A'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 05:20:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-problem/m-p/5145596#M1192493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T05:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Bdc program problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-problem/m-p/5145597#M1192494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have modified your code.&lt;/P&gt;&lt;P&gt;Try this one,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:bdctab TYPE TABLE OF bdcdata,
     wa_bdctab LIKE LINE OF bdctab. "Declared a wok area ans int tab
"Removed the include

DATA: BEGIN OF record OCCURS 0,
werks_001(004), "Plant
matnr_002(018), "ItemId
erfmg_003(013), "Quantity in Unit of Entry
erfme_004(003), "Unit of Entry
lgort_005(004), "Storage Location
charg_006(010), "BatchId
kdauf_007(010), "Sales Order Number
kdpos_008(006), "Item Number in Sales Order
END OF record.

PARAMETERS : p_filnam LIKE rlgrap-filename.


AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_filnam.

  CALL FUNCTION 'WS_FILENAME_GET'
       EXPORTING
            mask             = ',. '
            mode             = 'O'
       IMPORTING
            filename         = p_filnam
       EXCEPTIONS
            inv_winsys       = 1
            no_batch         = 2
            selection_cancel = 3
            selection_error  = 4
            OTHERS           = 5.
  IF sy-subrc NE 0.

*MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

START-OF-SELECTION.

  CALL FUNCTION 'WS_UPLOAD'
       EXPORTING
            filename                = p_filnam
            filetype                = 'DAT'
       TABLES
            data_tab                = record
       EXCEPTIONS
            conversion_error        = 1
            file_open_error         = 2
            file_read_error         = 3
            invalid_type            = 4
            no_batch                = 5
            unknown_error           = 6
            invalid_table_width     = 7
            gui_refuse_filetransfer = 8
            customer_error          = 9
            no_authority            = 10
            OTHERS                  = 11.
  IF sy-subrc NE 0.

*
*MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.


  LOOP AT record.

*********************************************************


*BEGIN OF SCREEN 1
*********************************************************

    PERFORM bdc_dynpro USING 'SAPMM07M' '0400'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'RM07M-SOBKZ'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'RM07M-BWARTWA'
    '411'.
    PERFORM bdc_field USING 'RM07M-SOBKZ'
    'E'.
    PERFORM bdc_field USING 'RM07M-WERKS'
    record-werks_001. "Plant
    PERFORM bdc_field USING 'XFULL'
    'X'.
    PERFORM bdc_field USING 'RM07M-WVERS2'
    'X'.
*********************************************************

*BEGIN OF SCREEN 2
*********************************************************

    PERFORM bdc_dynpro USING 'SAPMM07M' '0421'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'MSEG-CHARG(01)'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'MSEG-MATNR(01)'
    record-matnr_002. "ITEMID
    PERFORM bdc_field USING 'MSEG-ERFMG(01)'
    record-erfmg_003. "QTY.
    PERFORM bdc_field USING 'MSEG-ERFME(01)'
    record-erfme_004. "UOM
    PERFORM bdc_field USING 'MSEG-LGORT(01)'
    record-lgort_005. "ST.LOC
    PERFORM bdc_field USING 'MSEG-CHARG(01)'
    record-charg_006. "BATCHID
    PERFORM bdc_field USING 'MSEGK-MAT_KDAUF'
    record-kdauf_007. "S.O.
    PERFORM bdc_field USING 'MSEGK-MAT_KDPOS'
    record-kdpos_008. "S.O.LINE ITEM
    PERFORM bdc_field USING 'DKACB-FMORE'
    'X'.

*********************************************************

*BEGIN OF SCREEN 3
*********************************************************

    PERFORM bdc_dynpro USING 'SAPLKACB' '0002'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=ENTE'.
    PERFORM bdc_field USING 'DKACB-FMORE'
    'X'.
    PERFORM bdc_dynpro USING 'SAPLKACB' '0002'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=ENTE'.
    PERFORM bdc_dynpro USING 'SAPMM07M' '0421'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'MSEG-ERFMG(01)'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=BU'.
    PERFORM bdc_field USING 'DKACB-FMORE'
    'X'.

*********************************************************

*BEGIN OF SCREEN 4
*********************************************************

    PERFORM bdc_dynpro USING 'SAPLKACB' '0002'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=ENTE'.


    CALL TRANSACTION 'MB1B' USING bdctab MODE 'N' UPDATE 'S'. "Modified here

  ENDLOOP.

"Added forms
*---------------------------------------------------------------------*
*       FORM bdc_dynpro                                               *
*---------------------------------------------------------------------*
*       ........                                                      *
*---------------------------------------------------------------------*
*  --&amp;gt;  P_PROGRAM                                                     *
*  --&amp;gt;  P_DYNPRO                                                      *
*---------------------------------------------------------------------*
FORM bdc_dynpro USING p_program
p_dynpro.

  wa_bdctab-program = p_program.
  wa_bdctab-dynpro = p_dynpro.
  wa_bdctab-dynbegin = 'X'.
  APPEND wa_bdctab TO bdctab.
  CLEAR wa_bdctab.

ENDFORM. " bdc_dynpro

*---------------------------------------------------------------------*
*       FORM bdc_field                                                *
*---------------------------------------------------------------------*
*       ........                                                      *
*---------------------------------------------------------------------*
*  --&amp;gt;  P_FNAM                                                        *
*  --&amp;gt;  P_FVAL                                                        *
*---------------------------------------------------------------------*
FORM bdc_field USING p_fnam
p_fval.

  wa_bdctab-fnam = p_fnam.
  wa_bdctab-fval = p_fval.
  APPEND wa_bdctab TO bdctab.
  CLEAR wa_bdctab.

ENDFORM. " bdc_field&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj Kumar P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Manoj Kumar on Feb 9, 2009 6:51 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 05:50:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-problem/m-p/5145597#M1192494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T05:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Bdc program problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-problem/m-p/5145598#M1192495</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;&lt;STRONG&gt;Call transaction TCODE&lt;/STRONG&gt;     using bdcsteps mode 'N'.&lt;/P&gt;&lt;P&gt;                                                                 mode 'A'.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Neelima.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 06:46:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-problem/m-p/5145598#M1192495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T06:46:23Z</dc:date>
    </item>
  </channel>
</rss>

