IDOC_CREATE_FORMS 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 IDOC_CREATE_FORMS 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: Routines for reading data and copying it to additionals IDocs
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
IDOC_REDUCTION call function 'IDOC_REDUCTION' exporting message_type = pi_message_type tables reduction = ibdi_reduct exceptions others = 1.
IDOC_REDUCTION_SEGMENT_TEST call function 'IDOC_REDUCTION_SEGMENT_TEST' exporting message_type = pi_message_type segment_type = ibdi_reduct-segtyp importing active = flag exceptions others = 1.
DOMAIN_VALUE_GET call function 'DOMAIN_VALUE_GET' exporting i_domname = 'ADDI_APPL' i_domvalue = dom_value_tmp importing e_ddtext = pe_e1wtaddi01-addiappl_txt exceptions not_exist = 1 others = 2.
DOMAIN_VALUE_GET call function 'DOMAIN_VALUE_GET' exporting i_domname = 'ADDI_EVENT' i_domvalue = dom_value_tmp importing e_ddtext = pe_e1wtaddi01-addievent_txt exceptions not_exist = 1 others = 2.
LANGUAGE_CODE_SAP_TO_ISO call function 'LANGUAGE_CODE_SAP_TO_ISO' exporting sap_code = pi_addi_idoc_key-spras importing iso_code = pe_e1wtaddi01-spras "_id 99A/CvB exceptions not_found = 1 others = 2.
MAKT_SINGLE_READ call function 'MAKT_SINGLE_READ' exporting * KZRFB = ' ' * MAXTZ = 0 matnr = pe_e1wtaddi01-matnr spras = pi_addi_idoc_key-spras importing wmakt = wmakt exceptions wrong_call = 1 not_found = 2 others = 3.
UNIT_OF_MEASURE_SAP_TO_ISO call function 'UNIT_OF_MEASURE_SAP_TO_ISO' exporting sap_code = pi_addi_idoc_key-addivkme importing iso_code = pe_e1wtaddi01-addivkme exceptions not_found = 1 no_iso_code = 2 others = 3.
MARA_SINGLE_READ call function 'MARA_SINGLE_READ' exporting matnr = pi_addi_idoc_key-matnr importing wmara = wmara exceptions lock_on_material = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 others = 5.
T134T_SINGLE_READ call function 'T134T_SINGLE_READ' exporting materialart = wmara-mtart sprache = pi_addi_idoc_key-spras importing wt134t = wt134t exceptions wrong_call = 1 others = 2.
DOMAIN_VALUE_GET call function 'DOMAIN_VALUE_GET' exporting i_domname = 'ATTYP' i_domvalue = dom_value_tmp importing e_ddtext = pe_e1wtaddi02-attyp_txt exceptions not_exist = 1 others = 2.
UNIT_OF_MEASURE_SAP_TO_ISO call function 'UNIT_OF_MEASURE_SAP_TO_ISO' exporting sap_code = wmara-meins importing iso_code = pe_e1wtaddi02-basme exceptions not_found = 1 no_iso_code = 2 others = 3.
UNIT_OF_MEASURE_SAP_TO_ISO call function 'UNIT_OF_MEASURE_SAP_TO_ISO' exporting sap_code = wmara-inhme importing iso_code = pe_e1wtaddi02-inhme exceptions not_found = 1 no_iso_code = 2 others = 3.
T001W_SINGLE_READ call function 'T001W_SINGLE_READ' exporting t001w_werks = pi_addi_idoc_key-werks importing wt001w = st001w exceptions not_found = 1 others = 2.
MVKE_SINGLE_READ call function 'MVKE_SINGLE_READ' exporting matnr = pi_addi_idoc_key-matnr vkorg = st001w-vkorg vtweg = st001w-vtweg importing wmvke = smvke exceptions lock_on_mvke = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 others = 5.
UNIT_OF_MEASURE_SAP_TO_ISO call function 'UNIT_OF_MEASURE_SAP_TO_ISO' exporting sap_code = pe_vrkme importing iso_code = pe_e1wtaddi02-vrkme exceptions not_found = 1 no_iso_code = 2 others = 3.
MAKT_SINGLE_READ call function 'MAKT_SINGLE_READ' exporting matnr = wmara-satnr spras = pi_addi_idoc_key-spras importing wmakt = wmakt exceptions wrong_call = 1 not_found = 2 others = 3.
MARM_SINGLE_READ call function 'MARM_SINGLE_READ' exporting matnr = pi_addi_idoc_key-matnr meinh = pi_addi_idoc_key-addivkme importing wmarm = smarm exceptions wrong_call = 1 not_found = 2 others = 3.
MATERIAL_READ_CLASSIFIC_RT call function 'MATERIAL_READ_CLASSIFIC_RT' exporting p_matnr = pi_addi_idoc_key-matnr * KZ_MARA_READ = 'X' * P_MARA = * KZ_MAKT_READ = ' ' p_langu = pi_addi_idoc_key-spras * KZ_VARI_READ = 'X' * KZ_KLTYP_READ = ' ' * KZ_VALU_ALLOWED = 'X' * KZ_VALU_ASSIGNED = 'X' * KZ_CHAR_VARI_EXT = 'X' * KZ_INT_ART = ' ' * KZRFB = ' ' * MAXTZ = 0 * SPERRMODUS = ' ' * IMPORTING * P_CLASS = * P_KLTYP = * P_MARA = * P_MAKT = tables * EXP_VAR_TAB = * exp_char = iattributes * EXP_VALU = * EXP_CHAR_VARI = * exp_valu_vari = exp_valu_assigned = iattributes * EXP_CHAR_VARI_EXT = exceptions wrong_call = 1 mara_not_exist = 2 no_class = 3 no_char = 4 no_valu_vari = 5 others = 6.
call function 'PROMOTION_CHECK_READ' exporting pi_aktnr = pi_addi_idoc_key-aktnr * PI_ARTNR = * PI_NOPOS = ' ' * PI_ARTME = importing pe_i_wakh = swakh * TABLES * PX_T_WAKP = * PX_T_WAKP_ARTME = exceptions promotion_not_found = 1 item_not_found = 2 article_not_found = 3 others = 4.
MARA_SINGLE_READ call function 'MARA_SINGLE_READ' exporting matnr = pi_addi_info-addimat importing wmara = wmara exceptions lock_on_material = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 others = 5.
DOMAIN_VALUE_GET call function 'DOMAIN_VALUE_GET' exporting i_domname = 'ADDI_INVOC' i_domvalue = addiinvoc_tmp importing e_ddtext = pet_e1wtaddi05-addiinvoc_txt exceptions not_exist = 1 others = 2.
WTAD_ADDI_NUMBERING_TYPE_GET call function 'WTAD_ADDI_NUMBERING_TYPE_GET' exporting matnr = pi_addi_info-addimat importing addi_num_type = pet_e1wtaddi05-addinum exceptions addi_not_found = 1 addi_num_type_not_found = 2 others = 3.
DOMAIN_VALUE_GET call function 'DOMAIN_VALUE_GET' exporting i_domname = 'ADDI_NUM' i_domvalue = addinum_tmp importing e_ddtext = pet_e1wtaddi05-addinum_txt exceptions not_exist = 1 others = 2.
LANGUAGE_CODE_SAP_TO_ISO call function 'LANGUAGE_CODE_SAP_TO_ISO' exporting sap_code = aeti_wa-spras importing iso_code = pxt_e1wtaddi06-addispras exceptions not_found = 1 others = 2.
T001W_SINGLE_READ call function 'T001W_SINGLE_READ' exporting t001w_werks = pi_addi_idoc_key-werks importing wt001w = st001w exceptions not_found = 1 others = 2.
KNA1_SINGLE_READ call function 'KNA1_SINGLE_READ' exporting kna1_kunnr = locnr_tmp importing wkna1 = skna1 exceptions not_found = 1 others = 2.
COUNTRY_CODE_SAP_TO_ISO call function 'COUNTRY_CODE_SAP_TO_ISO' exporting sap_code = skna1-land1 importing iso_code = pe_e1wtaddi08-land exceptions not_found = 1 others = 2.
CURRENCY_AMOUNT_SAP_TO_IDOC CALL FUNCTION 'CURRENCY_AMOUNT_SAP_TO_IDOC' EXPORTING currency = ikomv-waers sap_amount = ikomv-kbetr IMPORTING idoc_amount = char20 EXCEPTIONS OTHERS = 1.
CURRENCY_CODE_SAP_TO_ISO call function 'CURRENCY_CODE_SAP_TO_ISO' exporting sap_code = ikomv-waers importing iso_code = pxt_e1wtaddi09-vwaer exceptions not_found = 1 others = 2.
UNIT_OF_MEASURE_SAP_TO_ISO call function 'UNIT_OF_MEASURE_SAP_TO_ISO' exporting sap_code = ieina-meins importing iso_code = pxt_e1wtaddi10-bstme exceptions not_found = 1 no_iso_code = 2 others = 3.
IDOC_REDUCTION_FIELD_REDUCE call function 'IDOC_REDUCTION_FIELD_REDUCE' exporting message_type = pi_mestyp segment_type = c_e1wtaddi01_name segment_data = pet_idoc_data-sdata importing segment_data = pet_idoc_data-sdata exceptions others = 1.
IDOC_REDUCTION_FIELD_REDUCE call function 'IDOC_REDUCTION_FIELD_REDUCE' exporting message_type = pi_mestyp segment_type = c_e1wtaddi02_name segment_data = pet_idoc_data-sdata importing segment_data = pet_idoc_data-sdata exceptions others = 1.
IDOC_REDUCTION_FIELD_REDUCE call function 'IDOC_REDUCTION_FIELD_REDUCE' exporting message_type = pi_mestyp segment_type = c_e1wtaddi03_name segment_data = pet_idoc_data-sdata importing segment_data = pet_idoc_data-sdata exceptions others = 1.
IDOC_REDUCTION_FIELD_REDUCE call function 'IDOC_REDUCTION_FIELD_REDUCE' exporting message_type = pi_mestyp segment_type = c_e1wtaddi12_name segment_data = pet_idoc_data-sdata importing segment_data = pet_idoc_data-sdata exceptions others = 1.
IDOC_REDUCTION_FIELD_REDUCE call function 'IDOC_REDUCTION_FIELD_REDUCE' exporting message_type = pi_mestyp segment_type = c_e1wtaddi13_name segment_data = pet_idoc_data-sdata importing segment_data = pet_idoc_data-sdata exceptions others = 1.
IDOC_REDUCTION_FIELD_REDUCE call function 'IDOC_REDUCTION_FIELD_REDUCE' exporting message_type = pi_mestyp segment_type = c_e1wtaddi14_name segment_data = pet_idoc_data-sdata importing segment_data = pet_idoc_data-sdata exceptions others = 1.
IDOC_REDUCTION_FIELD_REDUCE call function 'IDOC_REDUCTION_FIELD_REDUCE' exporting message_type = pi_mestyp segment_type = c_e1wtaddi05_name segment_data = pet_idoc_data-sdata importing segment_data = pet_idoc_data-sdata exceptions others = 1.
IDOC_REDUCTION_FIELD_REDUCE call function 'IDOC_REDUCTION_FIELD_REDUCE' exporting message_type = pi_mestyp segment_type = c_e1wtaddi06_name segment_data = pet_idoc_data-sdata importing segment_data = pet_idoc_data-sdata exceptions others = 1.
IDOC_REDUCTION_FIELD_REDUCE call function 'IDOC_REDUCTION_FIELD_REDUCE' exporting message_type = pi_mestyp segment_type = c_e1wtaddi08_name segment_data = pet_idoc_data-sdata importing segment_data = pet_idoc_data-sdata exceptions others = 1.
IDOC_REDUCTION_FIELD_REDUCE call function 'IDOC_REDUCTION_FIELD_REDUCE' exporting message_type = pi_mestyp segment_type = c_e1wtaddi09_name segment_data = pet_idoc_data-sdata importing segment_data = pet_idoc_data-sdata exceptions others = 1.
IDOC_REDUCTION_FIELD_REDUCE call function 'IDOC_REDUCTION_FIELD_REDUCE' exporting message_type = pi_mestyp segment_type = c_e1wtaddi10_name segment_data = pet_idoc_data-sdata importing segment_data = pet_idoc_data-sdata exceptions others = 1.
IDOC_REDUCTION_FIELD_REDUCE call function 'IDOC_REDUCTION_FIELD_REDUCE' exporting message_type = pi_mestyp segment_type = c_e1wtaddi11_name segment_data = pet_idoc_data-sdata importing segment_data = pet_idoc_data-sdata exceptions others = 1.
MASTER_IDOC_DISTRIBUTE call function 'MASTER_IDOC_DISTRIBUTE' in update task exporting master_idoc_control = edi_head tables communication_idoc_control = pet_icom_idoc_ctrl master_idoc_data = pit_idoc_data exceptions error_in_idoc_control = 1 error_writing_idoc_status = 2 error_in_idoc_data = 3 sending_logical_system_unknown = 4 others = 5.
MASTER_IDOC_DISTRIBUTE call function 'MASTER_IDOC_DISTRIBUTE' exporting master_idoc_control = edi_head tables communication_idoc_control = pet_icom_idoc_ctrl master_idoc_data = pit_idoc_data exceptions error_in_idoc_control = 1 error_writing_idoc_status = 2 error_in_idoc_data = 3 sending_logical_system_unknown = 4 others = 5.
DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL' EXPORTING _SYNCHRON = 'X' EXCEPTIONS OTHERS = 1.
DEQUEUE_ALL * call function 'DEQUEUE_ALL' * exporting * _synchron = 'X' * exceptions * others = 1.
WTAD_ADDI_NUMBERING_TYPE_GET call function 'WTAD_ADDI_NUMBERING_TYPE_GET' exporting matnr = pi_addi_idoc_key-addimat importing addi_num_type = addi_num_type exceptions addi_not_found = 1 addi_num_type_not_found = 2 others = 3.
T001W_SINGLE_READ call function 'T001W_SINGLE_READ' exporting * KZRFB = ' ' t001w_werks = pi_addi_idoc_key-werks importing wt001w = st001w exceptions not_found = 1 others = 2.
LOCATION_WRF1_SELECT call function 'LOCATION_WRF1_SELECT' exporting i_locnr = st001w-kunnr importing a_wrf1 = swrf1 exceptions no_entry_found = 1 others = 2.
MARA_SINGLE_READ CALL FUNCTION 'MARA_SINGLE_READ' EXPORTING MATNR = pi_addi_idoc_key-matnr IMPORTING WMARA = smara EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.
WRF6_SINGLE_READ CALL FUNCTION 'WRF6_SINGLE_READ' EXPORTING IV_LOCNR = swrf1-locnr IV_MATKL = smara-matkl IMPORTING ES_WRF6 = swrf6 EXCEPTIONS NOT_FOUND = 1 PARAMETER_ERROR = 2 OTHERS = 3.
SALES_PRICE_READ call function 'SALES_PRICE_READ' exporting pi_i_spr = sales_price_parameters * IMPORTING * PE_I_SPR = * PE_I_KOMK = * PE_I_KOMP = tables pe_t_komv = pet_komv * PE_T_LIFE = exceptions material_not_found = 1 no_authority = 2 no_bukrs_found = 3 no_sales_price_found = 4 org_structure_not_completed = 5 plant_not_found = 6 vkorg_not_found = 7 calculation_scheme_not_correct = 8 pricing_error = 9 others = 10.
MARD_GENERIC_READ_MATNR_PLANT call function 'MARD_GENERIC_READ_MATNR_PLANT' exporting matnr = pi_matnr werks = pi_werks tables mard_tab = imard exceptions wrong_call = 1 not_found = 2 others = 3.
SAPGUI_PROGRESS_INDICATOR call function 'SAPGUI_PROGRESS_INDICATOR' exporting percentage = px_percentage_processed text = display_text exceptions others = 1.
SAPGUI_PROGRESS_INDICATOR call function 'SAPGUI_PROGRESS_INDICATOR' exporting text = display_text exceptions others = 1.
ME_EKKO_SINGLE_READ call function 'ME_EKKO_SINGLE_READ' exporting pi_ebeln = ebeln importing po_ekko = sekko exceptions no_records_found = 1 others = 2.
LFA1_SINGLE_READ call function 'LFA1_SINGLE_READ' exporting lfa1_lifnr = pi_supplier importing wlfa1 = slfa1 exceptions not_found = 1 others = 2.
LFA1_SINGLE_READ call function 'LFA1_SINGLE_READ' exporting lfa1_lifnr = pi_supplier importing wlfa1 = slfa1 exceptions not_found = 1 others = 2.
T001W_SINGLE_READ call function 'T001W_SINGLE_READ' exporting t001w_werks = pi_plant importing wt001w = st001w exceptions not_found = 1 others = 2.
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 IDOC_CREATE_FORMS or its description.
IDOC_CREATE_FORMS - Routines for reading data and copying it to additionals IDocs IDOCTOP - documentation and ABAP source code IDOCSDSMOR - Program for object type IDOCSDSMOR : IDoc ISU_SDSM_ORDER IDOCSDSMOR - Program for object type IDOCSDSMOR : IDoc ISU_SDSM_ORDER IDOCSDSMCP - Program for object type IDOCSDSMCP : IDoc ISU_SDSM_COMP IDOCSDSMCP - Program for object type IDOCSDSMCP : IDoc ISU_SDSM_COMP