SAP Reports / Programs | Logistics - General | Additionals Management(LO-ADM) SAP LO

BAPI_STWB_REQUEST SAP ABAP INCLUDE - BAPISTWBREQUEST







BAPI_STWB_REQUEST is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter BAPI_STWB_REQUEST into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT BAPI_STWB_REQUEST. "Basic submit
SUBMIT BAPI_STWB_REQUEST AND RETURN. "Return to original report after report execution complete
SUBMIT BAPI_STWB_REQUEST VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT BAPI_STWB_REQUEST

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

KNA1_SINGLE_READ call function 'KNA1_SINGLE_READ' exporting * KZRFB = ' ' kna1_kunnr = pi_customer importing wkna1 = skna1 exceptions not_found = 1 others = 2.

MARA_SINGLE_READ call function 'MARA_SINGLE_READ' exporting * KZRFB = ' ' * MAXTZ = 0 matnr = pi_material * SPERRMODUS = ' ' * STD_SPERRMODUS = ' ' * OUTPUT_NO_MESSAGE = importing wmara = smara exceptions lock_on_material = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 others = 5.

LISTING_CHECK call function 'LISTING_CHECK' exporting pi_article = pi_material pi_datab = pi_usedate pi_datbi = pi_usedate pi_filia = skna1-werks * PI_IGNORE_EXCL = ' ' * PI_VRKME = ' ' pi_no_ean_check = 'X' * PI_WLK1_READ = ' ' * PI_VKORG = ' ' * PI_VTWEG = ' ' * PI_LOCNR = ' ' * TABLES * PET_LIST_KOND = * PET_BEW_KOND = * PIT_VRKME = exceptions kond_not_found = 1 vrkme_not_found = 2 vkdat_not_found = 3 ass_owner_not_found = 4 others = 5.

T001W_SINGLE_READ call function 'T001W_SINGLE_READ' exporting * KZRFB = ' ' t001w_werks = skna1-werks importing wt001w = st001w exceptions not_found = 1 others = 2.

PROMOTION_DISPO_MATERIAL_CHECK call function 'PROMOTION_DISPO_MATERIAL_CHECK' exporting i_matnr = pi_material i_mebme = smara-meins i_datab = pi_usedate i_datbi = pi_usedate * I_DISTANZ = i_werks = skna1-werks i_vlfkz = st001w-vlfkz * I_KUNNR = * IMPORTING * E_COUNTER = tables e_t_wakh = iwakh exceptions material_not_in_promotion = 1 werks_not_in_promotion = 2 no_promo_in_planning_period = 3 wrong_import = 4 no_entry_for_werks_in_t001w = 5 no_lifnr_for_vz_in_t001w = 6 system_error = 7 others = 8.

WTAD_READ_ADDI_4_MATNR call function 'WTAD_READ_ADDI_4_MATNR' exporting matnr = pi_material flag_addiprass_always = addiprass_always flag_addiprass_promo_only = addiprass_promo_only flag_addiprass_promo_never = addiprass_promo_never read_flag = read_flag * READ_MAMT = ' ' read_variants = ' ' aktnr = pi_promotion * PROMO_DATE = * FI_SM_TRANSACTION = '000' * FI_PLANT = * FI_QUANTITY = * FI_UNIT_OF_MEASURE = * FI_ADDI_APPLICATION = '' * FI_SD_DOC = * FI_ITM_NUMBER = * FI_SD_DOC_CAT = * FI_SD_REF_COPY = tables iwtaddi = iwtaddi iwtaddi_pr = iwtaddi_pr * IMAMT = * IMARA = * FET_MATNRS_AND_QUANT = exceptions wrong_call = 1 db_error = 2 others = 3.

WTAD_CHECK_PLANT_IN_CLASS call function 'WTAD_CHECK_PLANT_IN_CLASS' exporting clint = iwtaddi-addiclint * LOCNR = plant = st001w-werks * FLAG_RFB = ' ' importing flag = flag exceptions wrong_call = 1 others = 2.

KNA1_SINGLE_READ call function 'KNA1_SINGLE_READ' exporting * KZRFB = ' ' kna1_kunnr = pi_customer importing wkna1 = skna1 exceptions not_found = 1 others = 2.

T001W_SINGLE_READ call function 'T001W_SINGLE_READ' exporting * KZRFB = ' ' t001w_werks = skna1-werks importing wt001w = st001w exceptions not_found = 1 others = 2.

WTAD_READ_ADDI_4_MATNR call function 'WTAD_READ_ADDI_4_MATNR' exporting matnr = pi_material flag_addiprass_always = addiprass_always flag_addiprass_promo_only = addiprass_promo_only flag_addiprass_promo_never = addiprass_promo_never read_flag = read_flag read_mamt = 'X' read_variants = 'X' aktnr = pi_promotion * PROMO_DATE = * FI_SM_TRANSACTION = '000' * FI_PLANT = * FI_QUANTITY = * FI_UNIT_OF_MEASURE = * FI_ADDI_APPLICATION = '' * FI_SD_DOC = * FI_ITM_NUMBER = * FI_SD_DOC_CAT = * FI_SD_REF_COPY = tables iwtaddi = pet_wtaddi iwtaddi_pr = iwtaddi_pr imamt = pet_mamt imara = pet_mara * FET_MATNRS_AND_QUANT = exceptions wrong_call = 1 db_error = 2 others = 3.

