SAP Reports / Programs

RJHBUSISM008_BAPI_TEST SAP ABAP Report - IS-M/AM: Test Create/Change Order BAPI







RJHBUSISM008_BAPI_TEST is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Sales documents that were created or changed using BAPIs in dialog processing can be created or changed using the same BAPI processes in this report...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RJHBUSISM008_BAPI_TEST 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 RJHBUSISM008_BAPI_TEST. "Basic submit
SUBMIT RJHBUSISM008_BAPI_TEST AND RETURN. "Return to original report after report execution complete
SUBMIT RJHBUSISM008_BAPI_TEST VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: AVM_NR = Template Order
Selection Text: AVM_NRTW = Order to Be Created/Changed
Selection Text: CALL_DIA = Order Dialog for Template Ordr
Selection Text: COMPARE = Compare Orders
Selection Text: MSG_LOG = Messages By Message Log
Selection Text: NODEFAUL = No Default Settings for Creatn
Selection Text: NO_BDS = Do not Transfer Bill.Datasets
Selection Text: NO_COA = Do not Transfer Contrt Assgmts
Selection Text: NO_SL = Do not Transfer Sched.Lines
Selection Text: TESTRUN = Test Run
Selection Text: XCHANGE = Change an Order
Selection Text: XCREATE = Create an Order
Title: IS-M/AM: Test Create/Change Order BAPI
Text Symbol: 001 = Align Orders ==> Only for Order Modification
Text Symbol: 002 = Suppress Default Setting ==> Only for Order Creation
Text Symbol: 003 = Please also make adjustments in RJHBUSISM008_BAPI_CREATE_TEST


INCLUDES used within this REPORT RJHBUSISM008_BAPI_TEST

INCLUDE MJ_CHAR1.
INCLUDE MJ_XFELD.


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:

BAPI_ADMGMTSO_GETDETAIL CALL FUNCTION 'BAPI_ADMGMTSO_GETDETAIL' EXPORTING documentno = lv_old_avm_nr IMPORTING header = gs_bapi_out_old-header TABLES return = gt_return item = gs_bapi_out_old-item item_ad = gs_bapi_out_old-item_ad item_ai = gs_bapi_out_old-item_ai item_cm = gs_bapi_out_old-item_cm item_sv = gs_bapi_out_old-item_sv item_ol = gs_bapi_out_old-item_ol booking_unit_ass = gs_bapi_out_old-booking_unit_ass date_ass_ad = gs_bapi_out_old-date_ass_ad date_ass_cm = gs_bapi_out_old-date_ass_cm manual_sl_gen = gs_bapi_out_old-manual_sl_gen positioning = gs_bapi_out_old-positioning complaint = gs_bapi_out_old-complaint advertiser_ass = gs_bapi_out_old-advertiser_ass business_partner_ass = gs_bapi_out_old-business_partner_ass address = gs_bapi_out_old-address address_bas_org = gt_address_bas_org address_bas_pers = gt_address_bas_pers address_bas_tel = gt_address_bas_tel address_bas_fax = gt_address_bas_fax address_bas_ttx = gt_address_bas_ttx address_bas_tlx = gt_address_bas_tlx address_bas_smtp = gt_address_bas_smtp address_bas_rml = gt_address_bas_rml address_bas_x400 = gt_address_bas_x400 address_bas_rfc = gt_address_bas_rfc address_bas_prt = gt_address_bas_prt address_bas_ssf = gt_address_bas_ssf address_bas_uri = gt_address_bas_uri address_bas_pag = gt_address_bas_pag address_bas_rem = gt_address_bas_rem address_bas_crem = gt_address_bas_crem manual_agent_ass = gs_bapi_out_old-manual_agent_ass ad_spec_ad = gs_bapi_out_old-ad_spec_ad ad_spec_cm = gs_bapi_out_old-ad_spec_cm ad_spec_ol = gs_bapi_out_old-ad_spec_ol ad_spec_master = gs_bapi_out_old-ad_spec_master ad_spec_master_type = gs_bapi_out_old-ad_spec_master_type artwork_ass = gs_bapi_out_old-artwork_ass schedule_line = gs_bapi_out_old-schedule_line schedule_line_ad = gs_bapi_out_old-schedule_line_ad schedule_line_ai = gs_bapi_out_old-schedule_line_ai schedule_line_cm = gs_bapi_out_old-schedule_line_cm schedule_line_dt = gs_bapi_out_old-schedule_line_dt schedule_line_ol = gs_bapi_out_old-schedule_line_ol billing_dataset = gs_bapi_out_old-billing_dataset text = gs_bapi_out_old-text contract_ass = gs_bapi_out_old-contract_ass content_component_ass = gs_bapi_out_old-content_component_ass target_group = gs_bapi_out_old-target_group.

ISM_MAP_BAPI_BAS_ADDRESS2I CALL FUNCTION 'ISM_MAP_BAPI_BAS_ADDRESS2I' EXPORTING pt_address_bas_org = gt_address_bas_org pt_address_bas_pers = gt_address_bas_pers pt_address_bas_tel = gt_address_bas_tel pt_address_bas_fax = gt_address_bas_fax pt_address_bas_ttx = gt_address_bas_ttx pt_address_bas_tlx = gt_address_bas_tlx pt_address_bas_smtp = gt_address_bas_smtp pt_address_bas_rml = gt_address_bas_rml pt_address_bas_x400 = gt_address_bas_x400 pt_address_bas_rfc = gt_address_bas_rfc pt_address_bas_prt = gt_address_bas_prt pt_address_bas_ssf = gt_address_bas_ssf pt_address_bas_uri = gt_address_bas_uri pt_address_bas_pag = gt_address_bas_pag pt_address_bas_rem = gt_address_bas_rem pt_address_bas_crem = gt_address_bas_crem IMPORTING pt_address_bas_int = gs_bapi_out_old-address_bas.

