Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CMD executions in table class interface via ABAP

Former Member
0 Likes
414

Hi SDN Community,

Would it be possible to code in ABAP , and Command statements that can be placed in the web templates.

can this be done in the Table class interface.

For example, the command to expand a hierarchy node that is produced in RSRT2, is

CMD=SET_DRILL_STATE&DATA_PROVIDER=DP=234D5W1FC9W6311O66UCVSRN9E2&IOBJNM=4D5W27AIW32VTOY02REHCSL6Y&TOGGLE_STATE=X

How can this if possible be placed in a Table Class Interface, and coded in ABAP to achieve the expansion of the hierarchy node.

thank you.

Simon

1 REPLY 1
Read only

Former Member
0 Likes
368

Hi Thomas,

I have been working with a brilliant ABAP'er, and together we

implemented a solution in the START method, that makes use of the

following methods and expands all the hierarchy nodes at start.

And this class can be omitted in the Print all view we have formulated

as only a collapsed view has been specified there.

thank you.

Simon

I found this all in that class interface CL_RSR_REQUEST

for N_R_REQUEST

for N_R_DATA_SET

Initial Value: Set Drilldown State of a Hierarchy

Description: 'SET_DRILL_STATE'

this looks like the method that gets executed. what do you think?

can you code this in the program

constants C_CMD_SET_DRILL_STATE type RSRCMDID

value 'SET_DRILL_STATE'. "#EC NOTEXT

methods SET_DRILL_STATE

importing

value(I_AXIS) type RRXAXIS optional

value(I_POSITION) type I optional

value(I_FOCUS_IOBJNM) type RSIOBJNM optional

value(I_DRILLSTATE) type RRXDRILLSTATE optional

value(I_TOGGLE) type RS_BOOL default RS_C_FALSE

!I_R_PARAMETER type ref to CL_RSR_PARAMETER optional

exporting

!E_KEEP_LAST_LINES type I

!E_KEEP_FIRST_LINES type I

!E_NEW_LINES_FROM type I

!E_NEW_LINES_TO type I

!E_NODE_POSITION_FROM type I

!E_NODE_POSITION_TO type I

exceptions

NO_PROCESSING

X_MESSAGE .