Application Development and Automation 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: 
Read only

BDC not working while using Call transaction in foreground

Former Member
0 Likes
1,570

Hi All,

I am using call transaction method to execute a BDC in foreground. but the BDC is not working.

If i use the standard include instead of call transaction, the BDC is working fine.

Kindly suggest what should be done to execute the BDc by using call transaction.

Thanks and Regards,

Neha

Hi All,

I am using call transaction method to execute a BDC in foreground. but the BDC is not working.

If i use the standard include instead of call transaction, the BDC is working fine.

Kindly suggest what should be done to execute the BDc by using call transaction.

Thanks and Regards,

Neha

9 REPLIES 9
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,327

If i use the standard include instead of call transaction

You mean BDCREX1 ??

Read only

0 Likes
1,327

yes if use bdcrecx1, the program is working fine.

but when i use 'CALL TRANSACTION 'MM02' USING i_bdcdata

MODE 'A' UPDATE 'N' MESSAGES INTO i_messtab ' bdc is not working. only the first screen for MM02 is called and there is no processing after that.

Read only

0 Likes
1,327

I think the probl;em lies in populating the i_bdcdata.

Check whether screen, field, value are populated correctly.

Read only

0 Likes
1,327

Hi,

Use the BAPI_MATERIAL_SAVEDATA ( Create and Change Material Master Data). I think this will be more faster and easier than bdc in this case.

With Regards,

Sumodh.P

Read only

0 Likes
1,327

MAY BE RECORDING PROBLEM.

iF FIRST SCREEN IS OPENED AND NEXT IT IS NOT RECORDING ANY ACTION.

cHECK YOUR RECORDING ONCE IF THERE IS ANY ACTION LIKE SAVE ALWAYS USE sHORT CUT KEY INSTEAD OF CLICKING SAVE BUTTON AND ETC..

YOU CAN USE BAPI_MATERIAL_SAVEDATA SO THAT YOU WILL NOT HAVE ANY OTHER PROBLEMS IN FUTURE.

THNAKS

NARESH

Read only

0 Likes
1,327

all the screen fields are getting correctly populated

Read only

0 Likes
1,327

Recording is working fine when executed explicitly or when executed while using the include bdcrecx1.

also. i cannot use BAPI etc . need to create BDC only.

Read only

0 Likes
1,327

Hi Neha,

In Future you need to work more on this when you use BDC on this T-code.

With Regards,

Sumodh.P

Read only

Clemenss
Active Contributor
0 Likes
1,327

Hi neha,

BDC is a crutch. Use of BAPI is always the better option, but note:

Certain transactions (like MM02) use different screen sequences in background and online. I did not use BDC recording for a couple of years but I remember there is an option to tell the recorder to use background or online mode.

If you record in (default?) background mode, call transaction called online may fail.

Regards,

Clemens