BAPI_ADMGMTSO_GETDETAIL CALL FUNCTION 'BAPI_ADMGMTSO_GETDETAIL' EXPORTING documentno = lv_old_avm_nr IMPORTING header = gs_bapi_out_old-header TABLES return = gt_return item = gs_bapi_out_old-item item_ad = gs_bapi_out_old-item_ad item_ai = gs_bapi_out_old-item_ai item_cm = gs_bapi_out_old-item_cm item_sv = gs_bapi_out_old-item_sv item_ol = gs_bapi_out_old-item_ol booking_unit_ass = gs_bapi_out_old-booking_unit_ass date_ass_ad = gs_bapi_out_old-date_ass_ad date_ass_cm = gs_bapi_out_old-date_ass_cm manual_sl_gen = gs_bapi_out_old-manual_sl_gen positioning = gs_bapi_out_old-positioning complaint = gs_bapi_out_old-complaint advertiser_ass = gs_bapi_out_old-advertiser_ass business_partner_ass = gs_bapi_out_old-business_partner_ass address = gs_bapi_out_old-address manual_agent_ass = gs_bapi_out_old-manual_agent_ass ad_spec_ad = gs_bapi_out_old-ad_spec_ad ad_spec_cm = gs_bapi_out_old-ad_spec_cm ad_spec_ol = gs_bapi_out_old-ad_spec_ol ad_spec_master = gs_bapi_out_old-ad_spec_master ad_spec_master_type = gs_bapi_out_old-ad_spec_master_type artwork_ass = gs_bapi_out_old-artwork_ass schedule_line = gs_bapi_out_old-schedule_line schedule_line_ad = gs_bapi_out_old-schedule_line_ad schedule_line_ai = gs_bapi_out_old-schedule_line_ai schedule_line_cm = gs_bapi_out_old-schedule_line_cm schedule_line_dt = gs_bapi_out_old-schedule_line_dt schedule_line_ol = gs_bapi_out_old-schedule_line_ol billing_dataset = gs_bapi_out_old-billing_dataset text = gs_bapi_out_old-text contract_ass = gs_bapi_out_old-contract_ass content_component_ass = gs_bapi_out_old-content_component_ass target_group = gs_bapi_out_old-target_group.

ISM_BAPI_MESSAGE_RAISE CALL FUNCTION 'ISM_BAPI_MESSAGE_RAISE' EXPORTING pt_return = gt_return.

ISM_BAPI_008_STRUCTOUT_RENMBR CALL FUNCTION 'ISM_BAPI_008_STRUCTOUT_RENMBR' EXPORTING pv_new_avm_nr = avm_nrtw CHANGING ps_rjhbapibusism008_out = gs_bapi_out_old.

ISM_BAPI_008_STRUCTOUT2IN_MAP CALL FUNCTION 'ISM_BAPI_008_STRUCTOUT2IN_MAP' EXPORTING ps_rjhbapibusism008_out = gs_bapi_out_old IMPORTING ps_rjhbapibusism008 = gs_bapi_old.

BAPI_ADMGMTSO_GETDETAIL CALL FUNCTION 'BAPI_ADMGMTSO_GETDETAIL' EXPORTING documentno = avm_nr IMPORTING header = gs_bapi_out_new-header TABLES return = gt_return item = gs_bapi_out_new-item item_ad = gs_bapi_out_new-item_ad item_ai = gs_bapi_out_new-item_ai item_cm = gs_bapi_out_new-item_cm item_sv = gs_bapi_out_new-item_sv item_ol = gs_bapi_out_new-item_ol booking_unit_ass = gs_bapi_out_new-booking_unit_ass date_ass_ad = gs_bapi_out_new-date_ass_ad date_ass_cm = gs_bapi_out_new-date_ass_cm content_component_ass = gs_bapi_out_new-content_component_ass target_group = gs_bapi_out_new-target_group manual_sl_gen = gs_bapi_out_new-manual_sl_gen advertiser_ass = gs_bapi_out_new-advertiser_ass business_partner_ass = gs_bapi_out_new-business_partner_ass address = gs_bapi_out_new-address address_bas_org = gt_address_bas_org address_bas_pers = gt_address_bas_pers address_bas_tel = gt_address_bas_tel address_bas_fax = gt_address_bas_fax address_bas_ttx = gt_address_bas_ttx address_bas_tlx = gt_address_bas_tlx address_bas_smtp = gt_address_bas_smtp address_bas_rml = gt_address_bas_rml address_bas_x400 = gt_address_bas_x400 address_bas_rfc = gt_address_bas_rfc address_bas_prt = gt_address_bas_prt address_bas_ssf = gt_address_bas_ssf address_bas_uri = gt_address_bas_uri address_bas_pag = gt_address_bas_pag address_bas_rem = gt_address_bas_rem address_bas_crem = gt_address_bas_crem manual_agent_ass = gs_bapi_out_new-manual_agent_ass positioning = gs_bapi_out_new-positioning complaint = gs_bapi_out_new-complaint ad_spec_ad = gs_bapi_out_new-ad_spec_ad ad_spec_cm = gs_bapi_out_new-ad_spec_cm ad_spec_ol = gs_bapi_out_new-ad_spec_ol ad_spec_master = gs_bapi_out_new-ad_spec_master ad_spec_master_type = gs_bapi_out_new-ad_spec_master_type artwork_ass = gs_bapi_out_new-artwork_ass schedule_line = gs_bapi_out_new-schedule_line schedule_line_ad = gs_bapi_out_new-schedule_line_ad schedule_line_ai = gs_bapi_out_new-schedule_line_ai schedule_line_cm = gs_bapi_out_new-schedule_line_cm schedule_line_dt = gs_bapi_out_new-schedule_line_dt schedule_line_ol = gs_bapi_out_new-schedule_line_ol billing_dataset = gs_bapi_out_new-billing_dataset text = gs_bapi_out_new-text contract_ass = gs_bapi_out_new-contract_ass.

