<?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 Help with BDC recording / program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bdc-recording-program/m-p/1745961#M323648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to write a program for posting goods issue using BDC..I got the following recording. Can you tell me how to use(code) this in program for posting goods issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VL02N                                                                                &lt;/P&gt;&lt;P&gt;SAPMV50A	4004	X                                                                                &lt;/P&gt;&lt;P&gt;BDC_CURSOR	LIKP-VBELN&lt;/P&gt;&lt;P&gt;                                        	    	 	BDC_OKCODE	=WABU_T&lt;/P&gt;&lt;P&gt;                                        	    	 	LIKP-VBELN	114000400&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Dec 2006 20:04:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-05T20:04:37Z</dc:date>
    <item>
      <title>Help with BDC recording / program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bdc-recording-program/m-p/1745961#M323648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to write a program for posting goods issue using BDC..I got the following recording. Can you tell me how to use(code) this in program for posting goods issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VL02N                                                                                &lt;/P&gt;&lt;P&gt;SAPMV50A	4004	X                                                                                &lt;/P&gt;&lt;P&gt;BDC_CURSOR	LIKP-VBELN&lt;/P&gt;&lt;P&gt;                                        	    	 	BDC_OKCODE	=WABU_T&lt;/P&gt;&lt;P&gt;                                        	    	 	LIKP-VBELN	114000400&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 20:04:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bdc-recording-program/m-p/1745961#M323648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T20:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help with BDC recording / program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bdc-recording-program/m-p/1745962#M323649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; If you used SHDB to record your transaction, then click 'PROGRAM' button in SHDB, this will create a program for your recording. Before clicking PROGRAM button make sure the name of the recording is checked in the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or else&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV50A' '4004'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR' 'LIKP-VBELN'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE' '=WABU'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'LIKP-VBELN' '114000400'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL TRANSACTION TCODE USING BDCDATA&lt;/P&gt;&lt;P&gt;                     MODE   CTUMODE&lt;/P&gt;&lt;P&gt;                     UPDATE CUPDATE&lt;/P&gt;&lt;P&gt;                     MESSAGES INTO MESSTAB.&lt;/P&gt;&lt;P&gt;(Where TCODE = 'VL02N', CTUMODE = 'N' or 'A' and CUPDATE = 'S', MESSTAB of type BDCMSGCOLL)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&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;       Start new screen                                              *&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 BDC_DYNPRO USING PROGRAM DYNPRO.&lt;/P&gt;&lt;P&gt;  CLEAR BDCDATA.&lt;/P&gt;&lt;P&gt;  BDCDATA-PROGRAM  = PROGRAM.&lt;/P&gt;&lt;P&gt;  BDCDATA-DYNPRO   = DYNPRO.&lt;/P&gt;&lt;P&gt;  BDCDATA-DYNBEGIN = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND BDCDATA.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&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;       Insert field                                                  *&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 BDC_FIELD USING FNAM FVAL.&lt;/P&gt;&lt;P&gt;  IF FVAL &amp;lt;&amp;gt; NODATA.&lt;/P&gt;&lt;P&gt;    CLEAR BDCDATA.&lt;/P&gt;&lt;P&gt;    BDCDATA-FNAM = FNAM.&lt;/P&gt;&lt;P&gt;    BDCDATA-FVAL = FVAL.&lt;/P&gt;&lt;P&gt;    APPEND BDCDATA.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&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;Vamsi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 20:28:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bdc-recording-program/m-p/1745962#M323649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T20:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help with BDC recording / program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bdc-recording-program/m-p/1745963#M323650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;check this code for goods issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ctumode like ctu_params-dismode value 'N'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: cupdate like ctu_params-updmode value 'L'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform create_first_screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at itab.&lt;/P&gt;&lt;P&gt;    clear w_erfmg.&lt;/P&gt;&lt;P&gt;    w_erfmg = itab-zmenge.&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPMM07M' '0421'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '=NLE'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'MSEG-MATNR(01)'  "Material number&lt;/P&gt;&lt;P&gt;                                  itab-matnr.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'MSEG-ERFMG(01)'  "Quantity&lt;/P&gt;&lt;P&gt;                                  w_erfmg.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'MSEG-ERFME(01)'  "UoM&lt;/P&gt;&lt;P&gt;                                  itab-meins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'MSEG-WERKS(01)'  "PLANT&lt;/P&gt;&lt;P&gt;                              ITAB-WERKS.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'MSEG-LGORT(01)' "STORAGE LOCATION&lt;/P&gt;&lt;P&gt;                              ITAB-lgort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_SUBSCR' 'SAPMM07M   2400BLOCK1'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_SUBSCR' 'SAPLKACB   9000BLOCK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if not itab-kostl is initial.&lt;/P&gt;&lt;P&gt;      perform bdc_field     using 'BDC_CURSOR' 'COBL-KOSTL'.&lt;/P&gt;&lt;P&gt;      perform bdc_field     using 'COBL-KOSTL' itab-kostl.&lt;/P&gt;&lt;P&gt;    elseif not itab-aufnr is initial.&lt;/P&gt;&lt;P&gt;      perform bdc_field     using 'BDC_CURSOR' 'COBL-AUFNR'.&lt;/P&gt;&lt;P&gt;      perform bdc_field     using 'COBL-AUFNR' itab-aufnr.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  perform finish_trans.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form bdc_dynpro using program dynpro.&lt;/P&gt;&lt;P&gt;  clear bdcdata.&lt;/P&gt;&lt;P&gt;  bdcdata-program  = program.&lt;/P&gt;&lt;P&gt;  bdcdata-dynpro   = dynpro.&lt;/P&gt;&lt;P&gt;  bdcdata-dynbegin = 'X'.&lt;/P&gt;&lt;P&gt;  append bdcdata.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form bdc_field using fnam fval.&lt;/P&gt;&lt;P&gt;  clear bdcdata.&lt;/P&gt;&lt;P&gt;  bdcdata-fnam = fnam.&lt;/P&gt;&lt;P&gt;  bdcdata-fval = fval.&lt;/P&gt;&lt;P&gt;  append bdcdata.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form create_first_screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: w_date(10),&lt;/P&gt;&lt;P&gt;        w_mov_type(3) value '201',&lt;/P&gt;&lt;P&gt;       w_txt(19) TYPE C.                     &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;        w_txt = 'abvB Replenishment'.&lt;/P&gt;&lt;P&gt;        w_werks = 'abc'.&lt;/P&gt;&lt;P&gt;        W_LGORT = 'abc'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  write sy-datum to w_date mm/dd/yyyy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  perform bdc_dynpro      using 'SAPMM07M' '0400'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                             'RM07M-WERKS'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                             '=NPE'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                'RM07M-XNAPR'.&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 'MKPF-BLDAT'&lt;/P&gt;&lt;P&gt;                                w_date.&lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'MKPF-BUDAT'&lt;/P&gt;&lt;P&gt;                                w_date.&lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'MKPF-BKTXT'&lt;/P&gt;&lt;P&gt;                                w_txt.&lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'RM07M-BWARTWA'       "movement type&lt;/P&gt;&lt;P&gt;                                w_mov_type.&lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'RM07M-WERKS'&lt;/P&gt;&lt;P&gt;                                w_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'RM07M-LGORT'&lt;/P&gt;&lt;P&gt;                               ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'XFULL'&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; perform bdc_field       using 'RM07M-XNAPR' ' X'.       "print flag&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'RM07M-WVERS3'&lt;/P&gt;&lt;P&gt;                                'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " create_first_screen&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;form finish_trans.&lt;/P&gt;&lt;P&gt;  perform bdc_dynpro      using 'SAPMM07M' '0421'.&lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                'MSEG-ERFMG(01)'.&lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                '=BU'.               "Post&lt;/P&gt;&lt;P&gt;  perform create_transaction using 'MB1A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " finish_trans&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;LET ME KNOW IF YOU NEED ANYTHING ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tHANKS&lt;/P&gt;&lt;P&gt;VENKI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 20:42:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bdc-recording-program/m-p/1745963#M323650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T20:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help with BDC recording / program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bdc-recording-program/m-p/1745964#M323651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;go to 'shdb' tcode, once the recording is over. clisk on program pushbutton in application tool bar. it takes you to the abap editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should declare the internal table there. and upload the required file in start-of-selection event. then change the variables you are passed in the recording with internal table fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make the transfer to all records put all the recorded code in a loop. Bz. recording will be created for one record only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 06:17:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bdc-recording-program/m-p/1745964#M323651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T06:17:54Z</dc:date>
    </item>
  </channel>
</rss>

