<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1132205#M111997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jak,&lt;/P&gt;&lt;P&gt;Reward the points to the helpful answer and close the post..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Feb 2006 07:10:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-24T07:10:43Z</dc:date>
    <item>
      <title>bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1132201#M111993</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;Can we use call transaction and session method in a single bdc program?How to link these two?&lt;/P&gt;&lt;P&gt;Is it possible to pass the errors from bdc call transaction method to session method in one program?&lt;/P&gt;&lt;P&gt;Pls let me know if any body has any example on this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2006 06:22:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1132201#M111993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-24T06:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1132202#M111994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you can use both the transaction and session methods in the same program. What you can do is to pass the data to TRANSACTIOM method first, and collect the records which error out in this and then pass them on to the SESSION method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THere will not be any link between these two.&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>Fri, 24 Feb 2006 06:34:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1132202#M111994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-24T06:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1132203#M111995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u just incluse the following stetement in ur program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;include bdcrecx1.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEE THE FOLLOWING EXAMPLE PROGRAM WHICH USES BOTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZMM_BDC_CONFIRMATION_UPLOAD&lt;/P&gt;&lt;P&gt;        NO STANDARD page heading&lt;/P&gt;&lt;P&gt;        message-id ZV.&lt;/P&gt;&lt;P&gt;include bdcrecx1.&lt;/P&gt;&lt;P&gt;TABLES: EKPO,EKES.&lt;/P&gt;&lt;P&gt;data : begin of t_itab occurs 0,&lt;/P&gt;&lt;P&gt;       ebeln like ekko-ebeln,&lt;/P&gt;&lt;P&gt;       ebelp like ekpo-ebelp,&lt;/P&gt;&lt;P&gt;       bstae like ekpo-bstae,&lt;/P&gt;&lt;P&gt;       ebtyp like ekes-ebtyp ,&lt;/P&gt;&lt;P&gt;       eindt(10),&lt;/P&gt;&lt;P&gt;       menge like ekes-menge,&lt;/P&gt;&lt;P&gt;       xblnr like ekes-xblnr,&lt;/P&gt;&lt;P&gt;       end of t_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF record,&lt;/P&gt;&lt;P&gt;  ebeln type ebeln,&lt;/P&gt;&lt;P&gt;  ebelp type ebelp,&lt;/P&gt;&lt;P&gt;END OF record.&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;creating an internal table containg the Items***&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : t_tab LIKE record OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER : filename LIKE rlgrap-filename OBLIGATORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***declaring temporary variables&lt;/P&gt;&lt;P&gt;DATA :&lt;/P&gt;&lt;P&gt;v_cnt(2) TYPE n,&lt;/P&gt;&lt;P&gt;v_bst(2) TYPE n,&lt;/P&gt;&lt;P&gt;v_bn type i,&lt;/P&gt;&lt;P&gt;v_bstpo(25),&lt;/P&gt;&lt;P&gt;v_ebtyp(25),&lt;/P&gt;&lt;P&gt;v_menge(25),&lt;/P&gt;&lt;P&gt;v_eeind(25),&lt;/P&gt;&lt;P&gt;v_xblnr(25),&lt;/P&gt;&lt;P&gt;v_xblnr1(25),&lt;/P&gt;&lt;P&gt;v_ebelp(2) type n,&lt;/P&gt;&lt;P&gt;v_ebelpt(2),&lt;/P&gt;&lt;P&gt;v_menge1(11),&lt;/P&gt;&lt;P&gt;v_ebt type i,&lt;/P&gt;&lt;P&gt;v_vebtyp like ekes-ebtyp,&lt;/P&gt;&lt;P&gt;V_EB(2) TYPE N,&lt;/P&gt;&lt;P&gt;v_tcselflag(40),&lt;/P&gt;&lt;P&gt;v_tem(2) type n,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_file type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'KD_GET_FILENAME_ON_F4'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      field_name = filename&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      file_name  = filename.&lt;/P&gt;&lt;P&gt;&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;  v_file = filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***uploading from flat file into internal table&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;LI level="1" type="ul"&gt;&lt;P&gt;  READ_BY_LINE                  = 'X'&lt;/P&gt;&lt;/LI&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;  CODEPAGE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IGNORE_CERR                   = ABAP_TRUE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  REPLACEMENT                   = '#'&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                      = t_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    INPUT         = t_itab-ebeln&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   OUTPUT        =  t_itab-ebeln&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;modify t_itab.&lt;/P&gt;&lt;P&gt;clear t_itab.&lt;/P&gt;&lt;P&gt;endloop.&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;checking the item numbers in the flat file.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  loop at t_itab.&lt;/P&gt;&lt;P&gt;    select ebeln ebelp from ekpo into table t_tab&lt;/P&gt;&lt;P&gt;    where ebeln = t_itab-ebeln.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF t_tab[] is not initial.&lt;/P&gt;&lt;P&gt;    perform open_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***looping at purchase order level.&lt;/P&gt;&lt;P&gt;    LOOP at t_itab.&lt;/P&gt;&lt;P&gt;      clear v_bn.&lt;/P&gt;&lt;P&gt;      clear v_ebt.&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPMM06E' '0105'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'RM06E-BSTNR'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '/00'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'RM06E-BSTNR'&lt;/P&gt;&lt;P&gt;                                    t_itab-ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;Changing alphanumeric fields and quantity fields to character type&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      v_ebelp = t_itab-ebelp.&lt;/P&gt;&lt;P&gt;      clear v_ebelpt.&lt;/P&gt;&lt;P&gt;      v_menge1 = t_itab-menge.&lt;/P&gt;&lt;P&gt;      v_ebelpt = v_ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;End Of Changing&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;Checking for the exact number of the item&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     loop at t_tab where ebeln = t_itab-ebeln.&lt;/P&gt;&lt;P&gt;        if t_tab-ebelp = t_itab-ebelp.&lt;/P&gt;&lt;P&gt;          exit.&lt;/P&gt;&lt;P&gt;        else.&lt;/P&gt;&lt;P&gt;          v_bn = v_bn + 1.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;      v_bst = v_bn + 1.&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;End Of Checking&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;Mapping items&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;     v_tem = 1.&lt;/P&gt;&lt;P&gt;      CONCATENATE 'RM06E-BSTPO(' v_bst ')' INTO v_bstpo.&lt;/P&gt;&lt;P&gt;      CONCATENATE 'RM06E-TCSELFLAG(' v_tem ')' INTO v_tcselflag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPMM06E' '0120'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    v_bstpo.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                   '=DETA'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'RM06E-EBELP'&lt;/P&gt;&lt;P&gt;                                     v_ebelpt.&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPMM06E' '0111'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'EKPO-BSTAE'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '/00'.&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPMM06E' '0120'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    v_bstpo.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '=BSTA'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'RM06E-EBELP'&lt;/P&gt;&lt;P&gt;                                    v_ebelpt.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using v_tcselflag&lt;/P&gt;&lt;P&gt;                                     'X'.&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;Checking weather Confirmation category already exists&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;      select ebtyp from ekes into v_vebtyp where ebelp =&lt;/P&gt;&lt;P&gt;              t_itab-ebelp and ebeln = t_itab-ebeln.&lt;/P&gt;&lt;P&gt;      endselect.&lt;/P&gt;&lt;P&gt;      if sy-dbcnt &amp;gt; 0.&lt;/P&gt;&lt;P&gt;        v_ebt = sy-dbcnt.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      V_EB = V_EBT + 1.&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;End Of Checking&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;For Line items&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;      CONCATENATE 'EKES-EBTYP(' v_eb ')' INTO v_ebtyp.&lt;/P&gt;&lt;P&gt;      CONCATENATE 'EKES-MENGE(' v_eb ')' INTO v_menge.&lt;/P&gt;&lt;P&gt;      CONCATENATE 'RM06E-EEIND(' v_eb  ')' INTO v_eeind.&lt;/P&gt;&lt;P&gt;      CONCATENATE 'EKES-XBLNR(' v_eb ')' INTO v_xblnr.&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;End&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPLEINB' '0200'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    v_xblnr.&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;      perform bdc_field       using  v_ebtyp&lt;/P&gt;&lt;P&gt;                                   t_itab-ebtyp.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using v_eeind&lt;/P&gt;&lt;P&gt;                                 t_itab-eindt.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using v_menge&lt;/P&gt;&lt;P&gt;                                     v_menge1.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using v_xblnr&lt;/P&gt;&lt;P&gt;                                  t_itab-xblnr.&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;End Of Mappings&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;    perform bdc_transaction using 'ME22'.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;End Of Purchase Order Loop&lt;/STRONG&gt;**&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;  ELSE.&lt;/P&gt;&lt;P&gt;    MESSAGE I083(zv).&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2006 06:35:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1132203#M111995</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2006-02-24T06:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1132204#M111996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can club those into a same program.&lt;/P&gt;&lt;P&gt;First process the internal table data using CALL TRANSACTION and then collect the errors and create the session&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Process those using session method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2006 06:36:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1132204#M111996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-24T06:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1132205#M111997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jak,&lt;/P&gt;&lt;P&gt;Reward the points to the helpful answer and close the post..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2006 07:10:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1132205#M111997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-24T07:10:43Z</dc:date>
    </item>
  </channel>
</rss>

