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

bdc

Former Member
0 Likes
340

hi have done a bdc program!! the problem is that after all my validations are completed when it is going to run_bdc it is going multiple times and then its gettidg displayed that records were loaded in to sap but actually when i go n check in mek2 transaction its not uploaded!! can u plss help me in this!! is there ny problem with my recording???

my code for bdc run is as below

FORM gf_run_bdc . "for running the trnsaction BDC using MEK1 Transaction.

CONSTANTS: lc_slash TYPE c VALUE '/'.

CLEAR: gv_year, gv_mon, gv_date, gi_bdcdata, gv_datab.

REFRESH gi_bdcdata.

MOVE: sy-datum+0(4) TO gv_year, "Todays date.

sy-datum+4(2) TO gv_mon,

sy-datum+6(2) TO gv_date.

CONCATENATE gv_mon lc_slash gv_date lc_slash gv_year INTO gv_datab.

LOOP AT gi_c1_stritab INTO gw_itab.

PERFORM lf_bdc_dynpro USING 'SAPMV13A' '0100'.

PERFORM lf_bdc_field USING text-041

'RV13A-KSCHL'.

PERFORM lf_bdc_field USING text-040

'=ANTA'.

PERFORM lf_bdc_field USING 'RV13A-KSCHL'

'zhts'.

PERFORM lf_bdc_dynpro USING 'SAPLV14A' '0100'.

PERFORM lf_bdc_field USING text-041

'RV130-SELKZ(01)'.

PERFORM lf_bdc_field USING text-040

'=WEIT'.

PERFORM lf_bdc_dynpro USING 'SAPMV13A' '1317'.

PERFORM lf_bdc_field USING text-041

'KONP-VALTG(01)'.

PERFORM lf_bdc_field USING text-040

'=SICH'.

PERFORM lf_bdc_field USING 'KOMG-HLAND'

p_delcnt . "gw_itab-HLAND.

PERFORM lf_bdc_field USING 'KOMG-COIMP'

gw_itab-coimp.

PERFORM lf_bdc_field USING 'KOMG-HERKL(01)'

gw_itab-herkl.

PERFORM lf_bdc_field USING 'KONP-KBETR(01)'

gw_itab-kbetr.

PERFORM lf_bdc_field USING 'RV13A-DATAB(01)'

gv_datab.

PERFORM lf_bdc_field USING 'RV13A-DATBI(01)'

p_edate.

PERFORM lf_bdc_transaction USING gc_tcode.

REFRESH gi_bdcdata.

ENDLOOP.

ENDFORM.

2 REPLIES 2
Read only

Former Member
0 Likes
301

Hi,

paste your whole code

Regards,

Atish

Read only

Former Member
0 Likes
301

hi

good

i hope there must be some problem in your recording,i would suggest you to do the recording again and check the screens equence and to the upload using the method GUI_UPLOAD.

thanks

mrutyun^