Application Development 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: 

SRM_RECORD_ADDELEMENT

Former Member
0 Kudos

Good morning,

Someone knows that you must pass parameters to the function SRM_RECORD_ADDELEMENT?

Thanks and best regards,

2 REPLIES 2

Former Member
0 Kudos

Hi,

If you look in to that FM the all import parameters are mandatory so you should pass all the import parameters.

OBJECTID
DOCUMENTCLASS
SPS_ID
ANCHOR
DESCRIPTION
STORE_AS_NEW_VERSION
STACKED
DOC_CONTEXT
ELEMENT_TYPE
INSERTION_BY_ANCHOR
INSERTION_BY_MODELID
INSERTION_BY_REFERENCE_NODE

these all needs the values.

and also you can check with the documentation of that FM

hope that helps you.

Thanks!

Former Member
0 Kudos

Good morning,

I've filled in all fields and gives an error.

The fields and values are:

OBJECTID = 2BFE8649F531F912E10000000AF5650C

DOCUMENTCLASS = ZRM02

SPS_ID = ZEXP_ABIERTO

ANCHOR = SOLPED2

DESCRIPTION = Prueba

DOC_CONTEXT --> RMS_ID = ZRECORD and SPS_ID = ZBOR_SOL_PED2

INSERTION_BY_ANCHOR --> ANCHOR = SOLPED2 and PARENT_NODE = 8056 and PARENT_NODE_ATTR_NAME = BANFN and PARENT_NODE_ATTR_VALUE = 0010000373

INSERTION_BY_REFERENCE_NODE --> REF_NODE_ID = 386 and A = X

ELEMENT_SP_POID --> NAME = BOR_OBJECT_ID and VALUE = ZRENFE_BOR_SOL_PED2, NAME = BOR_OBJECT_TYPE and VALUE = BUS2105

You know what happens?

Thaks and regards,

Vanesa