2006 Mar 16 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...
2006 Mar 16 2:00 PM
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...
2006 Mar 16 12:20 PM
2006 Mar 16 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....
2006 Mar 16 1:04 PM
Hi,
Check if the hard coded value is in CAPITAL LETTERS.
Regards,
GSR.
2006 Mar 16 1:07 PM
2006 Mar 16 1:11 PM
hi,
im getting a message that "Output device locl1 is not type LOCL1" . "locl1" is the printer name..
2006 Mar 16 1:15 PM
2006 Mar 16 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
2006 Mar 16 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.
2006 Mar 16 1:13 PM
It is case sensitive so u need to check if the entey exists exactly in table TSP03.
2006 Mar 16 1:19 PM
2006 Mar 16 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???
2006 Mar 16 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
2006 Mar 16 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
2006 Mar 16 1:47 PM
2006 Mar 16 2:00 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |