Hi all,
I am trying to extract Plant Maintenance Orders : 0PM_ORDER using the standard extractors : 0PM_ORDER_ATTR.
0PM_ORDER has 0WBS_ELEMT as an attribute.
0WBS_ELEMT is defined as a CHAR 24 with conversion routine WBSEL.
When I run the extractor, instead of getting the 0WBS_ELEMT value, I get an 8 digits number.
Looking at the extract structure in R/3 for 0PM_ORDER_ATTR, I find that the WBS element is based on data type NUMC 8 with conversion exit ABPSP whereas 0WBS_ELEMT_ATTR is based on a CHAR 24 with conversion exit ABPSN !
Now looking again at 0WBS_ELEMT, I find that it has an attribute 0WBS_ELEMT_EX which is defined on 24 char with no conversion exit.
When I extract data using 0WBS_ELEMT_ATTR, I get the wbs elements in external format (CHAR 24). But when I extract data for 0PM_ORDER, I get the wbs elements in internal formats !
Why did SAP create what looks like an inconsistency here ?
If 0WBS_ELEMT was stored in internal format (NUMC 8) with an attribute in external format (CHAR 24) I guess it would have been fine.
Can someone explain to me the logic behind this and how I do I get my 0PM_ORDER(s) with the WBS attribute in the correct format so that I can derive WBS values fromPM Orders...
Many thanks
Pierre-Yves