Application Development 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: 

Issue with FD32 bdc program

former_member209912
Participant
0 Kudos

Team

I have done a bdc program and i am using the call transaction method. when i execute it is successful and there are no error messages also but the transaction is not updating with the new values. I am trying to update the debt at risk value(ie customized filed) which is popup screen.(ie PERFORM f_bdc_dynpro USING 'SAPLZFZF_POPUP' '9501'.).

I have tried manually and it is success and the value is updating to the customized field of KNKK table but when i record and process the recording, it is not success. pls check and suggest accordingly.

Please check my program as below

FORM f_bdc_upload.

PERFORM f_bdc_dynpro USING 'SAPMF02C'

'0100'.

PERFORM f_bdc_field USING 'BDC_CURSOR'

'RF02L-D0210'.

PERFORM f_bdc_field USING 'BDC_OKCODE'

'/00'.

PERFORM f_bdc_field USING 'RF02L-KUNNR'

wa_final-kunnr. " '3000027'.

PERFORM f_bdc_field USING 'RF02L-KKBER'

p_kkber." '3600'.

PERFORM f_bdc_field USING 'RF02L-D0210'

'X'.

PERFORM f_bdc_dynpro USING 'SAPMF02C'

'0210'.

PERFORM f_bdc_field USING 'BDC_CURSOR'

'KNKK-KLIMK'.

PERFORM f_bdc_field USING 'BDC_OKCODE'

'/00'.

PERFORM f_bdc_dynpro USING 'SAPLZFZF_POPUP'

'9501'.

PERFORM f_bdc_field USING 'BDC_CURSOR'

'KNKK-ZZDAR'.

PERFORM f_bdc_field USING 'BDC_OKCODE'

'=CONT'.

PERFORM f_bdc_field USING 'KNKK-ZZDAR'

wa_final-l_darflag. " '0'.

PERFORM f_bdc_field USING 'KNKK-ZZISUF'

'1'.

PERFORM f_bdc_dynpro USING 'SAPLSPO1'

'0300'.

PERFORM f_bdc_field USING 'BDC_OKCODE'

'=YES'.

CALL TRANSACTION c_fd32 USING t_bdcdata

MODE c_n

UPDATE c_s

messages into t_bdcmsg..

Reg

Rj

10 REPLIES 10

Former Member
0 Kudos

Hello RJ

Just for testing purposes, temporarily change the MODE to 'A', which will Display screens in foreground as your BDC progresses. Then you can see the messages and if you can do with adding an ENTER before a SAVE for instance. That usually helps for me.

Best regards,

Adrian

0 Kudos

Hello

Thanks for your reply. I have tried the method you have suggested, it is also not working for me. It is not giving any error message also and subrc is 0. but the values are not updating.

I am trying to modify the value for a field which is in popup and where the popup screen is a customized one.

Pls suggest accordingly.

Reg

Rj

0 Kudos

Hi Nagaraju,

For those screen try to re record and keep the scree. Check any enter (fcode) is missing. What are the errors messages you are getting.

Regards,

Madhu.

0 Kudos

Hello

I have tried in A mode and E mode also, i am not any errors. It is successful and always the subrc is 0. But the values are not updating.

check and suggest anything can be done from my side.

Reg

Rj

0 Kudos

Hi Nagaraju,

I have tried manually and it is success and the value is updating to the customized field of KNKK table Means did you added Zfileds in that table.

Regards,

Madhu.

0 Kudos

yes, i have added Z fields in that table.

The last screen in my recording is POPUP screen, there i have a customized filed, i want to update that field value and store it in KNKK customized field.

0 Kudos

Dear Nagaraju,

perform bdc_field using 'BDC_OKCODE'

'=AO01'.

perform bdc_dynpro using 'SAPMF02D' '4000'.

*perform bdc_dynpro using 'ZTEST_ADD_TAB_XD01' '200'.

*perform bdc_field using 'BDC_OKCODE'

  • '=UPDA'.

perform bdc_field using 'BDC_CURSOR'

'KNA1-ZURL'.

perform bdc_field using 'KNA1-ZURL'

zcust-ZSEC_URL.

perform bdc_field using 'BDC_OKCODE'

'=BACK'.

perform bdc_field using 'BDC_OKCODE'

'=UPDA'.

I did a long back this in Kna1 table . Please check this.

Regards,

Madhu.

Former Member
0 Kudos

Hi,

Try this option

DATA: l_opt TYPE ctu_params . "call transaction options

*call transaction optionc

l_opt-dismode = 'N'.

l_opt-updmode = 'S'."Synchronous processing.

l_opt-racommit = 'X'."COMMIT WORK does not terminate batch input processing

CALL TRANSACTION c_fd32 USING t_bdcdata

OPTIONS FROM l_opt ."MODE c_n

"UPDATE c_s

Thanks

Arun

0 Kudos

Hi Aruna,

Is it necessary to write code and commit.

Regards,

Madhu.

0 Kudos

All

Thanks for your resposes. I have solved my issue by selecting Cont, After commit and background option in recording and used options in call transaction in the program.

thanks for all your help.

Reg

Rj