SAP Function Modules

BAPI_INSPOPER_GETCHAR SAP Function module - Select Inspection Characteristics







BAPI_INSPOPER_GETCHAR is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name BAPI_INSPOPER_GETCHAR into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: 2045
Released Date: 22.09.1997
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM BAPI_INSPOPER_GETCHAR - BAPI INSPOPER GETCHAR





CALL FUNCTION 'BAPI_INSPOPER_GETCHAR' "Select Inspection Characteristics
  EXPORTING
    insplot =                   " bapi2045l3-insplot  Inspection Lot Number
    inspoper =                  " bapi2045l3-inspoper  Inspection Lot Operation Number
*   char_filter_no = '1   '     " bapi2045s1-filter  Filter Number for Characteristics To Be Processed
*   char_filter_tcode = 'QE11'  " bapi2045s1-filter_tcode  Transaction Code
*   res_org = SPACE             " bapi2045d3-res_org  Data Origin
*   read_chars_with_classes = SPACE  " bapi2045s1-ind_x_or_blank  X and Blank
*   read_chars_without_recording = SPACE  " bapi2045s1-ind_x_or_blank  X and Blank
  IMPORTING
    return =                    " bapireturn1   Return Value
    return2 =                   " bapiret2      Return Parameter as BAPIRET2
  TABLES
    inspchar_list =             " bapi2045l3    List of Inspection Lot Characteristics
    .  "  BAPI_INSPOPER_GETCHAR

ABAP code example for Function Module BAPI_INSPOPER_GETCHAR





The ABAP code below is a full code listing to execute function module BAPI_INSPOPER_GETCHAR including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_return  TYPE BAPIRETURN1 ,
ld_return2  TYPE BAPIRET2 ,
it_inspchar_list  TYPE STANDARD TABLE OF BAPI2045L3,"TABLES PARAM
wa_inspchar_list  LIKE LINE OF it_inspchar_list .


DATA(ld_insplot) = Check type of data required

DATA(ld_inspoper) = some text here

DATA(ld_char_filter_no) = some text here

DATA(ld_char_filter_tcode) = some text here

DATA(ld_res_org) = some text here

DATA(ld_read_chars_with_classes) = some text here

DATA(ld_read_chars_without_recording) = some text here

"populate fields of struture and append to itab
append wa_inspchar_list to it_inspchar_list. . CALL FUNCTION 'BAPI_INSPOPER_GETCHAR' EXPORTING insplot = ld_insplot inspoper = ld_inspoper * char_filter_no = ld_char_filter_no * char_filter_tcode = ld_char_filter_tcode * res_org = ld_res_org * read_chars_with_classes = ld_read_chars_with_classes * read_chars_without_recording = ld_read_chars_without_recording IMPORTING return = ld_return return2 = ld_return2 TABLES inspchar_list = it_inspchar_list . " BAPI_INSPOPER_GETCHAR
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_return  TYPE BAPIRETURN1 ,
ld_insplot  TYPE BAPI2045L3-INSPLOT ,
it_inspchar_list  TYPE STANDARD TABLE OF BAPI2045L3 ,
wa_inspchar_list  LIKE LINE OF it_inspchar_list,
ld_return2  TYPE BAPIRET2 ,
ld_inspoper  TYPE BAPI2045L3-INSPOPER ,
ld_char_filter_no  TYPE BAPI2045S1-FILTER ,
ld_char_filter_tcode  TYPE BAPI2045S1-FILTER_TCODE ,
ld_res_org  TYPE BAPI2045D3-RES_ORG ,
ld_read_chars_with_classes  TYPE BAPI2045S1-IND_X_OR_BLANK ,
ld_read_chars_without_recording  TYPE BAPI2045S1-IND_X_OR_BLANK .


ld_insplot = Check type of data required

"populate fields of struture and append to itab
append wa_inspchar_list to it_inspchar_list.

ld_inspoper = some text here

ld_char_filter_no = some text here

ld_char_filter_tcode = some text here

ld_res_org = some text here

ld_read_chars_with_classes = some text here

ld_read_chars_without_recording = some text here

SAP Documentation for FM BAPI_INSPOPER_GETCHAR


This method provides inspection characteristics for an inspection lot operation. The scope of the delivered characteristics can be limited by ...See here for full SAP fm documentation







Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BAPI_INSPOPER_GETCHAR or its description.