ISM_MAP_BAPI_BAS_ADDRESS2I CALL FUNCTION 'ISM_MAP_BAPI_BAS_ADDRESS2I' EXPORTING pt_address_bas_org = gt_address_bas_org pt_address_bas_pers = gt_address_bas_pers pt_address_bas_tel = gt_address_bas_tel pt_address_bas_fax = gt_address_bas_fax pt_address_bas_ttx = gt_address_bas_ttx pt_address_bas_tlx = gt_address_bas_tlx pt_address_bas_smtp = gt_address_bas_smtp pt_address_bas_rml = gt_address_bas_rml pt_address_bas_x400 = gt_address_bas_x400 pt_address_bas_rfc = gt_address_bas_rfc pt_address_bas_prt = gt_address_bas_prt pt_address_bas_ssf = gt_address_bas_ssf pt_address_bas_uri = gt_address_bas_uri pt_address_bas_pag = gt_address_bas_pag pt_address_bas_rem = gt_address_bas_rem pt_address_bas_crem = gt_address_bas_crem IMPORTING pt_address_bas_int = gs_bapi_out_new-address_bas.

BAPI_ADMGMTSO_GETDETAIL CALL FUNCTION 'BAPI_ADMGMTSO_GETDETAIL' EXPORTING documentno = avm_nr IMPORTING header = gs_bapi_out_new-header TABLES return = gt_return item = gs_bapi_out_new-item item_ad = gs_bapi_out_new-item_ad item_ai = gs_bapi_out_new-item_ai item_cm = gs_bapi_out_new-item_cm item_sv = gs_bapi_out_new-item_sv item_ol = gs_bapi_out_new-item_ol booking_unit_ass = gs_bapi_out_new-booking_unit_ass date_ass_ad = gs_bapi_out_new-date_ass_ad date_ass_cm = gs_bapi_out_new-date_ass_cm content_component_ass = gs_bapi_out_new-content_component_ass target_group = gs_bapi_out_new-target_group manual_sl_gen = gs_bapi_out_new-manual_sl_gen advertiser_ass = gs_bapi_out_new-advertiser_ass business_partner_ass = gs_bapi_out_new-business_partner_ass address = gs_bapi_out_new-address manual_agent_ass = gs_bapi_out_new-manual_agent_ass positioning = gs_bapi_out_new-positioning complaint = gs_bapi_out_new-complaint ad_spec_ad = gs_bapi_out_new-ad_spec_ad ad_spec_cm = gs_bapi_out_new-ad_spec_cm ad_spec_ol = gs_bapi_out_new-ad_spec_ol ad_spec_master = gs_bapi_out_new-ad_spec_master ad_spec_master_type = gs_bapi_out_new-ad_spec_master_type artwork_ass = gs_bapi_out_new-artwork_ass schedule_line = gs_bapi_out_new-schedule_line schedule_line_ad = gs_bapi_out_new-schedule_line_ad schedule_line_ai = gs_bapi_out_new-schedule_line_ai schedule_line_cm = gs_bapi_out_new-schedule_line_cm schedule_line_dt = gs_bapi_out_new-schedule_line_dt schedule_line_ol = gs_bapi_out_new-schedule_line_ol billing_dataset = gs_bapi_out_new-billing_dataset text = gs_bapi_out_new-text contract_ass = gs_bapi_out_new-contract_ass.

ISM_BAPI_MESSAGE_RAISE CALL FUNCTION 'ISM_BAPI_MESSAGE_RAISE' EXPORTING pt_return = gt_return.

ISM_BAPI_008_STRUCTOUT_RENMBR CALL FUNCTION 'ISM_BAPI_008_STRUCTOUT_RENMBR' EXPORTING pv_new_avm_nr = avm_nrtw CHANGING ps_rjhbapibusism008_out = gs_bapi_out_new.

ISM_BAPI_008_STRUCTOUT2IN_MAP CALL FUNCTION 'ISM_BAPI_008_STRUCTOUT2IN_MAP' EXPORTING ps_rjhbapibusism008_out = gs_bapi_out_new IMPORTING ps_rjhbapibusism008 = gs_bapi_new.

