02-10-2011 3:22 PM
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
02-11-2011 7:08 AM
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
02-11-2011 7:38 AM
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
02-11-2011 8:49 AM
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.
02-11-2011 9:00 AM
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
02-11-2011 9:06 AM
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.
02-11-2011 9:09 AM
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.
02-11-2011 9:31 AM
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.
02-11-2011 9:39 AM
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
02-11-2011 9:45 AM
02-11-2011 11:03 AM
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