03-16-2006 11:34 AM
hi frnds,
I hav an issue.. im using tran. code "ME9F" to pass the PO no. to my print program... but the problem is that, when more than 1 order is selected, each time the printer dialog appears... im capturing the PO no. in my print program from nast-objky. But it passes only one selected value at a time to my program. How can i capture all the selected PO order in my program from ME9F ???
Points assured to all replies..
Madan...
03-16-2006 2:00 PM
03-16-2006 12:20 PM
03-16-2006 12:53 PM
hi rich..
tanx a lot.... just 1 more tip...
i kno that we can supress the print option dialog. in the "print_form" function module
DIALOG = ' '
form = tnapr-fonam
language = sy-langu
OPTIONS = t_itcpo
im passing the above values to parameters ... the structure t_itcpo has the printer name hard coded.. but this is not working...
regards,
Madan....
03-16-2006 1:04 PM
Hi,
Check if the hard coded value is in CAPITAL LETTERS.
Regards,
GSR.
03-16-2006 1:07 PM
03-16-2006 1:11 PM
hi,
im getting a message that "Output device locl1 is not type LOCL1" . "locl1" is the printer name..
03-16-2006 1:15 PM
03-16-2006 1:21 PM
no gyz :(-
i tried all options ... no use...below is the code...
*********************************************************8
t_nast-objky = nast-objky.
t_nast-tcode = nast-tcode.
t_itcpo-TDPRINTER = 'LOCL1'.
append t_itcpo.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
DIALOG = ' '
form = tnapr-fonam
language = sy-langu
OPTIONS = t_itcpo
03-16-2006 12:59 PM
Hello Madan,
Actuall ur program is fired from RSNAST00 program line 874. However entry into this program is done by passing one PO at a time.
U can look for the following opts also..
U can find out the PO in your program by accessing the internal table (RM06ENDR_ALV)xitem and reading the rcords with field BOX = 'X'. However this is not goign to help you as the std program for ME9F is going to loop through all the selected PO.
ALternatively what you could do is customised the printer.
1. IMG customisation->Material mgmt->Purchasing->Messages->Assign output device to purchase group.
2. u need to update condition table records for output.
1. IMG customisation->Material mgmt->Purchasing->Messages->Output control.
By doing this SAP will be able to determine the printer and assign during ur selection.
3. For the user who is executing the trx, set in his default the output device.
03-16-2006 1:13 PM
It is case sensitive so u need to check if the entey exists exactly in table TSP03.
03-16-2006 1:19 PM
03-16-2006 1:41 PM
i also get a msg as
"maintain an o/p device in your user master record"...
anything config to be done by funct. people???
03-16-2006 1:40 PM
I think u r setting it to wrong field.
u need to set it to TDDEST and not TDPRINTER.
TDDEST = LOCL1
TDPRINTER = SAPWIN..
Check the tables TSP0A for TDPRINTER and TSP03 for TDDEST
03-16-2006 1:49 PM
hey abi,
now im not getting the dialog screen, but the form is also not getting printed. the code is below.
************************************************
t_itcpo-TDdest = 'LOC1'.
*t_itcpo-TDPRINTER = 'SAPWIN'.
append t_itcpo.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
APPLICATION = 'TX'
ARCHIVE_INDEX =
ARCHIVE_PARAMS =
DEVICE = 'PRINTER'
DIALOG = ' '
form = tnapr-fonam
language = sy-langu
OPTIONS = t_itcpo
03-16-2006 1:47 PM
03-16-2006 2:00 PM