SAP CHECK_INOB_FOR_WRONG_STATU Function Module for NOTRANSL: Umsetzen Feld STATU der Tabelle INOB von SPACE auf 1 (frei)









CHECK_INOB_FOR_WRONG_STATU is a standard check inob for wrong statu SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Umsetzen Feld STATU der Tabelle INOB von SPACE auf 1 (frei) 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 check inob for wrong statu FM, simply by entering the name CHECK_INOB_FOR_WRONG_STATU into the relevant SAP transaction such as SE37 or SE38.

Function Group: WWG2
Program Name: SAPLWWG2
Main Program: SAPLWWG2
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CHECK_INOB_FOR_WRONG_STATU 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 'CHECK_INOB_FOR_WRONG_STATU'"NOTRANSL: Umsetzen Feld STATU der Tabelle INOB von SPACE auf 1 (frei)
EXPORTING
I_OBJEK = "Key of Object to be Classified
* I_KLART = '026' "Class Type
* I_STATU_OLD = ' ' "Classification status
* I_STATU_NEW = '1' "Classification status
* I_COMMIT = ' ' "Classification status

TABLES
* O_INOB = "Link between Internal Number and Object

EXCEPTIONS
NO_UPDATE = 1 WRONG_INPUT = 2
.




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_SAPLWWG2_001 User Exit: Check When Reclassifying Objects (Classes)

IMPORTING Parameters details for CHECK_INOB_FOR_WRONG_STATU

I_OBJEK - Key of Object to be Classified

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

I_KLART - Class Type

Data type: INOB-KLART
Default: '026'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_STATU_OLD - Classification status

Data type: INOB-STATU
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_STATU_NEW - Classification status

Data type: INOB-STATU
Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_COMMIT - Classification status

Data type: INOB-STATU
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for CHECK_INOB_FOR_WRONG_STATU

O_INOB - Link between Internal Number and Object

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

EXCEPTIONS details

NO_UPDATE - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

WRONG_INPUT -

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

Copy and paste ABAP code example for CHECK_INOB_FOR_WRONG_STATU 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:
lt_o_inob  TYPE STANDARD TABLE OF INOB, "   
lv_i_objek  TYPE INOB-OBJEK, "   
lv_no_update  TYPE INOB, "   
lv_i_klart  TYPE INOB-KLART, "   '026'
lv_wrong_input  TYPE INOB, "   
lv_i_statu_old  TYPE INOB-STATU, "   ' '
lv_i_statu_new  TYPE INOB-STATU, "   '1'
lv_i_commit  TYPE INOB-STATU. "   ' '

  CALL FUNCTION 'CHECK_INOB_FOR_WRONG_STATU'  "NOTRANSL: Umsetzen Feld STATU der Tabelle INOB von SPACE auf 1 (frei)
    EXPORTING
         I_OBJEK = lv_i_objek
         I_KLART = lv_i_klart
         I_STATU_OLD = lv_i_statu_old
         I_STATU_NEW = lv_i_statu_new
         I_COMMIT = lv_i_commit
    TABLES
         O_INOB = lt_o_inob
    EXCEPTIONS
        NO_UPDATE = 1
        WRONG_INPUT = 2
. " CHECK_INOB_FOR_WRONG_STATU




ABAP code using 7.40 inline data declarations to call FM CHECK_INOB_FOR_WRONG_STATU

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 OBJEK FROM INOB INTO @DATA(ld_i_objek).
 
 
"SELECT single KLART FROM INOB INTO @DATA(ld_i_klart).
DATA(ld_i_klart) = '026'.
 
 
"SELECT single STATU FROM INOB INTO @DATA(ld_i_statu_old).
DATA(ld_i_statu_old) = ' '.
 
"SELECT single STATU FROM INOB INTO @DATA(ld_i_statu_new).
DATA(ld_i_statu_new) = '1'.
 
"SELECT single STATU FROM INOB INTO @DATA(ld_i_commit).
DATA(ld_i_commit) = ' '.
 


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!