2013 Aug 07 2:13 PM
Hello Gurus,
We are trying to send the message by email by using SHDB (to be able to generate our own Z code)
Then we are using CALL TRANSACTION (ME9F transaction) by giving parameters of required PO number
The email is being sent through SMTP - status OK.
But only thing that is missing is the message outputed sign. green arrow. See picture bellow,
Any ideas, why is this issue being raised or by which program or ABAP logic produced?
Regards
Laurynas Prikockis
Hello Gurus,
We are trying to send the message by email by using SHDB (to be able to generate our own Z code)
Then we are using CALL TRANSACTION (ME9F transaction) by giving parameters of required PO number
The email is being sent through SMTP - status OK.
But only thing that is missing is the message outputed sign. green arrow. See picture bellow,
Any ideas, why is this issue being raised or by which program or ABAP logic produced?
Regards
Laurynas Prikockis
2013 Aug 27 10:57 AM
Hi,
What I figure out for today: one step missing only when calling ME9F from ABAP code.
The flow is like:
CALL TRANSACTION 'ME9F' USING it_bdcdata
ME9F calls program RM06ENDR_ALV
After batch input "=9AUS" (Output Message) function WFMC_MESSAGE_SINGLE is called
after few more steps Z program Z_PO_SMARTFORM_MAIL is called (It sends pdf via email).
Z program calls FM SO_DOCUMENT_SEND_API1
There is an if statement at he end of this FM:
if commit_work = on.
commit work.
endif.
if running tcode in normal way commit has like an 3 steps: Method: On_SAVE_Requested;
Method: Deque_From_Memory; and Garbage Collector.
But if ME9F is being called from ABAP program commit work misses third step and returning to first program not to Z_PO_SMARTFORM_MAIL.
Question is what we are missing?
Regards
Paulius Ilginis
2013 Sep 02 5:41 AM
Finally found it. Call Transaction has an option RACOMMIT.
e.g.:
DATA opt TYPE ctu_params.
opt-DISMODE = 'N'."N
opt-UPDMODE = 'S'."A
opt-RACOMMIT = 'X'.
CALL TRANSACTION 'ME9F' USING bdcdata_tab OPTIONS FROM opt.
Regards
Paulius Ilginis