SAP Reports / Programs | Logistics - General | Merchandise Distribution | Allocation(LO-MDS-AL) SAP LO

GENBMAIN SAP ABAP INCLUDE - Main program for batch generation of POs







GENBMAIN 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 GENBMAIN 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 GENBMAIN. "Basic submit
SUBMIT GENBMAIN AND RETURN. "Return to original report after report execution complete
SUBMIT GENBMAIN VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Main program for batch generation of POs


INCLUDES used within this REPORT GENBMAIN

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:

WGEN_GET_USER_SPLIT_CRITERIA CALL FUNCTION 'WGEN_GET_USER_SPLIT_CRITERIA' EXPORTING im_nbstn_nur = nbst_nur im_ubstn_nur = ubst_nur IMPORTING ex_splitt_for = splitt_for.

WGEN_FILL_SPLITT_TABLE CALL FUNCTION 'WGEN_FILL_SPLITT_TABLE' EXPORTING im_nbstn_nur = nbst_nur im_ubstn_nur = ubst_nur im_splitt_for = splitt_for im_only_standard_criteria = ' ' TABLES im_ex_splitt_tab = splitt_tab.

WGEN_GET_VENDOR_ORDER_WORKLIST CALL FUNCTION 'WGEN_GET_VENDOR_ORDER_WORKLIST' EXPORTING im_fbg_call = fbg_aufruf-im_batch im_mit_retouren = mit_ret im_mit_normalen = mit_nor TABLES im_rt_ekorg = ekorg_rt im_rt_ekgrp = ekgrp_rt im_rt_abeln = abeln_rt im_rt_bedat = fgend_rt im_rt_lifnr = lifnr_rt im_rt_filnr = filnr_rt im_rt_vzent = vzent_rt im_rt_matnr = matnr im_rt_aktnr = aktnr_rt im_rt_bsart = bsart_rt im_rt_third_party_order = third_party_order_rt im_rt_vendor_orders_of_dc = vendor_orders_of_dc_rt im_ex_aupo = xaupo im_ex_postab = postab im_ex_aubsi = xaubsi im_ex_messg = messg ex_abeln_for_lock = abeln_for_lock. "auft*2 P99K059898

WGEN_CREATE_BATCH_LOG CALL FUNCTION 'WGEN_CREATE_BATCH_LOG' TABLES im_messg = messg.

WGEN_PREPARE_PURCHASE_ORDER CALL FUNCTION 'WGEN_PREPARE_PURCHASE_ORDER' EXPORTING im_fb_typ = fb_typ-lief_bestellung im_fbg_call = fbg_aufruf-im_batch TABLES im_ex_postab = postab im_splitt_tab = splitt_tab im_ex_messg = messg im_ex_auko = xauko im_ex_aupo = xaupo im_ex_aufi = xaufi im_ex_aulw = xaulw im_ex_ausb = xausb im_ex_auvz = xauvz im_ex_auvw = xauvw im_ex_aubsi = xaubsi *{auft*2: nicht notwendig * im_ex_auumi = xauumi * im_ex_auvdi = xauvdi *} CHANGING im_ex_lfdnr_zuordnung = lfdnr_fb_kopf_postab.

WGEN_UNLOCK_ALLOCATION_TABLE * CALL FUNCTION 'WGEN_UNLOCK_ALLOCATION_TABLE' * EXPORTING * im_abeln = xaubsi-abeln.

WGEN_UNLOCK_ALLOCATION_TABLE CALL FUNCTION 'WGEN_UNLOCK_ALLOCATION_TABLE' TABLES im_abeln_for_lock = abeln_for_lock.

WGEN_CREATE_BATCH_LOG CALL FUNCTION 'WGEN_CREATE_BATCH_LOG' EXPORTING im_fb_typ = fb_typ-lief_bestellung TABLES im_messg = messg.

WGEN_CREATE_BATCH_LOG CALL FUNCTION 'WGEN_CREATE_BATCH_LOG' TABLES IM_MESSG = messg.

