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 not working while using Call transaction in foreground

Former Member
0 Kudos

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

kesavadas_thekkillath
Active Contributor
0 Kudos

If i use the standard include instead of call transaction

You mean BDCREX1 ??

0 Kudos

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.

0 Kudos

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

Check whether screen, field, value are populated correctly.

0 Kudos

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

0 Kudos

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

0 Kudos

all the screen fields are getting correctly populated

0 Kudos

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.

0 Kudos

Hi Neha,

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

With Regards,

Sumodh.P

Clemenss
Active Contributor
0 Kudos

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