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

need change Batch input transaction me21

Former Member
0 Likes
1,311

Hi all,

I have to modify a existing report that load data via bdc,

i have to add ekko-wkurs field in bdc.

my question is, after put the field wkurs in internal table with other data, how can modify the bdc?

writing this: perform bdc_field using 'EKKO-WKURS'

tab-01-tst-cambio.

and if it the right way, where I exactly put this piece of program?

I paste a piece of report where I put this:

perform bdc_dynpro using 'SAPMM06E' '0100'.

perform bdc_field using 'EKKO-LIFNR'

TAB-01-TST-CODICE_FORNITORE.

perform bdc_field using 'RM06E-BSART'

'ZAPI'.

perform bdc_field using 'RM06E-BEDAT'

TAB-01-TST-DATA_ODA.

perform bdc_field using 'RM06E-BSTNR'

TAB-01-TST-NUM_ODA.

perform bdc_field using 'EKKO-EKORG'

'Z535'.

perform bdc_field using 'EKKO-EKGRP'

'Z34'.

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'/00'.

perform bdc_dynpro using 'SAPMM06E' '0514'.

perform bdc_field using 'EKKO-BUKRS'

TAB-01-TST-SOCIETA.

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'ENTE'.

perform bdc_dynpro using 'SAPMM06E' '0120'.

perform bdc_field using 'BDC_OKCODE'

'=KOPF'.

perform bdc_dynpro using 'SAPMM06E' '0101'.

perform bdc_field using 'EKKO-ZTERM'

TAB-01-TST-CON_PAG.

perform bdc_field using 'EKKO-WAERS'

TAB-01-TST-DIV_ODA.

  • aggiunta del campo wkurs

PERFORM BDC_FIELD USING 'EKKO-WKURS'

TAB-01-TST-CAMBIO.

PERFORM BDC_FIELD USING 'EKKO-IHREZ'

'CONVERSIONE'.

perform bdc_field using 'BDC_OKCODE'

'AB'.

thanks all.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,057

Hi Fabrizio

I believe It's right what you have done:

If this is old code:

perform bdc_dynpro using 'SAPMM06E' '0101'.

perform bdc_field using 'EKKO-ZTERM' TAB-01-TST-CON_PAG.

perform bdc_field using 'EKKO-WAERS' TAB-01-TST-DIV_ODA.

It's right to add your new code here

PERFORM BDC_FIELD USING 'EKKO-WKURS' TAB-01-TST-CAMBIO.

Infact the field 'EKKO-WKURS' is in screen SAPMM06E0101 so it's right place the code where the field of that screen are filled.

Max

Hi all,

I have to modify a existing report that load data via bdc,

i have to add ekko-wkurs field in bdc.

my question is, after put the field wkurs in internal table with other data, how can modify the bdc?

writing this: perform bdc_field using 'EKKO-WKURS'

tab-01-tst-cambio.

and if it the right way, where I exactly put this piece of program?

I paste a piece of report where I put this:

perform bdc_dynpro using 'SAPMM06E' '0100'.

perform bdc_field using 'EKKO-LIFNR'

TAB-01-TST-CODICE_FORNITORE.

perform bdc_field using 'RM06E-BSART'

'ZAPI'.

perform bdc_field using 'RM06E-BEDAT'

TAB-01-TST-DATA_ODA.

perform bdc_field using 'RM06E-BSTNR'

TAB-01-TST-NUM_ODA.

perform bdc_field using 'EKKO-EKORG'

'Z535'.

perform bdc_field using 'EKKO-EKGRP'

'Z34'.

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'/00'.

perform bdc_dynpro using 'SAPMM06E' '0514'.

perform bdc_field using 'EKKO-BUKRS'

TAB-01-TST-SOCIETA.

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'ENTE'.

perform bdc_dynpro using 'SAPMM06E' '0120'.

perform bdc_field using 'BDC_OKCODE'

'=KOPF'.

perform bdc_dynpro using 'SAPMM06E' '0101'.

perform bdc_field using 'EKKO-ZTERM'

TAB-01-TST-CON_PAG.

perform bdc_field using 'EKKO-WAERS'

TAB-01-TST-DIV_ODA.

  • aggiunta del campo wkurs

PERFORM BDC_FIELD USING 'EKKO-WKURS'

TAB-01-TST-CAMBIO.

PERFORM BDC_FIELD USING 'EKKO-IHREZ'

'CONVERSIONE'.

perform bdc_field using 'BDC_OKCODE'

'AB'.

thanks all.

7 REPLIES 7
Read only

Former Member
0 Likes
1,057

Your code looks correct as is to me.

Rob

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,057

It should work where you have it.

perform bdc_dynpro using 'SAPMM06E' '0101'.
perform bdc_field using 'EKKO-ZTERM'
TAB-01-TST-CON_PAG.
perform bdc_field using 'EKKO-WAERS'
TAB-01-TST-DIV_ODA.
* aggiunta del campo wkurs
<b>PERFORM BDC_FIELD USING 'EKKO-WKURS'
TAB-01-TST-CAMBIO.</b>
PERFORM BDC_FIELD USING 'EKKO-IHREZ'
'CONVERSIONE'.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
1,058

Hi Fabrizio

I believe It's right what you have done:

If this is old code:

perform bdc_dynpro using 'SAPMM06E' '0101'.

perform bdc_field using 'EKKO-ZTERM' TAB-01-TST-CON_PAG.

perform bdc_field using 'EKKO-WAERS' TAB-01-TST-DIV_ODA.

It's right to add your new code here

PERFORM BDC_FIELD USING 'EKKO-WKURS' TAB-01-TST-CAMBIO.

Infact the field 'EKKO-WKURS' is in screen SAPMM06E0101 so it's right place the code where the field of that screen are filled.

Max

Read only

Former Member
0 Likes
1,057

ok thanks all,

my last question, is there a function that give a value to wkurs in according to waers?

Read only

0 Likes
1,057

Hi,

Check whether fm READ_EXCHANGE_RATE is useful..

sri

Read only

0 Likes
1,057

Hi Fabrizio

Try table TCURF or search with TCUR*

Max

Read only

0 Likes
1,057

Please make sure that you award points for all helpful answers. Thanks.

Regards,

Rich Heilman