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: 

BDC doubts (back ground mode)

Former Member
0 Kudos

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

7 REPLIES 7

Former Member
0 Kudos

Hi

dont like that..

Using if condition u have declare three modes(A,E,N)

Regards:

Prabu

vinod_vemuru2
Active Contributor
0 Kudos

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

0 Kudos

Hi Vinod.

I already using x_ctuparams-racommit = 'X'. also in my code.

still problem not solved .

pls help me.

Regards.

Jay

0 Kudos

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.

0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

thanks