Application Development and Automation 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: 
Read only

AT LINE SELECTIOn

Former Member
0 Likes
904

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

7 REPLIES 7
Read only

Former Member
0 Likes
837

at line-selection.

sylsind = 1 .

case sy-ucomm.

when 'PICK'.

call t-code 'va01'.

Read only

former_member480923
Active Contributor
0 Likes
837

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.

Read only

Former Member
0 Likes
837

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 .

Read only

0 Likes
837

An also hide an indicator which tells you which is VF01 and which line is a VA01.

Read only

vinod_vemuru2
Active Contributor
0 Likes
837

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

Read only

Former Member
0 Likes
837

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

Read only

Former Member
0 Likes
837

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...............