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: 

LSMW - Add PRT to routing

tma_sopra
Explorer
0 Kudos

Hello SAP expert,

I am trying to assign a PRT to an existing routing with an LSMW using direct input RCPTRA02.

I have an issue on the last step "Start Direct Input Program" : C\ 003 "No operation exist for the specified object exists"

I have mapped to the structures RC271_DS and PLFH_DI_DS.

Here are the fields mapping :

for structure RC271_DS :

RECTY Record type for batch input of task lists

Rule : Default Settings

Code: RC271_DS-RECTY = '00'.

TCODE Transaction Code

Rule : Constant

Code: RC271_DS-TCODE = 'CA02'.

STTAG Character Field Length = 10

Code: RC271_DS-STTAG = '08.08.2022'.

AENNR Change Number

REVLV Revision Level

WERKS Plant

Rule : Constant

Code: RC271_DS-WERKS = 'UMSF'.

PROFIDNETZ Profile

Rule : Constant

Code: RC271_DS-PROFIDNETZ = '1'.

PLNNR Key for Task List Group

Rule : Transfer (MOVE)

Code: RC271_DS-PLNNR = ROUTINGPRT-GROUP.

* Caution: Source field is longer than target field

PLNAL Group Counter

Rule : Transfer (MOVE)

Code: RC271_DS-PLNAL = ROUTINGPRT-COUNTER.

* Caution: Source field is longer than target field

STATU Status

Rule : Constant

Code: RC271_DS-STATU = '4'.

VAGRP Responsible Planner Group/Department

VBELN Sales Document

POSNR Character field of length 6

PSPNR Work Breakdown Structure Element (WBS Element)

for structure PLFH_DI_DS :

RECTY Record type for batch input of task lists

Rule : Default Settings

Code: PLFH_DI_DS-RECTY = '11'.

ACTTYP Processing type for objects to be imported

Rule : Constant

Code: PLFH_DI_DS-ACTTYP = 'H'.

PLNTY Task List Type

Rule : Constant

Code: PLFH_DI_DS-PLNTY = 'N'.

PLNNR Key for Task List Group

Source: ROUTINGPRT-GROUP (GROUP)

Rule : Transfer (MOVE)

Code: PLFH_DI_DS-PLNNR = ROUTINGPRT-GROUP.

* Caution: Source field is longer than target field

PZLFH Counter for production resource/tool items (batch input)

Rule : Constant

Code: PLFH_DI_DS-PZLFH = '00000001'.

ZAEHL Counter (batch input)

Rule : Constant

Code: PLFH_DI_DS-ZAEHL = '00000001'.

DATUV Valid-From Date (BTCI)

TECHV Technical status from

LOEKZ Deletion Indicator

PARKZ Indicator: inactive changes

AENNR Change Number

DATUI Creation date of the record (batch input)

USERI User who created record

DATUC Change date (batch input)

USERC Name of Person Who Changed Object

OBJTY Object types of the CIM resource

Rule : Constant

Code: PLFH_DI_DS-OBJTY = 'FH'.

OBJID Object ID of the resource (batch input)

OBJCT Object of a task list

Rule : Constant

Code: PLFH_DI_DS-OBJCT = 'O'.

PLNAL Group Counter

Source: ROUTINGPRT-COUNTER (COUNTER)

Rule : Transfer (MOVE)

Code: PLFH_DI_DS-PLNAL = ROUTINGPRT-COUNTER.

* Caution: Source field is longer than target field

PLNFL Sequence

Rule : Constant

Code: PLFH_DI_DS-PLNFL = '000000'.

PLNKN Node number (batch input)

Rule : Constant

Code: PLFH_DI_DS-PLNKN = '00000001'.

PSNFH Item number of the production resource/tool (batch input)

Source: ROUTINGPRT-PSNFH (PSNFH)

Rule : Transfer (MOVE)

Code: PLFH_DI_DS-PSNFH = ROUTINGPRT-PSNFH.

* Caution: Source field is longer than target field

STEUF Control key for management of production resources/tools

Rule : Constant

Code: PLFH_DI_DS-STEUF = '1'.

KZKBL Indicator: Create load records for prod. resources/tools

BZOFFB Reference date to start of production resource/tool usage

Rule : Constant

Code: PLFH_DI_DS-BZOFFB = '01'.

OFFSTB Interval to start of production resource/tool usage (BTCI)

EHOFFB Unit for sub-operation offset (batch input)