WTAD_CHECK_PLANT_IN_CLASS call function 'WTAD_CHECK_PLANT_IN_CLASS' exporting clint = pet_wtaddi-addiclint * LOCNR = plant = st001w-werks * FLAG_RFB = ' ' importing flag = flag exceptions wrong_call = 1 others = 2.

MARA_SINGLE_READ call function 'MARA_SINGLE_READ' exporting * KZRFB = ' ' * MAXTZ = 0 matnr = pit_mara-matnr * SPERRMODUS = ' ' * STD_SPERRMODUS = ' ' * OUTPUT_NO_MESSAGE = importing wmara = smara exceptions lock_on_material = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 others = 5.

MARM_GENERIC_READ_WITH_MATNR call function 'MARM_GENERIC_READ_WITH_MATNR' exporting * KZRFB = ' ' matnr = pit_mara-matnr tables marm_tab = pet_marm * MEINH = exceptions wrong_call = 1 not_found = 2 others = 3.

KNA1_SINGLE_READ call function 'KNA1_SINGLE_READ' exporting * KZRFB = ' ' kna1_kunnr = pi_customer importing wkna1 = skna1 exceptions not_found = 1 others = 2.

WTAD_MESSAGE_TYPE_DERIVE call function 'WTAD_MESSAGE_TYPE_DERIVE' exporting addi_matnr = pet_addi_keys-addimat importing message_type = pet_addi_keys-mestyp exceptions additional_is_no_material = 1 message_type_not_found = 2 others = 3.

MASTERIDOC_CREATE_WTADDI call function 'MASTERIDOC_CREATE_WTADDI' exporting application = '77' * EVENT = '1' verbosity_level = 0 * NUMBER_OF_ADDIS_PER_LOCNR = * DESTINATION_LS = * DESTINATION_LOCNR = * DESTINATION_SUPPLIER = create_idoc_in_update_task = ' ' * PI_MKPF = * PI_EKKO = * PI_EKKO_OLD = * PI_VBAK = * PI_VBAK_OLD = pi_create_the_idoc = ' ' * PI_AL_CREATE = ' ' importing segment_counter = seg_counter tables pit_addi_idoc_keys = pit_addi_keys pit_addi_info = pit_addi_info pet_idoc_data = pet_addidata * PET_IDOC_COM_CTRL = * PIT_MKPF = * PIT_MSEG = * PIT_EKKO = * PIT_EKKO_OLD = * PIT_EKPO = * PIT_EKPO_OLD = * PIT_EKET = * PIT_EKET_OLD = * PIT_LIKP = * PIT_LIKP_OLD = * PIT_LIPS = * PIT_LIPS_OLD = * PIT_VBUK = * PIT_VBUK_OLD = * PIT_VBUP = * PIT_VBUP_OLD = * PIT_VBAP = * PIT_VBAP_OLD = * PIT_VBEP = * PIT_VBEP_OLD = exceptions no_key_data_provided = 1 no_additionals_provided = 2 others = 3.

WTAD_ADDI_NUMBER_DERIVE call function 'WTAD_ADDI_NUMBER_DERIVE' exporting fi_matnr = pi_marm-matnr fi_addimatnr = pi_addimat fi_plant = pi_werks fi_quantity = pi_quantity fi_meins = pi_marm-meinh fi_addivkme = pi_uom importing fe_quantity = pe_quantity exceptions material_unit_conversion_error = 1 addi_number_round_error = 2 others = 3.

WTAD_TWTFM_READ call function 'WTAD_TWTFM_READ' * EXPORTING * KZRFB = ' ' tables i_fb_twtfm = itwtfm exceptions not_found = 1 others = 2.

UNIT_OF_MEASURE_ISO_TO_SAP





call function 'UNIT_OF_MEASURE_ISO_TO_SAP' exporting iso_code = pi_salesunit_iso importing sap_code = px_salesunit * UNIQUE = exceptions not_found = 1 others = 2.

MARA_SINGLE_READ call function 'MARA_SINGLE_READ' exporting * KZRFB = ' ' * MAXTZ = 0 matnr = pi_material * SPERRMODUS = ' ' * STD_SPERRMODUS = ' ' * OUTPUT_NO_MESSAGE = importing wmara = smara exceptions lock_on_material = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 others = 5.

MARM_SINGLE_READ call function 'MARM_SINGLE_READ' exporting * KZRFB = ' ' * MAXTZ = 0 matnr = pi_material meinh = px_salesunit * IMPORTING * WMARM = exceptions wrong_call = 1 not_found = 2 others = 3.

WTAD_WTADDI_TO_ADDILIST call function 'WTAD_WTADDI_TO_ADDILIST' * EXPORTING * PI_WERKS = '' * PI_LOCNR = '' * PI_ADD_MAKT_DESCRIPTION = 'X' tables iwtaddi = iwtaddi * IWTADDI_PR = imamt = pit_mamt iaddilist = iaddi_info.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name BAPI_STWB_REQUEST or its description.