2016 May 25 2:19 PM
Hi Friends,
I am enhancing the standard program using implicit enhancement (for Pricing report in V/LD).
This is Pricing report program which displays number of ALV lists based on selection parameters. The requirement is to make this ALV list with a new sorting order type such as condition type value, country name.
In my enhancement point, all the data (internal tables) are available like Fieldcat tables (FIELDCAT_AXX), sorting tables(IT_SORT_AXXX) and final data tables (T_POS_AXXX).
This AXXX can be derived from SORTTAB table, based on that I need to pick the other table values and do my modification.
For example, if i need to modify the record in T_POS_A100 then I have to READ or Loop this table and modify the record.
The data I have only condition tables like A100, A101 then using concatenate statement I will write FIELDCAT_ or IT_SORT_ to variable. After I need to use this variable as internal table for my read and loop statements.
So kindly help how to do this using dynamic internal table class statements.
Please note, I tried with following commands but no use and going run-time error.
IT_SORT_A004 type slis_t_sortinfo_alv (declared in the standard program and can't be changed)/
wa type w_tabname.
wa = IT_SORT_A004
CREATE DATA new_line TYPE (wa) OR
CREATE DATA cl_employees LIKE LINE OF ( wa ).
ref_descr ?= cl_abap_typedescr=>describe_by_data( p_name = wa ).
Thanks,
Hi Friends,
I am enhancing the standard program using implicit enhancement (for Pricing report in V/LD).
This is Pricing report program which displays number of ALV lists based on selection parameters. The requirement is to make this ALV list with a new sorting order type such as condition type value, country name.
In my enhancement point, all the data (internal tables) are available like Fieldcat tables (FIELDCAT_AXX), sorting tables(IT_SORT_AXXX) and final data tables (T_POS_AXXX).
This AXXX can be derived from SORTTAB table, based on that I need to pick the other table values and do my modification.
For example, if i need to modify the record in T_POS_A100 then I have to READ or Loop this table and modify the record.
The data I have only condition tables like A100, A101 then using concatenate statement I will write FIELDCAT_ or IT_SORT_ to variable. After I need to use this variable as internal table for my read and loop statements.
So kindly help how to do this using dynamic internal table class statements.
Please note, I tried with following commands but no use and going run-time error.
IT_SORT_A004 type slis_t_sortinfo_alv (declared in the standard program and can't be changed)/
wa type w_tabname.
wa = IT_SORT_A004
CREATE DATA new_line TYPE (wa) OR
CREATE DATA cl_employees LIKE LINE OF ( wa ).
ref_descr ?= cl_abap_typedescr=>describe_by_data( p_name = wa ).
Thanks,
2016 May 25 3:06 PM
Hi MANIKANDAN RAJASEKARAN,
please give details od Report and form name, enhance at end of or at begin of block. What ist produced result of report now, what is the expected result?
I do not understand what the above code lines are good for, your questions subject is misleading. Could be "ENHANCEMENT for standard report ALV sort needed"
Regards Clemens
2016 May 25 3:49 PM
Hi Clemens,
Sorry if the subject is not clear , yes you are right it is an enhancement but the actual goal is modifying the internal table records of the standard program using dynamic internal table.
I am creating the implicit enhancement for writing the standard program of Pricing report into new sorting order types.
You can check the standard Pricing report program V/LD.
Attached for better understanding
Exit point : where we can able to do changes using implicit enhancement
Alvlist: output of the Pricing report (current one) - 2 ALV list
cond table: Two condition tables so 2 alv list as output
Internal table with values : new sorting to happen for the two condition tables, here we need to call these tables dynamically and do our modification
I am able to concatenate with the condition table values like
Concatenate 'T_POS' sorttab-axxx into variable, now I have the internal table name as T_POS_A925 in my variable. I need to call these internal table records and do my changes (sorting new list based on country name instead country key)
Hope it is clear now.
Thanks
Please help.
2016 May 26 10:59 PM
Sort is an option in the pricing report configuration, so I'm confused why do you need an enhancement?
2016 Jun 01 4:31 PM
Maybe you just missed quotation marks?
wa = 'IT_SORT_A004'
instead of
wa = IT_SORT_A004
Kind regards,
Thomas
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |