<?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: Issue with BDC program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc-program/m-p/8349499#M1639958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;both the subroutines &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. bdc_field ,&lt;/P&gt;&lt;P&gt;2, bdc_field_aktiv &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the same parameters fnam , fval ... try changing the parameters of the 2nd subroutine to fnam2 , fval2 .. i also faced such an issue , hope this resolves yur problem .. !! .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM bdc_field_aktiv USING fnam2 fval2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also clear all the params fnam , fnam2 , fval , fval2 just before endforms,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Nov 2011 17:56:32 GMT</pubDate>
    <dc:creator>former_member186543</dc:creator>
    <dc:date>2011-11-08T17:56:32Z</dc:date>
    <item>
      <title>Issue with BDC program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc-program/m-p/8349495#M1639954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;When I do BDC recording for custom transaction YAFIE01 and when I run in  SHDB it is updating the equipment but when I convert the same  recording into BDC program and when I run that program its not updating.&lt;/P&gt;&lt;P&gt; steps are given below.&lt;/P&gt;&lt;P&gt;1. Enter Tcode YAFIE01&lt;/P&gt;&lt;P&gt;2.select " MODIFY" radiabutton&lt;/P&gt;&lt;P&gt;3.Give values for Equipment and Plant and click ENTER&lt;/P&gt;&lt;P&gt;3.Click on EXECUTE&lt;/P&gt;&lt;P&gt;4.Select YES option in the POP UP window for updating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INPUT DATA:&lt;/P&gt;&lt;P&gt;EQUNR : 10720953&lt;/P&gt;&lt;P&gt;WERKS: 1050&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expected Result: Measuring Points copied from plant related equipment to 10720953. Plant and Equipment data is maintained in Ytable- YAFT_REFEQUI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the program i am getting after converting the recording&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;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform open_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLYAFF_EQUI_CREATE' '9000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'W_RADIO2'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=W_RAD'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'W_RADIO1'&lt;/P&gt;&lt;P&gt;                              ''.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'W_RADIO2'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLYAFF_EQUI_CREATE' '9000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'W_WERKS1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=ENTER'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'W_RADIO2'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'W_EQUNR'&lt;/P&gt;&lt;P&gt;                              '10720953'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'W_WERKS1'&lt;/P&gt;&lt;P&gt;                              '1050'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLYAFF_EQUI_CREATE' '9000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'W_MATNR1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=EXECUTE'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'W_RADIO2'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'W_MATNR1'&lt;/P&gt;&lt;P&gt;                              '2612511-2'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'W_SERNR1'&lt;/P&gt;&lt;P&gt;                              'IW15'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'W_EQUNR'&lt;/P&gt;&lt;P&gt;                              '10720953'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'W_WERKS1'&lt;/P&gt;&lt;P&gt;                              '1050'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLSPO1' '0500'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=OPT1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLYAFF_EQUI_CREATE' '9000'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLYAFF_EQUI_CREATE' '9000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '/EBACK'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'W_MATNR1'.&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;But this is not working..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls help in doing this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 15:16:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc-program/m-p/8349495#M1639954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-08T15:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with BDC program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc-program/m-p/8349496#M1639955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear parasuram ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; while doing recording  just after your 4 th step   , save the data in recording only .&lt;/P&gt;&lt;P&gt;one more perform will be created  sumthing like &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;&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;P&gt;ranjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 15:40:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc-program/m-p/8349496#M1639955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-08T15:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with BDC program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc-program/m-p/8349497#M1639956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are also missing the FM 'gui_upload' or 'ws_upload'  just after  start of selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;Ranjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 15:42:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc-program/m-p/8349497#M1639956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-08T15:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with BDC program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc-program/m-p/8349498#M1639957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
data : begin of itab  occurs 0 ,
EQUNR type equnr ,
WERKS  type  works ,
end of itab .

DATA:   bdcdata LIKE bdcdata    OCCURS 0 WITH HEADER LINE.
*       messages of call transaction
DATA:   messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
*       error session opened (' ' or 'X')
DATA:   e_group_opened.



SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS : p_fname LIKE rlgrap-filename OBLIGATORY.
*               P_START LIKE SY-TABIX DEFAULT 1 OBLIGATORY.
PARAMETERS   ctu_mode  LIKE ctu_params-dismode DEFAULT 'A'.

SELECTION-SCREEN END OF BLOCK b2.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fname.
  CALL FUNCTION 'F4_FILENAME'
    EXPORTING
      program_name  = syst-cprog
      dynpro_number = syst-dynnr
    IMPORTING
      file_name     = p_fname.

start-of-selection.
CALL FUNCTION 'GUI_UPLOAD'
 EXPORTING

   filename                      =  p_fname
   filetype                      = 'DAT'
  TABLES
    data_tab                      = itab
 EXCEPTIONS
   conversion_error              = 1
   file_open_error               = 2
   file_read_error               = 3
   invalid_type                  = 4
   no_batch                      = 5
   unknown_error                 = 6
   invalid_table_width           = 7
   gui_refuse_filetransfer       = 8
   customer_error                = 9
   no_authority                  = 10
   OTHERS                        = 11
          .
