Ansicht
Dokumentation
OIUHS_GET_DNND - Parse the 20-character DN Number
Fill RESBD Structure from EBP Component Structure General Data in Customer MasterThis documentation is copyright by SAP AG.
Functionality
Input parameters:,,,,
,,Source Value P1 - DN_NO
,,Source Value P2 - FROM_NODE_TYPE
,,Source Value P3 - FROM_NODE_NO
,,Source Value P4 - TO_NODE_TYPE
,,Source Value P5 - TO_NODE_NO
Output parameters:,,
,,DN_NO (V1),,
,,DNND_SUB_NWK_NO (V2)
,,DNND_MP_NO (V3)
,,DNND_WL_NO (V4)
,,DNND_WC_NO (V5)
,,DNND_NDS_MP_NO (V6)
,,DNND_SYS_NDS_NO (V7)
Logic:
,,data:,,l_node_no,,like oiu_pr_node_dn-node_no
,, ,,l_dn_link_tb ,,like oiu_pr_dn_link occurs 0 with header line,
,,,,l_mp_no,,like oiu_pr_node_mp,
,,
,,INSERT
,,,,Select NODE_NO
,,,,into l_node_no,,
,,,,up to 1 rows
,,,,from oiu_pr_node_dn
,,,,where mandt,,= sy-mandt
,,,,and dn_no,,= Source Value P1.
Call functions f(DN_NO) and f(SUB_DN_NO) to separate the 20-character delivery network number into a 4-character DN number (V1) and a 4 character SUB DN number (V2), respectively, passing l_node_no.
if Source Value P2 = 'M'.
,,Select MP_NO
,, into l_mp_no
,, up to 1 rows
,, from oiu_pr_node_mp
,,where mandt ,,= sy-mandt
,, and node_no,,= Source Value P3.
Call function f(TRUNCATE_FROM_LEFT) to move the last 6 character measurement point number into field DNND_MP_NO (V3).
Select MP_NO
into l_mp_no
up to 1 rows
from oiu_pr_node_mp
where mandt,,= sy-mandt
and node_no,,= Source Value P4.
,,
Call function f(TRUNCATE_FROM_LEFT) to move the last 6-character measurement point number into field
DNND_NDS_MP_NO (V6).
DNND_WL_NO V4 = space.
DNND_WC_NO P5 = space.
,,else.
,,,,Select WL_NO WC_NO
,,,, into l_wl_no, l_wc_no
,,,, up to 1 rows
,,,, from oiu_pr_node_wc
,,,, where mandt,,= sy-mandt
,,,, and node_no,,= Source Value P3.
,,,,Call function f(TRUNCATE_FROM_LEFT) twice: Once to move the last 6-character well number into field
,,,,DNND_WL_NO (V4), and a second time to move the last 2-character well completion number into field
,,,,DNND_WC_NO (V5).
Select MP_NO
into l_mp_no
up to 1 rows
from oiu_pr_node_mp
where mandt,,= sy-mandt
and node_no,,= Source Value P4.
,,
Call function f(TRUNCATE_FROM_LEFT) to move the last 6-character measurement point number into field
DNND_NDS_MP_NO (V6).
DNND_MP_NO V3 = space.
,,,,
,,endif.
Example
Notes
Further information
Parameters
E_DNND_MP_NOE_DNND_MP_NO9
E_DNND_NDS_MP_NO
E_DNND_NDS_MP_NO9
E_DNND_SUB_NWK_NO
E_DNND_WC_NO
E_DNND_WC_NO9
E_DNND_WL_NO
E_DNND_WL_NO9
E_DN_NO
I_DN_NBR
I_FROM_NODE_NO
I_FROM_NODE_TYPE
I_TO_NODE_NO
Exceptions
MPNOTFOUNDTRUNCERR
UNKNOWNERR
WLNOTFOUND
Function Group
OIUHS_INTEGRATION_EPRZSUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up General Data in Customer Master
This documentation is copyright by SAP AG.
Length: 3699 Date: 20240523 Time: 133914 sap01-206 ( 47 ms )