2005 Sep 22 4:26 PM
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.
2005 Sep 22 4:38 PM
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
Please make sure that you award points for all helpful answers. Thanks.
Regards,
Rich Heilman
2005 Sep 22 4:35 PM
2005 Sep 22 4:37 PM
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
2005 Sep 22 4:38 PM
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
2005 Sep 22 5:04 PM
ok thanks all,
my last question, is there a function that give a value to wkurs in according to waers?
2005 Sep 22 5:11 PM
2005 Sep 22 5:12 PM
2005 Sep 22 5:18 PM
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |