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

method send in SO_DOCUMENT_REPOSITORY_MANAGER without dialog

Former Member
0 Likes
1,004

Hi,

i use the FM SO_DOCUMENT_REPOSITORY_MANAGER with method SEND.

When i start it with filling receiver of type U there comes an dialog with my parameters.

When i press send it works OK.

Question: how can i avoid the dialog because i fill the receivers correct?

Regards, Dieter

Hi,

i use the FM SO_DOCUMENT_REPOSITORY_MANAGER with method SEND.

When i start it with filling receiver of type U there comes an dialog with my parameters.

When i press send it works OK.

Question: how can i avoid the dialog because i fill the receivers correct?

Regards, Dieter

5 REPLIES 5
Read only

Former Member
0 Likes
934

Rajeev

You can use following function module which generally used in SAP standard BAPI's

CALL FUNCTION 'DIALOG_SET_NO_DIALOG'.

or else the following statement which is used in above FM.

SET PARAMETER ID 'FLAG_DIALOG_STATUS' FIELD 'B'.

Hope this helps.

Rajeev

Read only

0 Likes
934

Hi,

thanks for answer.

I have tested both, but without any result.

Regards, Dieter

Read only

0 Likes
934

Dear Dieter Gröhn,

i'm also facing same problem plz tell me how to resolve this issue?

my code is like this

DATA g_receipients LIKE soos1 OCCURS 0 WITH HEADER LINE.

method1 = 'SEND'.

g_receipients-recnam = 'Gopi'.

g_receipients-recesc = 'B'.

g_receipients-sndex = 'X'.

g_receipients-adr_name = '[email protected]'.

g_receipients-esc_des = 'U'.

g_receipients-repesc = 'U'.

APPEND g_receipients.

i'm unable to send mail with above coding plz help me to resolve this,

plz correct above code

reg,

Gopi S

Read only

0 Likes
934

Try FM SO_OBJECT_SEND with folder_id and object_id from structure document of FM SO_DOCUMENT_REPOSITORY_MANAGER.


gs_folder_id-objtp = gv_fold_type.
  gs_folder_id-objyr = gv_fold_yr.
  gs_folder_id-objno = gv_fold_number.

  gs_order_id-objtp = gs_document-OBJTP.
  gs_order_id-objyr = gs_document-objyr.
  gs_order_id-objno = gs_document-objno.

  "gi_receivers-recnam = 'USERNAME'.
  gi_receivers-recextnam = mail adress here'.
  "gi_receivers-recesc = 'B'.
  gi_receivers-recesc = 'U'.
  gi_receivers-sndex = 'X'.
  append gi_receivers.

  CALL FUNCTION 'SO_OBJECT_SEND'
    EXPORTING
      FOLDER_ID                  = gs_folder_id
      OBJECT_ID                  = gs_order_id
      "OUTBOX_FLAG                = 'X'
    TABLES
      objcont                    = gi_objcnt
      objhead                    = gi_objhead
      objpara                    = gi_objpara
      objparb                    = gi_objparb
      RECEIVERS                  = gi_receivers

Regards, Léon Hoeneveld

Read only

0 Likes
934

Hi,

I tried the same way, but mail is not trigger.

could you pls. explain more.

regards,

sara