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: 

Call transaction using FB02 Tcode

Former Member
0 Kudos

Hi All,

In BDC program i have used call transaction method for tcode 'FB02'.

When i am running - in All screens mode it is working fine.

- in No screens mode then it is not updating and also not giving any error messages.

updating mode : I have checked with the both S and A.

some time it is giving error number:344 , 304 like.

But i am not able to see the error description.

Some one might come accross this problem.

Help me in this case....

Regards,

Anil

14 REPLIES 14

Former Member
0 Kudos

Hi,

try using

commit work statement after running the BDC.

hope this may work ....

thanks

ravi

0 Kudos

I have used racommit = 'X' in the program. but it is not working.

Regards,

Anil

0 Kudos

Hi,

Kindly paste your code, for clear understanding

thanks

0 Kudos

OK

PERFORM bdc_dynpro USING 'SAPMF05L' '0100'.

PERFORM bdc_field USING 'BDC_OKCODE'

'/00'.

PERFORM bdc_field USING 'RF05L-BELNR'

int_data-belnr.

PERFORM bdc_field USING 'RF05L-BUKRS'

int_data-bukrs.

PERFORM bdc_field USING 'RF05L-GJAHR'

int_data-gjahr.

PERFORM bdc_dynpro USING 'SAPMF05L' '0700'.

PERFORM bdc_field USING 'BDC_CURSOR'

'RF05L-ANZDT(01)'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=PK'.

***1

PERFORM bdc_dynpro USING 'SAPMF05L' '0301'.

PERFORM bdc_field USING 'BDC_OKCODE'

'/00'.

PERFORM bdc_field USING 'BSEG-ZUONR' ' '.

***2

PERFORM bdc_dynpro USING 'SAPMF05L' '0301'.

PERFORM bdc_field USING 'BDC_OKCODE' '/00'.

PERFORM bdc_field USING 'BSEG-ZUONR' int_data-vbelv.

***3

PERFORM bdc_dynpro USING 'SAPMF05L' '0301'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=AE'.

PERFORM bdc_field USING 'BSEG-ZUONR'

int_data-vbelv.

FORM bdc_transaction

USING tcode TYPE sy-tcode.

CLEAR l_subrc.

CLEAR messtab.

REFRESH messtab.

DATA: v_ctu_params TYPE ctu_params.

v_ctu_params-dismode = ctumode. ---[N -- not working A-- working ]

v_ctu_params-updmode = 'L'.

v_ctu_params-racommit = 'X'.

CALL TRANSACTION tcode USING bdcdata OPTIONS FROM v_ctu_params

MESSAGES INTO messtab.

Regards,

Anil

former_member262988
Active Contributor
0 Kudos

HI,

In all screens mode check once in each and every screen whether you are getting any warning messages .........thorugh out your process in all screen mode also you should not get any type of messages .....take care of that and try once....

Thanks,

Shailaja Ainala.

0 Kudos

Hi,

I am not getting any kind of warning messageswhile processing in the fore ground.

Regards,

Anil

0 Kudos

Hi,

did u try running the BDC in MODE 'E'

may be u can figure out the error generated and also check the messages table u have used in program.

thanks

ravi aswani

Former Member
0 Kudos

okay, pls. check the message class, so that, u can track the message description, and there by will get an idea about the error, some times, profit center/cost center/internal order needs prefix zeros.

And r u sure about the below statement,

v_ctu_params-updmode = 'L'.

thanq

Edited by: SAP ABAPer on Apr 9, 2009 7:31 AM

0 Kudos

Yes am sure about the statement.

L is for local update mode, any way the same is working in foreground right?

Regards,

Anil

0 Kudos

are u getting any popups? any info messsages?(actually, even u get them, the SAP will take care of them, still am asking)

Are you getting error message like, NO BATCH INPUT DATA for screen XXXX? some thing like that?

thanq

0 Kudos

Hi,

I have a message number 344 can you just tell me where can i check error description?

Thanks,

Anil

0 Kudos

No am not getting like that type of messages...

Regards,

Anil

0 Kudos

first try to get message class and then go to SE91.

just for curious, try to call in P mode, instead of N mode........just for testing purpose.

thanq

Edited by: SAP ABAPer on Apr 9, 2009 7:50 AM

Former Member
0 Kudos

Hi Capture the messages, get the message id and number. with that, check in the main program of FB02 to understand when such messages are getting triggered.