2008 May 26 12:40 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:43 PM
at line-selection.
sylsind = 1 .
case sy-ucomm.
when 'PICK'.
call t-code 'va01'.
2008 May 26 12:43 PM
Give the code like this:
** FOR DELIVERY
SET PARAMETER ID 'VL'.
CALL TRANSACTION 'VL03' AND SKIP FIRST SCREEN.
** FOR DELIVERY
SET PARAMETER ID 'AUN'.
CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
Hope That Helps
Anirban M.
2008 May 26 12:45 PM
HI Vijay ,
You will have to write the BDC of the corresponding transaction on USer command of the list .
Inside the user command , check for the field name .
If it is ur first field then call VA01 .
If it is ur second field then call VF01 .
2008 May 26 12:48 PM
An also hide an indicator which tells you which is VF01 and which line is a VA01.
2008 May 26 12:48 PM
Hi Vijay,
Code like this.
When u write the data to list output use HIDE Statement for these two fields.
END-OF-SELECTION.
LOOP AT i_output INTO wa_output.
HIDE: wa_output-salesorder, wa_output-delivery.
WRITE:/1 all ur fileds to list.
ENDLOOP.
AT LINE-SELECTION.
IF NOT wa_output-salesorder IS INITIAL.
SET PARAMETER ID 'AUN' FIELD wa_output-salesorder.
CALL TRANSACTION VA03 AND SKIP FIRST SCREEN.
Here i thing u need to call VA03, Bcz VA01 is for creation of sales order.
ENDIF.
IF NOT wa_output-delivery IS INITIAL.
SET PARAMETER ID 'VL' FIELD wa_output-delivery.
CALL TRANSACTION VL03N AND SKIP FIRST SCREEN.
Here also i thing it is VL03N(Delivery display) Bcz VF01 is Invoice creation.
If it is VF01 then do like this.
SET PARAMETER ID 'AUN' FIELD wa_output-delivery.
CALL TRANSACTION VF01.
ENDIF.
Thanks,
Vinod.
Edited by: Vinod Kumar Vemuru on May 26, 2008 5:19 PM
2008 May 26 1:16 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
set parameter id 'MAT' 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:26 PM
Hi,
Try the following code.....
copy paste....
and run.
'at line-selection' get row and column no. !!!!
data : it type STANDARD TABLE OF vbak,
wa type vbak.
select * from vbak into table it.
loop at it into wa.
new-line.
write : wa-vbeln,
wa-erdat,
wa-ernam.
endloop.
AT LINE-SELECTION.
write : 'Row : ' , sy-curow , ' , column : ' , sy-cucol.
Now according to the column selected within the list.....
call the desired transaction.........
Reward if helpful...............
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |