cancel
Showing results for 
Search instead for 
Did you mean: 

Editable ALV : Need PERNR & ENAME on Pernr F4 help

Former Member
0 Kudos

Dear Friends,

I have created a GRID ALV for my customized HR module. In this ALV, there is a field PERNR and alongwith that there is another field ENAME.

PERNR field is editable & supported with F4 help. My requirement is like, when I change the PERNR, say, I clicked on F4 help (PREM - for PERNR) & select any PERNR, then automatically, the ENAME should get changed.

My requirement can also be achieved, if after getting the New PERNR, the user presses the ENTER button, then the ENAME of the PERNR should also get updated.

I tried to check the way with which SAP is going through the whole process by debugging (/H method).

But on clicking ENTER the control remains doesn't go anywhere, that means ENTER is not considered as an EVENT. Also, when I click on F4 Help button, the control remains in SAPLSLVC_FULLSCREEN program & it doesn't come in my Z report.

My problem can be solved in one of the following ways :

1). Can someone please tell me the way to get customized F4 help in GRID ALV & also how can I

populate ENAME alongwith PERNR in one go.

2). Any example code of OOPS ALV with this scenario. (I know, this can be done with OOPS

methods, but I'm novice in OOPS).

OR any other possible way, that you think can solve my problem.

Waiting for your replies Gurus ...

--

Thanks & Regards,

Mohit Grover

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Is this thread placed in the correct forum?

Gr., Frank

Former Member
0 Kudos

Mistakenly, this thread is not in the correct forum.

But still, any help here is welcome. I'll post this thread in another forum also.

Former Member
0 Kudos

hi,

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_NAME.

"FUNCTION MODULE
CALL FUNCTION 'F4_FILENAME'
* EXPORTING
*   PROGRAM_NAME        = SYST-CPROG "PROGRAM NAME
*   DYNPRO_NUMBER       = SYST-DYNNR
*   FIELD_NAME          = ' '
* IMPORTING
*   FILE_NAME           =      " P_NAME TYPE IBIPPARMS-PATH

"OBJECTS
CALL METHOD cl_gui_frontend_services=>file_open_dialog
*  EXPORTING
*    window_title            =
*    default_extension       =
*    default_filename        =
*    file_filter             =
*    with_encoding           =
*    initial_directory       =
*    multiselection          =
  CHANGING
    file_table              =
    rc                      =
*    user_action             =
*    file_encoding           =
*  EXCEPTIONS
*    file_open_dialog_failed = 1
*    cntl_error              = 2
*    error_no_gui            = 3
*    not_supported_by_gui    = 4
*    others                  = 5
        .
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

HAVE A GOOD DAY

REGARDS

SARVES

Former Member
0 Kudos

Dear Amuktha & Sarves,

Thanks for your replies, but I think you haven't read my question completely. The inputs that you are providing are for F4 help at selection screen, but I'm looking for something else.

I'm talking about the F4 Help on the output of GRID ALV. You can check the example BCALV_EDIT_08. In this, on 'SMOKER' field there is a search help attached. I need the similar type of search help, but I don't need to have that fro many Reference Table or reference Field directly, but I want to get that through my customized events, so that I can populate ENAME with PERNR directly on selecting PERNR only.

Hope you get my point.

If you have any other way round to resolve this issue, then pls. let me know about that.

Thank You ...

Former Member
0 Kudos

Can anyone provide me the guidance to do this ???

Former Member
0 Kudos

Can someone throw some light on this topic ?

I've checked standard BCALV reports. Those are a bit typical because those reports includes so many functionalities. If anyone had encountered this problem in the past & had came up with any solution, then provide your valuable help.

Thank You ...

Former Member
0 Kudos

Hi Mohit,

Use at selection-screen on value-request for p_name to get the F4 help!

Much Regards,

Amuktha.