<?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: Message table type strcture bdcmcgcoll problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-table-type-strcture-bdcmcgcoll-problem/m-p/5561356#M1268990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sailu ,&lt;/P&gt;&lt;P&gt;Instead of going SESSION METHOD if you try the call transaction method also.&lt;/P&gt;&lt;P&gt;You can proceed like the following code (Copy  paste the code and execute it once ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : T_BDC TYPE TABLE OF BDCDATA,
       FS_BDC TYPE BDCDATA ,
       T_MESSAGES TYPE TABLE OF BDCMSGCOLL.


START-OF-SELECTION.

  PERFORM BDC_DYNPRO      USING 'SAPLBTCH' '1080'.
  PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                'SYSTEMEVENTIDTEXT'.
  PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                '=BACK'.
  PERFORM BDC_FIELD       USING 'BTCH1080-EDIT_SYSEV'
                                'X'.
  PERFORM BDC_FIELD       USING 'BTCH1080-SHOW_SYSEV'
                                '.'.
  PERFORM BDC_FIELD       USING 'BTCH1080-EDIT_USREV'
                                '.'.
  PERFORM BDC_FIELD       USING 'BTCH1080-SHOW_USREV'
  
  
                                '.'.
  CALL TRANSACTION 'SM62' USING T_BDC MESSAGES INTO T_MESSAGES.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  bdc_dynpro
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;P_0013   text
*      --&amp;gt;P_0014   text
*----------------------------------------------------------------------*
FORM BDC_DYNPRO  USING    VALUE(P_0013)
                          VALUE(P_0014).
  CLEAR FS_BDC .
  FS_BDC-PROGRAM = 'P_0013'.
  FS_BDC-DYNPRO = 'P_0014'.
  FS_BDC-DYNBEGIN = 'X'.
  APPEND FS_BDC TO T_BDC.


ENDFORM.                    " bdc_dynpro
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  bdc_field
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;P_0018   text
*      --&amp;gt;P_0019   text
*----------------------------------------------------------------------*
FORM BDC_FIELD  USING    VALUE(P_0018)
                         VALUE(P_0019).
  CLEAR FS_BDC .
  FS_BDC-FNAM = 'P_0018'.
  FS_BDC-FVAL = 'P_0019'.
  APPEND FS_BDC TO T_BDC.