ISM_BAPI_008_CHANGE_INFO_CALC CALL FUNCTION 'ISM_BAPI_008_CHANGE_INFO_CALC' EXPORTING ps_header_old = gs_bapi_old-header ps_header_new = gs_bapi_new-header pt_item_old = gs_bapi_old-item pt_item_new = gs_bapi_new-item pt_item_ad_old = gs_bapi_old-item_ad pt_item_ad_new = gs_bapi_new-item_ad pt_item_ai_old = gs_bapi_old-item_ai pt_item_ai_new = gs_bapi_new-item_ai pt_item_cm_old = gs_bapi_old-item_cm pt_item_cm_new = gs_bapi_new-item_cm pt_item_sv_old = gs_bapi_old-item_sv pt_item_sv_new = gs_bapi_new-item_sv pt_item_ol_old = gs_bapi_old-item_ol pt_item_ol_new = gs_bapi_new-item_ol pt_booking_unit_ass_new = gs_bapi_new-booking_unit_ass pt_booking_unit_ass_old = gs_bapi_old-booking_unit_ass pt_date_ass_ad_new = gs_bapi_new-date_ass_ad pt_date_ass_ad_old = gs_bapi_old-date_ass_ad pt_date_ass_cm_new = gs_bapi_new-date_ass_cm pt_date_ass_cm_old = gs_bapi_old-date_ass_cm pt_content_component_ass_new = gs_bapi_new-content_component_ass pt_content_component_ass_old = gs_bapi_old-content_component_ass pt_target_group_new = gs_bapi_new-target_group pt_target_group_old = gs_bapi_old-target_group pt_manual_sl_gen_new = gs_bapi_new-manual_sl_gen pt_manual_sl_gen_old = gs_bapi_old-manual_sl_gen pt_advertiser_ass_new = gs_bapi_new-advertiser_ass pt_advertiser_ass_old = gs_bapi_old-advertiser_ass pt_business_partner_ass_old = gs_bapi_old-business_partner_ass pt_address_old = gs_bapi_old-address pt_address_bas_old = gs_bapi_old-address_bas pt_manual_agent_ass_new = gs_bapi_new-manual_agent_ass pt_manual_agent_ass_old = gs_bapi_old-manual_agent_ass pt_positioning_old = gs_bapi_old-positioning pt_positioning_new = gs_bapi_new-positioning pt_ad_spec_ad_old = gs_bapi_old-ad_spec_ad pt_ad_spec_ad_new = gs_bapi_new-ad_spec_ad pt_ad_spec_cm_old = gs_bapi_old-ad_spec_cm pt_ad_spec_cm_new = gs_bapi_new-ad_spec_cm pt_ad_spec_ol_old = gs_bapi_old-ad_spec_ol pt_ad_spec_ol_new = gs_bapi_new-ad_spec_ol pt_ad_spec_master_old = gs_bapi_old-ad_spec_master pt_ad_spec_master_new = gs_bapi_new-ad_spec_master pt_ad_spec_master_type_old = gs_bapi_old-ad_spec_master_type pt_ad_spec_master_type_new = gs_bapi_new-ad_spec_master_type pt_artwork_ass_old = gs_bapi_old-artwork_ass pt_artwork_ass_new = gs_bapi_new-artwork_ass pt_schedule_line_old = gs_bapi_old-schedule_line pt_schedule_line_new = gs_bapi_new-schedule_line pt_schedule_line_ad_old = gs_bapi_old-schedule_line_ad pt_schedule_line_ad_new = gs_bapi_new-schedule_line_ad pt_schedule_line_ai_old = gs_bapi_old-schedule_line_ai pt_schedule_line_ai_new = gs_bapi_new-schedule_line_ai pt_schedule_line_cm_old = gs_bapi_old-schedule_line_cm pt_schedule_line_cm_new = gs_bapi_new-schedule_line_cm pt_schedule_line_dt_old = gs_bapi_old-schedule_line_dt pt_schedule_line_dt_new = gs_bapi_new-schedule_line_dt pt_schedule_line_ol_old = gs_bapi_old-schedule_line_ol pt_schedule_line_ol_new = gs_bapi_new-schedule_line_ol pt_billing_dataset_old = gs_bapi_old-billing_dataset pt_billing_dataset_new = gs_bapi_new-billing_dataset pt_text_old = gs_bapi_old-text pt_text_new = gs_bapi_new-text pt_contract_ass_old = gs_bapi_old-contract_ass pt_contract_ass_new = gs_bapi_new-contract_ass pt_complaint_old = gs_bapi_old-complaint pt_complaint_new = gs_bapi_new-complaint IMPORTING ps_headerx = gs_bapix-headerx pt_itemx = gs_bapix-itemx pt_item_adx = gs_bapix-item_adx pt_item_aix = gs_bapix-item_aix pt_item_cmx = gs_bapix-item_cmx pt_item_svx = gs_bapix-item_svx pt_item_olx = gs_bapix-item_olx pt_booking_unit_assx = gs_bapix-booking_unit_assx pt_date_ass_adx = gs_bapix-date_ass_adx pt_date_ass_cmx = gs_bapix-date_ass_cmx pt_content_component_assx = gs_bapix-content_component_assx pt_target_groupx = gs_bapix-target_groupx pt_manual_sl_genx = gs_bapix-manual_sl_genx pt_positioningx = gs_bapix-positioningx pt_advertiser_assx = gs_bapix-advertiser_assx pt_business_partner_assx = gs_bapix-business_partner_assx pt_manual_agent_assx = gs_bapix-manual_agent_assx pt_ad_spec_adx = gs_bapix-ad_spec_adx pt_ad_spec_cmx = gs_bapix-ad_spec_cmx pt_ad_spec_olx = gs_bapix-ad_spec_olx pt_ad_spec_masterx = gs_bapix-ad_spec_masterx pt_ad_spec_master_typex = gs_bapix-ad_spec_master_typex pt_artwork_assx = gs_bapix-artwork_assx pt_schedule_linex = gs_bapix-schedule_linex pt_schedule_line_adx = gs_bapix-schedule_line_adx pt_schedule_line_aix = gs_bapix-schedule_line_aix pt_schedule_line_cmx = gs_bapix-schedule_line_cmx pt_schedule_line_dtx = gs_bapix-schedule_line_dtx pt_schedule_line_olx = gs_bapix-schedule_line_olx pt_billing_datasetx = gs_bapix-billing_datasetx pt_textx = gs_bapix-textx pt_contract_assx = gs_bapix-contract_assx pt_complaintx = gs_bapix-complaintx CHANGING pt_business_partner_ass_new = gs_bapi_new-business_partner_ass pt_address_new = gs_bapi_new-address pt_address_bas_new = gs_bapi_new-address_bas.

