SAP ISP_ORDER_READ_FOR_BILLING Function Module for IS-M/AM: Create Order Environment for Billing Document
ISP_ORDER_READ_FOR_BILLING is a standard isp order read for billing SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-M/AM: Create Order Environment for Billing Document 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 isp order read for billing FM, simply by entering the name ISP_ORDER_READ_FOR_BILLING into the relevant SAP transaction such as SE37 or SE38.
Function Group: JHAG
Program Name: SAPLJHAG
Main Program: SAPLJHAG
Appliation area: J
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function ISP_ORDER_READ_FOR_BILLING 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 'ISP_ORDER_READ_FOR_BILLING'"IS-M/AM: Create Order Environment for Billing Document.
EXPORTING
* PAR_XACT_ABSCHLUSS = "
* PAR_CURRENCY_NEW_KURST = "
* PAR_CALLER = "
* PAR_EVENT = "
* PAR_CURRENCY_NEW_PLTYP = "
* PV_FLG_AVM_READ = 'X' "
* PV_FLG_WITH_FAKT = "
* PAR_KOMFK_VOR = "
* PAR_XACT_PREIS = "
* PAR_XACT_VERMZUO = "
* PAR_XACT_RRREL = "
* PAR_DIALOG = "Checkbox Field
* PAR_XABS_ACT = "
* PAR_AVM_ACTUALIZE = "
* PAR_WITH_ENQUEUE = "
* PAR_CURRENCY_NEW = "
TABLES
PAR_SELX_TAB = "
* PAR_FAKTURA_TAB = "
EXCEPTIONS
ERROR = 1
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLJHAG_001 IS-M/AM: Fill Billing Interface - Order-Related
IMPORTING Parameters details for ISP_ORDER_READ_FOR_BILLING
PAR_XACT_ABSCHLUSS -
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
PAR_CURRENCY_NEW_KURST -
Data type: KOMK-KURSTOptional: Yes
Call by Reference: No ( called with pass by value option)
PAR_CALLER -
Data type: TJHAVMUPD-AVMUPD_CALOptional: Yes
Call by Reference: No ( called with pass by value option)
PAR_EVENT -
Data type: TJHAVMUPD-AVMUPD_EVNOptional: Yes
Call by Reference: No ( called with pass by value option)
PAR_CURRENCY_NEW_PLTYP -
Data type: KOMK-PLTYPOptional: Yes
Call by Reference: No ( called with pass by value option)
PV_FLG_AVM_READ -
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PV_FLG_WITH_FAKT -
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
PAR_KOMFK_VOR -
Data type: JHF1_KOMFK_VOR_STROptional: Yes
Call by Reference: No ( called with pass by value option)
PAR_XACT_PREIS -
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
PAR_XACT_VERMZUO -
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
PAR_XACT_RRREL -
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
PAR_DIALOG - Checkbox Field
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
PAR_XABS_ACT -
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
PAR_AVM_ACTUALIZE -
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
PAR_WITH_ENQUEUE -
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
PAR_CURRENCY_NEW -
Data type: KOMK-WAERKOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISP_ORDER_READ_FOR_BILLING
PAR_SELX_TAB -
Data type: JHA1_JHAGA_KEY_TABOptional: No
Call by Reference: No ( called with pass by value option)
PAR_FAKTURA_TAB -
Data type: RJHKOMFKGOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISP_ORDER_READ_FOR_BILLING 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_error | TYPE STRING, " | |||
lt_par_selx_tab | TYPE STANDARD TABLE OF JHA1_JHAGA_KEY_TAB, " | |||
lv_par_xact_abschluss | TYPE XFELD, " | |||
lv_par_currency_new_kurst | TYPE KOMK-KURST, " | |||
lv_par_caller | TYPE TJHAVMUPD-AVMUPD_CAL, " | |||
lv_par_event | TYPE TJHAVMUPD-AVMUPD_EVN, " | |||
lv_par_currency_new_pltyp | TYPE KOMK-PLTYP, " | |||
lv_pv_flg_avm_read | TYPE XFELD, " 'X' | |||
lv_pv_flg_with_fakt | TYPE XFELD, " | |||
lv_par_komfk_vor | TYPE JHF1_KOMFK_VOR_STR, " | |||
lv_par_xact_preis | TYPE XFELD, " | |||
lt_par_faktura_tab | TYPE STANDARD TABLE OF RJHKOMFKG, " | |||
lv_par_xact_vermzuo | TYPE XFELD, " | |||
lv_par_xact_rrrel | TYPE XFELD, " | |||
lv_par_dialog | TYPE XFELD, " | |||
lv_par_xabs_act | TYPE XFELD, " | |||
lv_par_avm_actualize | TYPE XFELD, " | |||
lv_par_with_enqueue | TYPE XFELD, " | |||
lv_par_currency_new | TYPE KOMK-WAERK. " |
  CALL FUNCTION 'ISP_ORDER_READ_FOR_BILLING' "IS-M/AM: Create Order Environment for Billing Document |
EXPORTING | ||
PAR_XACT_ABSCHLUSS | = lv_par_xact_abschluss | |
PAR_CURRENCY_NEW_KURST | = lv_par_currency_new_kurst | |
PAR_CALLER | = lv_par_caller | |
PAR_EVENT | = lv_par_event | |
PAR_CURRENCY_NEW_PLTYP | = lv_par_currency_new_pltyp | |
PV_FLG_AVM_READ | = lv_pv_flg_avm_read | |
PV_FLG_WITH_FAKT | = lv_pv_flg_with_fakt | |
PAR_KOMFK_VOR | = lv_par_komfk_vor | |
PAR_XACT_PREIS | = lv_par_xact_preis | |
PAR_XACT_VERMZUO | = lv_par_xact_vermzuo | |
PAR_XACT_RRREL | = lv_par_xact_rrrel | |
PAR_DIALOG | = lv_par_dialog | |
PAR_XABS_ACT | = lv_par_xabs_act | |
PAR_AVM_ACTUALIZE | = lv_par_avm_actualize | |
PAR_WITH_ENQUEUE | = lv_par_with_enqueue | |
PAR_CURRENCY_NEW | = lv_par_currency_new | |
TABLES | ||
PAR_SELX_TAB | = lt_par_selx_tab | |
PAR_FAKTURA_TAB | = lt_par_faktura_tab | |
EXCEPTIONS | ||
ERROR = 1 | ||
. " ISP_ORDER_READ_FOR_BILLING |
ABAP code using 7.40 inline data declarations to call FM ISP_ORDER_READ_FOR_BILLING
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 KURST FROM KOMK INTO @DATA(ld_par_currency_new_kurst). | ||||
"SELECT single AVMUPD_CAL FROM TJHAVMUPD INTO @DATA(ld_par_caller). | ||||
"SELECT single AVMUPD_EVN FROM TJHAVMUPD INTO @DATA(ld_par_event). | ||||
"SELECT single PLTYP FROM KOMK INTO @DATA(ld_par_currency_new_pltyp). | ||||
DATA(ld_pv_flg_avm_read) | = 'X'. | |||
"SELECT single WAERK FROM KOMK INTO @DATA(ld_par_currency_new). | ||||
Search for further information about these or an SAP related objects