Skip to Content
author's profile photo Former Member
Former Member

Value of the previous cell when I double click a cell in ALV Grid.

Hi !

Suppose I have an internal table GT_ITAB and I use ALV Grid to print it on the screen. The colums are as below:

Invoice No Invoice Data Customer No Amount


] [
] [

] [


90001231 15.01.2009 100024 5

Customer No Fields is Hot Spot and when I click it uses Call Transaction 'FD10N' and Skip First Screen.

But the Problem is that :

Callback subroutine that is defined for "i_callback_user_command" receives the input and

p_selfield type slis_selfield structure has the value by means of p_selfield-value.

Problem : How can I get also the value of Invoice Data Cell. I need "15.01.2009" to set the Year field of FD10n.

I know that it is possible because SAP has examples of it.

Please advice.

Erkan VAROL.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 16, 2009 at 08:54 AM

    Hi ,

    In teh structure slis_selfield there is a field tabindex , you can get the index of the record selected from this field and use this to read the internal table being displayed in the alv to get the entrired row.



    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.