Application Development 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: 

AT LINE-SELECTION of field?

Former Member
0 Kudos
181

hello,

is this possible..

In a repost I have 10 fields..

If I click on filed 1 it must open va03

and if I click on field 10 it must open the same list..

Now I have this..

AT LINE-SELECTION .

READ LINE sy-lilli FIELD VALUE wa_output-vbeln.

CHECK NOT wa_output-vbeln IS INITIAL.

SET PARAMETER ID: 'AUN' FIELD wa_output-vbeln.

CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.

Adibo..:)

8 REPLIES 8

Former Member
0 Kudos
107

Hi ,

Yes it is possible ,

Please debug the program and see if you are able to retrieve the value into the field wa_output-vbeln.

Regards

Arun

Former Member
0 Kudos
107

Hi Adibo,

First u need to hide the field value, using HIDE keyword and the u need to pass these values to the set parameter id and then to Call transaction.

U hide both first and 10th field.

Regards

Kannaiah

0 Kudos
107

Yes, something like this..

AT LINE-SELECTION .

WHEN wa_output-vbeln.

READ LINE sy-lilli FIELD VALUE wa_output-vbeln.

CHECK NOT wa_output-vbeln IS INITIAL.

SET PARAMETER ID: 'AUN' FIELD wa_output-vbeln.

CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.

WHEN wa_output-kunnr.

perform open_list.

0 Kudos
107

Hi Adibo ,

In the event AT LINE SELECTION are you getting the value on which you clicked.

Regards

Arun

Former Member
0 Kudos
107

use HIDE to hide the fields...

then at line selection.

when field1...

call va03 ...............

when field10

call mm03..........

0 Kudos
107

hi Ramesh,

but if I use WHEN I have to use CASE aswel..

CASE SY-???

when wa_output-vbeln

................

Adibo

Former Member
0 Kudos
107

Hi Adibo,

U can try this code:

LOOP AT i_display INTO wa_display.

WRITE:/1 wa_display-matnr,

20 wa_display-matkl,

47 wa_display-werks,

53 wa_display-dispo,

60 wa_display-bstma.

FORMAT INTENSIFIED ON

COLOR = 4

HOTSPOT ON.

HIDE: wa_display-matnr, wa_displaybstma.

ENDLOOP.

AT LINE-SELECTION.

SET PARAMETER ID 'MAT' FIELD p_matnr.

CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.

Regards,

Kannaiah

Former Member
0 Kudos
107

answer:

AT LINE-SELECTION .

GET CURSOR FIELD cursor_field

VALUE field_value.

CASE cursor_field.

WHEN 'WA_OUTPUT-VBELN'.

READ LINE sy-lilli FIELD VALUE wa_output-vbeln.

CHECK NOT wa_output-vbeln IS INITIAL.

SET PARAMETER ID: 'AUN' FIELD wa_output-vbeln.

CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.

WHEN 'WA_OUTPUT-KUNNR'.

READ LINE sy-lilli FIELD VALUE wa_output-kunnr.

CHECK NOT wa_output-kunnr IS INITIAL.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

input = wa_output-kunnr

IMPORTING

output = pa_kl.

var = 'order'.

PERFORM schrijf_header.

PERFORM naar_het_scherm USING var.

ENDCASE.