BZOFFE Reference date for end of production resource/tool usage

OFFSTE Time before procurement date end PRT (BTCI)

EHOFFE Unit of measure for offset usage - finish (BTCI)

MGEINH Unit for quantity of production resource/tool (batch input)

Rule : Constant

Code: PLFH_DI_DS-MGEINH = '%'.

MGVGW Standart value for PRT quantity (batch input)

Rule : Constant

Code: PLFH_DI_DS-MGVGW = '1'.

MGFORM Formula for calculating the total quantity of PRT

EWEINH Unit for usage value of prod. resource/tool (batch input)

EWVGW Standard value for the usage value of the PRT (batch input)

EWFORM Formula for calculating the total usage value of PRT

TXTSP Language key (batch input)

KTSCH Standard text key for production resources/tools

TXTZ1 First line of text for production resources/tools

KNOBJ Field length 18

GP_KRIT1 Planning object

MGSOL Total PRT quantity (batch input)

MGIST Confirmed PRT quantity (batch input)

MGRST Remaining quantity of the prod. resource/tool (batch input)

MGAUS Quantity of checked-out prod. resources/tools (batch input)

EWSOL Total usage value of the PRT (batch input)

EWIST Confirmed usage value (batch input)

EWRST Remaining usage value of the production resource/tool

FHMAR Production resources/tools category

Rule : Constant

Code: PLFH_DI_DS-FHMAR = 'D'.

FHMNR Production resource/tool number

FHWRK Production resources/tools in plant

MATNR Material Number

Source: ROUTINGPRT-MATERIAL (MATERIAL)

Rule : Transfer (MOVE)

Code: PLFH_DI_DS-MATNR = ROUTINGPRT-MATERIAL.

* Caution: Source field is longer than target field

SFHNR Production resources and tools

DOKAR Document Type

Rule : Constant

Code: PLFH_DI_DS-DOKAR = 'ROU'.

DOKNR Document number

Source: ROUTINGPRT-DOKNR (Document number)

Rule : Transfer (MOVE)

Code: PLFH_DI_DS-DOKNR = ROUTINGPRT-DOKNR.

* Caution: Source field is longer than target field

DOKTL Document Part

Rule : Constant

Code: PLFH_DI_DS-DOKTL = '000'.

DOKVR Document Version

Rule : Constant

Code: PLFH_DI_DS-DOKVR = '00'.

EQUNR Equipment Number

EQWPL Maintenance Plan

EQWTX Maintenance Plan Text

EQPNT Measuring Point

EQPTX Description of Measuring Point

ATNAM Characteristic Name

ATVOR Indicator: Negative Values Allowed

MSEHI Unit of measurement

ATDIM User field: unit/value

ANZDZ User field: unit/value

FHKTX Description of the production resource/tool

BASEH Base unit of measure (Legacy Data Transfer FI-AA)

MEINS Base unit of measure (Legacy Data Transfer FI-AA)

FGRU1 Grouping key 1 for production resources/tools

FGRU2 Grouping key 2 for production resources/tools

STOWK Plant location of the production resource/tool

STORT Location of a production resource or tool

STEUF_REF Control key cannot be changed

Rule : Constant

Code: PLFH_DI_DS-STEUF_REF = 'X'.

KTSCH_REF Reference Key Cannot be Changed

BZOFFB_REF Start reference date cannot be changed

OFFSTB_REF Offset to start cannot be changed

BZOFFE_REF End reference date cannot be changed

OFFSTE_REF Offset to end cannot be changed

MGFORM_REF Formula for calculating the total quantity cannot be changed

EWFORM_REF Formula to calculate entire usage value cannot be changed

DATUB Valid to date (BTCI)

TXTKZ Indicator: Long text exists

CF_KZSVS Indicator for start of PRT usage: Offset to Operation start

CF_KZSVE Indicator for start of PRT usage: Offset to op. finish

CF_KZEVS Indicator for end of PRT usage: Offset to operation start

CF_KZEVE Indicator for end of PRT usage: Offset to operation finish

VORNR Operation/Activity Number

Rule : Constant

Code: PLFH_DI_DS-VORNR = '0020'.

Do you know if I am missing a field mapping or a mapping is not correctly filled?

Thank you in advance for your help

Best regards,
Christophe

1 REPLY 1

tma_sopra
Explorer
0 Kudos

Hello,

we found the issue.

It was missing the value of the node number on the structure PLFH_DI_DS.

Best regards

Christophe