cancel
Showing results for 
Search instead for 
Did you mean: 

Input Help

Former Member
0 Kudos

Hi Experts,

My scenario is In my view I have two Input fields. In the First Input field displays Plant number. For thet I used Standard Search help. It works fine.

Then in my second Input field, Based on Plant only the material numbers should displayed.

I don't know how to achieve this.

Pease help me anybody on this issue.

Thanks,

Points Assured.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi jasmine,

I have done this same coding already.

1. plant number field set the properties value & events. value is nothing but the attribute u have created(just bind that one). Under events onenter property is there.Click on binding u will get one window there u have to specify the action name( any name u can give) & description.

2.Double Click on the action name which u have given.It will move on to methods.There u have to write the code.

data:

lr_node type ref to if_wd_context_node,

lt_sflight TYPE STANDARD TABLE OF sflight,

w_sflight like line of lt_sflight,

itemlist type standard table of if_view3=>element_carrid,

w_screen like line of itemlist,

v_text1 type string,

v_index type i,

v_text4 type string.

lr_node = wd_context->get_child_node( 'CARRID' ).

lr_node->GET_STATIC_ATTRIBUTES_TABLE( importing table = itemList ).

v_Index = lr_node->GET_LEAD_SELECTION_INDEX( ).

clear w_screen.

read table itemList into w_screen index v_Index.

v_Text4 = w_screen-value.

select connid from sflight into v_text1 WHERE carrid = v_text4.

wd_Context->set_Attribute( exporting value = v_Text1 NAME = 'VALUE1' ).

w_sflight-connid = v_text1.

endselect.

note: lr_node , itemlist = u can give any name.

if_view3=>element_carrid = here view3 is the viewname, carrid is the node name which u have created in context tab.

wd_Context->set_Attribute( exporting value = v_Text1 NAME = 'VALUE1' ) = here VALUE1 is the attribute name.

v_text1, v_text4 , v_index = these are variables.

w_sflight is the workarea.

lt_sflight is the internal table

try this. u will get the answer. If u have any doubts let me know.

Please give me rewards..

shyja

Edited by: Shyja on Jan 29, 2008 3:17 AM

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Jasmine ,

you can achieve this in two ways.

1. Use Custom ovs and create search help based on the plant entered

2. make the plant field as a drop down., select materials from material table based on the plant entered on the first filled to an itab. then map the itab to the dropdown.

Regards

Sarath

Former Member
0 Kudos

hi jasmine.....

you can either have na ovs or create a custome table with one field and update that field with the values corresponding to the first input fields (plant)..... create a search help for that and assign to the second field.

---regards,

alex b justin

Yashpal
Active Contributor
0 Kudos

Hi ,

You have to create OVS for the material field.. see the link below....

http://help.sap.com/saphelp_nw04s/helpdata/en/f6/501b42b5815133e10000000a155106/frameset.htm and see the node INPUT HELP under the ADVANCE CONCEP node...

Regards

Yash