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

CA02 BDC

Former Member
0 Likes
1,295

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 ??

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
914

I have a nice LSMW routine which adds operations to routings. If interested, email me at my business card and I can send you the object overview. It is too big to post here.

Regards,

Rich Heilman

4 REPLIES 4
Read only

Former Member
0 Likes
914

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

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
914

Warning and information messages are skipped and handle automatically by the BDC. Your BDC is erroring for some other reason. Set mode to "A" and try to figure where it is stopping and why.

Regards,

Rich Heilman

Read only

abdul_hakim
Active Contributor
0 Likes
914

hi

warnings and information messages will be ignored by BDc..

Cheers,

Abdul Hakim

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
915

I have a nice LSMW routine which adds operations to routings. If interested, email me at my business card and I can send you the object overview. It is too big to post here.

Regards,

Rich Heilman