Application Development 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: 

Mapping a Input help field

Former Member
0 Kudos

I have a table control with CODE and DESCRIPTION as columns,first column is CODE and has a check table associated with it.So i press F4 for input help,to get the values for the table control.In the input help screen i get the CODE eg'01' and its Description eg'Order'.

so i select the row that i need and press enter.

Now in my Table control the selected row doesnt appear fully,Only the Field CODE is getting filled but the Field DESCRIPTION is not coming.

Is there any easier way to get the DESCRIPTION.

your help please.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Can Give u an Idea based on this information.

You can make description field in that table control of limited size, say restrict it to CHAR 100. and fill this table with append table.

it_data-code = wa-code.

it_data-description = wa-description(100).

append it_data.

Hope this will help you,

Darshan Patel

    • Reward Points if u find this helpful.

5 REPLIES 5

Former Member
0 Kudos

Hi Can Give u an Idea based on this information.

You can make description field in that table control of limited size, say restrict it to CHAR 100. and fill this table with append table.

it_data-code = wa-code.

it_data-description = wa-description(100).

append it_data.

Hope this will help you,

Darshan Patel

    • Reward Points if u find this helpful.

former_member194623
Participant
0 Kudos

Hi Raja,

<b>Create a Search Help in Txn SE11 -</b>

1. Enter check table name in Selection Method

2. Add both CODE and DESCRIPTION as Search Help Parameter - Both of them as EXP.

<b>Assign Search help to table / structure field -</b>

1. Go to structure / table by which you have declared your internal table.

2. Select CODE field and click on search help.

3. Propose both CODE and DESCRIPTION fields as fields in your structure / table.

Hope this will solve ur problem.

Regards,

Manish Joshi

    • I hope u know how to award points

Former Member
0 Kudos

Thanks ppl for your valuable inputs,

As i am not authorised to create Search helps.

I am mapping it using POV.

0 Kudos

Hi Raja,

If you want to do it through code in POV, As you might know PBO is not called when you select a value from F4 help.

So, if you are thinking of pushing value into DESCRIPTION field based on the selected value of CODE field. The value will not get reflected in DESCRIPTION field after value selection.

Only way you can populate value in DESCRIPTION field without even firing PBO is to use FM - "DYNP_VALUES_UPDATE". Enter parameters -

DYNAME - program name

DYNUMB - screen number

Enter field data in DYNPFIELDS like this -

LT_DYNPFIELDS-FIELDNAME = <DESCRIPTION SCREEN FIELD>.

LT_DYNPFIELDS-STEPL = <CURRENT LINE NO>. "get it from table control's current line eg - tabctrl-current_line

LT_DYNPFIELDS-FIELDVALUE = <value to be filled in DESCRIPTION field>.

APPEND LT_DYNPFIELDS.

Regards,

Manish Joshi

Former Member
0 Kudos

Hi Manish,

I have used the Function module 'DYNP_VALUES_UPDATE'.Now its throwing a runtime error mentioned below.

Runtime errors: CALL_FUNCTION_CONFLICT_LENG

Except. CX_SY_DYN_CALL_ILLEGAL_TYPE.

Short text: Type conflict when calling a function module

the function module was called incorrectly.

Below is the code i implemented.

  • ws_dynpfields-fieldname = wc_scrfld.

  • ws_dynpfields-stepl = tc_1017-current_line.

  • ws_dynpfields-fieldvalue = ws_hssr-text.

*

  • APPEND ws_dynpfields TO wt_dynpfields.

*

  • CALL FUNCTION 'DYNP_VALUES_UPDATE'

  • EXPORTING

  • dyname = 'sapmzapp01'

  • dynumb = '1008'

  • TABLES

  • dynpfields = wt_dynpfields

  • EXCEPTIONS

  • invalid_abapworkarea = 1

  • invalid_dynprofield = 2

  • invalid_dynproname = 3

  • invalid_dynpronummer = 4

  • invalid_request = 5

  • no_fielddescription = 6

  • undefind_error = 7

  • OTHERS = 8.

  • IF sy-subrc <> 0.

  • MESSAGE e800(zmdb_mda_supplier).

  • ENDIF.

The above code is in screen USER COMMAND OF 1017(POV-input help screen).

wt_dynpfields is the internal table.

and its fields are fieldname,stepl and fieldvalue

ws_dynpfields is the workarea of the internal table.

wc_scrfld-Constant with value zbut0000qnnyxa-ztfldg6h7np'(the description field name of the screen 1008 where i want the description value to get in automatically after selecting from input help)

ws_hssr-text= The Work area containing the value 'eg ORDER'.

kindly get back immediately....