GENLMAIN 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 GENLMAIN into the relevant SAP transactions such as SE38 or SE80
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.
Title: Main program for report RWWAGENL
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
WGEN_GET_USER_SPLIT_CRITERIA CALL FUNCTION 'WGEN_GET_USER_SPLIT_CRITERIA' EXPORTING im_nbstn_nur = space im_ubstn_nur = space IMPORTING ex_splitt_for = splitt_for.
WGEN_FILL_SPLITT_TABLE CALL FUNCTION 'WGEN_FILL_SPLITT_TABLE' EXPORTING im_nbstn_nur = space im_ubstn_nur = space im_splitt_for = splitt_for im_only_standard_criteria = space TABLES im_ex_splitt_tab = splitt_tab.
WGEN_GET_DELIVERY_WORKLIST CALL FUNCTION 'WGEN_GET_DELIVERY_WORKLIST' EXPORTING im_fbg_call = fbg_aufruf-im_batch TABLES im_rt_vstel = vstel_rt im_rt_abeln = abeln_rt im_rt_ledat = ledat_rt im_rt_route = route_rt im_rt_spdnr = spdnr_rt im_rt_matnr = matnr im_rt_aktnr = aktnr_rt im_ex_postab = postab im_ex_auvdi = xauvdi im_ex_aupo = xaupo 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_DELIVERY CALL FUNCTION 'WGEN_PREPARE_DELIVERY' EXPORTING im_fb_typ = fb_typ-lieferung 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 *} 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 = xauvdi-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-lieferung TABLES im_messg = messg.
WGEN_CREATE_BATCH_LOG CALL FUNCTION 'WGEN_CREATE_BATCH_LOG' TABLES IM_MESSG = messg.
WGEN_PREPARE_DELIVERY_PPFB1 CALL FUNCTION 'WGEN_PREPARE_DELIVERY_PPFB1' EXPORTING 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_AUVDI = xauvdi.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.