ISM_BAPI_008_STRUCTIN_TMP_SET CALL FUNCTION 'ISM_BAPI_008_STRUCTIN_TMP_SET' CHANGING ps_rjhbapibusism008 = gs_bapi_new.

ISM_BAPI_008_CHANGE_INFO_INIT CALL FUNCTION 'ISM_BAPI_008_CHANGE_INFO_INIT' EXPORTING ps_rjhbapibusism008 = gs_bapi_new pv_change_info_upd_set = nodefaul IMPORTING ps_rjhbapibusism008x = gs_bapix CHANGING pt_business_partner_ass = gs_bapi_new-business_partner_ass pt_address = gs_bapi_new-address pt_address_bas = gs_bapi_new-address_bas.

ISM_MAP_BAPI_BAS_ADDRESS2E CALL FUNCTION 'ISM_MAP_BAPI_BAS_ADDRESS2E' EXPORTING pt_address_bas_int = gs_bapi_new-address_bas IMPORTING pt_address_bas_org = gt_address_bas_org pt_address_bas_pers = gt_address_bas_pers pt_address_bas_tel = gt_address_bas_tel pt_address_bas_fax = gt_address_bas_fax pt_address_bas_ttx = gt_address_bas_ttx pt_address_bas_tlx = gt_address_bas_tlx pt_address_bas_smtp = gt_address_bas_smtp pt_address_bas_rml = gt_address_bas_rml pt_address_bas_x400 = gt_address_bas_x400 pt_address_bas_rfc = gt_address_bas_rfc pt_address_bas_prt = gt_address_bas_prt pt_address_bas_ssf = gt_address_bas_ssf pt_address_bas_uri = gt_address_bas_uri pt_address_bas_pag = gt_address_bas_pag pt_address_bas_rem = gt_address_bas_rem pt_address_bas_crem = gt_address_bas_crem.

BAPI_ADMGMTSO_CHANGE CALL FUNCTION 'BAPI_ADMGMTSO_CHANGE' EXPORTING documentno = avm_nrtw header = gs_bapi_new-header headerx = gs_bapix-headerx testrun = testrun TABLES return = gt_return item = gs_bapi_new-item itemx = gs_bapix-itemx item_ad = gs_bapi_new-item_ad item_adx = gs_bapix-item_adx item_ai = gs_bapi_new-item_ai item_aix = gs_bapix-item_aix item_cm = gs_bapi_new-item_cm item_cmx = gs_bapix-item_cmx item_sv = gs_bapi_new-item_sv item_svx = gs_bapix-item_svx item_ol = gs_bapi_new-item_ol item_olx = gs_bapix-item_olx booking_unit_ass = gs_bapi_new-booking_unit_ass booking_unit_assx = gs_bapix-booking_unit_assx date_ass_ad = gs_bapi_new-date_ass_ad date_ass_adx = gs_bapix-date_ass_adx date_ass_cm = gs_bapi_new-date_ass_cm date_ass_cmx = gs_bapix-date_ass_cmx content_component_ass = gs_bapi_new-content_component_ass content_component_assx = gs_bapix-content_component_assx target_group = gs_bapi_new-target_group target_groupx = gs_bapix-target_groupx manual_sl_gen = gs_bapi_new-manual_sl_gen manual_sl_genx = gs_bapix-manual_sl_genx positioning = gs_bapi_new-positioning positioningx = gs_bapix-positioningx complaint = gs_bapi_new-complaint complaintx = gs_bapix-complaintx advertiser_ass = gs_bapi_new-advertiser_ass advertiser_assx = gs_bapix-advertiser_assx business_partner_ass = gs_bapi_new-business_partner_ass business_partner_assx = gs_bapix-business_partner_assx address = gs_bapi_new-address address_bas_org = gt_address_bas_org address_bas_pers = gt_address_bas_pers address_bas_tel = gt_address_bas_tel address_bas_fax = gt_address_bas_fax address_bas_ttx = gt_address_bas_ttx address_bas_tlx = gt_address_bas_tlx address_bas_smtp = gt_address_bas_smtp address_bas_rml = gt_address_bas_rml address_bas_x400 = gt_address_bas_x400 address_bas_rfc = gt_address_bas_rfc address_bas_prt = gt_address_bas_prt address_bas_ssf = gt_address_bas_ssf address_bas_uri = gt_address_bas_uri address_bas_pag = gt_address_bas_pag address_bas_rem = gt_address_bas_rem address_bas_crem = gt_address_bas_crem manual_agent_ass = gs_bapi_new-manual_agent_ass manual_agent_assx = gs_bapix-manual_agent_assx ad_spec_ad = gs_bapi_new-ad_spec_ad ad_spec_adx = gs_bapix-ad_spec_adx ad_spec_cm = gs_bapi_new-ad_spec_cm ad_spec_cmx = gs_bapix-ad_spec_cmx ad_spec_ol = gs_bapi_new-ad_spec_ol ad_spec_olx = gs_bapix-ad_spec_olx ad_spec_master = gs_bapi_new-ad_spec_master ad_spec_masterx = gs_bapix-ad_spec_masterx ad_spec_master_type = gs_bapi_new-ad_spec_master_type ad_spec_master_typex = gs_bapix-ad_spec_master_typex artwork_ass = gs_bapi_new-artwork_ass artwork_assx = gs_bapix-artwork_assx schedule_line_tmp_key = gs_bapi_new-schedule_line_tmp_key schedule_line = gs_bapi_new-schedule_line schedule_linex = gs_bapix-schedule_linex schedule_line_ad = gs_bapi_new-schedule_line_ad schedule_line_adx = gs_bapix-schedule_line_adx schedule_line_ai = gs_bapi_new-schedule_line_ai schedule_line_aix = gs_bapix-schedule_line_aix schedule_line_cm = gs_bapi_new-schedule_line_cm schedule_line_cmx = gs_bapix-schedule_line_cmx schedule_line_dt = gs_bapi_new-schedule_line_dt schedule_line_dtx = gs_bapix-schedule_line_dtx schedule_line_ol = gs_bapi_new-schedule_line_ol schedule_line_olx = gs_bapix-schedule_line_olx billing_dataset_tmp_key = gs_bapi_new-billing_dataset_tmp_key billing_dataset = gs_bapi_new-billing_dataset billing_datasetx = gs_bapix-billing_datasetx contract_ass = gs_bapi_new-contract_ass contract_assx = gs_bapix-contract_assx text = gs_bapi_new-text textx = gs_bapix-textx.

