06-19-2008 8:56 AM
Hi ,
I have to create vendors using bdc via trxn FK01.
my requirement is to add multiple street adress but while recording initial screen contains only one line for street.
how should i proceed ?
I am working in ecc6.0.given below is my BDC.
perform open_group.
loop at record.
perform bdc_dynpro using 'SAPMF02K' '0105'.
perform bdc_field using 'BDC_CURSOR'
'RF02K-BUKRS'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RF02K-BUKRS'
record-bukrs.
perform bdc_field using 'RF02K-KTOKK'
record-ktokk.
perform bdc_dynpro using 'SAPMF02K' '0110'.
perform bdc_field using 'BDC_CURSOR'
'LFA1-REGIO'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFA1-ANRED'
record-anred.
perform bdc_field using 'LFA1-NAME1'
record-name1 .
perform bdc_field using 'LFA1-STRAS'
record-stras.
perform bdc_field using 'LFA1-ORT01'
record-ort01.
perform bdc_field using 'LFA1-PSTLZ'
record-pstlz.
perform bdc_field using 'LFA1-LAND1'
record-land1.
perform bdc_field using 'LFA1-REGIO'
record-regio.
perform bdc_dynpro using 'SAPMF02K' '0120'.
perform bdc_field using 'BDC_CURSOR'
'LFA1-KUNNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0130'.
perform bdc_field using 'BDC_CURSOR'
'LFBK-BANKS(01)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_dynpro using 'SAPMF02K' '0210'.
perform bdc_field using 'BDC_CURSOR'
'LFB1-ALTKN'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFB1-AKONT'
record-akont.
perform bdc_field using 'LFB1-ALTKN'
record-altkn.
perform bdc_dynpro using 'SAPMF02K' '0215'.
perform bdc_field using 'BDC_CURSOR'
'LFB1-ZWELS'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFB1-REPRF'
record-reprf.
perform bdc_field using 'LFB1-ZWELS'
record-zwels.
perform bdc_dynpro using 'SAPMF02K' '0220'.
perform bdc_field using 'BDC_CURSOR'
'LFB5-MAHNA'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0610'.
perform bdc_field using 'BDC_OKCODE'
'=UPDA'.
perform bdc_field using 'BDC_CURSOR'
'LFB1-QLAND'.
perform bdc_transaction using 'FK01'.
refresh bdcdata.
clear bdcdata.
endloop.
perform close_group.
Edited by: Rachel on Jun 19, 2008 11:23 AM
06-19-2008 10:48 AM
Hi,
while recording from the SHDB, in the initail screen of FK01
you will have the check box Use central address management. check that, you will get multiple streets.
Thanks,
Rajinikantth
06-19-2008 10:48 AM
Hi,
while recording from the SHDB, in the initail screen of FK01
you will have the check box Use central address management. check that, you will get multiple streets.
Thanks,
Rajinikantth