Skip to main content
Skip table of contents

p$TDV:SMPAPI:WkTx_LTX


p$TDV:SMPAPI:WkTx_LTX

Read data determining the position texts of a shopping cart position or of an article in the product catalog.

The files to be read are defined by

The ObjectType, i.e. the letter "C" for the product catalog, or the letter "M" for a shopping cart position.the ObjectID, i.e. the identification number according to ObjectType:"C": the ObjectID is the MaterialID from the table TM_Produkt"M": the ObjectID is the MaterialID from the table TM_Warenpos. In the PG of the shopping cart position data (see PG SMWkPos) this number is held by the parameter MaterialIdent.After it is read, the information is written to a parameter group which is also transferred to this function. This parameter group can be named arbitrarily, the complete list of possible parameters can be found in the description of the parameter group POSText.

Syntax:

Status = p$TDV:SMPAPI:WkTx_LTX( ObjectID, ObjectType, LangCode, 'PG' )

 

 

 

 

 

Argument

Type

Meaning

ObjectID

String

MaterialID of the SalesManager object referring to ObjectType

ObjectType

String

Determination of the SalesManager object according to:
'C': Product catalog, ObjectID is MaterialID from TM_Produkt
'M': Shopping cart position, ObjectID is MaterialID from TM_Warenpos

LanguageCode

String

Language code for the target language according to the table TP_Sprache.

Please note: The (usually numerical) language code is transferred as a string here!

PG

String

Name of a parameter group with any arrays from the PG PosText. After successful reading the address this PG is filled with the data; Otherwise its content will be set to EMPTY.

Result:

Integer

Status of the operation
0: Data read successfully
other: Error

Example: Analysis of a position text of a shopping cart position

The position data are stored in the parameter group pos[i] and the language with the language code 2 is to be used.

If a position text is defined, the label is to be returned as a naming text of the position. If not, the name of the shopping cart position is to be used. In the text component, a dedicated user parameter "Name" has been defined.

If an RTF text exists, it is to be added to the text document.

ET "PosText":

 

 

R 01

SONST

B 01

 

 

 

A 01

St = p$TDV:SMPAPI:WkTx_LTX pos[i].MaterialIdent, ’M’, ’2’, ’pt’ )

x

 

A 02

p$PosText2()

x

 

ET "PosText2":

 

 

R 01

R 02

SONST

B 01

St

0

0

 

B 02

pt.MemoText

’MemoText’

 

 

B 03

 

 

 

 

A 01

p$TDV:SMPAPI:EtTxPar( ’Lab’, pt.Label )

x

x

 

A 02

p$TDV:SMPAPI:EtTxPar( ’Lab’, pt.Name)

 

 

X

A 03

p$TDV:SMPAPI:EtTxRTF( pt.TextID, ’TextID’, ’T_Texts’, ’MemoText, ’’ )

x

 

 

Remarks to ET PosText2:

Rule 1 applies if position text data exists (St=0) and a memo text has been input into this data.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.