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

Sending SMS

Former Member
0 Likes
372

Hi all,

I am having a doubt regarding these two function modules.

1 : SXPG_COMMAND_EXECUTE:

2:SO_DOCUMENT_SEND_API1:

My doubt is that Whats the Exact difference between these two .

Pls help me in this regard.

Hi all,

I am having a doubt regarding these two function modules.

1 : SXPG_COMMAND_EXECUTE:

2:SO_DOCUMENT_SEND_API1:

My doubt is that Whats the Exact difference between these two .

Pls help me in this regard.

1 REPLY 1
Read only

Former Member
0 Likes
347

SO_DOCUMENT_SEND_API1

SAPoffice: Send new document with attachments using RFC

Functionality

This function module enables you send a new document including any existing attachments. The document and the attachments are transferred in the same table. They are created when sent and can also be placed in the sender's outbox.

It is necessary to distinguish between the document and its folder entries. The document itself only exists in the database once. It is a template for the folder entries and can be addressed via its object ID. Any number of folder entries can belong to the document. The folder entries contain the attributes of the document as well as some additional attributes relating to the folder entry itself. (Send priority and expiry date of the entry, for example.) Folder entries are created when a document is resubmitted, referenced or sent as well as when a new document is created.

SXPG_COMMAND_EXECUTE

Execute an External Command

Functionality

Using this function module, you can check the authorization of a user to execute a particular external command and run the command:

With the arguments specified in ADDITIONAL_PARAMETERS

On the target host system defined by OPERATINGSYSTEM and TARGETSYSTEM

If an SAP profile parameter is inserted in the portion of the command stored in the database, then the value of this parameter is substituted into the command. If an SAP application server is active on the target system (TARGETSYSTEM), then the profile parameter values are read from the profile that is active on that system. No parameter substitution is made in ADDITIONAL_PARAMETERS.

After substitution, the command is checked for the presence of "dangerous" characters such as the semicolon ( ; ) on UNIX systems.

If an additional "security function module" is specified in the command definition, this function module is also called in the course of processingebenfalls. This function module can prevent execution of the command.

If the authorization checks complete successfully, the command is run on the target host system.