BPS: Starting global sequences from within exit functions
I am facing the following situation: In a SAP GUI planning folder a few header variables (e.g. Profit Center) need to be selected by the user.
On layout change, an exit function is run, which checks a few control tables and then triggers the correct global planning sequence.
However, when doing this, it seems the variable selections done by the user in his session (e.g. Profit Center) are not available for the functions running within the global sequence which I trigger from within the exit. If I directly run the global sequence "on layout change", it works. If I run it from within the exit function, I get the variable not assigned messages.
The coding looks like this:
READ TABLE lt_modsel INTO l_modsel INDEX 1.
IF l_modsel-SOI_OPTION = 'S'. "
l_sequence = 'RTGSS398'.
SUBMIT UPC_BUNDLE_EXECUTE WITH BUNDLE = l_sequence.
What did I do wrong???
Many thanks in advance,
Try using FM API_SEMBPS_GLSEQUENCE_EXECUTE to execute the sequence and then call FM API_SEMBPS_POST to post it to DB (check documentation of the first FM in SM37).
This is just a suggestion (not something I have done in exit FM : usual disclaimer).