2006 Dec 20 12:59 PM
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..:)
2006 Dec 20 1:00 PM
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
2006 Dec 20 1:03 PM
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
2006 Dec 20 1:04 PM
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.
2006 Dec 20 1:09 PM
Hi Adibo ,
In the event AT LINE SELECTION are you getting the value on which you clicked.
Regards
Arun
2006 Dec 20 1:11 PM
use HIDE to hide the fields...
then at line selection.
when field1...
call va03 ...............
when field10
call mm03..........
2006 Dec 20 1:19 PM
hi Ramesh,
but if I use WHEN I have to use CASE aswel..
CASE SY-???
when wa_output-vbeln
................
Adibo
2006 Dec 20 1:12 PM
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
2006 Dec 20 2:05 PM
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.