0% found this document useful (0 votes)
142 views2 pages

BDC Recording Co02 1

The document provides instructions for generating a data section with specific formatting rules. It defines the structure of the data section, including that each field definition consists of two lines - a comment line with the data element name followed by a line with the field name and length. It also contains a sample generated data section that follows these rules with multiple fields defined. The main content of the document is to provide documentation on formatting requirements for automatically generating a specific type of data section.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
142 views2 pages

BDC Recording Co02 1

The document provides instructions for generating a data section with specific formatting rules. It defines the structure of the data section, including that each field definition consists of two lines - a comment line with the data element name followed by a line with the field name and length. It also contains a sample generated data section that follows these rules with multiple fields defined. The main content of the document is to provide documentation on formatting requirements for automatically generating a specific type of data section.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

report ZPP_TEST_BDC

no standard page heading line-size 255.

include bdcrecx1.

parameters: dataset(132) lower 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 ***
data: begin of record,
* data element: AUFNR
AUFNR_001(012),
* data element: FLG_OVIEW
FLG_OVIEW_002(001),
* data element:
FILTER_BOX_003(020),
* data element:
SORT_BOX_004(020),
* data element: APOSN
POSNR_005(004),
* data element:
FILTER_BOX_006(020),
* data element:
SORT_BOX_007(020),
* data element: FLG_SEL
FLG_SEL_01_008(001),
* data element:
FILTER_BOX_009(020),
* data element:
SORT_BOX_010(020),
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 'SAPLCOKO1' '0110'.


perform bdc_field using 'BDC_CURSOR'
'CAUFVD-AUFNR'.
perform bdc_field using 'BDC_OKCODE'
'=KPU2'.
perform bdc_field using 'CAUFVD-AUFNR'
record-AUFNR_001.
perform bdc_field using 'R62CLORD-FLG_OVIEW'
record-FLG_OVIEW_002.
perform bdc_dynpro using 'SAPLCOMK' '0120'.
perform bdc_field using 'BDC_CURSOR'
'RESBD-MATNR(01)'.
perform bdc_field using 'BDC_OKCODE'
'=AUFS'.
perform bdc_field using 'FILTER_BOX'
record-FILTER_BOX_003.
perform bdc_field using 'SORT_BOX'
record-SORT_BOX_004.
perform bdc_dynpro using 'SAPLCO05' '0110'.
perform bdc_field using 'BDC_CURSOR'
'RCOSU-POSNR'.
perform bdc_field using 'BDC_OKCODE'
'=MORE'.
perform bdc_field using 'RCOSU-POSNR'
record-POSNR_005.
perform bdc_dynpro using 'SAPLCOMK' '0120'.
perform bdc_field using 'BDC_CURSOR'
'RESBD-POSNR(01)'.
perform bdc_field using 'BDC_OKCODE'
'=DEL'.
perform bdc_field using 'FILTER_BOX'
record-FILTER_BOX_006.
perform bdc_field using 'SORT_BOX'
record-SORT_BOX_007.
perform bdc_field using 'RC27X-FLG_SEL(01)'
record-FLG_SEL_01_008.
perform bdc_dynpro using 'SAPLCOMK' '0120'.
perform bdc_field using 'BDC_CURSOR'
'RESBD-MATNR(01)'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.
perform bdc_field using 'FILTER_BOX'
record-FILTER_BOX_009.
perform bdc_field using 'SORT_BOX'
record-SORT_BOX_010.
perform bdc_transaction using 'CO02'.

enddo.

perform close_group.
perform close_dataset using dataset.

You might also like