Documentation View

We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!

/DSCSAG/MM_NEWVER_MULTI3 - Creates a new version of a mastermodelgroup or a new nonmaster

/DSCSAG/MM_NEWVER_MULTI3 - Creates a new version of a mastermodelgroup or a new nonmaster

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This API works in 2 modes:

If a Master Modell (MM) is added to the ref table, the complete master modell group will be copied to a new version.

If a Nonmaster (NM) is added to the ref table, only this nonmaster is copied to a new version and links to the same Master Model like the ref nonmaster, depends on the import parmeter COPY_COMPLETE_MM!!.

Example

/DSCSAG/MM_NEWVER_MULTI2 : ( INPUT ) <

     | NAME                | VALUE               |

     | CDESK_MODE          | X                   |

     | CHECK_NOMASTER      |                     |

     | CHECK_ORIGINALS     | X                   |

     | COPY_COMPLETE_MM    | X                   |

     | COPY_OBJLINK_MARA   | X                   |

     | STOP_ON_FIRST_ERROR |                     |

    TABLE: BAPI_DOC_KEYS (DOCUMENTKEYS_REF)

                                      | DOCUMENTTYPE | DOCUMENTNUMBER            | DOCUMENTVERSION | DOCUMENTPART |

                                      | UDK          | 0000000000000000000015782 | 04              | 000          |

    TABLES NOT SET: BAPIRET2, BAPIPAREX, BAPI_DOC_KEYS, BAPI_DOC_KEYS, /DSCSAG/NAME_VALUE, /DSCSAG/DOC_VERSION_POST,

/DSCSAG/MM_NEWVER_MULTI2 : ( OUTPUT ) >

    STRUCTURE: BAPIRET2 (RETURN)

                       | TYPE | ID | NUMBER | MESSAGE | LOG_NO | LOG_MSG_NO | MESSAGE_V1 | MESSAGE_V2 | MESSAGE_V3 | MESSAGE_V4 | PARAMETER | ROW | FIELD | SYSTEM |

                       |      |    | 000    |         |        | 000000     |            |            |            |            |           | 0   |       |        |

    TABLE: BAPI_DOC_KEYS (DOCUMENTKEYS_REF)

                                      | DOCUMENTTYPE | DOCUMENTNUMBER            | DOCUMENTVERSION | DOCUMENTPART |

                                      | UDK          | 0000000000000000000015782 | 04              | 000          |

    TABLE: BAPI_DOC_KEYS (MASTERMODELS_NEW)

                                      | DOCUMENTTYPE | DOCUMENTNUMBER            | DOCUMENTVERSION | DOCUMENTPART |

                                      | UMK          | 0000000000000000000015782 | 09              | 000          |

    TABLE: BAPI_DOC_KEYS (NONMASTERS_NEW)

                                    | DOCUMENTTYPE | DOCUMENTNUMBER            | DOCUMENTVERSION | DOCUMENTPART |

                                    | UDK          | 0000000000000000000015782 | 16              | 000          |

                                    | WRD          | WRD-111222                | 08              | 000          |

    TABLE: /DSCSAG/DOC_VERSION_POST (PRE_POST_DOCUMENTS)

                                                   | DOCUMENTTYPE | DOCUMENTNUMBER            | DOCUMENTVERSION | DOCUMENTPART | DOCUMENTTYPE_POST | DOCUMENTNUMBER_POST       | DOCUMENTVERSION_POST | DOCUMENTPART_POST | DOCUMENTSTATUS_POST |

                                                   | UMK          | 0000000000000000000015782 | 00              | 000          | UMK               | 0000000000000000000015782 | 09                   | 000               |                     |

                                                   | UDK          | 0000000000000000000015782 | 04              | 000          | UDK               | 0000000000000000000015782 | 16                   | 000               |                     |

                                                   | WRD          | WRD-111222                | 00              | 000          | WRD               |WRD-111222 | 08 | 000 | |

Parameter

IMPORTING

CDESK_MODE - 'X' for PLM++ and SPACE for PLM 2.1

CHECK_ORIGINALS - 'X' brings an error if a original is checked out

STOP_ON_FIRST_ERROR

CHECK_NOMASTER - 'X' does not allow to copy only a nonmaster to a new version.

COPY_COMPLETE_MM - 'X' copies the complete group if a NM is added to the ref table, space copys only the NM to a new version

COPY_OBJLINK_MARA - 'X' copies the material object links to the new version

COPY_NEWESTNMVERSIONONLY - 'X' copies only the newest NM version in a MM group and makes a new version of it. SAPCE copies all NM versions in a MM group to a new version.

EXPORTING

RETURN - the first error

TABLES

DOCUMENTKEYS_REF - the documents to be copied (input)

DOC_RETURNS - error messages or warnings

MASTERMODELS_NEW - output

NONMASTERS_NEW - output

PRE_POST_DOCUMENTS - the output

EXTENSIONIN - is given to the BAdIs

PREFERENCES - for future use

Further information





Parameters

CHECK_AUTH
CHECK_NOMASTER
CHECK_ORIGINALS
CLASS_SUBST_DEST
CLASS_SUBST_SRC
COPYOBJECTLINKS
COPYORIGINALS
COPYVALIDFROM
COPY_NEWESTNMVERSIONONLY
COPY_OBJLINK_MARA
COPY_STRUCTURE_ASSAVED
DOCUMENTKEYS_REF
DOC_RETURNS
ET_ADD_RET
ET_MC_RETURNS
ET_STACK
EXTENSIONIN
IGNORE_CLASS_TYPES
IGNORE_NM_ALL
IGNORE_NM_DTYPES
IV_CLIENT_VERSION
MASTERMODELS_NEW
NONMASTERS_NEW
PREFERENCES
PRE_POST_DOCUMENTS
REMOVE_WSAPPLICATION
REMOVE_WSAPPLICATION_APPL
RETURN
RUNTIME
SEARCH_MEMBERS_FOR_GENERIC
SEARCH_MM_FOR_NM
SEARCH_NM_FOR_MM
STOP_ON_FIRST_ERROR
VERSION_ID
VERSION_MM_FOR_NM

Exceptions

Function Group

SAG/SAPLMASTERMODELL

TXBHW - Original Tax Base Amount in Local Currency   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 13407 Date: 20211202 Time: 011159     sap01-206 ( 97 ms )