cancel
Showing results for 
Search instead for 
Did you mean: 

Mulitple Purchase order Print in SAP Script

0 Kudos

Hi Gurus...

Good Morning ...

We have Customized SAP Script Form for Purchase order print.. it is possible to take multiple purchase order nos in Same script. Currently we have a program for single PO print.

Kinldy Guide us...

Regards,

Murugesh R

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

If you require complete PO print (single) then you can configure it and take printout through ME23n or ME9F.....If your requirement is to print multiple PO's then i think you need to develop a Program .

In that in your final internal table you can loop it and print...

If you have smartforms you can set following parameters

CALL FUNCTION LV_FM_NAME

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

CONTROL_PARAMETERS = CONTROL

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

OUTPUT_OPTIONS = OUTPUT_OPTIONS

USER_SETTINGS = ' '

VEHICLE = VEHICLE

LV_BAR = LV_BAR

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

TABLES

IT_FINAL = IT_FINAL

  • EXCEPTIONS

  • FORMATTING_ERROR = 1

  • INTERNAL_ERROR = 2

  • SEND_ERROR = 3

  • USER_CANCELED = 4

  • OTHERS = 5

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

CONTROL-PREVIEW = 'X'. "Preview the output of Smartform

CONTROL-NO_DIALOG = 'X'. "Don't show Dialog

OUTPUT_OPTIONS-TDDEST = PRINTER. "Spool: Output device

OUTPUT_OPTIONS-TDNOPRINT = ' '. "No printing from print preview

OUTPUT_OPTIONS-TDCOPIES = 1. " number of print copies

OUTPUT_OPTIONS-TDIMMED = 'X'. " Print Immediately (Print Parameters)

OUTPUT_OPTIONS-TDDELETE = 'X'. " delete the request after printing

OUTPUT_OPTIONS-TDLIFETIME = '5'. " spool retention period

OUTPUT_OPTIONS-TDCOVER = ' '. " no cover print

Regards,

kashyap

0 Kudos

Thanx for immediate response...

I want to print in SAP Script is it possible ...

Regards,

Murugesh R

Former Member
0 Kudos

Hi,

U need i think u need to write print subroutine in loop.

It would be possible through SAPscript also.

Write Perform Open form , write form , close form in a loop.

Just try once....

Answers (0)