SAP SPRX_BCKG_CREATE_OR_CHANGE Function Module for create proxy object (background)









SPRX_BCKG_CREATE_OR_CHANGE is a standard sprx bckg create or change SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for create proxy object (background) processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for sprx bckg create or change FM, simply by entering the name SPRX_BCKG_CREATE_OR_CHANGE into the relevant SAP transaction such as SE37 or SE38.

Function Group: SPRX_BACKGROUND
Program Name: SAPLSPRX_BACKGROUND
Main Program: SAPLSPRX_BACKGROUND
Appliation area:
Release date: 09-Feb-2007
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SPRX_BCKG_CREATE_OR_CHANGE pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'SPRX_BCKG_CREATE_OR_CHANGE'"create proxy object  (background)
EXPORTING
WSDL_SOURCE_TYPE = "Sourcetype, see typepool SEWS
* PREFIX = "Generation prefix
* DEVCLASS = '$TMP' "Package
* TRANSPORT_NUMBER = "Transport request number
* NAMES_PROPOSED_IN = "obsolete -> see longtext
* ACTIVATE = ' ' "do not save (space), acitvate ('X'), activate all ('A')
* PERSIST_LOG = ' ' "persist log
* SHOW_LOG = ' ' "show log
* NAME_PROPOSAL = "Name proposal
* SLIB_RETRIEVER = "SLIB-Retriever to be used when accessing WSDL-document
* SUPPRESS_DIALOG = ' ' "ABAP Proxies: Boolean Value ('X' = True, Space = False)
* WSDL_SOURCE_STRING = "URL, HTTP-Destination, File path, depending on WSDL_SOURCE_TYPE
* WSDL_SOURCE_SUFFIX = "on HTTP-Destinations, - path suffix
* WSDL = "plain WSDL
* IFR_TYPE = "Objecttype in ESR (Enterprise Services Repository)
* IFR_NAME = "Objectname in ESR
* IFR_NAME' ' = "Objectnamespace in ESR
* IFR_COMPONENT_NAME = "ESR software component name
* IFR_COMPONENT_VERS = "ESR software component version

IMPORTING
GENERATED_PROXIES = "List of generated proxies
CHANGED = "Proxy was changed
NAMES_PROPOSED_OUT = "Nameproposals
LOG_HANDLE = "log handle
WORST_MESSAGE_TYPE = "Worst Message Type
.



IMPORTING Parameters details for SPRX_BCKG_CREATE_OR_CHANGE

WSDL_SOURCE_TYPE - Sourcetype, see typepool SEWS

Data type: WS_WB_TYPE
Optional: No
Call by Reference: Yes

PREFIX - Generation prefix

Data type: PRX_PREFIX
Optional: Yes
Call by Reference: Yes

DEVCLASS - Package

Data type: DEVCLASS
Default: '$TMP'
Optional: Yes
Call by Reference: Yes

TRANSPORT_NUMBER - Transport request number

Data type: KORRNUM
Optional: Yes
Call by Reference: Yes

NAMES_PROPOSED_IN - obsolete -> see longtext

Data type: PRX_PRPS_PROXIES
Optional: Yes
Call by Reference: Yes

ACTIVATE - do not save (space), acitvate ('X'), activate all ('A')

Data type: BOOLEAN
Default: SPACE
Optional: Yes
Call by Reference: Yes

PERSIST_LOG - persist log

Data type: BOOLEAN
Default: SPACE
Optional: Yes
Call by Reference: Yes

SHOW_LOG - show log

Data type: BOOLEAN
Default: SPACE
Optional: Yes
Call by Reference: Yes

NAME_PROPOSAL - Name proposal

Data type: IF_PROXY_BADI_NAMEPROPOSAL
Optional: Yes
Call by Reference: Yes

SLIB_RETRIEVER - SLIB-Retriever to be used when accessing WSDL-document

Data type: IF_SLIB_RETRIEVER
Optional: Yes
Call by Reference: Yes

SUPPRESS_DIALOG - ABAP Proxies: Boolean Value ('X' = True, Space = False)

Data type: PRX_BOOLEAN
Default: SPACE
Optional: Yes
Call by Reference: Yes

WSDL_SOURCE_STRING - URL, HTTP-Destination, File path, depending on WSDL_SOURCE_TYPE

Data type: STRING
Optional: Yes
Call by Reference: Yes

WSDL_SOURCE_SUFFIX - on HTTP-Destinations, - path suffix

Data type: STRING
Optional: Yes
Call by Reference: Yes

WSDL - plain WSDL

Data type: XSTRING
Optional: Yes
Call by Reference: Yes

IFR_TYPE - Objecttype in ESR (Enterprise Services Repository)

Data type: PRX_TYPE
Optional: Yes
Call by Reference: Yes

IFR_NAME - Objectname in ESR

