SAP RFC_CREATE_ALLOC_ITEM Function Module for NOTRANSL: Aufteilerposition anlegen (incl. aller Unterpositionen)









RFC_CREATE_ALLOC_ITEM is a standard rfc create alloc item 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: Aufteilerposition anlegen (incl. aller Unterpositionen) 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 rfc create alloc item FM, simply by entering the name RFC_CREATE_ALLOC_ITEM into the relevant SAP transaction such as SE37 or SE38.

Function Group: WF03
Program Name: SAPLWF03
Main Program: SAPLWF03
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function RFC_CREATE_ALLOC_ITEM 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 'RFC_CREATE_ALLOC_ITEM'"NOTRANSL: Aufteilerposition anlegen (incl. aller Unterpositionen)
EXPORTING
FBI_ALLOC_ITEM = "
* FBI_QTY_BOTTOM_UP = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* FBI_RESET_MSG_NB = ' ' "
* FBI_GENERIC_ARTIKEL_COMPLETE = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* FBI_ONLY_COMPLETE_ITEMS = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* FBI_KNA1_CHECK = 'X' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* FBI_PREFETCH_MATERIAL = 'X' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* FBI_PREFETCH_WRF1 = 'X' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* FBI_PREFETCH_WLK1 = 'X' "DE-EN-LANG-SWITCH-NO-TRANSLATION

IMPORTING
FBE_ALLOC_ITEM = "
FBE_RETURN_CODE = "DE-EN-LANG-SWITCH-NO-TRANSLATION

TABLES
FBT_ALLOC_PLANTS = "
* FBT_ALLOC_PLANT_GROUPS = "Allocation Table Sub-Item, Store Group
FBT_ALLOC_PLANT_DP = "
FBT_ALLOC_DC = "
FBT_ALLOC_DC_DP = "
FBT_MSG_TBL = "
.



IMPORTING Parameters details for RFC_CREATE_ALLOC_ITEM

FBI_ALLOC_ITEM -

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

FBI_QTY_BOTTOM_UP - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

FBI_RESET_MSG_NB -

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

FBI_GENERIC_ARTIKEL_COMPLETE - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

FBI_ONLY_COMPLETE_ITEMS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

FBI_KNA1_CHECK - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: RW00A-VBUKZ
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FBI_PREFETCH_MATERIAL - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: AUPO-MANUE
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FBI_PREFETCH_WRF1 - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: AUPO-MANUE
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FBI_PREFETCH_WLK1 - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: AUPO-MANUE
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for RFC_CREATE_ALLOC_ITEM

FBE_ALLOC_ITEM -

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

FBE_RETURN_CODE - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

TABLES Parameters details for RFC_CREATE_ALLOC_ITEM

FBT_ALLOC_PLANTS -

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

FBT_ALLOC_PLANT_GROUPS - Allocation Table Sub-Item, Store Group

Data type: AUFG
Optional: Yes
Call by Reference: Yes

FBT_ALLOC_PLANT_DP -

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

FBT_ALLOC_DC -

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

FBT_ALLOC_DC_DP -

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

FBT_MSG_TBL -

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

