<?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: Regarding BDC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bdc/m-p/1954494#M392795</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To use the Direct Input method, you need to first identify the Standard program for the direct input.&lt;/P&gt;&lt;P&gt;The Standard program will be a report which expects the data to be in a particular format to be uploaded. It should be passed with a file location where the file in the required format is to be placed. Once you pplace the file in that location and run the standard report, the Direct input is said to be done and the database tables will get uploaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The part you have to do is , to upload the file from either an application server or a presentation server, and format into the required format in which the direct input program expects and place the file in the target location on the application server and finally submit the direct input standard program.&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, 02 Mar 2007 08:45:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-02T08:45:24Z</dc:date>
    <item>
      <title>Regarding BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bdc/m-p/1954492#M392793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;can anybody please help me in transferring data through BDC direct input method?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2007 08:39:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bdc/m-p/1954492#M392793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-02T08:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bdc/m-p/1954493#M392794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the following ex: for RFBIBL00 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF bgr00.                "BI strucutre in RFBIBL00&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE bgr00.&lt;/P&gt;&lt;P&gt;DATA: END OF bgr00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF bbkpf.                " Header Structure in RFBIBL00&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE bbkpf.&lt;/P&gt;&lt;P&gt;DATA: END OF bbkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF bbseg.                " Line Item Structure in RFBIBL00&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE bbseg.&lt;/P&gt;&lt;P&gt;DATA: END OF bbseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*File in Application Server&lt;/P&gt;&lt;P&gt;DATA: output_file_name LIKE rfpdo-rfbifile VALUE 'J:\EXCER'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Data declaration for passing values to screen of RFBIBL00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: callmode VALUE 'B',                      "BDC MODE&lt;/P&gt;&lt;P&gt;      max_comm(4) VALUE '1000',                 "COMMIT&lt;/P&gt;&lt;P&gt;      pa_xprot,                                 &amp;#147; &lt;/P&gt;&lt;P&gt;      anz_mode LIKE rfpdo-allgazmd VALUE 'N',    &amp;#147;Display Mode &lt;/P&gt;&lt;P&gt;      update LIKE rfpdo-allgvbmd VALUE 'S',       &amp;#147; Update Mode &lt;/P&gt;&lt;P&gt;      tab1 TYPE i,&lt;/P&gt;&lt;P&gt;      in_tab TYPE i,&lt;/P&gt;&lt;P&gt;      fl_check,&lt;/P&gt;&lt;P&gt;      flag TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS: exp_acc(3) VALUE '800'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab1 OCCURS 0,&lt;/P&gt;&lt;P&gt;       bldat LIKE bkpf-bldat,      &lt;/P&gt;&lt;P&gt;       blart LIKE bkpf-blart,     	&amp;#147;Document Type&lt;/P&gt;&lt;P&gt;       bukrs LIKE bkpf-bukrs,		&amp;#147;Company Code &lt;/P&gt;&lt;P&gt;       budat LIKE bkpf-budat,		&lt;/P&gt;&lt;P&gt;       waers LIKE bkpf-waers,		&amp;#147;Currency Key	&lt;/P&gt;&lt;P&gt;       bschl LIKE bseg-bschl,		&amp;#147;posting Key&lt;/P&gt;&lt;P&gt;       hkont LIKE bseg-hkont,		&amp;#147;Account Number	&lt;/P&gt;&lt;P&gt;       wrbtr(17) TYPE c,		&amp;#147;Transactional Amount	&lt;/P&gt;&lt;P&gt;       sgtxt LIKE bseg-sgtxt,		&amp;#147;Text&lt;/P&gt;&lt;P&gt;     END OF itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab LIKE itab1 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      wa_itab LIKE itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: BEGIN OF BLOCK blk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: fname TYPE rlgrap-filename,&lt;/P&gt;&lt;P&gt;            poutput LIKE rfpdo1-f05xicpd DEFAULT 'PAY',&lt;/P&gt;&lt;P&gt;            pgroup LIKE bgr00-group DEFAULT 'FBPRAC',&lt;/P&gt;&lt;P&gt;            pusnam LIKE bgr00-usnam DEFAULT sy-uname,&lt;/P&gt;&lt;P&gt;            pxkeep LIKE bgr00-xkeep DEFAULT 'X',&lt;/P&gt;&lt;P&gt;            pstart LIKE bgr00-start DEFAULT space,&lt;/P&gt;&lt;P&gt;            ptcode LIKE blf00-tcode DEFAULT 'FB01',&lt;/P&gt;&lt;P&gt;            XLOG(1) TYPE C DEFAULT 'X'.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: END OF BLOCK blk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Select File to upload data into internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR fname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            program_name  = 'ZRFBIB_CONV'&lt;/P&gt;&lt;P&gt;            dynpro_number = '1000'&lt;/P&gt;&lt;P&gt;            field_name    = 'FNAME'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            file_name     = fname.&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;*Upload data from legacy to itab&lt;/P&gt;&lt;P&gt;  PERFORM upload_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Open App File&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      OPEN DATASET output_file_name FOR OUTPUT IN TEXT MODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    WRITE:/ 'FILE COULD NOT BE OPENED'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Populate data into bgr00 structure&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PERFORM populate_bgr00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Load data&lt;/P&gt;&lt;P&gt;  PERFORM load_data.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  upload_data&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM upload_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'WS_UPLOAD'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     filename                      = fname&lt;/P&gt;&lt;P&gt;     filetype                      = 'DAT'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                      = itab1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " upload_data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  populate_bgr00&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Subroutine to populate data in bgr00 structure&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM populate_bgr00.&lt;/P&gt;&lt;P&gt;  bgr00-stype = '0'.                   "BI Record&lt;/P&gt;&lt;P&gt;  bgr00-group = pgroup.                "BDC Group&lt;/P&gt;&lt;P&gt;  bgr00-mandt = sy-mandt.              "Client&lt;/P&gt;&lt;P&gt;  bgr00-usnam = pusnam.                "User Id&lt;/P&gt;&lt;P&gt;  bgr00-start = pstart.                "Queue Start Date&lt;/P&gt;&lt;P&gt;  bgr00-xkeep = pxkeep.                "Keep Session&lt;/P&gt;&lt;P&gt;  bgr00-nodata = '/'.&lt;/P&gt;&lt;P&gt;  TRANSFER bgr00 TO output_file_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " populate_bgr00&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  load_data&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Actual load logic start in this subroutine&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM load_data.&lt;/P&gt;&lt;P&gt;  LOOP AT itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    REFRESH itab.&lt;/P&gt;&lt;P&gt;***For the purpose of reconciliation,split the bschl and HKONT into 2&lt;/P&gt;&lt;P&gt;***line items&lt;/P&gt;&lt;P&gt;    MOVE-CORRESPONDING: itab1 TO wa_itab.&lt;/P&gt;&lt;P&gt;    APPEND wa_itab TO itab.&lt;/P&gt;&lt;P&gt;**For the purpose of reconciliation,do as below&lt;/P&gt;&lt;P&gt;    IF wa_itab-bschl = '50'.&lt;/P&gt;&lt;P&gt;      wa_itab-bschl = '40'.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      wa_itab-bschl = '50'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND wa_itab TO  itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    READ TABLE itab INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*populate data in bbkpf&lt;/P&gt;&lt;P&gt;    PERFORM populate_bbkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT itab.&lt;/P&gt;&lt;P&gt;*populate data in bbseg.&lt;/P&gt;&lt;P&gt;      PERFORM populate_bbseg.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;    CLEAR: itab, itab1.&lt;/P&gt;&lt;P&gt;*Submit to program rfbibl00&lt;/P&gt;&lt;P&gt;    SUBMIT rfbibl00 WITH  ds_name   =   output_file_name   "File name&lt;/P&gt;&lt;P&gt;                        WITH  fl_check  =   fl_check       "File check&lt;/P&gt;&lt;P&gt;                        WITH  callmode  =   callmode       "BDC Mode&lt;/P&gt;&lt;P&gt;                        WITH  max_comm  =   max_comm       "Max Commit&lt;/P&gt;&lt;P&gt;                        WITH  pa_xprot  =   pa_xprot       "Extended Log&lt;/P&gt;&lt;P&gt;                        WITH  anz_mode  =   anz_mode      " Display Mode&lt;/P&gt;&lt;P&gt;                        WITH  update    =   update        "Update Mode&lt;/P&gt;&lt;P&gt;                        WITH XLOG = XLOG                  "Display Log&lt;/P&gt;&lt;P&gt;                        AND RETURN.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " load_data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  populate_bbkpf&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM populate_bbkpf.&lt;/P&gt;&lt;P&gt;  TRANSLATE bbkpf USING ' /'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  bbkpf-stype = '1'.                   " BI Interface Record&lt;/P&gt;&lt;P&gt;  bbkpf-tcode = ptcode.                " Transaction Code&lt;/P&gt;&lt;P&gt;  bbkpf-bldat = '31122004'.             " Document Date&lt;/P&gt;&lt;P&gt;  bbkpf-budat = '31122004'.             " Posting Date&lt;/P&gt;&lt;P&gt;  bbkpf-blart = itab-blart.                  " Document Type&lt;/P&gt;&lt;P&gt;  bbkpf-bukrs = itab-bukrs.         " Company Code&lt;/P&gt;&lt;P&gt;  bbkpf-waers = itab-waers.                 " Currency&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; BBKPF-XBLNR = 'PAYROLL'.             " Reference Document&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  bbkpf-sende = '/'.                   " Record End Indicator&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRANSFER bbkpf TO output_file_name. "Transfer to App Server File&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " populate_bbkpf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  populate_bbseg&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM populate_bbseg.&lt;/P&gt;&lt;P&gt;  CLEAR bbseg.&lt;/P&gt;&lt;P&gt;  TRANSLATE bbseg USING ' /'.&lt;/P&gt;&lt;P&gt;*Document Detail For Accounting Document&lt;/P&gt;&lt;P&gt;  bbseg-stype = '2'.                   "Batch Input Interface Record&lt;/P&gt;&lt;P&gt;  bbseg-tbnam = 'BBSEG'.&lt;/P&gt;&lt;P&gt;  bbseg-wrbtr = itab-wrbtr.          "Amount in Local Currency&lt;/P&gt;&lt;P&gt;  bbseg-sgtxt = itab-sgtxt.           "Line Item Text&lt;/P&gt;&lt;P&gt;  bbseg-newbs = itab-bschl.            "Posting Key for Next Line&lt;/P&gt;&lt;P&gt;  bbseg-newko = itab-hkont.&lt;/P&gt;&lt;P&gt;  bbseg-sende = '/'.                   "Record End Indicator&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRANSFER bbseg TO output_file_name.  &amp;#147;Transfer data from itab to App file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " populate_bbseg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2007 08:43:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bdc/m-p/1954493#M392794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-02T08:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bdc/m-p/1954494#M392795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To use the Direct Input method, you need to first identify the Standard program for the direct input.&lt;/P&gt;&lt;P&gt;The Standard program will be a report which expects the data to be in a particular format to be uploaded. It should be passed with a file location where the file in the required format is to be placed. Once you pplace the file in that location and run the standard report, the Direct input is said to be done and the database tables will get uploaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The part you have to do is , to upload the file from either an application server or a presentation server, and format into the required format in which the direct input program expects and place the file in the target location on the application server and finally submit the direct input standard program.&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, 02 Mar 2007 08:45:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bdc/m-p/1954494#M392795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-02T08:45:24Z</dc:date>
    </item>
  </channel>
</rss>

