‎2010 Aug 24 7:02 AM
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
‎2010 Aug 24 7:07 AM
hi,
Don't give quotes to field. i.e.
set parameter id 'KUN' field KUNNR
Regards,
Lokeswari.
‎2010 Aug 24 7:20 AM
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
‎2010 Aug 24 7:27 AM
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.
‎2010 Aug 24 7:30 AM
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
‎2010 Aug 24 7:45 AM
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
‎2010 Aug 24 10:23 AM
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