****perform open_group.

loop at itab .

perform bdc_dynpro using 'SAPLYAFF_EQUI_CREATE' '9000'.
perform bdc_field using 'BDC_CURSOR'
'W_RADIO2'.
perform bdc_field using 'BDC_OKCODE'
'=W_RAD'.
perform bdc_field using 'W_RADIO1'
''.
perform bdc_field using 'W_RADIO2'
'X'.

perform bdc_dynpro using 'SAPLYAFF_EQUI_CREATE' '9000'.
perform bdc_field using 'BDC_CURSOR'
'W_WERKS1'.
perform bdc_field using 'BDC_OKCODE'
'=ENTER'.
perform bdc_field using 'W_RADIO2'
'X'.
perform bdc_field using 'W_EQUNR'
'10720953'.
perform bdc_field using 'W_WERKS1'
'1050'.

perform bdc_dynpro using 'SAPLYAFF_EQUI_CREATE' '9000'.
perform bdc_field using 'BDC_CURSOR'
'W_MATNR1'.
perform bdc_field using 'BDC_OKCODE'
'=EXECUTE'.
perform bdc_field using 'W_RADIO2'
'X'.
perform bdc_field using 'W_MATNR1'
'2612511-2'.
perform bdc_field using 'W_SERNR1'
'IW15'.
perform bdc_field using 'W_EQUNR'
'10720953'.
perform bdc_field using 'W_WERKS1'
'1050'.

perform bdc_dynpro using 'SAPLSPO1' '0500'.
perform bdc_field using 'BDC_OKCODE'
'=OPT1'.

perform bdc_dynpro using 'SAPLYAFF_EQUI_CREATE' '9000'.
perform bdc_dynpro using 'SAPLYAFF_EQUI_CREATE' '9000'.
perform bdc_field using 'BDC_OKCODE'
'/EBACK'.
perform bdc_field using 'BDC_CURSOR'
'W_MATNR1'.
 CALL TRANSACTION 'YAFIE01' USING bdcdata MODE ctu_mode UPDATE 'S'.

  REFRESH bdcdata.
  CLEAR: bdcdata, itab.

ENDLOOP.

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.
*  IF FVAL &amp;lt;&amp;gt; NODATA.
  CLEAR bdcdata.
  bdcdata-fnam = fnam.
  bdcdata-fval = fval.
  SHIFT bdcdata-fval LEFT DELETING LEADING space.
  APPEND bdcdata.
*  ENDIF.
ENDFORM.                    "BDC_FIELD


*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  BDC_FIELD_wrbtr
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;FNAM       text
*      --&amp;gt;FVAL       text
*----------------------------------------------------------------------*

FORM bdc_field_aktiv USING fnam fval .
  DATA : char(15).
  char = fval.
  CLEAR bdcdata.
  bdcdata-fnam = fnam.
  bdcdata-fval = char.
  APPEND bdcdata.
ENDFORM.            

&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 15:50:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc-program/m-p/8349498#M1639957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-08T15:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with BDC program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc-program/m-p/8349499#M1639958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;both the subroutines &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. bdc_field ,&lt;/P&gt;&lt;P&gt;2, bdc_field_aktiv &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the same parameters fnam , fval ... try changing the parameters of the 2nd subroutine to fnam2 , fval2 .. i also faced such an issue , hope this resolves yur problem .. !! .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM bdc_field_aktiv USING fnam2 fval2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also clear all the params fnam , fnam2 , fval , fval2 just before endforms,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 17:56:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc-program/m-p/8349499#M1639958</guid>
      <dc:creator>former_member186543</dc:creator>
      <dc:date>2011-11-08T17:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with BDC program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc-program/m-p/8349500#M1639959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ranjan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankful for your code however it still couldn't solve my problem.So I hope we shlould look for any other alternative solution.&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;Parasuram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 14:53:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc-program/m-p/8349500#M1639959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-09T14:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with BDC program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc-program/m-p/8349501#M1639960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you able to see your session and able to process. If so, process in foreground and check if you are getting any errors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 15:46:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc-program/m-p/8349501#M1639960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-09T15:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with BDC program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc-program/m-p/8349502#M1639961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could create sessions and when i process the session there are no errors. Session was processed successfully but the data is not updated. Anyhow I finished this requirement by cloning the program of tcode YAFID01. So whenever we are free we need to look this issue get resolved and put it  in the  thread. Till then keep this thread open.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply...&lt;/P&gt;&lt;P&gt;Parasuram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 15:05:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc-program/m-p/8349502#M1639961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-05T15:05:04Z</dc:date>
    </item>
  </channel>
</rss>

