on 2018 May 30 10:34 AM
In my function module, which is configured in ".../aux-files/api_definitions.txt" I want to create a material revision for a document which is selected in the object manager.
Document keys etc. are passed to my z-function-module, but how do I properly access the change number of the work environment?
I assume one option is to call /DSCSAG/PLM_WUI_WENV_GET instead of passing it to the function module. Is this the only option?
Thanks,
Matthias
See configuration guide of ECTR in chapter "XML File with Module Call Definitions":
getecm - "none", "active", or "document" Change number determination.
Example:
<function apiname="/DSCSAG/MAT_BOM_RFC_CHANGE" name="MATBOM_CHANGE2" refresh="true" transaction="bright" type="material" getecm="active" >
<import>
<parameter name="CAD_FLAG" string="X"/>
<parameter name="ITEM_DATA_SET" string=" "/>
<parameter name="IV_CLIENT_VERSION" string="4050"/>
<structure name="MATERIAL_HEADER_DATA">
<parameter name="TCODE" vstring="CS02"/>
<parameter name="AENNR" value="CHANGENUMBER_INT"/>
<parameter name="CADKZ" string="X"/>
<parameter name="MATNR" value="MATERIALNUMBER_EXT"/>
<parameter name="STLAL" string="01"/>
<parameter name="STLAN" string="1"/>
</structure>
</import>
<tables/>
</function>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.