Author Archives: Ekrem Güngörmez

https://tr.linkedin.com/in/ekremgungormez

Add New Tab to BP

Step by step explanation of how to add a new tab to BP screen. Add new fields to standard structure incl_eew_kna1. incl_eew_kna1 is included in KNA1. Fields will be in KNA1 automatically.              Add same fields to incl_eew_kna1_x. Make sure that data element must be char1 for ex. bapiupdate.  Create a Z function group. IN top include define varibles:            TABLES: kna1. constants: table_nam
Read More »

Data Declaration in ABAP on HANA

With ABAP on HANA we can define variables/internal tables/structures/field symbols easily and quickly. Lets see some examples of data declarations. Here is a simple data declaration for a variable. SELECT SINGLE ebeln FROM ekpo INTO @DATA(lv_ebeln) WHERE banfn = ’100000’ AND loekz = @space. An internal table/structure definiton. Select matnr, spras, maktx into table @data(lt_makt) from makt where matnr in @lr_matnr. Loop at lt_makt into data(ls_makt). .. End
Read More »

How to Reverse Goods Issue

WS_REVERSE_GOODS_ISSUE function module is used to reverse goods issue. Here is an example of function module. lv_tcode = 'VL09'. lv_vbtyp = 'J'. CALL FUNCTION 'WS_REVERSE_GOODS_ISSUE' EXPORTING i_vbeln = p_vbeln i_budat = p_budat i_tcode = lv_tcode i_vbtyp = lv_vbtyp TABLES t_mesg = lt_mesg T_VBAPF
Read More »

MARA Custom Fields Update Problem

To update custom fields on mara with BAPI_MATERIAL_MAINTAINDATA_RT, EXIT_SAPL1001_003 must be activated  and custom fields must be mapped in user exit but writing code in user exit is not enough. Also a customization is neeeded. Go to t-code SPRO press F5. Logistic general-material master-field selection and click to assign fields to field selection groups. add your custom fields here and assign a number for them. Check note 568513 for details. Try to update fields again and enjoy the
Read More »

How to Get Component List of Structure Dynamically

The code below will be enough to get components of a/dynamic structure. I used field symbol in my example, if the structure’s name is known it can be given to the “describe_by_data” method directy.      DATA: ls_comp TYPE abap_componentdescr, ls_stru TYPE REF TO cl_abap_structdescr, lt_comp TYPE STANDARD TABLE OF abap_componentdescr WITH KEY name. FIELD-SYMBOLS: <lfs_first>. ***Assign field symbol here ls_stru ?= cl_abap_typedesc
Read More »