<?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: Problem With BDC session method. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-session-method/m-p/3481875#M837072</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data was populated in the internal table mentioned in GUI_UPLOAD FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also the data was populated in BDCDATA table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;finally i executed the program and it created the session, and i m trying to process the session, but the data was not populated in MD61.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Log file it shows the error message 'Enter all required fields".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Mar 2008 13:24:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-06T13:24:02Z</dc:date>
    <item>
      <title>Problem With BDC session method.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-session-method/m-p/3481871#M837068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am trying to create demand in MD61 transaction using BDC session METHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code i wrote is as bellow..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform open_group.&lt;/P&gt;&lt;P&gt;  loop at gt_final into wa_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPMM60X' '0100'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  'RM60X-VERSB'.&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 'AM60X-MATAW'&lt;/P&gt;&lt;P&gt;                                  'X'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'AM60X-MATNR'&lt;/P&gt;&lt;P&gt;                                  WA_FINAL-MATNR.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'AM60X-WERKS'&lt;/P&gt;&lt;P&gt;                                  'NB5'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'RM60X-VERSB'&lt;/P&gt;&lt;P&gt;                                  '00'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'RM60X-DATVE'&lt;/P&gt;&lt;P&gt;                                  '02/29/2008'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'RM60X-DATBE'&lt;/P&gt;&lt;P&gt;                                  '04/04/2009'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'RM60X-ENTLU'&lt;/P&gt;&lt;P&gt;                                  'M'.&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPLM60E' '0200'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '=PEIN'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  'PBPT-MATNR(01)'.&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPLM60E' '0200'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  'PICK'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  'RM60E-PLNMG(01)'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'PBPT-VERVS'&lt;/P&gt;&lt;P&gt;                                  'X'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'RM60E-EDATU(01)'&lt;/P&gt;&lt;P&gt;                                  WA_FINAL-DATE.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'RM60E-PLNMG(01)'&lt;/P&gt;&lt;P&gt;                                  WA_FINAL-QUANTY.&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPLM60E' '0200'.&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_insert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refresh gt_BDCDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.&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;The problem is... withe this code the session is getting created but the values are not getting papulated into the transaction MD61 from the internal table.. Pls provide the solution for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in Advance,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 11:40:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-session-method/m-p/3481871#M837068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T11:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem With BDC session method.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-session-method/m-p/3481872#M837069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THERE MAY BE CHANCE NOT REFERING TO THE CORRECT SCREEN OR FIELD &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEE THIS SAMPLE CODE HOW TO WRITE A PROGRAM THIS CAN HELP YOU SOME WHAT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First i will explain the procedure step by step and will send a sample code plz check it once ok..And also i will attach a flat file at the end of SAMPLE CODE CHECK IT ONCE OK..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps:&lt;/P&gt;&lt;P&gt;1.Bulid an internal table first according to ur flat file fields.&lt;/P&gt;&lt;P&gt;2.select the flat file by using PARAMETER.&lt;/P&gt;&lt;P&gt;3.And assign that file path to GUI_UPLOAD function module.&lt;/P&gt;&lt;P&gt;4.Call BDC_OPEN_GROUP is used to open the session.&lt;/P&gt;&lt;P&gt;5.loop that flat file data and palce BDC_INSERT funtion module in that loop for uploading data into database table&lt;/P&gt;&lt;P&gt;6.After loop call BDC_CLOSE_GROUP to close the session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAMPLE CODE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ybdc_session_mm01 NO STANDARD PAGE HEADING LINE-SIZE 255.&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;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Global Structure for BDC Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;DATA: it_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;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal Table&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt; DATA: BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mbrsh LIKE rmmg1-mbrsh,&lt;/P&gt;&lt;P&gt;mtart LIKE rmmg1-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;&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;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upload the flat file&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&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 =&lt;/P&gt;&lt;P&gt;'C:\Documents and Settings\Compaq_Owner\Desktop\satish\mm01.txt'&lt;/P&gt;&lt;P&gt;filetype = 'ASC'&lt;/P&gt;&lt;P&gt;has_field_separator = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HEADER_LENGTH = 0 &lt;/P&gt;&lt;P&gt;READ_BY_LINE = 'X' &lt;/P&gt;&lt;P&gt;DAT_MODE = ' ' &lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;FILELENGTH = &lt;/P&gt;&lt;P&gt;HEADER = &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;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 0.&lt;/P&gt;&lt;P&gt;&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;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Session Method Starts &lt;/P&gt;&lt;P&gt;BDC_OPEN_GROUP&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&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;&lt;/P&gt;&lt;P&gt;DEST = FILLER8 &lt;/P&gt;&lt;P&gt;GROUP = 'ychinnu'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOLDDATE = FILLER8 &lt;/P&gt;&lt;P&gt;KEEP = 'X'&lt;/P&gt;&lt;P&gt;USER = SY-UNAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RECORD = FILLER1 &lt;/P&gt;&lt;P&gt;PROG = SY-CPROG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;QID = &lt;/P&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 0.&lt;/P&gt;&lt;P&gt;&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;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create BDCDATA Structure&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&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;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM bdc_dynpro USING 'SAPLMGMM' '0060'.&lt;/P&gt;&lt;P&gt;PERFORM bdc_field USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'RMMG1-MTART'.&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;&lt;/P&gt;&lt;P&gt;PERFORM bdc_field USING 'RMMG1-MBRSH'&lt;/P&gt;&lt;P&gt;itab-mbrsh.&lt;/P&gt;&lt;P&gt;PERFORM bdc_field USING 'RMMG1-MTART'&lt;/P&gt;&lt;P&gt;itab-mtart.&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;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After enterning MBRSH,MTART we press enter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM bdc_dynpro USING 'SAPLMGMM' '0070'. "press Enter&lt;/P&gt;&lt;P&gt;PERFORM bdc_field USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'MSICHTAUSW-DYTXT(01)'.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;View selection (Basic data1)&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt; PERFORM bdc_field USING 'MSICHTAUSW-KZSEL(01)'"view selection&lt;/P&gt;&lt;P&gt;'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select Tick Mark (ok)&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt; PERFORM bdc_dynpro USING 'SAPLMGMM' '4004'.&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;&lt;/P&gt;&lt;P&gt;PERFORM bdc_field USING 'MAKT-MAKTX'&lt;/P&gt;&lt;P&gt;itab-maktx.&lt;/P&gt;&lt;P&gt;PERFORM bdc_field USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'MARA-MEINS'.&lt;/P&gt;&lt;P&gt;PERFORM bdc_field USING 'MARA-MEINS'&lt;/P&gt;&lt;P&gt;itab-meins.&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;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally after filling the data we save the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;PERFORM bdc_field USING 'MARA-MTPOS_MARA' "For saving&lt;/P&gt;&lt;P&gt;'NORM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM bdc_transaction USING 'MM01'. &lt;/P&gt;&lt;P&gt;*&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;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC_INSERT&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&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;&lt;/P&gt;&lt;P&gt;POST_LOCAL = NOVBLOCAL &lt;/P&gt;&lt;P&gt;PRINTING = NOPRINT &lt;/P&gt;&lt;P&gt;SIMUBATCH = ' ' &lt;/P&gt;&lt;P&gt;CTUPARAMS = ' ' &lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;dynprotab = it_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 0.&lt;/P&gt;&lt;P&gt;&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;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refresh BDCDATA&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt; refresh it_bdcdata.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Closing BDC Group&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&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 0.&lt;/P&gt;&lt;P&gt;&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;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start new screen *&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt; FORM bdc_dynpro USING program dynpro.&lt;/P&gt;&lt;P&gt;CLEAR it_bdcdata.&lt;/P&gt;&lt;P&gt;it_bdcdata-program = program.&lt;/P&gt;&lt;P&gt;it_bdcdata-dynpro = dynpro.&lt;/P&gt;&lt;P&gt;it_bdcdata-dynbegin = 'X'.&lt;/P&gt;&lt;P&gt;APPEND it_bdcdata.&lt;/P&gt;&lt;P&gt;ENDFORM. "BDC_DYNPRO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insert field *&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt; FORM bdc_field USING fnam fval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF FVAL NODATA. &lt;/P&gt;&lt;P&gt;CLEAR it_bdcdata.&lt;/P&gt;&lt;P&gt;it_bdcdata-fnam = fnam.&lt;/P&gt;&lt;P&gt;it_bdcdata-fval = fval.&lt;/P&gt;&lt;P&gt;APPEND it_bdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;ENDFORM. "BDC_FIELD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flat File&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt; *M FERT IRON KG&lt;/P&gt;&lt;P&gt;*M ROH STEEL KG&lt;/P&gt;&lt;P&gt;*M HALB IRON KG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 11:46:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-session-method/m-p/3481872#M837069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T11:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem With BDC session method.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-session-method/m-p/3481873#M837070</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;Try to remove the Refresh statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dhruv Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 11:47:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-session-method/m-p/3481873#M837070</guid>
      <dc:creator>dhruv_shah3</dc:creator>
      <dc:date>2008-03-06T11:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem With BDC session method.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-session-method/m-p/3481874#M837071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;put a break point at gui_upload and check the values in internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the internal table have the values then check the program name and screen number properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;P&gt;santhosh reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 11:53:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-session-method/m-p/3481874#M837071</guid>
      <dc:creator>SantoshKallem</dc:creator>
      <dc:date>2008-03-06T11:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem With BDC session method.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-session-method/m-p/3481875#M837072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data was populated in the internal table mentioned in GUI_UPLOAD FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also the data was populated in BDCDATA table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;finally i executed the program and it created the session, and i m trying to process the session, but the data was not populated in MD61.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Log file it shows the error message 'Enter all required fields".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 13:24:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-session-method/m-p/3481875#M837072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T13:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem With BDC session method.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-session-method/m-p/3481876#M837073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data was populated in the internal table mentioned in GUI_UPLOAD FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also the data was populated in BDCDATA table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;finally i executed the program and it created the session, and i m trying to process the session, but the data was not populated in MD61.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Log file it shows the error message 'Enter all required fields".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 13:24:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-session-method/m-p/3481876#M837073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T13:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem With BDC session method.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-session-method/m-p/3481877#M837074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its simple u r not passing all the values which are mandatory,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to insert one record manually which is in u r flat file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will get idea where the error is coming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think u r uploading session in error screen mode.&lt;/P&gt;&lt;P&gt;do it in all screen mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ask u r functional guys for the fields which are mandatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even if ur uploading all mandatory, there may be not at the exact field location. check it properly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;P&gt;santhosh reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 13:38:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-session-method/m-p/3481877#M837074</guid>
      <dc:creator>SantoshKallem</dc:creator>
      <dc:date>2008-03-06T13:38:37Z</dc:date>
    </item>
  </channel>
</rss>