BAPI_ADMGMTSO_CHANGE CALL FUNCTION 'BAPI_ADMGMTSO_CHANGE' EXPORTING documentno = avm_nrtw header = gs_bapi_new-header headerx = gs_bapix-headerx testrun = testrun TABLES return = gt_return item = gs_bapi_new-item itemx = gs_bapix-itemx item_ad = gs_bapi_new-item_ad item_adx = gs_bapix-item_adx item_ai = gs_bapi_new-item_ai item_aix = gs_bapix-item_aix item_cm = gs_bapi_new-item_cm item_cmx = gs_bapix-item_cmx item_sv = gs_bapi_new-item_sv item_svx = gs_bapix-item_svx item_ol = gs_bapi_new-item_ol item_olx = gs_bapix-item_olx booking_unit_ass = gs_bapi_new-booking_unit_ass booking_unit_assx = gs_bapix-booking_unit_assx date_ass_ad = gs_bapi_new-date_ass_ad date_ass_adx = gs_bapix-date_ass_adx date_ass_cm = gs_bapi_new-date_ass_cm date_ass_cmx = gs_bapix-date_ass_cmx content_component_ass = gs_bapi_new-content_component_ass content_component_assx = gs_bapix-content_component_assx target_group = gs_bapi_new-target_group target_groupx = gs_bapix-target_groupx manual_sl_gen = gs_bapi_new-manual_sl_gen manual_sl_genx = gs_bapix-manual_sl_genx positioning = gs_bapi_new-positioning positioningx = gs_bapix-positioningx complaint = gs_bapi_new-complaint complaintx = gs_bapix-complaintx advertiser_ass = gs_bapi_new-advertiser_ass advertiser_assx = gs_bapix-advertiser_assx business_partner_ass = gs_bapi_new-business_partner_ass business_partner_assx = gs_bapix-business_partner_assx address = gs_bapi_new-address manual_agent_ass = gs_bapi_new-manual_agent_ass manual_agent_assx = gs_bapix-manual_agent_assx ad_spec_ad = gs_bapi_new-ad_spec_ad ad_spec_adx = gs_bapix-ad_spec_adx ad_spec_cm = gs_bapi_new-ad_spec_cm ad_spec_cmx = gs_bapix-ad_spec_cmx ad_spec_ol = gs_bapi_new-ad_spec_ol ad_spec_olx = gs_bapix-ad_spec_olx ad_spec_master = gs_bapi_new-ad_spec_master ad_spec_masterx = gs_bapix-ad_spec_masterx ad_spec_master_type = gs_bapi_new-ad_spec_master_type ad_spec_master_typex = gs_bapix-ad_spec_master_typex artwork_ass = gs_bapi_new-artwork_ass artwork_assx = gs_bapix-artwork_assx schedule_line_tmp_key = gs_bapi_new-schedule_line_tmp_key schedule_line = gs_bapi_new-schedule_line schedule_linex = gs_bapix-schedule_linex schedule_line_ad = gs_bapi_new-schedule_line_ad schedule_line_adx = gs_bapix-schedule_line_adx schedule_line_ai = gs_bapi_new-schedule_line_ai schedule_line_aix = gs_bapix-schedule_line_aix schedule_line_cm = gs_bapi_new-schedule_line_cm schedule_line_cmx = gs_bapix-schedule_line_cmx schedule_line_dt = gs_bapi_new-schedule_line_dt schedule_line_dtx = gs_bapix-schedule_line_dtx schedule_line_ol = gs_bapi_new-schedule_line_ol schedule_line_olx = gs_bapix-schedule_line_olx billing_dataset_tmp_key = gs_bapi_new-billing_dataset_tmp_key billing_dataset = gs_bapi_new-billing_dataset billing_datasetx = gs_bapix-billing_datasetx contract_ass = gs_bapi_new-contract_ass contract_assx = gs_bapix-contract_assx text = gs_bapi_new-text textx = gs_bapix-textx.