ENDFORM.                    " bdc_field&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 May 2009 13:19:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-13T13:19:36Z</dc:date>
    <item>
      <title>Message table type strcture bdcmcgcoll problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-table-type-strcture-bdcmcgcoll-problem/m-p/5561349#M1268983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I have done recording for sm 62 screen for creating events.&lt;/P&gt;&lt;P&gt;i have created events for that using "create" button from screen sm 62.&lt;/P&gt;&lt;P&gt;after recording i have created a functionmodule using recorded bdc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that i have used one&lt;/P&gt;&lt;P&gt; TABLES&lt;/P&gt;&lt;P&gt;*"              MESSTAB STRUCTURE  BDCMSGCOLL OPTIONAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In output i am getting thios error.&lt;/P&gt;&lt;P&gt;Message id:00.&lt;/P&gt;&lt;P&gt;Message NO:255.&lt;/P&gt;&lt;P&gt;Message :Function code cannot be selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me how to solve this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Sailu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 10:58:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-table-type-strcture-bdcmcgcoll-problem/m-p/5561349#M1268983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-13T10:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Message table type strcture bdcmcgcoll problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-table-type-strcture-bdcmcgcoll-problem/m-p/5561350#M1268984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think there is a problem with your recording... It is not able to identify a user command. Please check your recording..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 11:03:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-table-type-strcture-bdcmcgcoll-problem/m-p/5561350#M1268984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-13T11:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Message table type strcture bdcmcgcoll problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-table-type-strcture-bdcmcgcoll-problem/m-p/5561351#M1268985</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;It looks like probs in your recording. &lt;/P&gt;&lt;P&gt;Please record the transaction once again.&lt;/P&gt;&lt;P&gt;Please do not manipulate recorded coding and have them as given by SAP recorded coding.&lt;/P&gt;&lt;P&gt;Incase the problem persists, probable you can share your coding also with us.&lt;/P&gt;&lt;P&gt;We would check and revert you back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Ramani N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 11:11:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-table-type-strcture-bdcmcgcoll-problem/m-p/5561351#M1268985</guid>
      <dc:creator>former_member229729</dc:creator>
      <dc:date>2009-05-13T11:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Message table type strcture bdcmcgcoll problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-table-type-strcture-bdcmcgcoll-problem/m-p/5561352#M1268986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sailu ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rerecord that and create the program .&lt;/P&gt;&lt;P&gt;I think there might be problem with screen no. &lt;/P&gt;&lt;P&gt;Because some time recording screen no and original screen no differs.&lt;/P&gt;&lt;P&gt;So please after recording check all the screen no with the original screen no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any way if the message issue does not solve then please share the code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 11:17:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-table-type-strcture-bdcmcgcoll-problem/m-p/5561352#M1268986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-13T11:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Message table type strcture bdcmcgcoll problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-table-type-strcture-bdcmcgcoll-problem/m-p/5561353#M1268987</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;1. Might be mistake in recording&lt;/P&gt;&lt;P&gt;2. Might be not passing the required value to the screen field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test it in all screens display mode... then you came to know where the problem is...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ramesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 11:23:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-table-type-strcture-bdcmcgcoll-problem/m-p/5561353#M1268987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-13T11:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Message table type strcture bdcmcgcoll problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-table-type-strcture-bdcmcgcoll-problem/m-p/5561354#M1268988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local interface:&lt;/P&gt;&lt;P&gt;*"       IMPORTING&lt;/P&gt;&lt;P&gt;*"             VALUE(CTU) LIKE  APQI-PUTACTIVE DEFAULT 'X'&lt;/P&gt;&lt;P&gt;*"             VALUE(MODE) LIKE  APQI-PUTACTIVE DEFAULT 'N'&lt;/P&gt;&lt;P&gt;*"             VALUE(UPDATE) LIKE  APQI-PUTACTIVE DEFAULT 'L'&lt;/P&gt;&lt;P&gt;*"             VALUE(GROUP) LIKE  APQI-GROUPID OPTIONAL&lt;/P&gt;&lt;P&gt;*"             VALUE(USER) LIKE  APQI-USERID OPTIONAL&lt;/P&gt;&lt;P&gt;*"             VALUE(KEEP) LIKE  APQI-QERASE OPTIONAL&lt;/P&gt;&lt;P&gt;*"             VALUE(HOLDDATE) LIKE  APQI-STARTDATE OPTIONAL&lt;/P&gt;&lt;P&gt;*"             VALUE(NODATA) LIKE  APQI-PUTACTIVE DEFAULT '/'&lt;/P&gt;&lt;P&gt;*"             VALUE(EDIT_SYSEV_001) LIKE  BDCDATA-FVAL DEFAULT ''&lt;/P&gt;&lt;P&gt;*"             VALUE(SHOW_SYSEV_002) LIKE  BDCDATA-FVAL DEFAULT '.'&lt;/P&gt;&lt;P&gt;*"             VALUE(EDIT_USREV_003) LIKE  BDCDATA-FVAL DEFAULT 'X'&lt;/P&gt;&lt;P&gt;*"             VALUE(SHOW_USREV_004) LIKE  BDCDATA-FVAL DEFAULT '.'&lt;/P&gt;&lt;P&gt;*"             VALUE(EVENTID_005) LIKE  BDCDATA-FVAL&lt;/P&gt;&lt;P&gt;*"         DEFAULT 'Eventid'&lt;/P&gt;&lt;P&gt;*"             VALUE(DESCRIPT_006) LIKE  BDCDATA-FVAL&lt;/P&gt;&lt;P&gt;*"         DEFAULT 'Description'&lt;/P&gt;&lt;P&gt;*"       EXPORTING&lt;/P&gt;&lt;P&gt;*"             VALUE(SUBRC) LIKE  SYST-SUBRC&lt;/P&gt;&lt;P&gt;*"       TABLES&lt;/P&gt;&lt;P&gt;*"              MESSTAB STRUCTURE  BDCMSGCOLL OPTIONAL&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_nodata      using NODATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform open_group      using GROUP USER KEEP HOLDDATE CTU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLBTCH' '1080'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'BTCH1080-EDIT_USREV'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=DOIT'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BTCH1080-EDIT_SYSEV'&lt;/P&gt;&lt;P&gt;                              EDIT_SYSEV_001.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BTCH1080-SHOW_SYSEV'&lt;/P&gt;&lt;P&gt;                              SHOW_SYSEV_002.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BTCH1080-EDIT_USREV'&lt;/P&gt;&lt;P&gt;                              EDIT_USREV_003.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BTCH1080-SHOW_USREV'&lt;/P&gt;&lt;P&gt;                              SHOW_USREV_004.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMSSY0' '0120'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=NEW'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLBTCH' '1090'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'BTCH1090-DESCRIPT'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=SAVS'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BTCH1090-EVENTID'&lt;/P&gt;&lt;P&gt;                              EVENTID_005.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BTCH1090-DESCRIPT'&lt;/P&gt;&lt;P&gt;                              DESCRIPT_006.&lt;/P&gt;&lt;P&gt;perform bdc_transaction tables messtab&lt;/P&gt;&lt;P&gt;using                         'SM62'&lt;/P&gt;&lt;P&gt;                              CTU&lt;/P&gt;&lt;P&gt;                              MODE&lt;/P&gt;&lt;P&gt;                              UPDATE.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  subrc = sy-subrc.&lt;/P&gt;&lt;P&gt;  exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform close_group using     CTU.&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;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 12:36:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-table-type-strcture-bdcmcgcoll-problem/m-p/5561354#M1268988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-13T12:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Message table type strcture bdcmcgcoll problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-table-type-strcture-bdcmcgcoll-problem/m-p/5561355#M1268989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can any body tell me the wrong where i done in this recording.&lt;/P&gt;&lt;P&gt;i didnt change any thing.i put sap code as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 12:38:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-table-type-strcture-bdcmcgcoll-problem/m-p/5561355#M1268989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-13T12:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Message table type strcture bdcmcgcoll problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-table-type-strcture-bdcmcgcoll-problem/m-p/5561356#M1268990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sailu ,&lt;/P&gt;&lt;P&gt;Instead of going SESSION METHOD if you try the call transaction method also.&lt;/P&gt;&lt;P&gt;You can proceed like the following code (Copy  paste the code and execute it once ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : T_BDC TYPE TABLE OF BDCDATA,
       FS_BDC TYPE BDCDATA ,
       T_MESSAGES TYPE TABLE OF BDCMSGCOLL.