Copy and paste ABAP code example for RFC_CREATE_ALLOC_ITEM 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_fbe_alloc_item  TYPE AUPO, "   
lv_fbi_alloc_item  TYPE AUPO, "   
lt_fbt_alloc_plants  TYPE STANDARD TABLE OF AUFI, "   
lv_fbe_return_code  TYPE SY-SUBRC, "   
lv_fbi_qty_bottom_up  TYPE AUPO-MANUE, "   ' '
lt_fbt_alloc_plant_groups  TYPE STANDARD TABLE OF AUFG, "   
lv_fbi_reset_msg_nb  TYPE RW00A-AKTSW, "   ' '
lt_fbt_alloc_plant_dp  TYPE STANDARD TABLE OF RW14A, "   
lt_fbt_alloc_dc  TYPE STANDARD TABLE OF AUVZ, "   
lv_fbi_generic_artikel_complete  TYPE RW00A-AKTSW, "   ' '
lt_fbt_alloc_dc_dp  TYPE STANDARD TABLE OF AUVW, "   
lv_fbi_only_complete_items  TYPE RW00A-VBUKZ, "   ' '
lt_fbt_msg_tbl  TYPE STANDARD TABLE OF SMESG, "   
lv_fbi_kna1_check  TYPE RW00A-VBUKZ, "   'X'
lv_fbi_prefetch_material  TYPE AUPO-MANUE, "   'X'
lv_fbi_prefetch_wrf1  TYPE AUPO-MANUE, "   'X'
lv_fbi_prefetch_wlk1  TYPE AUPO-MANUE. "   'X'

  CALL FUNCTION 'RFC_CREATE_ALLOC_ITEM'  "NOTRANSL: Aufteilerposition anlegen (incl. aller Unterpositionen)
    EXPORTING
         FBI_ALLOC_ITEM = lv_fbi_alloc_item
         FBI_QTY_BOTTOM_UP = lv_fbi_qty_bottom_up
         FBI_RESET_MSG_NB = lv_fbi_reset_msg_nb
         FBI_GENERIC_ARTIKEL_COMPLETE = lv_fbi_generic_artikel_complete
         FBI_ONLY_COMPLETE_ITEMS = lv_fbi_only_complete_items
         FBI_KNA1_CHECK = lv_fbi_kna1_check
         FBI_PREFETCH_MATERIAL = lv_fbi_prefetch_material
         FBI_PREFETCH_WRF1 = lv_fbi_prefetch_wrf1
         FBI_PREFETCH_WLK1 = lv_fbi_prefetch_wlk1
    IMPORTING
         FBE_ALLOC_ITEM = lv_fbe_alloc_item
         FBE_RETURN_CODE = lv_fbe_return_code
    TABLES
         FBT_ALLOC_PLANTS = lt_fbt_alloc_plants
         FBT_ALLOC_PLANT_GROUPS = lt_fbt_alloc_plant_groups
         FBT_ALLOC_PLANT_DP = lt_fbt_alloc_plant_dp
         FBT_ALLOC_DC = lt_fbt_alloc_dc
         FBT_ALLOC_DC_DP = lt_fbt_alloc_dc_dp
         FBT_MSG_TBL = lt_fbt_msg_tbl
. " RFC_CREATE_ALLOC_ITEM




ABAP code using 7.40 inline data declarations to call FM RFC_CREATE_ALLOC_ITEM

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 SUBRC FROM SY INTO @DATA(ld_fbe_return_code).
 
"SELECT single MANUE FROM AUPO INTO @DATA(ld_fbi_qty_bottom_up).
DATA(ld_fbi_qty_bottom_up) = ' '.
 
 
"SELECT single AKTSW FROM RW00A INTO @DATA(ld_fbi_reset_msg_nb).
DATA(ld_fbi_reset_msg_nb) = ' '.
 
 
 
"SELECT single AKTSW FROM RW00A INTO @DATA(ld_fbi_generic_artikel_complete).
DATA(ld_fbi_generic_artikel_complete) = ' '.
 
 
"SELECT single VBUKZ FROM RW00A INTO @DATA(ld_fbi_only_complete_items).
DATA(ld_fbi_only_complete_items) = ' '.
 
 
"SELECT single VBUKZ FROM RW00A INTO @DATA(ld_fbi_kna1_check).
DATA(ld_fbi_kna1_check) = 'X'.
 
"SELECT single MANUE FROM AUPO INTO @DATA(ld_fbi_prefetch_material).
DATA(ld_fbi_prefetch_material) = 'X'.
 
"SELECT single MANUE FROM AUPO INTO @DATA(ld_fbi_prefetch_wrf1).
DATA(ld_fbi_prefetch_wrf1) = 'X'.
 
"SELECT single MANUE FROM AUPO INTO @DATA(ld_fbi_prefetch_wlk1).
DATA(ld_fbi_prefetch_wlk1) = 'X'.
 


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!