Application Development and Automation 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: 
Read only

PO

madan_ullasa
Contributor
0 Likes
1,998

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
Read only

Former Member
0 Likes
1,952

Fill Itcpo as follows..

TDDEST LOCL

TDNOPRINT X

TDNEWID X

Fill Itcpo as follows..

TDDEST LOCL

TDNOPRINT X

TDNEWID X

15 REPLIES 15
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,952

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

Regards,

Rich Heilman

Read only

0 Likes
1,952

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

Read only

0 Likes
1,952

Hi,

Check if the hard coded value is in CAPITAL LETTERS.

Regards,

GSR.

Read only

0 Likes
1,952

hi ...

it is in caps..

regards,

madan...

Read only

0 Likes
1,952

hi,

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

Read only

0 Likes
1,952

It should be ..

locl1 ..

Read only

0 Likes
1,952

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

Read only

Former Member
0 Likes
1,952

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.

Read only

Former Member
0 Likes
1,952

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

Read only

Former Member
0 Likes
1,952

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

Read only

0 Likes
1,952

i also get a msg as

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

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

Read only

Former Member
0 Likes
1,952

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

Read only

0 Likes
1,952

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

Read only

Former Member
0 Likes
1,952

check my response.

Read only

Former Member
0 Likes
1,953

Fill Itcpo as follows..

TDDEST LOCL

TDNOPRINT X

TDNEWID X