<?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: TABLE CONTROL WITH BDC - MULTIPLE SELECTION in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-bdc-multiple-selection/m-p/4253833#M1015435</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The thing is... that is not the only field that I fill in my program in the bdcdata table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fields that I fill changes everytime according to some of the user's selection and they are many. I isolate the problem in the program that I posted it to make clearer which was the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway, but I just need to solve it with the bdcdata table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Aug 2008 16:23:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-08T16:23:51Z</dc:date>
    <item>
      <title>TABLE CONTROL WITH BDC - MULTIPLE SELECTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-bdc-multiple-selection/m-p/4253831#M1015433</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 have read all the threads in the forum related to this matter and I cannot understand why my code is not working as it should be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's like the part of the code that inserts a line (LINS) is not working, but when I debug the code I can see that the bdcdata table has all the rows ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, I need help! I'm working on SAP R/3 version 4.6C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code. You just have to copy it and run it. If anyone can tell me what's the problem with my code that would be grate!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

REPORT ZPRU_1 .

DATA: not TYPE CAUFV-AUFNR,
      wa_trx TYPE bdcdata,
      it_trx TYPE TABLE OF bdcdata.

wa_trx-PROGRAM  = 'RIAFRU20'.
wa_trx-DYNPRO   = '1000'.
wa_trx-DYNBEGIN = 'X'.
APPEND wa_trx TO it_trx.
CLEAR wa_trx.

wa_trx-FNAM = 'BDC_OKCODE'.
wa_trx-FVAL = '%011'.
APPEND wa_trx TO it_trx.

CLEAR wa_trx.
wa_trx-PROGRAM  = 'SAPLALDB'.
wa_trx-DYNPRO   = '3000'.
wa_trx-DYNBEGIN = 'X'.
APPEND wa_trx TO it_trx.
CLEAR wa_trx.

SELECT AUFNR FROM CAUFV INTO not UP TO 20 ROWS WHERE AUTYP = '30'.

  wa_trx-FNAM = 'RSCSEL-SLOW_I(01)'.
  wa_trx-FVAL = not.
  APPEND wa_trx TO it_trx.

  wa_trx-FNAM = 'BDC_OKCODE'.
  wa_trx-FVAL = 'LINS'.
  APPEND wa_trx TO it_trx.

ENDSELECT.

wa_trx-FNAM = 'BDC_OKCODE'.
wa_trx-FVAL = 'ACPT'.
APPEND wa_trx TO it_trx.

wa_trx-PROGRAM  = 'RIAFRU20'.
wa_trx-DYNPRO   = '1000'.
wa_trx-DYNBEGIN = 'X'.
APPEND wa_trx TO it_trx.
CLEAR wa_trx.

wa_trx-FNAM = 'BDC_OKCODE'.
wa_trx-FVAL = 'ONLI'.
APPEND wa_trx TO it_trx.

CALL TRANSACTION 'IW47' USING it_trx.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 15:42:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-bdc-multiple-selection/m-p/4253831#M1015433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-08T15:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL WITH BDC - MULTIPLE SELECTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-bdc-multiple-selection/m-p/4253832#M1015434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no need to write a BDC for your purpose. You can use the SUBMIT REPORT RIAFRU20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
RANGES: R_AUFNR FOR viauf_afvc-aufnr.

SELECT AUFNR FROM CAUFV INTO not UP TO 20 ROWS WHERE AUTYP = '30'.
 
R_AUFNR-SIGN = 'I'.
R_AUFNR-OPTIONS = 'EQ'.
R_AUFNR-LOW = NOT.
APPEND R_AUFNR. 

ENDSELECT.

SUBMIT RIAFRU20 WITH aufnr_o IN R_AUFNR.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recommond that you must change your SELECT.. ENDSELECT to .. SELECT.. INTO TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 15:57:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-bdc-multiple-selection/m-p/4253832#M1015434</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-08-08T15:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL WITH BDC - MULTIPLE SELECTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-bdc-multiple-selection/m-p/4253833#M1015435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The thing is... that is not the only field that I fill in my program in the bdcdata table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fields that I fill changes everytime according to some of the user's selection and they are many. I isolate the problem in the program that I posted it to make clearer which was the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway, but I just need to solve it with the bdcdata table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 16:23:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-bdc-multiple-selection/m-p/4253833#M1015435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-08T16:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL WITH BDC - MULTIPLE SELECTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-bdc-multiple-selection/m-p/4253834#M1015436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With BDCDATA the work would be harder and complex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create as many ranges as you want in your program. and use them in the SUBMIT report syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, BDC is not meant for the Reports. If you want to execute the report by calling the transaction than SUBMIT would be better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 16:27:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-bdc-multiple-selection/m-p/4253834#M1015436</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-08-08T16:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL WITH BDC - MULTIPLE SELECTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-bdc-multiple-selection/m-p/4253835#M1015437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. I'm going to try with the SUBMIT statement and then let you know how ti goes.&lt;/P&gt;&lt;P&gt;Thanks very much for your help.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 16:30:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-bdc-multiple-selection/m-p/4253835#M1015437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-08T16:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL WITH BDC - MULTIPLE SELECTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-bdc-multiple-selection/m-p/4253836#M1015438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Naimesh!&lt;/P&gt;&lt;P&gt;I changed the program just as you said and it work beautifully!!!&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 17:34:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-bdc-multiple-selection/m-p/4253836#M1015438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-08T17:34:16Z</dc:date>
    </item>
  </channel>
</rss>

