Skip to Content
author's profile photo Former Member
Former Member

Input Help

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 02:15 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 28, 2008 at 09:50 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2008 at 09:53 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2008 at 09:54 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.