SAP Reports / Programs | Logistics - General | Warranty Claim Processing(LO-WTY) SAP LO

RWTYGULI SAP ABAP Report - Create Credit Memo Lists for Warranty Credit Memos







RWTYGULI 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 RWTYGULI 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

WTYCL - Create Credit Memo Lists


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 RWTYGULI. "Basic submit
SUBMIT RWTYGULI AND RETURN. "Return to original report after report execution complete
SUBMIT RWTYGULI 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_ODATE = D Open Items at Key Date
Selection Text: P_SPART = D Division
Selection Text: P_TSTRUN = D Test Run
Selection Text: P_VKORG = D Sales Organization
Selection Text: P_VTWEG = D Distribution Channel
Selection Text: S_KUNNR = D Customer
Title: Create Credit Memo Lists for Warranty Credit Memos
Text Symbol: 010 = Update Credit Memo List
Text Symbol: 011 = Updating of Credit Memeo List


INCLUDES used within this REPORT RWTYGULI

INCLUDE LWTY16CON.


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:

SD_ORGDATA_CHECK CALL FUNCTION 'SD_ORGDATA_CHECK' EXPORTING fi_vkorg = p_vkorg fi_vtweg = p_vtweg fi_spart = p_spart.

COMPANY_CODE_READ CALL FUNCTION 'COMPANY_CODE_READ' EXPORTING i_bukrs = ld_tvko-bukrs IMPORTING e_t001 = e_t001 EXCEPTIONS country_not_found = 1 no_such_code = 2 space_input = 3 wrong_kkber = 4 OTHERS = 5.

BAPI_AR_ACC_GETOPENITEMS CALL FUNCTION 'BAPI_AR_ACC_GETOPENITEMS' EXPORTING companycode = i_bukrs customer = ld_customer-kunnr keydate = i_keydate TABLES lineitems = lt_lineitems.

BAPI_CURRENCY_CONV_TO_INTERNAL * CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_INTERNAL' * EXPORTING * CURRENCY = I_CURRENCY * AMOUNT_EXTERNAL = I_AMOUNT_EX * MAX_NUMBER_OF_DIGITS = 15 * IMPORTING * AMOUNT_INTERNAL = LD_AMOUNT.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' * I_BYPASSING_BUFFER = * I_BUFFER_ACTIVE = ' ' i_callback_program = gc_progname i_callback_pf_status_set = 'ALV_CALLBACK_PFSTATUS' i_callback_user_command = 'ALV_CALLBACK_USER_COMMAND' i_structure_name = 'BAPI3007_2' * IS_LAYOUT = it_fieldcat = lt_fieldcat * IT_EXCLUDING = * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = 'X' i_save = true * IS_VARIANT = * IT_EVENTS = * IT_EVENT_EXIT = * IS_PRINT = * IS_REPREP_ID = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES t_outtab = gt_openitem * EXCEPTIONS * PROGRAM_ERROR = 1 * OTHERS = 2 .

FI_DOCUMENT_DISPLAY_RFC CALL FUNCTION 'FI_DOCUMENT_DISPLAY_RFC' EXPORTING i_belnr = gd_openitem-doc_no i_bukrs = gd_openitem-comp_code i_gjahr = gd_openitem-fisc_year.

ENQUEUE_EFBKPF CALL FUNCTION 'ENQUEUE_EFBKPF' EXPORTING belnr = gd_openitem-doc_no bukrs = gd_openitem-comp_code gjahr = gd_openitem-fisc_year EXCEPTIONS foreign_lock = 4 system_failure = 8.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'F5' msgty = 'E' msgv1 = gd_openitem-doc_no msgv2 = gd_openitem-comp_code msgv3 = sy-msgv1 "USER txtnr = '302'.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = 'Verbuchung Gutschriftenliste'(011) * DIAGNOSE_OBJECT = ' ' text_question = 'Gutschriftenliste verbuchen'(010) * TEXT_BUTTON_1 = 'Ja'(001) icon_button_1 = 'ICON_SYSTEM_SAVE' * TEXT_BUTTON_2 = 'Nein'(002) icon_button_2 = 'ICON_CANCEL' * DEFAULT_BUTTON = '1' display_cancel_button = ' ' * USERDEFINED_F1_HELP = ' ' start_column = 18 * START_ROW = 6 * POPUP_TYPE = IMPORTING answer = ld_answer EXCEPTIONS text_not_found = 1 OTHERS = 2.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP' EXCEPTIONS a_message = 8 e_message = 6 w_message = 4 i_message = 2 s_message = 1.

MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW'.

FI_DOCUMENT_CHANGE CALL FUNCTION 'FI_DOCUMENT_CHANGE' EXPORTING i_awtyp = gd_openitem-obj_type i_awref = gd_openitem-ref_doc i_aworg = gd_openitem-ref_org_un i_kunnr = gd_openitem-customer TABLES t_accchg = lt_accchg EXCEPTIONS no_reference = 1 no_document = 2 many_documents = 3 OTHERS = 4.



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