abap

How to extract data from a SAP ABAP system?

 ̄綄美尐妖づ 提交于 2020-01-11 05:26:45
问题 I need to extract data from a SAP ABAP system in a format that can then be loaded into an Oracle database (xlsx,csv,dmp.. etc) Once the data is extracted I'll use Pentaho to upload it into the Oracle database. Is there a way to extract the data from SAP? I will also need to automate it (the extraction) but that is not too much of a problem right now, I can figure/worry about that part later. If it is not possible to do so, an explanation why would be helpful! 回答1: You have a number of options

ABAP嵌套子屏幕-实例

限于喜欢 提交于 2020-01-11 03:41:17
[ABAP 毕业设计基础] 查询个人信息 所需要的HR表:USR21,ADRP,ADCP,ADR6 屏幕配置: 屏幕100 flow logic: PROCESS BEFORE OUTPUT. MODULE STATUS_0100. CALL SUBSCREEN SUB INCLUDING SY-REPID SCREEN. * PROCESS AFTER INPUT. MODULE USER_COMMAND_0100. CALL SUBSCREEN SUB. layout: 屏幕110 flow logic PROCESS BEFORE OUTPUT. MODULE GET_DATA_0110. * PROCESS AFTER INPUT. MODULE USER_COMMAND_0110. layout 屏幕120 flow logic PROCESS BEFORE OUTPUT. MODULE STATUS_0120. * PROCESS AFTER INPUT. * MODULE USER_COMMAND_0120. layout 代码 TABLES:USR21,ADRP,ADCP,adr6. TYPES :BEGIN OF ts_usr21, bname TYPE usr21-bname, persnumber TYPE usr21-persnumber,

ABAP取销售订单长文本

て烟熏妆下的殇ゞ 提交于 2020-01-10 15:08:48
取销售订单行项目长文本 这里举例子 销售订单号:100000073 行项目:10 事务代码 VA05 输入凭证号进入 : 双击行项目进入: 双击长文本 进入后 点击菜单栏的转到 表头: 附上例子代码: "取销售订单长文本数据 DATA: l_id TYPE thead-tdid, l_language TYPE thead-tdspras, l_name TYPE thead-tdname, l_object TYPE thead-tdobject. DATA:it_line TYPE STANDARD TABLE OF tline. "第一个长文本 l_id = ‘Z001’. l_language = sy-spras. "‘E’ for English CONCATENATE ‘0100000073’ ‘000010’ INTO l_name. l_object = ‘VBBP’. CALL FUNCTION ‘READ_TEXT’ EXPORTING client = sy-mandt id = l_id language = sy-langu name = l_name object = l_object TABLES lines = it_line EXCEPTIONS id = 1 language = 2 name = 3 not_found = 4 object

2020.01.10 【ABAP随笔】ALV上的下拉框

给你一囗甜甜゛ 提交于 2020-01-10 01:28:38
ALV下拉框 如图在ALV下拉框内做了1到5 的选择下拉框,下面一起来看下如何实施 1.在GT_DATA中增加一个字段来用于下拉框的使用: TYPES:BEGIN OF ty_data, checkbox TYPE c, matnr TYPE mara-matnr, mtart TYPE mara-mtart, matkl TYPE mara-matkl, maktx TYPE makt-maktx, context TYPE char10,"用于下拉框 END OF ty_data. DATA gt_data TYPE TABLE OF ty_data WITH EMPTY KEY. 2.设置fieldcat属性: 设置context字段可输入,设置fieldcat-drdn_hndl = ‘1’. (这个1是下面下拉框对应的组,可以用2 3 4 5 6··· 来标记下拉框的组,以此来实现多个下拉框) FORM frm_set_fieldcat. DATA lv_pos TYPE i. DATA ls_fieldcat LIKE LINE OF gt_fieldcat. DEFINE %%append_fieldcat. lv_pos = lv_pos + 1. ls_fieldcat-col_pos = lv_pos. ls_fieldcat-fieldname = &1.

Grouping + aggregation of itab with table comprehensions

穿精又带淫゛_ 提交于 2020-01-06 08:15:12
问题 Rather typical task but I'm stuck on doing it in a beautiful way. For example, I need to find the last shipment for each vendor, i.e. to find delivery with the max date for the each vendor VENDOR DELIVERY DATE 10 00055 01/01/2019 20 00070 01/19/2019 20 00088 01/20/2019 20 00120 11/22/2019 40 00150 04/01/2019 40 00200 04/10/2019 The result table to be populated VENDOR DELIVERY DATE 10 00055 01/01/2019 20 00120 11/22/2019 40 00200 04/10/2019 I implemented this in a following way, via DESCENDING

Grouping + aggregation of itab with table comprehensions

走远了吗. 提交于 2020-01-06 08:14:15
问题 Rather typical task but I'm stuck on doing it in a beautiful way. For example, I need to find the last shipment for each vendor, i.e. to find delivery with the max date for the each vendor VENDOR DELIVERY DATE 10 00055 01/01/2019 20 00070 01/19/2019 20 00088 01/20/2019 20 00120 11/22/2019 40 00150 04/01/2019 40 00200 04/10/2019 The result table to be populated VENDOR DELIVERY DATE 10 00055 01/01/2019 20 00120 11/22/2019 40 00200 04/10/2019 I implemented this in a following way, via DESCENDING

TEST-INJECTION and TEST-SEAM in ABAP code

泄露秘密 提交于 2020-01-05 09:22:15
问题 I’m trying to use TEST-INJECTION and TEST-SEAM in my code. I have following code: CLASS lcl_undertest DEFINITION. PUBLIC SECTION. CLASS-METHODS mymethod RETURNING VALUE(r) TYPE string. ENDCLASS. CLASS lcl_undertest IMPLEMENTATION. METHOD mymethod. TEST-SEAM vypis. r = 'abc'. END-TEST-SEAM. ENDMETHOD. ENDCLASS. CLASS ltc_testclass DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FINAL. PRIVATE SECTION. METHODS test_method1 FOR TESTING. ENDCLASS. CLASS ltc_testclass IMPLEMENTATION.

TEST-INJECTION and TEST-SEAM in ABAP code

一笑奈何 提交于 2020-01-05 09:21:48
问题 I’m trying to use TEST-INJECTION and TEST-SEAM in my code. I have following code: CLASS lcl_undertest DEFINITION. PUBLIC SECTION. CLASS-METHODS mymethod RETURNING VALUE(r) TYPE string. ENDCLASS. CLASS lcl_undertest IMPLEMENTATION. METHOD mymethod. TEST-SEAM vypis. r = 'abc'. END-TEST-SEAM. ENDMETHOD. ENDCLASS. CLASS ltc_testclass DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FINAL. PRIVATE SECTION. METHODS test_method1 FOR TESTING. ENDCLASS. CLASS ltc_testclass IMPLEMENTATION.

Show duplicates in internal table

核能气质少年 提交于 2020-01-05 07:59:57
问题 Each an every item should have an uniquie SecondNo + Drawing combination. Due to misentries, some combinations are there two times. I need to create a report with ABAP which identifies those combinations and does not reflect the others. Item: SecNo: Drawing: 121 904 5000 double 122 904 5000 double 123 816 5100 124 813 5200 125 812 4900 double 126 812 4900 double 127 814 5300 How can I solve this? I tried 2 approaches and failed: Sorting the data and tried to print out each one when the value