상단메뉴의 시스템 -> 서비스 -> 배치입력 -> 리코드 클릭 


New recording 을 클릭하여 레코딩을 하나 만든다.

레코딩명은 알아서 정하고... 트랜잭션코드는 아까 설정했던 트랜잭션 코드를 써준다. ZDH_BDC
만들면 아까 만들었던 프로그램 입력스크린이 뜰 것이다. 이름, 입사일, 연봉, 통화키 , 인상률 등등... 적어서 실행시켜준다.
레코딩에 필드 정보들이 등록된다. 세이브...


레코딩이 만들어졌으면... 해당 레코딩을 선택하고 program 생성을 누른다.

 
소스보기를 누르면 다음과 같은 소스가 나온다면 성공이다.

report ZDH_TEST_10DAY_RC2
       no standard page heading line-size 255.
include bdcrecx1.
parametersdataset(132lower case.
***    DO NOT CHANGE - the generated data section - DO NOT CHANGE    ***
*
*   If it is nessesary to change the data section use the rules:
*   1.) Each definition of a field exists of two lines
*   2.) The first line shows exactly the comment
*       '* data element: ' followed with the data element
*       which describes the field.
*       If you don't have a data element use the
*       comment without a data element name
*   3.) The second line shows the fieldname of the
*       structure, the fieldname must consist of
*       a fieldname and optional the character '_' and
*       three numbers and the field length in brackets
*   4.) Each field must be type C.
*
*** Generated data section with specific formatting - DO NOT CHANGE  ***
databegin of record,
* data element:
        P_NAME_001(030),
* data element:
        P_POST_002(030),
* data element:
        P_ERDAT_003(010),
* data element:
        P_PAY_004(016),
* data element:
        P_WAERS_005(005),
* data element:
        P_FEE_006(010),
      end of record.
*** End generated data section ***
start-of-selection.
perform open_dataset using dataset.
perform open_group.

do.
read dataset dataset into record.
if sy-subrc <> 0exitendif.

perform bdc_dynpro      using 'ZDH_TEST_10DAY_2' '1000'.
perform bdc_field       using 'BDC_CURSOR'
                              'P_FEE'.
perform bdc_field       using 'BDC_OKCODE'
                              'ONLI'.
perform bdc_field       using 'P_NAME'
                              record-P_NAME_001.
perform bdc_field       using 'P_POST'
                              record-P_POST_002.
perform bdc_field       using 'P_ERDAT'
                              record-P_ERDAT_003.
perform bdc_field       using 'P_PAY'
                              record-P_PAY_004.
perform bdc_field       using 'P_WAERS'
                              record-P_WAERS_005.
perform bdc_field       using 'P_FEE'
                              record-P_FEE_006.
perform bdc_transaction using 'ZDH_BDC'.
enddo.

perform close_group.
perform close_dataset using dataset.

AND