08-26-2008 7:34 AM
Hi All.
I created BDC for ME32, free zed the resolution in any system
By using CTU_PARAMS.
x_ctuparams-dismode = 'N'.
x_ctuparams-updmode = 'S'.
it working fine while doing in Foreground mode(i.e x_ctuparams-dismode = 'A'. ),
but records not updating properly while doing in background (i.e x_ctuparams-dismode = 'N'. )
pls give your suggestion to resolve this issue.
Regards.
Jay
08-26-2008 7:38 AM
Hi
dont like that..
Using if condition u have declare three modes(A,E,N)
Regards:
Prabu
08-26-2008 7:40 AM
Hi Jay,
This might be problem with data base commit. Introduce explicit delay of one/more seconds for each transaction call.
WAIT UPTO 1 SECONDS.
But why are u using ctu_params?
U can directly specify MODE and UPDATE. ctu_params are used when ur calling transaction has commit work statement in between actual transaction commit.
eg: If u are doing BDC for Ztransaction and in that Z transaction if u have COMMIT work statement and calling some standard transactions as well then we use ctu_params.
Of cource there is nothing wrong in using it in other cases.
Check above things and get back.
U can try in this way also.
CLEAR l_opt.
l_opt-dismode = 'N'.
l_opt-updmode = 'S'.
l_opt-racommit = 'X'.
CALL TRANSACTION 'ZBCRT'
USING i_bdcdata
OPTIONS FROM l_opt
MESSAGES INTO i_message.
Thanks,
Vinod.
Edited by: Vinod Reddy Vemuru on Aug 26, 2008 12:12 PM
08-26-2008 8:04 AM
Hi Vinod.
I already using x_ctuparams-racommit = 'X'. also in my code.
still problem not solved .
pls help me.
Regards.
Jay
08-26-2008 8:15 AM
Hi Jay,
2 questions.
1. Why are u using ctu_params? Whay can't u use mode and UPDATE directly in call transaction.
eg: CALL TRANSACTION c_va41 USING i_bdcdata
MODE w_mode
UPDATE w_update
MESSAGES INTO i_messtab.
2. Why are u using BDc when BAPI is available.
Check the BAPI BAPI_AGREEMENT_MAINTAIN
BAPI_AGREEMENTS
Try directly specifying the mode and update like i said in above example.
How many records u are updating in a single go??? Also did u introduced the delay time as i told earlier???
Thanks,
Vinod.
08-26-2008 8:20 AM
Hi Jay,
I think, CTU_params is used when you are used Default Size. Other wise u go through the Directly with call transaction. I agree with Vinod.
Thanks
Sai
08-26-2008 10:10 AM
Hi Vinod.
Thanks for your reply.
Actually i used CTU_PARAM for BDC screen resolution.
I need to change only two fields (GR_BASEDIV and UNLIM_DLV) in tcode ME32.bapi BIPI_AGREEMENT_MAINTAIN is usefull for me in the above case ?
if yes give me sample code.
Regards.
Jay
08-28-2008 6:20 AM