05-24-2010 12:25 PM
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
05-24-2010 12:29 PM
If i use the standard include instead of call transaction
You mean BDCREX1 ??
05-24-2010 12:32 PM
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.
05-24-2010 12:37 PM
I think the probl;em lies in populating the i_bdcdata.
Check whether screen, field, value are populated correctly.
05-24-2010 12:42 PM
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
05-24-2010 12:48 PM
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
05-24-2010 1:07 PM
05-24-2010 1:10 PM
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.
05-24-2010 1:12 PM
Hi Neha,
In Future you need to work more on this when you use BDC on this T-code.
With Regards,
Sumodh.P
05-24-2010 12:58 PM
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