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

Problem with User Command in alv report

Former Member
0 Likes
853

Hi

I have developed a ALV grid report with drill down capability to transaction code for user command. I am having a trouble with this.

CASE ucomm.

WHEN '&IC1'.

CLEAR: wa_import.

IF selfield-fieldname EQ 'ANLN1'.

READ TABLE t_import INTO wa_import INDEX selfield-tabindex.

SET PARAMETER ID 'BUK' FIELD wa_import-bukrs.

SET PARAMETER ID 'ANl' FIELD wa_import-anln1.

CALL TRANSACTION 'AW01N'.

ENDIF.

here my parameter ids are showing the values but when i call the transaction i am not getting the actual asset numbers.

Can someone help me out this

Thanks

Hi

I have developed a ALV grid report with drill down capability to transaction code for user command. I am having a trouble with this.

CASE ucomm.

WHEN '&IC1'.

CLEAR: wa_import.

IF selfield-fieldname EQ 'ANLN1'.

READ TABLE t_import INTO wa_import INDEX selfield-tabindex.

SET PARAMETER ID 'BUK' FIELD wa_import-bukrs.

SET PARAMETER ID 'ANl' FIELD wa_import-anln1.

CALL TRANSACTION 'AW01N'.

ENDIF.

here my parameter ids are showing the values but when i call the transaction i am not getting the actual asset numbers.

Can someone help me out this

Thanks

6 REPLIES 6
Read only

Former Member
0 Likes
799

Hi,

add the AND SKIP FIRST SCREEN...addition..

CALL TRANSACTION 'AW01N' AND SKIP FIRST SCREEN.

Thanks

Naren

Read only

0 Likes
799

adding that doesnt make any difference, as aw01n doesnt have selection screen

Read only

Former Member
0 Likes
799

Hi,

Actually...the Parameter ID is AN1 and Not ANI..

Thanks

Naren

Read only

Former Member
0 Likes
799

hi,

for field ANLN1 the PID is AN1!!!

Read only

Former Member
0 Likes
799

Correct parameter id

Read only

Former Member
0 Likes
799

solved