abap

EKPO fields not updated after PROCESS_ITEM method set_data in ME21N

 ̄綄美尐妖づ 提交于 2021-01-29 06:10:09
问题 I'm trying to change field WEORA and BSTAE in ME21n through BADI me_process_po_cust, method PROCESS_ITEM. I have successfully changed the value in the screen, BUT when I saved the PO, table EKPO is not updated with the new value. Am I missing something? Do I need to commit? DATA: ls_mepoitem_set TYPE mepoitem. DATA: cl_po TYPE REF TO cl_po_header_handle_mm. DATA: ls_mepoitem TYPE mepoitem. FIELD-SYMBOLS: <fs_item> TYPE mepoitem. ls_mepoitem = im_item->get_data( ). ls_mepoitem_set = ls

ALV refresh problem while navigating from user command

核能气质少年 提交于 2021-01-29 05:30:55
问题 I have 2 screens 7000 and 7001, 7000 screen contains one button when we click on it it has to navigate to the 7001 screen, but it was not working as expected. SCREEN 7000 also have some details to display as an alv. screen was navigating to screen 7001 but the data was not getting refresh. can any one help on it. I am using alv grid container. for both the screens i am using same alv grid Sample code: screen 7000 PAI: WHEN 'DISPLAY'. call SCREEN 7001. screen 7001 PBO: GET REFERENCE OF m

Default comparison operand in SELECT WHERE condition

一个人想着一个人 提交于 2021-01-29 04:42:30
问题 I have a table CategoryColours , if a category is not found, it should return the colors from the default category "*". Example if the table contains these lines: Category Color * white * black 1 red 1 blue 1 green 1 black If I search the category "1", the query should get the 4 colors. If I search the category "2", which has no records in the table, the query should get the 2 colors from the category "*". Is it possible to use OpenSQL to get the exact list that I need in a single statement?

Default comparison operand in SELECT WHERE condition

谁说胖子不能爱 提交于 2021-01-29 04:37:33
问题 I have a table CategoryColours , if a category is not found, it should return the colors from the default category "*". Example if the table contains these lines: Category Color * white * black 1 red 1 blue 1 green 1 black If I search the category "1", the query should get the 4 colors. If I search the category "2", which has no records in the table, the query should get the 2 colors from the category "*". Is it possible to use OpenSQL to get the exact list that I need in a single statement?

How to get the max date per month

烂漫一生 提交于 2021-01-08 09:46:36
问题 I have a table like kunnr date posnr 30001 28/5/2017 1 30001 25/5/2017 2 30001 15/5/2017 3 30001 25/4/2017 4 30001 20/4/2017 5 30002 15/5/2017 6 30002 25/4/2017 7 I want for every new kunnr to get the record with the max date per month, namely the max for May and max for April etc. OK, I will sort the table loop at it and for every new kunnr .... how I will get the record for max date for each month? Thanks in advance Elias PS: sth went wrong and I realise that I do not get what I want. I

Display an internal table?

妖精的绣舞 提交于 2021-01-07 06:26:36
问题 I have to read some data from a table and display it. The program starts but I don't know how to display any of the data I've selected. I want to put it out as a table. I honestly don't even know if the following code is correct. REPORT ZT_THIEMANN_TEST. types : begin of ts_output, object_id type CRMD_ORDERADM_H-object_id, created_by type CRMD_ORDERADM_H-created_by, end of ts_output, tt_output type table of ts_output. PARAMETERS Mel_Nr TYPE CRMD_ORDERADM_H-Object_ID obligatory. data gt_output

Display an internal table?

匆匆过客 提交于 2021-01-07 06:26:28
问题 I have to read some data from a table and display it. The program starts but I don't know how to display any of the data I've selected. I want to put it out as a table. I honestly don't even know if the following code is correct. REPORT ZT_THIEMANN_TEST. types : begin of ts_output, object_id type CRMD_ORDERADM_H-object_id, created_by type CRMD_ORDERADM_H-created_by, end of ts_output, tt_output type table of ts_output. PARAMETERS Mel_Nr TYPE CRMD_ORDERADM_H-Object_ID obligatory. data gt_output

How to consume a CDS from ABAP SQL using an association value in the WHERE condition?

北城余情 提交于 2021-01-04 09:20:28
问题 I have a CDS view for notifications header with an association to their status define view ZNOTIF as select from qmel as notif association [0..*] to ZNOTIF_STATUS as _status on _status.object_num = notif.objnr { key notif.qmnum as notif_id, notif.objnr as object_num, notif.qmart as type, notif.qmtxt as description, _status } Now I would like to consume this CDS in ABAP selecting all the notifications with an specific status (and without incrementing cardinality if possible). Something like

How to transpose an internal table rows into columns?

只谈情不闲聊 提交于 2021-01-03 07:02:00
问题 I want to transpose my internal table rows into column and i want to fix the first column,i am trying to do it with the following code but i am not getting the expected result....it is not converting all the rows into columns *Types Declaration Types: BEGIN OF ty_t001w, ekorg TYPE t001w-ekorg, werks TYPE t001w-werks, name1 TYPE t001w-name1, END OF ty_t001w. **Field Symbols Declaration FIELD-SYMBOLS: <fs1> TYPE any, <fs2> TYPE any. **Internal table and work area declaration DATA: it1_col_row

How to transpose an internal table rows into columns?

给你一囗甜甜゛ 提交于 2021-01-03 06:57:31
问题 I want to transpose my internal table rows into column and i want to fix the first column,i am trying to do it with the following code but i am not getting the expected result....it is not converting all the rows into columns *Types Declaration Types: BEGIN OF ty_t001w, ekorg TYPE t001w-ekorg, werks TYPE t001w-werks, name1 TYPE t001w-name1, END OF ty_t001w. **Field Symbols Declaration FIELD-SYMBOLS: <fs1> TYPE any, <fs2> TYPE any. **Internal table and work area declaration DATA: it1_col_row