BAPI_ADMGMTSO_CREATEFROMDATA





CALL FUNCTION 'BAPI_ADMGMTSO_CREATEFROMDATA' EXPORTING header = gs_bapi_new-header headerx = gs_bapix-headerx testrun = testrun IMPORTING documentno_out = lv_avmnr_out TABLES return = gt_return item = gs_bapi_new-item itemx = gs_bapix-itemx item_ad = gs_bapi_new-item_ad item_adx = gs_bapix-item_adx item_ai = gs_bapi_new-item_ai item_aix = gs_bapix-item_aix item_cm = gs_bapi_new-item_cm item_cmx = gs_bapix-item_cmx item_sv = gs_bapi_new-item_sv item_svx = gs_bapix-item_svx item_ol = gs_bapi_new-item_ol item_olx = gs_bapix-item_olx booking_unit_ass = gs_bapi_new-booking_unit_ass booking_unit_assx = gs_bapix-booking_unit_assx date_ass_ad = gs_bapi_new-date_ass_ad date_ass_adx = gs_bapix-date_ass_adx date_ass_cm = gs_bapi_new-date_ass_cm date_ass_cmx = gs_bapix-date_ass_cmx content_component_ass = gs_bapi_new-content_component_ass content_component_assx = gs_bapix-content_component_assx target_group = gs_bapi_new-target_group target_groupx = gs_bapix-target_groupx manual_sl_gen = gs_bapi_new-manual_sl_gen manual_sl_genx = gs_bapix-manual_sl_genx positioning = gs_bapi_new-positioning positioningx = gs_bapix-positioningx complaint = gs_bapi_new-complaint complaintx = gs_bapix-complaintx advertiser_ass = gs_bapi_new-advertiser_ass advertiser_assx = gs_bapix-advertiser_assx business_partner_ass = gs_bapi_new-business_partner_ass business_partner_assx = gs_bapix-business_partner_assx address = gs_bapi_new-address address_bas_org = gt_address_bas_org address_bas_pers = gt_address_bas_pers address_bas_tel = gt_address_bas_tel address_bas_fax = gt_address_bas_fax address_bas_ttx = gt_address_bas_ttx address_bas_tlx = gt_address_bas_tlx address_bas_smtp = gt_address_bas_smtp address_bas_rml = gt_address_bas_rml address_bas_x400 = gt_address_bas_x400 address_bas_rfc = gt_address_bas_rfc address_bas_prt = gt_address_bas_prt address_bas_ssf = gt_address_bas_ssf address_bas_uri = gt_address_bas_uri address_bas_pag = gt_address_bas_pag address_bas_rem = gt_address_bas_rem address_bas_crem = gt_address_bas_crem manual_agent_ass = gs_bapi_new-manual_agent_ass manual_agent_assx = gs_bapix-manual_agent_assx ad_spec_ad = gs_bapi_new-ad_spec_ad ad_spec_adx = gs_bapix-ad_spec_adx ad_spec_cm = gs_bapi_new-ad_spec_cm ad_spec_cmx = gs_bapix-ad_spec_cmx ad_spec_ol = gs_bapi_new-ad_spec_ol ad_spec_olx = gs_bapix-ad_spec_olx artwork_ass = gs_bapi_new-artwork_ass artwork_assx = gs_bapix-artwork_assx ad_spec_master = gs_bapi_new-ad_spec_master ad_spec_masterx = gs_bapix-ad_spec_masterx ad_spec_master_type = gs_bapi_new-ad_spec_master_type ad_spec_master_typex = gs_bapix-ad_spec_master_typex schedule_line_tmp_key = gs_bapi_new-schedule_line_tmp_key schedule_line = gs_bapi_new-schedule_line schedule_linex = gs_bapix-schedule_linex schedule_line_ad = gs_bapi_new-schedule_line_ad schedule_line_adx = gs_bapix-schedule_line_adx schedule_line_ai = gs_bapi_new-schedule_line_ai schedule_line_aix = gs_bapix-schedule_line_aix schedule_line_cm = gs_bapi_new-schedule_line_cm schedule_line_cmx = gs_bapix-schedule_line_cmx schedule_line_dt = gs_bapi_new-schedule_line_dt schedule_line_dtx = gs_bapix-schedule_line_dtx schedule_line_ol = gs_bapi_new-schedule_line_ol schedule_line_olx = gs_bapix-schedule_line_olx billing_dataset_tmp_key = gs_bapi_new-billing_dataset_tmp_key billing_dataset = gs_bapi_new-billing_dataset billing_datasetx = gs_bapix-billing_datasetx contract_ass = gs_bapi_new-contract_ass contract_assx = gs_bapix-contract_assx text = gs_bapi_new-text textx = gs_bapix-textx.

