SAP ISM_JPBUPAASS_WRITE_DOCUMENT Function Module for Access Change Documents for BP Assignment to Media Product
ISM_JPBUPAASS_WRITE_DOCUMENT is a standard ism jpbupaass write document SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Access Change Documents for BP Assignment to Media Product 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 ism jpbupaass write document FM, simply by entering the name ISM_JPBUPAASS_WRITE_DOCUMENT into the relevant SAP transaction such as SE37 or SE38.
Function Group: JPTBP
Program Name: SAPLJPTBP
Main Program: SAPLJPTBP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISM_JPBUPAASS_WRITE_DOCUMENT 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 'ISM_JPBUPAASS_WRITE_DOCUMENT'"Access Change Documents for BP Assignment to Media Product.
EXPORTING
PVI_TCODE = "ABAP Program, Current Transaction Code
PVI_DATE = "Created On
PVI_TIME = "Time Created
PVI_USER = "Created By
* PSI_OLD_MARA = "IS-M: Assignment of Business Partners to Material
* PSI_NEW_MARA = "General material data
TABLES
* PT_XJPTBUPAASS = "IS-M: Assignment of Business Partners to Material
* PT_YJPTBUPAASS = "IS-M: Assignment of Business Partners to Material
PT_JPTBPASS_UPD = "IS-M: Assignment of Business Partners to Material
PT_JPTBPASS_INS = "IS-M: Assignment of Business Partners to Material
PT_JPTBPASS_DEL = "IS-M: Assignment of Business Partners to Material
PT_O_JPTBPASS = "IS-M: Assignment of Business Partners to Material
IMPORTING Parameters details for ISM_JPBUPAASS_WRITE_DOCUMENT
PVI_TCODE - ABAP Program, Current Transaction Code
Data type: SY-TCODEOptional: No
Call by Reference: No ( called with pass by value option)
PVI_DATE - Created On
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
PVI_TIME - Time Created
Data type: SY-UZEITOptional: No
Call by Reference: No ( called with pass by value option)
PVI_USER - Created By
Data type: SY-UNAMEOptional: No
Call by Reference: No ( called with pass by value option)
PSI_OLD_MARA - IS-M: Assignment of Business Partners to Material
Data type: MARAOptional: Yes
Call by Reference: No ( called with pass by value option)
PSI_NEW_MARA - General material data
Data type: MARAOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISM_JPBUPAASS_WRITE_DOCUMENT
PT_XJPTBUPAASS - IS-M: Assignment of Business Partners to Material
Data type: JPTBUPAASSIGNOptional: Yes
Call by Reference: Yes
PT_YJPTBUPAASS - IS-M: Assignment of Business Partners to Material
Data type: JPTBUPAASSIGNOptional: Yes
Call by Reference: Yes
PT_JPTBPASS_UPD - IS-M: Assignment of Business Partners to Material
Data type: JPTBUPAASSIGNOptional: No
Call by Reference: Yes
PT_JPTBPASS_INS - IS-M: Assignment of Business Partners to Material
Data type: JPTBUPAASSIGNOptional: No
Call by Reference: Yes
PT_JPTBPASS_DEL - IS-M: Assignment of Business Partners to Material
Data type: JPTBUPAASSIGNOptional: No
Call by Reference: Yes
PT_O_JPTBPASS - IS-M: Assignment of Business Partners to Material
Data type: JPTBUPAASSIGNOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISM_JPBUPAASS_WRITE_DOCUMENT 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_pvi_tcode | TYPE SY-TCODE, " | |||
| lt_pt_xjptbupaass | TYPE STANDARD TABLE OF JPTBUPAASSIGN, " | |||
| lv_pvi_date | TYPE SY-DATUM, " | |||
| lt_pt_yjptbupaass | TYPE STANDARD TABLE OF JPTBUPAASSIGN, " | |||
| lv_pvi_time | TYPE SY-UZEIT, " | |||
| lt_pt_jptbpass_upd | TYPE STANDARD TABLE OF JPTBUPAASSIGN, " | |||
| lv_pvi_user | TYPE SY-UNAME, " | |||
| lt_pt_jptbpass_ins | TYPE STANDARD TABLE OF JPTBUPAASSIGN, " | |||
| lv_psi_old_mara | TYPE MARA, " | |||
| lt_pt_jptbpass_del | TYPE STANDARD TABLE OF JPTBUPAASSIGN, " | |||
| lv_psi_new_mara | TYPE MARA, " | |||
| lt_pt_o_jptbpass | TYPE STANDARD TABLE OF JPTBUPAASSIGN. " |
|   CALL FUNCTION 'ISM_JPBUPAASS_WRITE_DOCUMENT' "Access Change Documents for BP Assignment to Media Product |
| EXPORTING | ||
| PVI_TCODE | = lv_pvi_tcode | |
| PVI_DATE | = lv_pvi_date | |
| PVI_TIME | = lv_pvi_time | |
| PVI_USER | = lv_pvi_user | |
| PSI_OLD_MARA | = lv_psi_old_mara | |
| PSI_NEW_MARA | = lv_psi_new_mara | |
| TABLES | ||
| PT_XJPTBUPAASS | = lt_pt_xjptbupaass | |
| PT_YJPTBUPAASS | = lt_pt_yjptbupaass | |
| PT_JPTBPASS_UPD | = lt_pt_jptbpass_upd | |
| PT_JPTBPASS_INS | = lt_pt_jptbpass_ins | |
| PT_JPTBPASS_DEL | = lt_pt_jptbpass_del | |
| PT_O_JPTBPASS | = lt_pt_o_jptbpass | |
| . " ISM_JPBUPAASS_WRITE_DOCUMENT | ||
ABAP code using 7.40 inline data declarations to call FM ISM_JPBUPAASS_WRITE_DOCUMENT
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.| "SELECT single TCODE FROM SY INTO @DATA(ld_pvi_tcode). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_pvi_date). | ||||
| "SELECT single UZEIT FROM SY INTO @DATA(ld_pvi_time). | ||||
| "SELECT single UNAME FROM SY INTO @DATA(ld_pvi_user). | ||||
Search for further information about these or an SAP related objects