Application Development and Automation 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: 
Read only

Value help based on condn.

Former Member
0 Likes
1,208

Hi experts,

I have created a module-pool n I have f4 based on value request.

But I need to have diff f4 values based on if else condn.

d field is mat no.(matnr).

der r 2 condns.

in 1 condn I have values which i m populating it in f4 thru f4 value request FM.

another is a std f4 help which is MAT1.

I need to call dese f4 based on conditions.

ne idea how can v achieve dis.

I want d std f4 help to triger based on 1 condn n oder f4 values(which i have in internal table) based on oder condn.

Thanx in advance.

9 REPLIES 9
Read only

Former Member
0 Likes
1,156

Hi,

Try putting your conditioin in

Module Pool event "PROCESS ON VALUE"

Regards

Milan

Read only

Former Member
0 Likes
1,156

Dear Anil,

Use event

At selection-screen on value-request for S_field.

and then use these FM

DYNP_VALUES_READ

PLM_GET_SUBORDINATE_EQUIPMENTS

Hope this will solve your proble.

Regards,

Vijay

Read only

0 Likes
1,156

Dear Vijay,

Can u elaborate it.

I m not clear.

Thanx.

Read only

0 Likes
1,156

apologies for the language.

will not be repeated.

Anil.

Read only

0 Likes
1,156

Hi, Try this way.


PROCESS ON VALUE-REQUEST.
FIELD MARD-MATNR MODULE f4_for_matnr.

MODULE f4_for_matnr INPUT.
IF condition 1
" Use F4IF_INT_TABLE_VALUE_REQUEST function module to build internal table with values and display as f4 help. 
else condition 2.
 " Use DD_SHLP_CALL_FROM_DYNP function module to show search help created in dictionary.
endif.
ENDMODULE.
I hope that it helps you. Thanks Venkat.O

Read only

0 Likes
1,156

Thanks Venkat.

My problem is solved.

Anil.

Read only

0 Likes
1,156

Hi all,

In my dialog programming table control i am having 10 column fields.

In one of my column field i am having List box with different status types.

user will select any status in the column field I have to show related documents for that status when user is going to the document column field..

I have used Process on value-request .

I want to populate the F4 values based on user selected in the status column field ( List box)

User wonu2019t select the ROW of the table. Just they will go any row with out selecting ROW just they change the status from the list box.

I want to find how I will know the latest status value they changed while populating F4 values for the document of the row.

I tried

get cursor line ln.

I tried with get cursor field fl vale g.

Even then I am not getting the latest value of the status.

but I can find the line . I donu2019t know the entire row (Work area) of the line.

I donu2019t know the exact changed value of the status .

if I am getting the changed status value I will get the related document from the table and populate the F4 values.

if i am trying to find the changed field value from the internal table i am not getting new changed value only old value available.

I need the latest changes of entire row field values

Kindly help me how to proceed further.

thanks in advance.

sharma

Read only

sridhar_meesala
Active Contributor
0 Likes
1,156

Hi,

Please avoid using SMS language in posts.

Thanks,

Sri.

Read only

Former Member
0 Likes
1,156

Hi,

In PROCESS ON VALUE-REQUEST event write the module for the field which you want to dissplay the F4 values.

In the screen if you define that MATNR field from the table, automatically that F4 will come. so, in the module if the 1 st condition satisfies do not call the F4 help function module. so it will get the standard F4 values. if it satisfies the 2nd condition then only call the F4 help FM. it will display F4 values from your internal table.

Regards,

Bhavana