Application Development 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: 
SAP Community Downtime Scheduled for This Weekend

PO

madan_ullasa
Contributor
0 Kudos
160

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...

1 ACCEPTED SOLUTION

Former Member
0 Kudos
114

Fill Itcpo as follows..

TDDEST LOCL

TDNOPRINT X

TDNEWID X

15 REPLIES 15

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos
114

The print program is only supposed to run for one individual purchase order number at one time. This is by design.

Regards,

Rich Heilman

0 Kudos
114

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....

0 Kudos
114

Hi,

Check if the hard coded value is in CAPITAL LETTERS.

Regards,

GSR.

0 Kudos
114

hi ...

it is in caps..

regards,

madan...

0 Kudos
114

hi,

im getting a message that "Output device locl1 is not type LOCL1" . "locl1" is the printer name..

0 Kudos
114

It should be ..

locl1 ..

0 Kudos
114

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

Former Member
0 Kudos
114

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.

Former Member
0 Kudos
114

It is case sensitive so u need to check if the entey exists exactly in table TSP03.

Former Member
0 Kudos
114

Check it may be LOCL which is associated to SAPlpd/SAPWIN.

0 Kudos
114

i also get a msg as

"maintain an o/p device in your user master record"...

anything config to be done by funct. people???

Former Member
0 Kudos
114

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

0 Kudos
114

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

Former Member
0 Kudos
114

check my response.

Former Member
0 Kudos
115

Fill Itcpo as follows..

TDDEST LOCL

TDNOPRINT X

TDNEWID X