WGEN_PREPARE_PO_PPFB1 CALL FUNCTION 'WGEN_PREPARE_PO_PPFB1' EXPORTING IM_FB_TYP = fb_typ-lief_bestellung IM_FBG_CALL = fbg_aufruf-im_batch IM_SERVER_GROUP = p_sg IM_MAX_PROCESS_NUMBER = p_mpn IM_MAX_PACKAGE_SIZE = p_mps IM_LIST_NUMBERS_IN_LOG = p_allnum * Hinweis 358714 im_wait_time = p_wait_t im_serielle_verarbeitung = P_seriel TABLES IM_POSTAB = postab IM_SPLITT_TAB = splitt_tab IM_EX_MESSG = messg IM_EX_AUPO = xaupo IM_AUBSI = xaubsi.

WGEN_GET_WAREHS_ORDER_WORKLIST CALL FUNCTION 'WGEN_GET_WAREHS_ORDER_WORKLIST' EXPORTING im_fbg_call = fbg_aufruf-im_batch im_mit_retouren = mit_ret im_mit_normalen = mit_nor TABLES im_rt_ekorg = ekorg_rt im_rt_ekgrp = ekgrp_rt im_rt_abeln = abeln_rt im_rt_fudat = fgend_rt im_rt_lifnr = lifnr_rt im_rt_filnr = filnr_rt im_rt_vzent = vzent_rt im_rt_matnr = matnr im_rt_aktnr = aktnr_rt im_rt_bsart = bsart_rt im_ex_aupo = xaupo im_ex_postab = postab im_ex_auumi = xauumi im_ex_messg = messg ex_abeln_for_lock = abeln_for_lock. "auft*2 P99K059898

WGEN_CREATE_BATCH_LOG CALL FUNCTION 'WGEN_CREATE_BATCH_LOG' TABLES im_messg = messg.

WGEN_PREPARE_PURCHASE_ORDER CALL FUNCTION 'WGEN_PREPARE_PURCHASE_ORDER' EXPORTING im_fb_typ = fb_typ-lager_bestellung im_fbg_call = fbg_aufruf-im_batch TABLES im_ex_postab = postab im_splitt_tab = splitt_tab im_ex_messg = messg im_ex_auko = xauko im_ex_aupo = xaupo im_ex_aufi = xaufi im_ex_aulw = xaulw im_ex_ausb = xausb im_ex_auvz = xauvz im_ex_auvw = xauvw *auft*2: nicht notwendig * im_ex_aubsi = xaubsi im_ex_auumi = xauumi *auft*2: nicht notwendig * im_ex_auvdi = xauvdi CHANGING im_ex_lfdnr_zuordnung = lfdnr_fb_kopf_postab.

WGEN_UNLOCK_ALLOCATION_TABLE * CALL FUNCTION 'WGEN_UNLOCK_ALLOCATION_TABLE' * EXPORTING * im_abeln = xauumi-abeln.

WGEN_UNLOCK_ALLOCATION_TABLE CALL FUNCTION 'WGEN_UNLOCK_ALLOCATION_TABLE' TABLES im_abeln_for_lock = abeln_for_lock.

WGEN_CREATE_BATCH_LOG CALL FUNCTION 'WGEN_CREATE_BATCH_LOG' EXPORTING im_fb_typ = fb_typ-lager_bestellung TABLES im_messg = messg.

WGEN_CREATE_BATCH_LOG CALL FUNCTION 'WGEN_CREATE_BATCH_LOG' TABLES IM_MESSG = messg.

WGEN_PREPARE_PO_PPFB1 CALL FUNCTION 'WGEN_PREPARE_PO_PPFB1' EXPORTING IM_FB_TYP = fb_typ-lager_bestellung IM_FBG_CALL = fbg_aufruf-im_batch IM_SERVER_GROUP = p_sg IM_MAX_PROCESS_NUMBER = p_mpn IM_MAX_PACKAGE_SIZE = p_mps IM_LIST_NUMBERS_IN_LOG = p_allnum * Hinweis 358714 im_wait_time = p_wait_t im_serielle_verarbeitung = P_seriel TABLES IM_POSTAB = postab IM_SPLITT_TAB = splitt_tab IM_EX_MESSG = messg IM_EX_AUPO = xaupo * IM_AUBSI = IM_AUUMI = xauumi.



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 GENBMAIN or its description.