report Z12_33
no standard page heading line-size 255.
include bdcrecx1.
parameters: dataset(132) lower case default
'C:BDCTEST.TXT'.
*** 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 ***
data: begin of record,
* data element: MATNR
MATNR_001(018),
* data element: XFELD
KZSEL_12_002(001),
* data element: WERKS_D
WERKS_003(004),
* data element: MAKTX
MAKTX_004(040),
* data element: MEINS
MEINS_005(003),
* data element: EKGRP
EKGRP_006(003),
* data element: DISMM
DISMM_007(002),
* data element: DISPO
DISPO_008(003),
* data element: DISLS
DISLS_009(002),
* data element: BSTMA
BSTMA_010(017),
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 <> 0. exit. endif.
perform bdc_dynpro using 'SAPLMGMM' '0060'.
perform bdc_field using 'BDC_CURSOR'
'RMMG1-MATNR'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_field using 'RMMG1-MATNR'
record-MATNR_001.
perform bdc_dynpro using 'SAPLMGMM' '0070'.
perform bdc_field using 'BDC_CURSOR'
'MSICHTAUSW-DYTXT(12)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_field using 'MSICHTAUSW-KZSEL(12)'
record-KZSEL_12_002.
perform bdc_dynpro using 'SAPLMGMM' '0080'.
perform bdc_field using 'BDC_CURSOR'
'RMMG1-WERKS'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_field using 'RMMG1-WERKS'
record-WERKS_003.
perform bdc_dynpro using 'SAPLMGMM' '5000'.
perform bdc_field using 'BDC_OKCODE'
'=BABA'.
perform bdc_field using 'BDC_CURSOR'
'MAKT-MAKTX'.
perform bdc_field using 'MAKT-MAKTX'
record-MAKTX_004.
perform bdc_field using 'MARA-MEINS'
record-MEINS_005.
perform bdc_field using 'MARC-EKGRP'
record-EKGRP_006.
perform bdc_field using 'MARC-DISMM'
record-DISMM_007.
perform bdc_field using 'MARC-DISPO'
record-DISPO_008.
perform bdc_field using 'MARC-DISLS'
record-DISLS_009.
perform bdc_field using 'MARC-BSTMA'
record-BSTMA_010.
perform bdc_transaction using 'MM02'.
enddo.
perform close_group.
perform close_dataset using dataset.
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
670 | <b>easy abap 소스 전체 파일 입니다. [188] | sapjoy | 2008.05.01 | 10126 |
669 | REPORT z18_033 [47] | sapjoy | 2008.10.13 | 9031 |
668 | REPORT Z15_003 [49] | sapjoy | 2008.04.15 | 7498 |
667 | report zunicode_027. [4] | sapjoy | 2008.11.21 | 6262 |
666 | REPORT Z20_01. | sapjoy | 2012.08.01 | 5062 |
665 | REPORT z18_03. | sapjoy | 2012.08.01 | 4558 |
664 | Z01_012 [9] | sapjoy | 2006.12.02 | 4548 |
663 | Z_EXPORT_GRAPHIC_FROM_SE78 [1] | sapjoy | 2011.03.28 | 4443 |
662 | report zsapdoi_002. | sapjoy | 2008.12.26 | 4405 |
661 | REPORT zsmw0010 | sapjoy | 2010.10.11 | 4313 |
660 | REPORT z18_028 | sapjoy | 2007.04.09 | 4278 |
659 | report zsalv_045 . | sapjoy | 2010.08.20 | 4262 |
658 | Dynamic Table Maintenance [1] | sapjoy | 2006.12.04 | 4094 |
657 | REPORT ZTABLE_UTIL | sapjoy | 2010.10.09 | 4010 |
656 | REPORT Z19_02. | sapjoy | 2012.08.01 | 3926 |
655 | report zsaptip_009 [1] | sapjoy | 2010.12.10 | 3852 |
654 | INCLUDE ZXF04U01 | sapjoy | 2008.12.15 | 3695 |
653 | REPORT ZTEST_ABAPTPDF | sapjoy | 2010.10.09 | 3691 |
652 | REPORT Z_3DGRAPH. [1] | sapjoy | 2010.10.17 | 3659 |
651 | REPORT zfalv_011. | sapjoy | 2011.02.16 | 3624 |