SAP Function API_S2K_IP_HDR_CREATE - Update Header table for SPEC2000 Upload

Parameter Reference Type Length Default Optional Text
IS_SPCIPHDR API_SPCIPHDR u 36 Stores header information for IP data
IS_SPCIPHDRT API_SPCIPHDRT u 105 Text for SPCIPHDR - for every SQNBR
IS_UPDATE_OPTIONS API_SPCIP_HDR_OPTIONS u 3 Update Options

Parameter Reference Type Length Text
ES_SPCIPHDR SPCIPHDR u 70 Stores header information for IP data
ES_SPCIPHDRT SPCIPHDRT u 108 Texts for SPCIPHDR - for every SQNBR
ES_UPLOAD_STATUS_HDR API_SPCIP_UPLOAD_STATUS_HDR u 2 Upload status

Parameter Reference Length Optional Text
T_MESSAGES ADS2KIPUPL_MSG_COMM 736 SPEC2000 IP Upload: Message Communication Structure
T_MESSAGES_DOC_PARAMS ADS2KIPUPL_MSG_COMM_DOC_PARAMS 92 SPEC2000 IP Upload: Msg Comm Struct-SAPScript Doc Parameters
T_SPCIPEXTN API_SPCIPEXTN 245 X SPEC2000 Initial Provisioning: Extensions

Functionality
This API is used to insert details to the header in the InitialProvisioning database (SPCIPHDR table).
The import parameters being:

  • IS_UPDATE_OPTIONS - Database Update options. The options include the
  • functionality to log errors as messages without any database committaking place.
    • IS_SPCIPHDR - Header details should be passed to the API.

    • ES_UPLOAD_STATUS_HDR - Flag indicating the status of the update.

    • T_SPCIPEXTN - Customer Extensions. The customer extensions need to be
    • handled by the Badi 'ADS2KIPUPL_HDR_API'.
      • T_MESSAGES - Messages raised are populated and passed to the calling
      • application.
        If the technical checks for any header fails, it logs in the messagesand rejects the file. When the technical checks are successful thebusiness checks are carried on.
        In case the header is rejected there is no update in the database.

        Notes
        Transmission Sequence Number(TSN field of CS_SPCIPPHDR) should be 1 fora transmission with New Parts, while for Revised, Deleted parts, it hasbe to one greater than the last TSN found in the database.