Skip to Content

PAI is not triggered after I choose value in F4

Hello experts,

I fight with the following problem:

On my screen I use input field (ucf_s_coi_afd03_ct-xrproc_param) and I coded the F4 help for it manually

PROCESS ON VALUE-REQUEST.
  FIELD ucf_s_coi_afd03_ct-xrproc_param
      MODULE req_xrproc_param_2006.

After I press f4 on this field, the values are correctly listed but after I choose one value (double click), I would expect that the PAI is triggered but it is not. I have to press ENTER, only then.

Is there a way how to trigger the PAI after the value is chosen?

I found one way, but I don't want to use it:

If I change the input field into "List box" or "List box with key", then I can assign function code to it and if I do that, then it works - PAI is triggered after value is chosen. However, I don't want to use list box, I need standard input field.

Any ideas?

Regards,

Tomas

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Oct 06, 2008 at 11:06 AM

    may be you can try with Respond to double click option, just check the option for the input field and see..

    Enable the F2 function in the status.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 06, 2008 at 09:51 AM

    Hi Tomas,

    When you create a list box in SE51, you need to assign the Function Code to that. You see this on the right side of the screen as Fct screen. Then you need to do the coding according to you functinality .

    Case sy-ucomm.

    WHEN 'SELECT'.

    ****your code.

    endcase.

    This should work.

    Thanks,

    Manjula.S

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 06, 2008 at 10:02 AM

    The PAI is never called automatically in this situation. Try adding the following to the end of your POV module to reset your OK_CODE (or whatever variable your are using to hold your SY-UCOMM value). This has always worked for me to trigger the PAI immediately.

    *   Trigger the PAI immediately to get the VAT rate / amoount
    *    for the VAT code.
         ok_code = 'XXXX'.
         SUPPRESS DIALOG.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 06, 2008 at 11:56 AM

    hi,

    F4 trigger POV.so PAI will not trigger.

    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.