‎2006 Sep 22 6:43 PM
Hi Friends,
I am writing a bdc for CA02 to update the routing operations. In the transaction there comes a warning message in the status bar and when i hit enter it lets me proceed further.
Assuming that the warning messages are suppressed , i went ahead and wrote the BDC . In recording theough SHDB the warning message and ok_code isnt recorded.
When i now try to run the bdc session in background , it returns error ??
‎2006 Sep 22 6:51 PM
‎2006 Sep 22 6:46 PM
Warning message will not be recorded in SHDB.
After writing the BDC program and in while calling the transaction using call transaction.....messages i_messages. You will get that warning in the internal table i_messages.
Sample code:
DATA: opt TYPE ctu_params.
opt-dismode = 'N'.
opt-updmode = 'A'.
opt-defsize = 'X'.
CALL TRANSACTION tcode
USING i_bdcdata OPTIONS FROM opt MESSAGES INTO i_messages.
LOOP AT i_messages WHERE msgtyp EQ 'E'.
ws_invoice_st = c_fail.
ws_invoice_msg = i_messages-msgv1.
EXIT.
ENDLOOP.
LOOP AT i_messages WHERE msgtyp EQ 'S'.
ws_invoice_st = c_succ.
ws_invoice_msg = text-033.
EXIT.
ENDLOOP.
Regards,
Prakash.
Message was edited by: Prakash Ramu
‎2006 Sep 22 6:47 PM
‎2006 Sep 22 6:50 PM
hi
warnings and information messages will be ignored by BDc..
Cheers,
Abdul Hakim
‎2006 Sep 22 6:51 PM