<?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: Re: problem in BDC? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-problem-in-bdc/m-p/2237657#M482059</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dinesh babu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First comment the these fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of record,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: MATNR&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;MATNR_001(018),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: MBRSH&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;MBRSH_002(001),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: MTART&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;MTART_003(004),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: XFELD&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;KZSEL_01_004(001),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: MAKTX&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;MAKTX_005(040),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: MEINS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;MEINS_006(003),&lt;/P&gt;&lt;P&gt;end of record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because u created ur own internal table u should comment the sap provided internal table and replace that into ur internal table name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******Rewards some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;P.Naganjana Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Apr 2007 05:27:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-30T05:27:22Z</dc:date>
    <item>
      <title>Re: problem in BDC?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-problem-in-bdc/m-p/2237655#M482057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem in BDC while uploading the data the i have problem.The data from internal table is not getting proprely aligned up with screens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to see the data that is avaliable in the internal table into the screens,I am not able to find out the problem? can you help out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have sent below the code for your refernce.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Coding:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report YBDCRECORDING 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;parameters: dataset(132) lower case.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;   DO NOT CHANGE - the generated data section - DO NOT CHANGE    ***&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  If it is nessesary to change the data section use the rules:&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  1.) Each definition of a field exists of two lines&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  2.) The first line shows exactly the comment&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      '* data element: ' followed with the data element&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      which describes the field.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      If you don't have a data element use the&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      comment without a data element name&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  3.) The second line shows the fieldname of the&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      structure, the fieldname must consist of&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      a fieldname and optional the character '_' and&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      three numbers and the field length in brackets&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  4.) Each field must be type C.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Generated data section with specific formatting - DO NOT CHANGE  ***&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;data: begin of record,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: MATNR&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        MATNR_001(018),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: MBRSH&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        MBRSH_002(001),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: MTART&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        MTART_003(004),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: XFELD&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        KZSEL_01_004(001),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: MAKTX&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        MAKTX_005(040),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: MEINS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        MEINS_006(003),&lt;/P&gt;&lt;P&gt;      end of record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: BEGIN OF UPLD_ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;         matnr like RMMG1-MATNR,&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;      END OF UPLD_ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: i_file like rlgrap-filename value 'C:\upld.txt'.&lt;/P&gt;&lt;P&gt;data: v_file type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;End generated data section ***&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&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;v_file = i_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear: upld_itab.&lt;/P&gt;&lt;P&gt;refresh: upld_itab.&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                      = v_file&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'ASC'&lt;/P&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;/UL&gt;&lt;P&gt;   READ_BY_LINE                  = 'X'&lt;/P&gt;&lt;UL&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;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                      = upld_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 NE 0.&lt;/P&gt;&lt;P&gt;write: 'Error ', sy-subrc, 'returned from GUI_UPLOAD FM'.&lt;/P&gt;&lt;P&gt;skip.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*perform open_dataset using dataset.&lt;/P&gt;&lt;P&gt;perform open_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear: upld_itab.&lt;/P&gt;&lt;P&gt;loop at upld_itab.&lt;/P&gt;&lt;P&gt;&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'   'RMMG1-MATNR'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_OKCODE' '/00'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'RMMG1-MATNR' UPLD_ITAB-MATNR.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'RMMG1-MBRSH' UPLD_ITAB-MBRSH.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'RMMG1-MTART' UPLD_ITAB-MTART.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPLMGMM' '0070'.&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' '=ENTR'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'MSICHTAUSW-KZSEL(01)'&lt;/P&gt;&lt;P&gt;                                  record-KZSEL_01_004.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPLMGMM' '4004'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_OKCODE' '/00'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'MAKT-MAKTX' UPLD_ITAB-MAKTX.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_CURSOR' 'MARA-MEINS'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'MARA-MEINS' UPLD_ITAB-MEINS.&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPLSPO1' '0300'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_OKCODE' '=YES'.&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;&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;    perform close_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dinesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Apr 2007 12:08:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-problem-in-bdc/m-p/2237655#M482057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-29T12:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Re: problem in BDC?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-problem-in-bdc/m-p/2237656#M482058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;first do this one using Recording(SHDB),there you will get the screen numbers and screen fields automatically. Compare with your pg and if necessary modify relevant data.&lt;/P&gt;&lt;P&gt;Process for recording:&lt;/P&gt;&lt;P&gt;got to SHDB-&amp;gt;select new recording -&amp;gt;give name for recording-&amp;gt;give tcode MM01-&amp;gt;&lt;/P&gt;&lt;P&gt;give manditory fields-&amp;gt;save-&amp;gt;f3-&amp;gt;selelect recording-&amp;gt;select program-&amp;gt;check transfer from recording-&amp;gt;enter-&amp;gt;specify attributes-&amp;gt;save-&amp;gt;control leads to SE38.there you can check screen numbers and fields.&lt;/P&gt;&lt;P&gt;compare this with ur program or else you can continue with this pg also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 04:55:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-problem-in-bdc/m-p/2237656#M482058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T04:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Re: problem in BDC?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-problem-in-bdc/m-p/2237657#M482059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dinesh babu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First comment the these fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of record,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: MATNR&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;MATNR_001(018),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: MBRSH&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;MBRSH_002(001),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: MTART&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;MTART_003(004),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: XFELD&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;KZSEL_01_004(001),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: MAKTX&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;MAKTX_005(040),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: MEINS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;MEINS_006(003),&lt;/P&gt;&lt;P&gt;end of record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because u created ur own internal table u should comment the sap provided internal table and replace that into ur internal table name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******Rewards some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;P.Naganjana Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 05:27:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-problem-in-bdc/m-p/2237657#M482059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T05:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Re: problem in BDC?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-problem-in-bdc/m-p/2237658#M482060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do a demo recording wiht the same tcode and save that screen steps in a note pad and check with the already existing screen steps in your BDC program witht he new screen shots,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there must be problem with your screen sequence and that is the reason it is not taking the proper value from the internal table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 07:28:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-problem-in-bdc/m-p/2237658#M482060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T07:28:50Z</dc:date>
    </item>
  </channel>
</rss>

