Entering content frame

Procedure documentation Generating Metadata from the Command Line Locate the document in its SAP Library structure

Use

You use this procedure to generate metadata for a set of business document types or all the business document types from the command line by specifying the required command parameters.

Prerequisites

You must have:

·        A user ID with the access rights of the system administrator on Microsoft SQL Server and DBOwner on the IDES database. You must also know the Data Source Name (DSN) of the IDES database you want to connect to.

·        Read and write access to the registry. Set the user database login parameters in the registry.

·        A user ID and a password for the CRM server you want to connect to.

You must know the details of the CRM server you want to connect to.

This graphic is explained in the accompanying text

·         You can get the server details in the SAP Logon screen.

·         To generate metadata for a set of business document types, create a .TXT or .LOG file that contains a list of business document type names.

Procedure

...

       1.      On the Taskbar, choose Start à Run.

The Run dialog box appears.

       2.      Enter cmd and choose OK.

The Command Prompt appears.

       3.      Enter the following command:

<Application Path>\ClientConsole.exe /MDG [ALL/-F <FileName>/-AFC] [-MW <Server;Client;User;Password;Lang>] [-BF <FetchBufferSize>] [-ABMD <’DD/MM/YYYY’;’DD/MM/YYYY’>]

This graphic is explained in the accompanying text

The default application path is C:\Program Files\SAP\Mobile\Bin.

The following table explains the parameters of the command.

Parameter

Optional / Mandatory

Description

/MDG

Mandatory

Executes Metadata Generation.

ALL/-F <FileName>/-AFC

Mandatory

Enter:

To generate:

ALL

Metadata for all the active business document types in the CRM server.

-F <File Name>

Metadata for all the business document types specified in the .TXT or .LOG file.

-AFC

Metadata for all the BDoc types specified using the advance filter criteria.

-MW <Server;Client;User;Password;Lang>

Mandatory

Details required for connecting to the CRM server.

Note

You must have created a server entry by using the R3 - DCOM Connector.

Server

The name of the CRM server you want to connect to.

Client

The name of the client.

User

Your user ID to access the specified CRM server.

Password

Your password to access the specified CRM server.

Note

If you do not enter the password, Client Console considers blank as the password.

Lang

The language in which you want to connect to the CRM server.

Note

If you do not enter the language, messages are logged in English.

-BF <FetchBufferSize>

Optional

For the <FetchBufferSize>, If you:

·        Enter a number, data for those many business document types is fetched from the CRM server at a time.

·        Do not enter a number, data for all the business document types is fetched from the CRM server at a time.

-ABMD <’DD/MM/YYYY’;’DD/MM/YYYY’>

Optional

Specifies advance filter criteria for the modified date of the BDoc type(s).

Result

The result of the generation is stored in the TPS.net file. The default path of this file is the value you specify for the registry key REPOSITORY_CACHE_DIR under HKEY_LOCAL_MACHINE\SOFTWARE\SAP\MSA\MW\TL.

Example

Enter the following command to generate metadata for the business document types listed in the BDocList.txt file.

C:\Program Files\SAP\Mobile\Bin\ClientConsole.exe /MDG -F C:\Temp\BdocList.TXT -MW AEC;000;uid;pwd;en -BF 50

See also:

Generating Metadata for Business Document Types

Viewing Metadata Generated for Business Document Types

Checking the Consistency of Metadata

Generating Table Scripts

Leaving content frame