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

interactive report

Former Member
0 Likes
713

hi experts,

my requiement is i am trying to set the value of the customer number on which i place my cursor and when i called that transaction by clicking on the button on the application tool bar which i created through set pf-status, that particular customer number must be displayed in the initial screen of the xd01 transaction.i trried it by using set parameter id 'KUN' field 'KUNNR'.

but it only picking the KUNNR rather then the customer number.any solution for this.

thanks and regards

pritee

6 REPLIES 6
Read only

Former Member
0 Likes
679

hi,

Don't give quotes to field. i.e.

set parameter id 'KUN' field KUNNR

Regards,

Lokeswari.

Read only

0 Likes
679

dear expert,

i tried that too.but its throwing an error saying field KUNNR is unknown.it is neither in one of the specified table nor defined by DATA statement.

pritee

Read only

0 Likes
679

data : lv_field(50) type c.

get cursor field field lv_field.

if lv_field = 'ITAB-KUNNR'.

set parameter id 'kunn' field itab-kunnr.

call transaction 'XD01'.

endif.

here itab contains customer data .

BR,

Lokeswari.

Read only

0 Likes
679

Hi,

Make sure u using HIDE statement along with that.

Remove single quotes to the field in set parameter statement,

USe it as explained in belwo example.

For Ex:


START-OF-SELECTION. 
  SELECT carrid connid 
         FROM spfli 
         INTO (carrier, connection). 
    WRITE: / carrier HOTSPOT, connection HOTSPOT. 
    HIDE:  carrier, connection. 
  ENDSELECT. 

AT LINE-SELECTION. 
  SET PARAMETER ID: 'CAR' FIELD carrier, 
                    'CON' FIELD connection. 
  CALL TRANSACTION 'DEMO_TRANSACTION'. 

Thanks

Naveen

Read only

0 Likes
679

dear madam,

when i am using the IF ENDIF.that time it does not showing any result it simply remain in the basic list only.but when i am removing the IF ENDIF part then it is showing the same result as 'KUNNR' instead of cusotmer number.

thanks and regards

pritee

Read only

Former Member
0 Likes
679
set parameter id 'KUN' field w_kunnr.

Here w_kunnr is the field name that contains customer number

Regards,

Lalit Mohan Gupta

Edited by: Lalit Mohan Gupta on Aug 24, 2010 2:53 PM