‎2007 Aug 02 12:53 PM
How to handle warning messages in BDC-call transaction method,
The process is continuing only if i press 'enter' manually,how to handle this.
Plz help me out..
Thanks a lot.
Ramya
‎2007 Aug 02 12:58 PM
Hi
No need to worry about the warning message in call transaction
in 'N' Mode they are automatically taken care.
Just check for a single record by eeping the bdc mode 'N'
<b>Reward points for useful Answers</b>
Regards
Anji
‎2007 Aug 02 1:03 PM
‎2007 Aug 02 1:08 PM
hi,
try like this....
you can execute the call transaction technique in NO-DISPLAY mode in that case no user interaction is required to processing, all the error records are placed in the BDCMSGCOLL table.
CALL TRANSACTION <name> USING bdcdata
MODE N
UPDATE <S/A>
MESSAGES INTO bdcmsgcoll.after format the messages using FORMAT_MESSAGES function module.
<b>or</b>
you can execute the call transaction technique in NO-DISPLAY mode in that case no user interaction is required to processing.
CALL TRANSACTION <name> USING bdcdata
MODE N
UPDATE <S/A>.
IF SY-SUBRC <> 0.
*****here call session method for handling error records.
CALL FUNCTION BDC_OPEN_GROUP. "for crating session.
CALL FUNCTION BDC_INSERT. " to add transaction name and bdcdata table with error records.
CALL FUNCTION BDC_CLOSE_GROUP. "for closing the session.
now all the error records are available in log file, for handling error records you must work with SM35.
regards,
Ashok Reddy
‎2007 Aug 02 1:36 PM
Hiii
you can also set the Options of BDC ..
Define a structure
l_opt type CTU_PARAMS
then pass the values to this
l_opt-DISMODE = 'A'.
l_opt-UPDMODE = 'S'.
l_opt-CATTMODE = ' '.
l_opt-DEFSIZE = ' '.
l_opt-RACOMMIT = ' '.
l_opt-NOBINPT = 'X'.
l_opt-NOBIEND = ' '.
then write
call transaction '' using table options fron l_opt .
This will solve ur problem
Reward points if helpful
Regards
Hitesh
‎2007 Aug 02 2:16 PM
And also, most importantly, you can press the F1 button in the ABAP editor and get help about BDC's and call transactions and you would have been able to see all this for yourself.
Gareth.