12-29-2012 9:20 AM
Hi expert...
am facing a problem in my program.
am having 4 fields in my screen,
i want to have dynamic search help in the first field(process code,see image) only when i click 'flag' button (i.e display<>edit ) .
actually i have written a program,but my problem is when i select value from search help,i want the value to display on all fields,currently it displaying on the 1st field only.
Am giving my code here, please help me..
FLOW LOGIC:
12-30-2012 8:58 PM
Regards,
Raymond
12-29-2012 10:28 AM
Askar Imran,
Attach function code to field of code and write following code inside MODULE status_0101.
IF flag = 'X' AND sy-ucomm = 'FLAG'.
ENDIF.
12-29-2012 11:48 AM
Actually Umar,
i want a dynamic search help,
as you are saying to assign Function code for field..
am not getting what you are saying..please read my thread.
thanks
Askar
12-29-2012 10:32 AM
Hi,
Just assign the selected values onto screen fields from work area..
12-29-2012 10:42 AM
If screen fields are different than work area than assign work area fields to screen fields.
12-29-2012 10:52 AM
Then convert the same as per the screen field data type and assign
try
condense workarea-field1. etc,.
Screen-field1 = workarea-field1
screen-field2 = workarea-field2
Regards,
Praveen
12-29-2012 11:45 AM
Thanks for your replies..
actually,am mapping values from internal table to screen field...
am not gettin any other values in return_tab (from FM)
12-29-2012 11:57 AM
Actually,i know how to map feilds,
thats not my problem..
am not getting all the values..
i.e the search help contains :
1) CODE 2) DESCRIPTION 3)CLASS 4) CLASS
now when i select value in search help,i want all these values to be displayed on the screen on their corresponding fields,
now,am getting only <1)code> in return_tab.
i want to get all values there,so that it can be mapped to screen fields.
Hope you got my question..
thanks.
Askar
12-29-2012 12:48 PM
Hi Askar,
The Function Module will F4IF_FIELD_VALUE_REQUEST return only selected value.
Based on selected value you have use select single query to get the remanining data from table to your work area.
Currently u r using the i_dshlp1 workarea.
Do mention the same work area of type zgen_pro_tab,
Check the values in work area of type zgen_pro_tab in debug mode.
if values comes, Then u assign those to ur screen values.
Regards,
Praveen GVS
12-30-2012 11:59 AM
yes,i have exactly done the way you are saying..
and the value comes in work area,and i have matched screen fields properly,
but its not displaying.
may be the problem is since am using
'POV'?
in debugging mode i checked first PAI loads,then PBO loads and finally POV loads.
so,the value, doesn't appear on the rest of field,
Thanks
ASKAR
12-30-2012 12:25 PM
You have to work around for code field in a way that PAI should trigger after POV then you will be able to display other fields on screen.You can try by assigning funtion code to code field.
12-31-2012 5:10 AM
Could you please tell me how to assign function code to field??
when i checked in screen painter it was not ready for input.
Thanks
ASKAR
12-30-2012 7:59 PM
Hi Askar Imran,
There should any event to capture it after dynamically generating the search help like enter or any button,then you can capture event in PAI and extract the data based on dynamic search help and map the data from work area to screen fields......It might work
Eg:- after getting the data into CODE field,after that there should be any event to capture that like enter or any button,write the event code in PAI.
12-31-2012 5:05 AM
Thank you for ur reply...
as u said,when i press enter or or any button to trigger the PAI it would work,
but, i want it be displayed,when clicking the search help..
Thanks
ASKAR
12-30-2012 8:58 PM
Regards,
Raymond
12-31-2012 5:06 AM
01-02-2013 3:34 AM