Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

bdcdata

Former Member
0 Likes
819

Hi all,

Could you please explain me this BDC program logic flow?

data : begin of bdc-data occurs 100.

include structure bdcdata.

data ; end of bdc_data.

perform dynro using :

'X' 'SAPLMGMW' '0100',

'' ' 'bdc_cursor' 'msichtausw-dytxt(07)',

' ' rmmw-matnr' p_matnr, (~user input)

..........

call transaction 'mm42' using bdc_data mode 'A'.

form dynpro using dynbegin name value.

clear bdc_data.

if dynbegin eq 'X',

move: name to bdc_data-program,

value to bdc_data-dynpro,

'X' to bdc_data-dynbegin.

else.

move : name to bdc_data-program,

value to bdc_data-fval.

endif.

append bdc_data.

end form.

My main concerns is what is the structure of bdcdata and how 'X' is realted to bdc_data-dynbegin.

Thanks in advance.

Will reward if useful.

.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
574

hi,

BDCDATA: it is a structure .it contains the components

PROGRAM-BDC module pool

DYNPRO-screen number

DYNBEGIN-screen start('X')

FNAM-Field name

FVAL-BDC field value.

USED TO TRAVERSE IN THE TRANSACTION MODULEPOPL.

how 'X' is realted to bdc_data-dynbegin.

it indicates Start of a new screen number

3 REPLIES 3
Read only

Former Member
0 Likes
574

Hi

Your answers

1) Structure of BDC data is :

PROGRAM : Name of the program associated with screen.

DYNPRO : Number of screen.length(4). set this for the first record for the screen.

<b>DYNBEGIN: indicates the first record for the screen.Length(1).

set this field to X only for the first record i.e it indicates that it is Start of a new screen number</b>

FNAM : name of the field.Length(35).

FVAL : value of the field. length(132).

2) how 'X' is realted to bdc_data-dynbegin ? (<b>Answer is marked in bold above</b>)

Mark if helpful

Regards

Tushar Mundlik

Read only

Former Member
0 Likes
574

hi,

in BDC, we can perform validations on legacy data by using MAPPING logic.

in mapping logic we use structure having name BDCDATA.

<b>fields of BDCDATA structure are....</b>

<b>BDCDATA-program-----> means module pool program which we r used in BDC.

BDCDATA-dynpro-------> means currentl active screen, for which screen we are

going to pass data.

BDCDATA-dynbegin----> means is the initial or default screen,default vale for this

field is 'X'.

BDCDATA-fnam----


> field name which we are used in validations.

BDCDATA-fval----


>field value which we are used in validations</b>

the BDCADAT table comntains records, which are supported by SAP data type, form this table we pass data into data base tables by using transaction.

regards,

Ashokreddy.

Read only

Former Member
0 Likes
575

hi,

BDCDATA: it is a structure .it contains the components

PROGRAM-BDC module pool

DYNPRO-screen number

DYNBEGIN-screen start('X')

FNAM-Field name

FVAL-BDC field value.

USED TO TRAVERSE IN THE TRANSACTION MODULEPOPL.

how 'X' is realted to bdc_data-dynbegin.

it indicates Start of a new screen number