<?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 issue - passing space in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-issue-passing-space/m-p/1484754#M226372</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;Take space in a one character variable and then pass it to the BDC value...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway for deselecting u will have get some  function code while recording..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just check that one...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Simha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Aug 2006 11:36:27 GMT</pubDate>
    <dc:creator>Simha_</dc:creator>
    <dc:date>2006-08-03T11:36:27Z</dc:date>
    <item>
      <title>BDC issue - passing space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-issue-passing-space/m-p/1484752#M226370</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 am recording (using T.Code: SHDB) a transaction, where there is a Table control. when i select the record, the indicator is 'X' and then i proceed with function buttons. After finishing the work with that record, i have to deselect the record, i.e. i have pass space ('') for the indicator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the passing of space is not valid with BDC recording. i.e. the BDCdata will not get appended with the field name and value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest solution for this or an alternative.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2006 11:28:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-issue-passing-space/m-p/1484752#M226370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-03T11:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: BDC issue - passing space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-issue-passing-space/m-p/1484753#M226371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;go to the form bdc_value&lt;/P&gt;&lt;P&gt; and see if there is an IF condition before you fill the bdcadta-fval anf fnam fields.&lt;/P&gt;&lt;P&gt;remove that IF condition.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2006 11:35:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-issue-passing-space/m-p/1484753#M226371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-03T11:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: BDC issue - passing space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-issue-passing-space/m-p/1484754#M226372</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;Take space in a one character variable and then pass it to the BDC value...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway for deselecting u will have get some  function code while recording..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just check that one...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Simha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2006 11:36:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-issue-passing-space/m-p/1484754#M226372</guid>
      <dc:creator>Simha_</dc:creator>
      <dc:date>2006-08-03T11:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: BDC issue - passing space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-issue-passing-space/m-p/1484755#M226373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The sap defined bdc_field subroutine has this check.&lt;/P&gt;&lt;P&gt;for appending the data. I dont think we can change this BDC_field fn. &lt;/P&gt;&lt;P&gt;is there any alternative for this&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2006 11:44:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-issue-passing-space/m-p/1484755#M226373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-03T11:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: BDC issue - passing space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-issue-passing-space/m-p/1484756#M226374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI satya,&lt;/P&gt;&lt;P&gt;   YOu can copy the two forms bdc_field and bdc_dynpro that are created in the include bdcrex something&lt;/P&gt;&lt;P&gt;into your own program and then modify that code.&lt;/P&gt;&lt;P&gt;also comment the &lt;STRONG&gt;bdcrex&lt;/STRONG&gt; include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2006 11:47:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-issue-passing-space/m-p/1484756#M226374</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-03T11:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: BDC issue - passing space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-issue-passing-space/m-p/1484757#M226375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any button to "deselect all"? May be you can use it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2006 11:50:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-issue-passing-space/m-p/1484757#M226375</guid>
      <dc:creator>LucianoBentiveg</dc:creator>
      <dc:date>2006-08-03T11:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: BDC issue - passing space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-issue-passing-space/m-p/1484758#M226376</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;Copy the Forms in the standard program BDCRECX1 into the main program.&lt;/P&gt;&lt;P&gt;You need to copy:&lt;/P&gt;&lt;P&gt;1)Data Defns for BDCDATA and BDCMSGCOLL&lt;/P&gt;&lt;P&gt;2)The forms bdc_field, bdc_dynpro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also remove the things in bold in the forms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*----------------------------------------------------------------------*
*        Start new screen                                              *
*----------------------------------------------------------------------*
FORM BDC_DYNPRO USING PROGRAM DYNPRO.
  CLEAR BDCDATA.
  BDCDATA-PROGRAM  = PROGRAM.
  BDCDATA-DYNPRO   = DYNPRO.
  BDCDATA-DYNBEGIN = 'X'.
  APPEND BDCDATA.
ENDFORM.

*----------------------------------------------------------------------*
*        Insert field                                                  *
*----------------------------------------------------------------------*
FORM BDC_FIELD USING FNAM FVAL.
&amp;lt;b&amp;gt;  IF FVAL &amp;lt;&amp;gt; NODATA.&amp;lt;/b&amp;gt;
    CLEAR BDCDATA.
    BDCDATA-FNAM = FNAM.
    BDCDATA-FVAL = FVAL.
    APPEND BDCDATA.
&amp;lt;b&amp;gt;  ENDIF.&amp;lt;/b&amp;gt;
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Consider this sample code on the same approach.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT zztest.
 
DATA : it_mara TYPE STANDARD TABLE OF mara WITH HEADER LINE,
       layout TYPE rm61m-usprf.
 
DATA:   bdcdata LIKE bdcdata    OCCURS 0 WITH HEADER LINE.
 
 
START-OF-SELECTION.
 
  layout = 'SAPMPS'.
 
  SELECT * FROM mara INTO TABLE it_mara UP TO 2 ROWS.
 
  LOOP AT it_mara.
 
 
    PERFORM bdc_dynpro      USING 'SAPMM61M' '0103'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '/00'.
 
    PERFORM bdc_field       USING 'RM61M-MATNR'
                                  it_mara-matnr.
    PERFORM bdc_field       USING 'RM61M-USPRF'
                                  layout.
    CALL TRANSACTION 'MD48'
    USING bdcdata
    MODE   'E'.
  ENDLOOP.
 
 
 
*----------------------------------------------------------------------*
*        Start new screen                                              *
*----------------------------------------------------------------------*
FORM bdc_dynpro USING program dynpro.
  CLEAR bdcdata.
  bdcdata-program  = program.
  bdcdata-dynpro   = dynpro.
  bdcdata-dynbegin = 'X'.
  APPEND bdcdata.
ENDFORM.                    "BDC_DYNPRO
 
*----------------------------------------------------------------------*
*        Insert field                                                  *
*----------------------------------------------------------------------*
FORM bdc_field USING fnam fval.
 
  CLEAR bdcdata.
  bdcdata-fnam = fnam.
  bdcdata-fval = fval.
  APPEND bdcdata.
 
ENDFORM.                    "BDC_FIELD&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2006 11:59:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-issue-passing-space/m-p/1484758#M226376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-03T11:59:17Z</dc:date>
    </item>
  </channel>
</rss>

