{"id":262,"date":"2024-06-06T04:44:58","date_gmt":"2024-06-06T04:44:58","guid":{"rendered":"https:\/\/sapabap.dwimansolution.com\/?p=262"},"modified":"2024-06-06T04:44:58","modified_gmt":"2024-06-06T04:44:58","slug":"sap-abap-bdc-template","status":"publish","type":"post","link":"https:\/\/sapabap.dwimansolution.com\/index.php\/2024\/06\/06\/sap-abap-bdc-template\/","title":{"rendered":"SAP ABAP &#8211; BDC Template"},"content":{"rendered":"\n<p>bismillah..<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>**********************************************************************\r\n*  D E F I N E   V A R I A B L E\r\n**********************************************************************\r\n  DATA : it_bdcdata    TYPE TABLE OF bdcdata,\r\n         ls_bdcdata    TYPE bdcdata,\r\n         lv_mode       TYPE char1 VALUE 'N',\r\n         it_bdcmsgcoll TYPE TABLE OF bdcmsgcoll.\r\n\r\n**********************************************************************\r\n*  M A C R O\r\n**********************************************************************\r\n  DEFINE _bdc_field.\r\n    CLEAR  ls_bdcdata.\r\n    ls_bdcdata-fnam = &amp;1.\r\n    ls_bdcdata-fval = &amp;2.\r\n    APPEND ls_bdcdata TO it_bdcdata.\r\n  END-OF-DEFINITION.\r\n\r\n  DEFINE _bdc_dynpro.\r\n    CLEAR  ls_bdcdata.\r\n    ls_bdcdata-program = &amp;1.\r\n    ls_bdcdata-dynpro = &amp;2.\r\n    ls_bdcdata-dynbegin = 'X'. \"NEW SCREEN\r\n    APPEND ls_bdcdata TO it_bdcdata.\r\n  END-OF-DEFINITION.\r\n\r\n\r\n**********************************************************************\r\n*  S T A R T   B D C\r\n**********************************************************************\r\n  _bdc_field 'SAPXXXXX' '9999'.\r\n  _bdc_dynpro 'FIELD' 'VALUE'.\r\n\r\n  CALL TRANSACTION 'VL01NO' USING it_bdcdata MODE lv_mode MESSAGES INTO it_bdcmsgcoll.  \" A - DISPLAY ALL SCREENS<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>bismillah..<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/sapabap.dwimansolution.com\/index.php\/wp-json\/wp\/v2\/posts\/262"}],"collection":[{"href":"https:\/\/sapabap.dwimansolution.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sapabap.dwimansolution.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sapabap.dwimansolution.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sapabap.dwimansolution.com\/index.php\/wp-json\/wp\/v2\/comments?post=262"}],"version-history":[{"count":1,"href":"https:\/\/sapabap.dwimansolution.com\/index.php\/wp-json\/wp\/v2\/posts\/262\/revisions"}],"predecessor-version":[{"id":263,"href":"https:\/\/sapabap.dwimansolution.com\/index.php\/wp-json\/wp\/v2\/posts\/262\/revisions\/263"}],"wp:attachment":[{"href":"https:\/\/sapabap.dwimansolution.com\/index.php\/wp-json\/wp\/v2\/media?parent=262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sapabap.dwimansolution.com\/index.php\/wp-json\/wp\/v2\/categories?post=262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sapabap.dwimansolution.com\/index.php\/wp-json\/wp\/v2\/tags?post=262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}