2008 May 26 12:39 PM
Hi all
This is how my reqirement goes.I have a list of sales orders numbers and delivery order numbers.Now if i click on one of th sales order number it has to go to the transaction VA01 and if i clivk on one of the deleivery order number it has to go to VF01 transaction.
With Regards
Vijay G
Hi all
This is how my reqirement goes.I have a list of sales orders numbers and delivery order numbers.Now if i click on one of th sales order number it has to go to the transaction VA01 and if i clivk on one of the deleivery order number it has to go to VF01 transaction.
With Regards
Vijay G
2008 May 26 12:50 PM
hi,
use get cursor.
hi I think its waste of using VA01 use VA03 and also VF01 use VF03
if your internal table is of this way
data : begin of itab occurs 0,
vbeln_vbak like vbak-vbeln,
vbeln_likp like vbak-likp,
end of itab.
data : fnam(10),
fval like vbak-vbeln,
var(10) type n.
In the event
at line-selection.
get cursor field fnam value fval.
if fnam = 'VBELN_VBAK'.
var = fval.
set parameter id 'AUN' field var.
call transaction VA03 .
else.
var = fval.
set parameter id 'VF' field var.
call transaction VF03.
endif.
reward if helpful
prasanth
2008 May 26 12:51 PM
2008 May 26 12:54 PM
TRY THIS:
generate Hotspot on for these two fields
AT LINE-SELECTION.
GET CURSOR FIELD FNAM VALUE FVAL.
CASE SY-LSIND.
WHEN 1.
IF FVAL = VBELN-VBAK
CALL TRANSACTION 'VA03'
ELSE.
IF FVAL = VBELN-LIKP
CALL TRANSACTION 'VA03'
ENDIF.
ENDCASE
Edited by: Richa Khosla on May 26, 2008 1:55 PM
THANKS
plz reward if useful
Richa
Edited by: Richa Khosla on May 26, 2008 2:01 PM
2008 May 26 1:19 PM
hi
1) when u want va01 screen to be displayed while clicking sale order num. to do this first u need to find the parameter id for sales order num. vbak table's vbeln is the field for sales order num. doulbe click on the dataelemnt of vbeln of vbak.
2) it wil take to the dataelement screen of ddic, thre u can see the parameter id for that field .
3) take that parameter id and use it in a statement in ur prog. liks this
get cursor field fname value fvalue.
set parameter id ' vbeln para id ' field fvalue
note: the value within the qouts should be capital.
4) then use ' call transaction 'ur t-code' and skip first screen.
5) similarly do it for deliver order num also.
6) put these parts of code accordingly in a case... endcase statement.
7) this entire code should be within at user command event.
feel free to ask doubts
reward if helpful
regards
mano
2008 May 26 1:38 PM
Hi,
Make use of get cursor.
Write ur internal table as follows.
data : begin of it_tab occurs 0,
vbeln1 like vbak-vbeln,
vbeln2 like vbak-likp,
end of it_tab.
data : fnam(10),
fval like vbak-vbeln,
var(10) type n.
In the event
at line-selection.
get cursor field fnam value fval.
if fnam = 'VBELN1'.
call transaction VA01 .
else.
call transaction VF01.
endif.
Regards,
Jagadish
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |