2007 Mar 14 8:55 AM
Hi ,
parameters : pa_prid type tsp03d-padest . " short name of output device .
when i press F4 then it is displaying list of printers available with the following fields
Printer name , short name of output device , device type .
If i select any record in this F4 , then obviously short name would be selecting in this parameter .
However my requirement is it should display printer name beside short name
ex : short name: E51 printer name : printer in bangalore site
E51 printer in bangalore
printer name should be in display mode only
how we can do this ??
Thanks in adv
Varma
2007 Mar 14 9:01 AM
Hi try this, <b>and modify accordingly</b>
REPORT YCHATEST.
TABLES: TTXIT.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(6) V_TEXT FOR FIELD P_TEXTID.
PARAMETERS: P_TEXTID TYPE TTXIT-TDID.
SELECTION-SCREEN COMMENT 13(35) V_TEXT1.
SELECTION-SCREEN END OF LINE.
INITIALIZATION.
V_TEXT = 'TextID'.
V_TEXT1 = ' '.
AT SELECTION-SCREEN OUTPUT.
IF NOT P_TEXTID IS INITIAL.
SELECT SINGLE * FROM TTXIT
WHERE TDSPRAS = SY-LANGU
AND TDOBJECT = 'TEXT'
AND TDID = P_TEXTID.
IF SY-SUBRC = 0.
V_TEXT1 = TTXIT-TDTEXT.
ENDIF.
ENDIF.
Message was edited by:
Chandrasekhar Jagarlamudi
2007 Mar 14 8:59 AM
can you try with
parameters : pa_prid type tsp03d-name.
regards
shiba dutta
2007 Mar 14 9:01 AM
Hi try this, <b>and modify accordingly</b>
REPORT YCHATEST.
TABLES: TTXIT.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(6) V_TEXT FOR FIELD P_TEXTID.
PARAMETERS: P_TEXTID TYPE TTXIT-TDID.
SELECTION-SCREEN COMMENT 13(35) V_TEXT1.
SELECTION-SCREEN END OF LINE.
INITIALIZATION.
V_TEXT = 'TextID'.
V_TEXT1 = ' '.
AT SELECTION-SCREEN OUTPUT.
IF NOT P_TEXTID IS INITIAL.
SELECT SINGLE * FROM TTXIT
WHERE TDSPRAS = SY-LANGU
AND TDOBJECT = 'TEXT'
AND TDID = P_TEXTID.
IF SY-SUBRC = 0.
V_TEXT1 = TTXIT-TDTEXT.
ENDIF.
ENDIF.
Message was edited by:
Chandrasekhar Jagarlamudi