START-OF-SELECTION.

  PERFORM BDC_DYNPRO      USING 'SAPLBTCH' '1080'.
  PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                'SYSTEMEVENTIDTEXT'.
  PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                '=BACK'.
  PERFORM BDC_FIELD       USING 'BTCH1080-EDIT_SYSEV'
                                'X'.
  PERFORM BDC_FIELD       USING 'BTCH1080-SHOW_SYSEV'
                                '.'.
  PERFORM BDC_FIELD       USING 'BTCH1080-EDIT_USREV'
                                '.'.
  PERFORM BDC_FIELD       USING 'BTCH1080-SHOW_USREV'
  
  
                                '.'.
  CALL TRANSACTION 'SM62' USING T_BDC MESSAGES INTO T_MESSAGES.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  bdc_dynpro
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;P_0013   text
*      --&amp;gt;P_0014   text
*----------------------------------------------------------------------*
FORM BDC_DYNPRO  USING    VALUE(P_0013)
                          VALUE(P_0014).
  CLEAR FS_BDC .
  FS_BDC-PROGRAM = 'P_0013'.
  FS_BDC-DYNPRO = 'P_0014'.
  FS_BDC-DYNBEGIN = 'X'.
  APPEND FS_BDC TO T_BDC.


ENDFORM.                    " bdc_dynpro
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  bdc_field
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;P_0018   text
*      --&amp;gt;P_0019   text
*----------------------------------------------------------------------*
FORM BDC_FIELD  USING    VALUE(P_0018)
                         VALUE(P_0019).
  CLEAR FS_BDC .
  FS_BDC-FNAM = 'P_0018'.
  FS_BDC-FVAL = 'P_0019'.
  APPEND FS_BDC TO T_BDC.
ENDFORM.                    " bdc_field&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 13:19:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-table-type-strcture-bdcmcgcoll-problem/m-p/5561356#M1268990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-13T13:19:36Z</dc:date>
    </item>
  </channel>
</rss>

