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

CIC0 message issue using BOR object.

gouravkumar64
Active Contributor
0 Likes
692

Hi All,

I have a requirement in R/3 : In CIC0 send BP number to sxmb_moni , when user will enter BP number & will go to info section in right & will click GIS button.

This configured in EWFCO (zero) tcode.

Behind this one CUSTOM bor object & one method is there,

Method using one BAPI.

BAPI contains outbound proxy code.

Issue is: BP is successfully going to SXMB_MONI,but they want a INFORMATION messages when BP going.

I have written code in BOR & BAPI , but it is not showing.

Anyone knows How to show messages here i.e CIC0 ?

Thanks

Gourav.

1 ACCEPTED SOLUTION
Read only

gouravkumar64
Active Contributor
0 Likes
607

Resolved using popup_to_inform.

2 REPLIES 2
Read only

gouravkumar64
Active Contributor
0 Likes
608

Resolved using popup_to_inform.

Read only

0 Likes
607

In the BOR Method? If yes, would a simple MESSAGE statement not suffice?

Hopefully not in the BAPI itself, because BAPI programming conventions are clear on this:


BAPIs themselves must not trigger any messages (such as MESSAGE xnnn) in the coding. In particular they must not generate terminations or display dialog boxes.

The same IMO should also apply to BOR methods - the popup display can hurt resusability of the method in other contexts... and render the method inoperable in background processing.

The task of informing the user about results IMO belongs to each concrete "process" utilising a BOR method - not the method itself. I have not done CIC0 setup/programming, but the EWFC0 configuration for transaction also permits calling something called "Front Office Process". That IMO would be a better place where to implement informing an online user about the results of his/her action - whether it's success or an error. BAPI and BOR method should simply return message information (in BAPI return information format) - then every "context" calling the BOR method has a chance to act upon it.

cheers

Janis