cancel
Showing results for 
Search instead for 
Did you mean: 

Abt getting values from first view and using those values in next view

Former Member
0 Kudos

Hi Experts,

i have a scenario in which when i input the values in alv and finish entering the values in an entire row....on clicking copy button i want a next view triggered in which i want the entered values(which i entered in a row)to be displayed in a column form(an inverted view of the same row in column format)..

i m sure u brainy people can certainly help me out with this....

thnx and regards...

Runali.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi runali....

Even i hv the same requirement....Can u tell me how did u achieve this one...

Jagruti...

Former Member
0 Kudos

Hey guys...thnx so much for ur replies...but i kno the navigation concepts my main concern was displaying the dataentered in row to displayed in another view in 'COLUMN'....i dont know how to go about it...i hope i get some hints from u champs..

thnx and regards...

Runali...

Answers (2)

Answers (2)

Former Member
0 Kudos

hi ,

I ahve done it ...

Let me tell you procedure .

Have you ever used context of Compenent controller .

1) Identify data that you want add to context of component controller .

2) On click of add add it to context

3) On another view try reading context of component controller ..

Have sample code for the same

                                  • Read Context ND_SEL_VALUES*********************************************

                                  • Add Entries ***********************************************************

DATA:

node_nd_sel_values TYPE REF TO if_wd_context_node,

elem_nd_sel_values TYPE REF TO if_wd_context_element,

stru_nd_sel_values TYPE wd_this->element_nd_sel_values,

RELATION_NO TYPE I.

  • navigate from <CONTEXT> to <ND_SEL_VALUES> via lead selection

node_nd_sel_values = wd_context->get_child_node( name = wd_this->wdctx_nd_sel_values ).

  • get element via lead selection

elem_nd_sel_values = node_nd_sel_values->get_element( ).

stru_nd_sel_values-STEP_ID = stru_nd_worlflow-STEP_ID.

stru_nd_sel_values-STEP_DESC = stru_nd_worlflow-STEP_DESC.

stru_nd_sel_values-ORG_UNIT = stru_nd_worlflow-ORG_UNIT.

stru_nd_sel_values-ORG_UNIT_DESC = stru_nd_worlflow-ORG_UNIT_DESC .

stru_nd_sel_values-REL_NO = RELATION_NO .

node_nd_sel_values->BIND_ELEMENT( stru_nd_sel_values ).

*****************************************************************************************

Here <b> node_nd_sel_values </b> is defined in Compoenent controller ...with cardinality 1..n and lead_selection flag true .

Now you just have read this same context in another view,

Important thing : First add node and all to component controller and then map it to both view where you want that Context node ... then only you will be able to read it from wizard .

Hope I have answer you well

Cheers

Parry

Former Member
0 Kudos

Hi Runali.

How do you want to decide which row has to be displayed in the next view?

Is the row which just was changed selected in ALV?

If so just create a node of the same structurwe with cardinality 1:1. On copy just

copy the lead selection of the node which is bound to the ALV to the new node.

Create the new view, map the new context node and add a transaparent container

-> right click and choose create container form. Select the new node and choose

text field as cell editor.

In the copy action just fire the plug that navigates to the new view.

Cheers,

Sascha