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

ME9F message output issue

Former Member
0 Likes
1,889

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

2 REPLIES 2
Read only

Former Member
0 Likes
1,259

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

Read only

0 Likes
1,259

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