cancel
Showing results for 
Search instead for 
Did you mean: 

Help on Value Request

Former Member
0 Kudos

hi

i am developing a simple screen program. in this program when i give a customer no. i/o field (kna1-kunnr) then i should get his relavent order details from vbak table ( in a screen table).

and i want to give the F4 help on kna-kunnr field.

i have gone through the sample programs in abapdocu which he has given for sflight-connid field but i am unable to do it for my program.

when i press the f4 key it gives the following messg.

Error messg:- no active external product for the fuzzy search.

at the domain level for the data element kunnr there is a value table given (kna1).

and one more query. there are two buttoms in my screen program Ok & cancel and the kna1-kunnr is a mandatory field what should be the logic i should follow so that the with out entering the mandatory feild i should get out of the program when i press cancel buttom. can u example this with a simple code.

regards,

maqsood

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Maqsood,

Why not you use the default search help available for this field "<b>DEBI</b>?".

Regards,

Siva

Former Member
0 Kudos

Hi

When you create a file dof name KNA1-KUNNR , system will prompt you to accept the dictionary attributes. If you accept it the serach help will automatically be called from screen. Delete your i/o field , create a new field with name KNA1-KUNNR. Make sure your program has

" Tables : KNA1 ." declared in TOP Include.

For function code "Cancel" in GUI status just mark the function type as "E" . Default is space.

In the SCREEN PAI

MODULE PROG_EXIT AT EXIT COMMAND.

In program.

MODULE PROG_EXIT.

SET SCREEN 0.

LEAVE SCREEN.

ENDMODULE.

Cheers

Former Member
0 Kudos

hi sanjay

thanx for ur quick reply.

for the customer no. i/o field i did the same thing exactly what u said but it was of no use.

i too thought that if there is a value table at the domain level of kunnr data element then it should show me all the entries for the kunnr from the kna1 table.

and for the cancel button issue i will try this today in the lab i hope that it will work.

for the work around of the f4 help what i did is that under the PROCESS ON VALUE-REQUEST event i have called a moudle program FIELD KNA1-KUNNR MODULE HELP_FOR_KUNNR.

in that module i have called a function POPUP_WITH_TABLE_DISPLAY

but this is just a work around but i want the exact solution for it.

regards,

maqsood

Former Member
0 Kudos

hi,

remove the following things first

existing field (KNA1-KUNNR) from screen

PROCESS ON VALUE-REQUEST event

FIELD KNA1-KUNNR MODULE HELP_FOR_KUNNR

Insert KNA1-Kunnr from Dictionary/Program fields (F6)

first add KNA1 in the text box - > Choose from Dictionary

then select - kna1-kunnr -> enter

this fields will get into screen and it will have F4 help

I hope this will solve your problem

cheers,

sasi

Former Member
0 Kudos

you do it in this way.

in the screen painter

previous to attributes button , there is one more button.

click that . a new screen comes here you enter the table kna1 and select the field required and press enter now the field will be selected place it where ever required

by doing that automatically the search help will be added

if not clear pls come back