Skip to Content
0
Former Member
Apr 27, 2009 at 12:24 PM

Doubt in BDC Recording for Asset Masters

146 Views

Hi,

I'm new to BDC.

Please look into the following recording code for Asset master. In the code the fields: ANLA-TXT50, ANLA-MENGE, ANLA-MEINS, ANLA-INKEN are repeated twice in the code. Another thing is for ANLA-TXT50 the value is 'cochin land 2' fist time and it is 'computer' the second time. should I have two fields for ANLA-TXT50 in XL file and internal table?

perform open_group.

perform bdc_dynpro using 'SAPLAIST' '0105'.

perform bdc_field using 'BDC_CURSOR'

'ANLA-ANLKL'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'ANLA-ANLKL'

'1000'.

perform bdc_field using 'ANLA-BUKRS'

'1000'.

perform bdc_field using 'RA02S-NASSETS'

'1'.

perform bdc_dynpro using 'SAPLAIST' '1000'.

perform bdc_field using 'BDC_OKCODE'

'TAB02'.

perform bdc_field using 'ANLA-TXT50'

'cochin land 2'.

perform bdc_field using 'ANLA-MENGE'

'1,000'.

perform bdc_field using 'ANLA-MEINS'

'ea'.

perform bdc_field using 'ANLA-INKEN'

'X'.

perform bdc_dynpro using 'SAPLAIST' '1000'.

perform bdc_field using 'BDC_OKCODE'

'=TAB03'.

perform bdc_field using 'BDC_CURSOR'

'ANLZ-KOSTL'.

perform bdc_field using 'ANLZ-KOSTL'

'1101'.

perform bdc_dynpro using 'SAPLAIST' '1000'.

perform bdc_field using 'BDC_OKCODE'

'=TAB04'.

perform bdc_field using 'BDC_CURSOR'

'ANLA-ORD41'.

perform bdc_dynpro using 'SAPLAIST' '1000'.

perform bdc_field using 'BDC_OKCODE'

'=TAB07'.

perform bdc_field using 'BDC_CURSOR'

'ANLA-LIFNR'.

perform bdc_dynpro using 'SAPLAIST' '1000'.

perform bdc_field using 'BDC_OKCODE'

'=TAB08'.

perform bdc_field using 'BDC_CURSOR'

'ANLA-LEART'.

perform bdc_dynpro using 'SAPLAIST' '1000'.

perform bdc_field using 'BDC_OKCODE'

'=TAB01'.

perform bdc_field using 'BDC_CURSOR'

'ANLA-ANLN1'.

perform bdc_dynpro using 'SAPLAIST' '1000'.

perform bdc_field using 'BDC_OKCODE'

'=TAB08'.

perform bdc_field using 'BDC_CURSOR'

'ANLA-TXT50'.

perform bdc_field using 'ANLA-TXT50'

'computer'.

perform bdc_field using 'ANLH-ANLHTXT'

'cochin land 2'.

perform bdc_field using 'ANLA-MENGE'

'1'.

perform bdc_field using 'ANLA-MEINS'

'EA'.

perform bdc_field using 'ANLA-INKEN'

'X'.

perform bdc_dynpro using 'SAPLAIST' '1000'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'BDC_CURSOR'

'ANLB-NDJAR(01)'.

perform bdc_field using 'ANLB-NDJAR(01)'

' 7'.

perform bdc_dynpro using 'SAPLAIST' '1000'.

perform bdc_field using 'BDC_OKCODE'

'=BUCH'.

perform bdc_field using 'BDC_CURSOR'

'ANLA-ANLN1'.

perform bdc_transaction using 'AS01'.

perform close_group.

Thanks in advance.

Regards,

Sriram