BAPI_ADMGMTSO_CREATEFROMDATA CALL FUNCTION 'BAPI_ADMGMTSO_CREATEFROMDATA' EXPORTING header = gs_bapi_new-header headerx = gs_bapix-headerx testrun = testrun IMPORTING documentno_out = lv_avmnr_out TABLES return = gt_return item = gs_bapi_new-item itemx = gs_bapix-itemx item_ad = gs_bapi_new-item_ad item_adx = gs_bapix-item_adx item_ai = gs_bapi_new-item_ai item_aix = gs_bapix-item_aix item_cm = gs_bapi_new-item_cm item_cmx = gs_bapix-item_cmx item_sv = gs_bapi_new-item_sv item_svx = gs_bapix-item_svx item_ol = gs_bapi_new-item_ol item_olx = gs_bapix-item_olx booking_unit_ass = gs_bapi_new-booking_unit_ass booking_unit_assx = gs_bapix-booking_unit_assx date_ass_ad = gs_bapi_new-date_ass_ad date_ass_adx = gs_bapix-date_ass_adx date_ass_cm = gs_bapi_new-date_ass_cm date_ass_cmx = gs_bapix-date_ass_cmx content_component_ass = gs_bapi_new-content_component_ass content_component_assx = gs_bapix-content_component_assx target_group = gs_bapi_new-target_group target_groupx = gs_bapix-target_groupx manual_sl_gen = gs_bapi_new-manual_sl_gen manual_sl_genx = gs_bapix-manual_sl_genx positioning = gs_bapi_new-positioning positioningx = gs_bapix-positioningx complaint = gs_bapi_new-complaint complaintx = gs_bapix-complaintx advertiser_ass = gs_bapi_new-advertiser_ass advertiser_assx = gs_bapix-advertiser_assx business_partner_ass = gs_bapi_new-business_partner_ass business_partner_assx = gs_bapix-business_partner_assx address = gs_bapi_new-address manual_agent_ass = gs_bapi_new-manual_agent_ass manual_agent_assx = gs_bapix-manual_agent_assx ad_spec_ad = gs_bapi_new-ad_spec_ad ad_spec_adx = gs_bapix-ad_spec_adx ad_spec_cm = gs_bapi_new-ad_spec_cm ad_spec_cmx = gs_bapix-ad_spec_cmx ad_spec_ol = gs_bapi_new-ad_spec_ol ad_spec_olx = gs_bapix-ad_spec_olx artwork_ass = gs_bapi_new-artwork_ass artwork_assx = gs_bapix-artwork_assx ad_spec_master = gs_bapi_new-ad_spec_master ad_spec_masterx = gs_bapix-ad_spec_masterx ad_spec_master_type = gs_bapi_new-ad_spec_master_type ad_spec_master_typex = gs_bapix-ad_spec_master_typex schedule_line_tmp_key = gs_bapi_new-schedule_line_tmp_key schedule_line = gs_bapi_new-schedule_line schedule_linex = gs_bapix-schedule_linex schedule_line_ad = gs_bapi_new-schedule_line_ad schedule_line_adx = gs_bapix-schedule_line_adx schedule_line_ai = gs_bapi_new-schedule_line_ai schedule_line_aix = gs_bapix-schedule_line_aix schedule_line_cm = gs_bapi_new-schedule_line_cm schedule_line_cmx = gs_bapix-schedule_line_cmx schedule_line_dt = gs_bapi_new-schedule_line_dt schedule_line_dtx = gs_bapix-schedule_line_dtx schedule_line_ol = gs_bapi_new-schedule_line_ol schedule_line_olx = gs_bapix-schedule_line_olx billing_dataset_tmp_key = gs_bapi_new-billing_dataset_tmp_key billing_dataset = gs_bapi_new-billing_dataset billing_datasetx = gs_bapix-billing_datasetx contract_ass = gs_bapi_new-contract_ass contract_assx = gs_bapix-contract_assx text = gs_bapi_new-text textx = gs_bapix-textx.

ISM_BAPI_MESSAGE_RAISE CALL FUNCTION 'ISM_BAPI_MESSAGE_RAISE' EXPORTING pt_return = gt_return EXCEPTIONS abort_occurred = 1 error_occurred = 2.

BAPI_TRANSACTION_ROLLBACK CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.

BAPI_TRANSACTION_COMMIT CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

ISMAM_ORDER_READ CALL FUNCTION 'ISMAM_ORDER_READ' EXPORTING pv_avm_nr = avm_nr pv_fill_global_memory = con_blank pv_flg_dialog = con_blank IMPORTING ps_rjhaorder = gs_rjhaorder.

ISMAM_ORDER_READ CALL FUNCTION 'ISMAM_ORDER_READ' EXPORTING pv_avm_nr = lv_comp_avmnr pv_fill_global_memory = con_blank pv_flg_dialog = con_blank IMPORTING ps_rjhaorder = gs_rjhaorder_tw.

ISMAM_ORDER_COMPARE CALL FUNCTION 'ISMAM_ORDER_COMPARE' EXPORTING ps_rjhaorder1 = gs_rjhaorder ps_rjhaorder2 = gs_rjhaorder_tw IMPORTING pt_return = gt_return_tmp.

ENQUEUE_EJHAK CALL FUNCTION 'ENQUEUE_EJHAK' EXPORTING avm_nr = pv_avm_nr EXCEPTIONS OTHERS = 1.

ISM_ENQUEUE_EVVBAKE CALL FUNCTION 'ISM_ENQUEUE_EVVBAKE' EXPORTING avm_nr = pv_avm_nr.

DEQUEUE_EJHAK CALL FUNCTION 'DEQUEUE_EJHAK' EXPORTING avm_nr = pv_avm_nr.

ISM_DEQUEUE_EVVBAKE CALL FUNCTION 'ISM_DEQUEUE_EVVBAKE' EXPORTING avm_nr = pv_avm_nr.



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