SAP ISP_HELP_TJHAP Function Module for IS-M/AM: Reason Input Help for Item Category









ISP_HELP_TJHAP is a standard isp help tjhap 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: Reason Input Help for Item Category 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 help tjhap FM, simply by entering the name ISP_HELP_TJHAP into the relevant SAP transaction such as SE37 or SE38.

Function Group: JHA2
Program Name: SAPLJHA2
Main Program: SAPLJHA2
Appliation area: J
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ISP_HELP_TJHAP 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_HELP_TJHAP'"IS-M/AM: Reason Input Help for Item Category
EXPORTING
* DESCRIPTION_IN = "
* PV_TITLE = "
* FIELD_IN = "
* AUART_IN = "
POS_ART_IN = "
* TRTYP = 'V' "Transaction Type
SPRAS_IN = "Language Key
BSPRAS_IN = "
* PV_FILTER_NOT_FOR_PTYP = 'X' "Checkbox Field
* PV_CALL_FROM_SUBSCREEN = ' ' "Checkbox Field

IMPORTING
DESCRIPTION = "
FIELD = "Selected Value
PT_PSTYV_VALUES = "
PV_FLG_EXIT = "
EV_NO_SELECTION = "

CHANGING
* PV_FLG_LIST_PROCESSING = ' ' "

EXCEPTIONS
NO_DATA_FOUND = 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_SAPLJHA2_001 IS-M/AM: Copy Order Objects

IMPORTING Parameters details for ISP_HELP_TJHAP

DESCRIPTION_IN -

Data type: TJHAPT-LANGTEXT
Optional: Yes
Call by Reference: No ( called with pass by value option)

PV_TITLE -

Data type: STRING
Optional: Yes
Call by Reference: No ( called with pass by value option)

FIELD_IN -

Data type: TJHAP-PSTYV
Optional: Yes
Call by Reference: No ( called with pass by value option)

AUART_IN -

Data type: TJHAKPZ-AUART
Optional: Yes
Call by Reference: No ( called with pass by value option)

POS_ART_IN -

Data type: TJHAKPZ-POS_ART
Optional: No
Call by Reference: No ( called with pass by value option)

TRTYP - Transaction Type

Data type: TJ180-TRTYP
Default: 'V'
Optional: Yes
Call by Reference: No ( called with pass by value option)

SPRAS_IN - Language Key

Data type: TJHAPT-SPRAS
Optional: No
Call by Reference: No ( called with pass by value option)

BSPRAS_IN -

Data type: TJHAPT-SPRAS
Optional: No
Call by Reference: No ( called with pass by value option)

PV_FILTER_NOT_FOR_PTYP - Checkbox Field

Data type: XFELD
Default: 'X'
Optional: Yes
Call by Reference: Yes

PV_CALL_FROM_SUBSCREEN - Checkbox Field

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

EXPORTING Parameters details for ISP_HELP_TJHAP

DESCRIPTION -

Data type: TJHAPT-LANGTEXT
Optional: No
Call by Reference: No ( called with pass by value option)

FIELD - Selected Value

Data type: TJHAP-PSTYV
Optional: No
Call by Reference: No ( called with pass by value option)

PT_PSTYV_VALUES -

Data type: RJHA_PSTYV_DROPDOWN_TAB
Optional: No
Call by Reference: No ( called with pass by value option)

PV_FLG_EXIT -

Data type: XFELD
Optional: No
Call by Reference: No ( called with pass by value option)

EV_NO_SELECTION -

Data type: XFELD
Optional: No
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for ISP_HELP_TJHAP

PV_FLG_LIST_PROCESSING -

Data type: XFELD
Default: ' '
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

NO_DATA_FOUND - No data found

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for ISP_HELP_TJHAP 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_description  TYPE TJHAPT-LANGTEXT, "   
lv_no_data_found  TYPE TJHAPT, "   
lv_description_in  TYPE TJHAPT-LANGTEXT, "   
lv_pv_flg_list_processing  TYPE XFELD, "   ' '
lv_pv_title  TYPE STRING, "   
lv_field  TYPE TJHAP-PSTYV, "   
lv_field_in  TYPE TJHAP-PSTYV, "   
lv_auart_in  TYPE TJHAKPZ-AUART, "   
lv_pt_pstyv_values  TYPE RJHA_PSTYV_DROPDOWN_TAB, "   
lv_pos_art_in  TYPE TJHAKPZ-POS_ART, "   
lv_pv_flg_exit  TYPE XFELD, "   
lv_trtyp  TYPE TJ180-TRTYP, "   'V'
lv_ev_no_selection  TYPE XFELD, "   
lv_spras_in  TYPE TJHAPT-SPRAS, "   
lv_bspras_in  TYPE TJHAPT-SPRAS, "   
lv_pv_filter_not_for_ptyp  TYPE XFELD, "   'X'
lv_pv_call_from_subscreen  TYPE XFELD. "   SPACE

  CALL FUNCTION 'ISP_HELP_TJHAP'  "IS-M/AM: Reason Input Help for Item Category
    EXPORTING
         DESCRIPTION_IN = lv_description_in
         PV_TITLE = lv_pv_title
         FIELD_IN = lv_field_in
         AUART_IN = lv_auart_in
         POS_ART_IN = lv_pos_art_in
         TRTYP = lv_trtyp
         SPRAS_IN = lv_spras_in
         BSPRAS_IN = lv_bspras_in
         PV_FILTER_NOT_FOR_PTYP = lv_pv_filter_not_for_ptyp
         PV_CALL_FROM_SUBSCREEN = lv_pv_call_from_subscreen
    IMPORTING
         DESCRIPTION = lv_description
         FIELD = lv_field
         PT_PSTYV_VALUES = lv_pt_pstyv_values
         PV_FLG_EXIT = lv_pv_flg_exit
         EV_NO_SELECTION = lv_ev_no_selection
    CHANGING
         PV_FLG_LIST_PROCESSING = lv_pv_flg_list_processing
    EXCEPTIONS
        NO_DATA_FOUND = 1
. " ISP_HELP_TJHAP




ABAP code using 7.40 inline data declarations to call FM ISP_HELP_TJHAP

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 LANGTEXT FROM TJHAPT INTO @DATA(ld_description).
 
 
"SELECT single LANGTEXT FROM TJHAPT INTO @DATA(ld_description_in).
 
DATA(ld_pv_flg_list_processing) = ' '.
 
 
"SELECT single PSTYV FROM TJHAP INTO @DATA(ld_field).
 
"SELECT single PSTYV FROM TJHAP INTO @DATA(ld_field_in).
 
"SELECT single AUART FROM TJHAKPZ INTO @DATA(ld_auart_in).
 
 
"SELECT single POS_ART FROM TJHAKPZ INTO @DATA(ld_pos_art_in).
 
 
"SELECT single TRTYP FROM TJ180 INTO @DATA(ld_trtyp).
DATA(ld_trtyp) = 'V'.
 
 
"SELECT single SPRAS FROM TJHAPT INTO @DATA(ld_spras_in).
 
"SELECT single SPRAS FROM TJHAPT INTO @DATA(ld_bspras_in).
 
DATA(ld_pv_filter_not_for_ptyp) = 'X'.
 
DATA(ld_pv_call_from_subscreen) = ' '.
 


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!