on 11-11-2014 1:36 PM
Hello to all
I have a simple WDA application, where the user push a button, to start a process chain ( SAP BW/BI 7.3)
Technically the coding is embedded in the event behind the push button.
It looks like this:
I intend to give a message at the beginning to the end user that the process chain has started (A). Then the
process chain is started (B) and after a while a message informs the end user (C), that the process chain has finished successfully.
Everything works fine, just L
My question therefore:
How can I fire the message A to the end user straight away before starting process chain (B). I have the
feeling, that there must be something to close the message manager and force to fire the message to the end user?
Thanks a lot for your help and good ideas .
Best regards
Christian
APPENDIX:
Structure of the coding:
A) Message 'DAT file processing started’
lo_api_controller ?= wd_this->wd_get_api( ).
call method lo_api_controller->get_message_manager
receiving message_manager = lo_message_manager.
concatenate ' DAT-File processing started'
into lv_message_text respecting blanks.
call method lo_message_manager->report_success
exporting message_text =lv_message_text.
B) Execute Function module to start process chain
C) Message ‘ DAT file successfully transfered
lo_api_controller ?= wd_this->wd_get_api( ).
call method lo_api_controller->get_message_manager
receiving message_manager = lo_message_manager.
concatenate ' DAT file
successfully transferred
into lv_message_text respecting blanks.
call method lo_message_manager->report_success
exporting message_text =lv_message_text.
The Messages will be shown together after the roundtrip is finished. It seems that you're starting the function module synchron!? Therefore, the application waites until the FM is finished and Shows then all raised Messages.
So, you can try to start the FM asynchron and work with the "timedTrigger" to get the result of FM..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Christopher
The parameter I_DONT_WAIT = ABAP_TRUE doesn't change anything to the behaviour. Even I am not sure if this paramater is used by the FM.
Nevertheless my simple question is:
How to force a round trip in the abap code? Is it possible? This question arises as you said, that the Messages are displayed after a round trip.
Best regards
Christian
You can't Trigger a round trip while you're waiting for the fm:
What you have to do:
a) Raise message a
b) start FM in background
c) check in a timed Trigger (or Manual refresh button) if chain is finished
d) as soon as c) is done, raise message b
a) and b) are in one round trip
c) is a round trip
d) is a round trip
But you have Problems with b). You can start in Background, but then you loose the Connection because you don't get the ID back.
Do you not have an ABAP developer who can Support you?
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.