SAP Reports / Programs

WDK_EASY_SCRIPT SAP ABAP Report - WDK easy script creation







WDK_EASY_SCRIPT is a standard Executable ABAP Report 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 WDK_EASY_SCRIPT into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

WDK_EASY_SCRIPT - WDK easy script creation


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 WDK_EASY_SCRIPT. "Basic submit
SUBMIT WDK_EASY_SCRIPT AND RETURN. "Return to original report after report execution complete
SUBMIT WDK_EASY_SCRIPT 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: P_APPL = D .
Selection Text: P_NOVAL = Remove field values
Selection Text: P_QID = D .
Title: WDK easy script creation
Text Symbol: 001 = Start recording
Text Symbol: 002 = Start batch input recording
Text Symbol: 003 = Select recording
Text Symbol: 004 = Define script name
Text Symbol: 005 = Select records of user...
Text Symbol: 006 = lines
Text Symbol: 007 = Scripting for:
Text Symbol: 008 = Do you want to overwrite the script


INCLUDES used within this REPORT WDK_EASY_SCRIPT

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:

POPUP_GET_VALUES CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING popup_title = text-005 IMPORTING returncode = lv_retcode TABLES fields = lt_sval.

BDC_OBJECT_SELECT CALL FUNCTION 'BDC_OBJECT_SELECT' EXPORTING name = '*' session_creator = ls_apqi-creator TABLES apqitab = lt_apqi EXCEPTIONS invalid_datatype = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'APQI' CHANGING ct_fieldcat = lt_fieldcat.

REUSE_ALV_POPUP_TO_SELECT CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT' EXPORTING i_title = text-003 i_zebra = abap_true i_tabname = 'APQI' it_fieldcat = lt_fieldcat IMPORTING es_selfield = ls_selfield TABLES t_outtab = lt_apqi EXCEPTIONS program_error = 1 OTHERS = 2.

BDC_OBJECT_READ CALL FUNCTION 'BDC_OBJECT_READ' EXPORTING queue_id = uv_qid TABLES dynprotab = lt_bdcdata.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'BDCDATA' CHANGING ct_fieldcat = lt_fieldcat.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = sy-repid i_callback_pf_status_set = 'SET_PF_STATUS' i_callback_user_command = 'USER_COMMAND' i_grid_title = lv_title is_layout = ls_layout it_fieldcat = lt_fieldcat i_save = 'U' TABLES t_outtab = ct_bdcout.

VIEW_AUTHORITY_CHECK CALL FUNCTION 'VIEW_AUTHORITY_CHECK' EXPORTING view_action = 'U' view_name = 'V_WDKAPPL' no_warning_for_clientindep = 'X' EXCEPTIONS OTHERS = 1.

ENQUEUE_E_TABLEE CALL FUNCTION 'ENQUEUE_E_TABLEE' EXPORTING mode_rstable = 'E' tabname = 'WDKAPPL' varkey = lv_enq_key.

BDC_OBJECT_COUNT CALL FUNCTION 'BDC_OBJECT_COUNT' EXPORTING name = 'HUGO' EXCEPTIONS OTHERS = 0.

BDC_RECORD_START CALL FUNCTION 'BDC_RECORD_START' IMPORTING key = ls_apqi.

POPUP_GET_VALUES CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING popup_title = text-004 IMPORTING returncode = lv_retcode TABLES fields = lt_sval.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING text_question = lv_string IMPORTING answer = lv_answer.

TR_OBJECTS_CHECK CALL FUNCTION 'TR_OBJECTS_CHECK' IMPORTING we_order = lv_order TABLES wt_ko200 = lt_ko200 wt_e071k = lt_e071k.

TR_OBJECTS_INSERT CALL FUNCTION 'TR_OBJECTS_INSERT' EXPORTING wi_order = lv_order TABLES wt_ko200 = lt_ko200 wt_e071k = lt_e071k.



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