SAP ARCHIV_POPUP_NCITYPE Function Module for Dialog box for determining WFL document type









ARCHIV_POPUP_NCITYPE is a standard archiv popup ncitype SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Dialog box for determining WFL document type 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 archiv popup ncitype FM, simply by entering the name ARCHIV_POPUP_NCITYPE into the relevant SAP transaction such as SE37 or SE38.

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



Function ARCHIV_POPUP_NCITYPE 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 'ARCHIV_POPUP_NCITYPE'"Dialog box for determining WFL document type
EXPORTING
* DOCUMENT_TYPE = ' ' "
* ORGOBJECT = ' ' "
* USEIMFLAG = ' ' "
* LATE = '-' "
* AR_OBJECT = ' ' "
* USEWFL30 = ' ' "
* USEWFL21 = ' ' "
* SAP_OBJECT = ' ' "
* NOTE = ' ' "
* WINDOW_TITLE = ' ' "
* FORCE_CHANGE = ' ' "
* FORCE_NOTE = ' ' "

IMPORTING
AR_OBJECT = "
DOCUMENT_TYPE = "
NOTE = "
ORGOBJECT = "
IMMEDIATE = "
LATE = "

EXCEPTIONS
USER_EXIT = 1 NO_ENTRY = 2 OTHERS = 3
.



IMPORTING Parameters details for ARCHIV_POPUP_NCITYPE

DOCUMENT_TYPE -

Data type: TOADV-DOC_TYPE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

ORGOBJECT -

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

USEIMFLAG -

Data type: SY-INPUT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

LATE -

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

AR_OBJECT -

Data type: TOAV0-AR_OBJECT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

USEWFL30 -

Data type: TWFDB-ACTIVE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

USEWFL21 -

Data type: TWFDB-ACTIVE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SAP_OBJECT -

Data type: TOAOM-SAP_OBJECT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

NOTE -

Data type: OACONF-NOTE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

WINDOW_TITLE -

Data type: SY-TITLE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

FORCE_CHANGE -

Data type: TWFDB-ACTIVE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

FORCE_NOTE -

Data type: TWFDB-ACTIVE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for ARCHIV_POPUP_NCITYPE

AR_OBJECT -

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

DOCUMENT_TYPE -

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

NOTE -

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

ORGOBJECT -

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

IMMEDIATE -

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

LATE -

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

EXCEPTIONS details

USER_EXIT -

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

NO_ENTRY -

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

OTHERS -

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

Copy and paste ABAP code example for ARCHIV_POPUP_NCITYPE 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_ar_object  TYPE TOAV0-AR_OBJECT, "   
lv_user_exit  TYPE TOAV0, "   
lv_document_type  TYPE TOADV-DOC_TYPE, "   SPACE
lv_orgobject  TYPE SWHACTOR, "   SPACE
lv_useimflag  TYPE SY-INPUT, "   SPACE
lv_late  TYPE SY-INPUT, "   '-'
lv_no_entry  TYPE SY, "   
lv_ar_object  TYPE TOAV0-AR_OBJECT, "   SPACE
lv_document_type  TYPE TOADV-DOC_TYPE, "   
lv_note  TYPE OACONF-NOTE, "   
lv_others  TYPE OACONF, "   
lv_usewfl30  TYPE TWFDB-ACTIVE, "   SPACE
lv_usewfl21  TYPE TWFDB-ACTIVE, "   SPACE
lv_orgobject  TYPE SWHACTOR, "   
lv_immediate  TYPE SY-INPUT, "   
lv_sap_object  TYPE TOAOM-SAP_OBJECT, "   SPACE
lv_late  TYPE SY-INPUT, "   
lv_note  TYPE OACONF-NOTE, "   SPACE
lv_window_title  TYPE SY-TITLE, "   SPACE
lv_force_change  TYPE TWFDB-ACTIVE, "   SPACE
lv_force_note  TYPE TWFDB-ACTIVE. "   SPACE

  CALL FUNCTION 'ARCHIV_POPUP_NCITYPE'  "Dialog box for determining WFL document type
    EXPORTING
         DOCUMENT_TYPE = lv_document_type
         ORGOBJECT = lv_orgobject
         USEIMFLAG = lv_useimflag
         LATE = lv_late
         AR_OBJECT = lv_ar_object
         USEWFL30 = lv_usewfl30
         USEWFL21 = lv_usewfl21
         SAP_OBJECT = lv_sap_object
         NOTE = lv_note
         WINDOW_TITLE = lv_window_title
         FORCE_CHANGE = lv_force_change
         FORCE_NOTE = lv_force_note
    IMPORTING
         AR_OBJECT = lv_ar_object
         DOCUMENT_TYPE = lv_document_type
         NOTE = lv_note
         ORGOBJECT = lv_orgobject
         IMMEDIATE = lv_immediate
         LATE = lv_late
    EXCEPTIONS
        USER_EXIT = 1
        NO_ENTRY = 2
        OTHERS = 3
. " ARCHIV_POPUP_NCITYPE




ABAP code using 7.40 inline data declarations to call FM ARCHIV_POPUP_NCITYPE

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 AR_OBJECT FROM TOAV0 INTO @DATA(ld_ar_object).
 
 
"SELECT single DOC_TYPE FROM TOADV INTO @DATA(ld_document_type).
DATA(ld_document_type) = ' '.
 
DATA(ld_orgobject) = ' '.
 
"SELECT single INPUT FROM SY INTO @DATA(ld_useimflag).
DATA(ld_useimflag) = ' '.
 
"SELECT single INPUT FROM SY INTO @DATA(ld_late).
DATA(ld_late) = '-'.
 
 
"SELECT single AR_OBJECT FROM TOAV0 INTO @DATA(ld_ar_object).
DATA(ld_ar_object) = ' '.
 
"SELECT single DOC_TYPE FROM TOADV INTO @DATA(ld_document_type).
 
"SELECT single NOTE FROM OACONF INTO @DATA(ld_note).
 
 
"SELECT single ACTIVE FROM TWFDB INTO @DATA(ld_usewfl30).
DATA(ld_usewfl30) = ' '.
 
"SELECT single ACTIVE FROM TWFDB INTO @DATA(ld_usewfl21).
DATA(ld_usewfl21) = ' '.
 
 
"SELECT single INPUT FROM SY INTO @DATA(ld_immediate).
 
"SELECT single SAP_OBJECT FROM TOAOM INTO @DATA(ld_sap_object).
DATA(ld_sap_object) = ' '.
 
"SELECT single INPUT FROM SY INTO @DATA(ld_late).
 
"SELECT single NOTE FROM OACONF INTO @DATA(ld_note).
DATA(ld_note) = ' '.
 
"SELECT single TITLE FROM SY INTO @DATA(ld_window_title).
DATA(ld_window_title) = ' '.
 
"SELECT single ACTIVE FROM TWFDB INTO @DATA(ld_force_change).
DATA(ld_force_change) = ' '.
 
"SELECT single ACTIVE FROM TWFDB INTO @DATA(ld_force_note).
DATA(ld_force_note) = ' '.
 


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!