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

search help returns two fields

Former Member
0 Likes
659

Hi Friends,

There is a table BNKA that holds the bank country key(BANKS) and bank key(BANKL). In my dialog program, I have two fields for country key and bank key. Now, I want that there will be a search help for bank key, when user select a bank, I also want to get the selected bank country key. I mean that when user select a bank, I want to output; bank key and bank country key. When these values return I want to assign these values to my dialog fiels.

Is it possible to do this via SE11 and assign search help? Or is it possible this using F4IF_INT_TABLE_VALUE_REQUEST or another ways?

Thanks.

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
601

Hello Nkara

Have a look at my sample report <b>ZUS_SDN_F4IF_INT_TAB_VAL_REQ</b> which shows how to retrieve 2 fields from a search help. This technique can used to retrieve any number of fields from the search help.

Regards

Uwe

4 REPLIES 4
Read only

uwe_schieferstein
Active Contributor
0 Likes
602

Hello Nkara

Have a look at my sample report <b>ZUS_SDN_F4IF_INT_TAB_VAL_REQ</b> which shows how to retrieve 2 fields from a search help. This technique can used to retrieve any number of fields from the search help.

Regards

Uwe

Read only

0 Likes
601

Hi again,

Thanks for reply.

Now, my real purpose is returning the two values to dialog screen.

I have POV statement as;

PROCESS ON VALUE-REQUEST.

  FIELD : ITAB-BANKL
  MODULE TEST.

and my module is;

MODULE TEST INPUT.
  ITAB-BANKS = 'US'.
  ITAB-BANKL = '123456'.
ENDMODULE

.

As seen above I assign 'US' to BANKS although I am calling the POV module when pressing F4 for BANKL . But in result, only BANKL is assigned and BANKS is initial.

I want to assign BANKS field although pressing F4 for BANKL. But how can I do this?

Thanks.

Read only

0 Likes
601

Use the FM,

DYNP_VALUES_UPDATE to update the BANK .

Like

DATA BEGIN OF LNA_DYNPF OCCURS 1.

INCLUDE STRUCTURE DYNPREAD.

DATA END OF LNA_DYNPF.

   LNA_DYNPF-FIELDNAME  = 'ITAB-BANKS'.   " field name 
    LNA_DYNPF-FIELDVALUE = 'US'.   " value
    APPEND LNA_DYNPF.


    CALL FUNCTION 'DYNP_VALUES_UPDATE'
         EXPORTING
              DYNAME               = l_cporg        " your program
              DYNUMB               = SY-DYNNR  " your screen
         TABLES
              DYNPFIELDS           = LNA_DYNPF
         EXCEPTIONS
              INVALID_ABAPWORKAREA = 1
              INVALID_DYNPROFIELD  = 2
              INVALID_DYNPRONAME   = 3
              INVALID_DYNPRONUMMER = 4
              INVALID_REQUEST      = 5
              NO_FIELDDESCRIPTION  = 6
              UNDEFIND_ERROR       = 7
              OTHERS               = 8.

Regards,

Naimesh Patel

Read only

0 Likes
601

Hey,

you are perfect thanks.

10 points