Data type: PRX_IFRNAM
Optional: Yes
Call by Reference: Yes

IFR_NAMESPACE - Objectnamespace in ESR

Data type: PRX_NSPCE
Optional: Yes
Call by Reference: Yes

IFR_COMPONENT_NAME - ESR software component name

Data type: STRING
Optional: Yes
Call by Reference: Yes

IFR_COMPONENT_VERS - ESR software component version

Data type: STRING
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for SPRX_BCKG_CREATE_OR_CHANGE

GENERATED_PROXIES - List of generated proxies

Data type: SPROXNAMES
Optional: No
Call by Reference: Yes

CHANGED - Proxy was changed

Data type: BOOLEAN
Optional: No
Call by Reference: Yes

NAMES_PROPOSED_OUT - Nameproposals

Data type: PRX_PRPS_PROXIES
Optional: No
Call by Reference: Yes

LOG_HANDLE - log handle

Data type: BALLOGHNDL
Optional: No
Call by Reference: Yes

WORST_MESSAGE_TYPE - Worst Message Type

Data type: SY-MSGTY
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SPRX_BCKG_CREATE_OR_CHANGE Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_wsdl_source_type  TYPE WS_WB_TYPE, "   
lv_generated_proxies  TYPE SPROXNAMES, "   
lv_prefix  TYPE PRX_PREFIX, "   
lv_devclass  TYPE DEVCLASS, "   '$TMP'
lv_transport_number  TYPE KORRNUM, "   
lv_names_proposed_in  TYPE PRX_PRPS_PROXIES, "   
lv_activate  TYPE BOOLEAN, "   SPACE
lv_persist_log  TYPE BOOLEAN, "   SPACE
lv_show_log  TYPE BOOLEAN, "   SPACE
lv_name_proposal  TYPE IF_PROXY_BADI_NAMEPROPOSAL, "   
lv_slib_retriever  TYPE IF_SLIB_RETRIEVER, "   
lv_suppress_dialog  TYPE PRX_BOOLEAN, "   SPACE
lv_changed  TYPE BOOLEAN, "   
lv_wsdl_source_string  TYPE STRING, "   
lv_names_proposed_out  TYPE PRX_PRPS_PROXIES, "   
lv_wsdl_source_suffix  TYPE STRING, "   
lv_wsdl  TYPE XSTRING, "   
lv_log_handle  TYPE BALLOGHNDL, "   
lv_ifr_type  TYPE PRX_TYPE, "   
lv_worst_message_type  TYPE SY-MSGTY, "   
lv_ifr_name  TYPE PRX_IFRNAM, "   
lv_ifr_namespace  TYPE PRX_NSPCE, "   
lv_ifr_component_name  TYPE STRING, "   
lv_ifr_component_vers  TYPE STRING. "   

  CALL FUNCTION 'SPRX_BCKG_CREATE_OR_CHANGE'  "create proxy object (background)
    EXPORTING
         WSDL_SOURCE_TYPE = lv_wsdl_source_type
         PREFIX = lv_prefix
         DEVCLASS = lv_devclass
         TRANSPORT_NUMBER = lv_transport_number
         NAMES_PROPOSED_IN = lv_names_proposed_in
         ACTIVATE = lv_activate
         PERSIST_LOG = lv_persist_log
         SHOW_LOG = lv_show_log
         NAME_PROPOSAL = lv_name_proposal
         SLIB_RETRIEVER = lv_slib_retriever
         SUPPRESS_DIALOG = lv_suppress_dialog
         WSDL_SOURCE_STRING = lv_wsdl_source_string
         WSDL_SOURCE_SUFFIX = lv_wsdl_source_suffix
         WSDL = lv_wsdl
         IFR_TYPE = lv_ifr_type
         IFR_NAME = lv_ifr_name
         IFR_NAMESPACE = lv_ifr_namespace
         IFR_COMPONENT_NAME = lv_ifr_component_name
         IFR_COMPONENT_VERS = lv_ifr_component_vers
    IMPORTING
         GENERATED_PROXIES = lv_generated_proxies
         CHANGED = lv_changed
         NAMES_PROPOSED_OUT = lv_names_proposed_out
         LOG_HANDLE = lv_log_handle
         WORST_MESSAGE_TYPE = lv_worst_message_type
. " SPRX_BCKG_CREATE_OR_CHANGE




ABAP code using 7.40 inline data declarations to call FM SPRX_BCKG_CREATE_OR_CHANGE

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
DATA(ld_devclass) = '$TMP'.
 
 
 
DATA(ld_activate) = ' '.
 
DATA(ld_persist_log) = ' '.
 
DATA(ld_show_log) = ' '.
 
 
 
DATA(ld_suppress_dialog) = ' '.
 
 
 
 
 
 
 
 
"SELECT single MSGTY FROM SY INTO @DATA(ld_worst_message_type).
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!