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: 

Printing Transfer Orders through ADOBE Forms

Former Member
0 Kudos


Hello,

My requirement is to print ADOBE forms for the Transfer orders.

The current procedure is the print is issued from Tcode: LT31 and the form is designed in SAP script.

The corresponding configuration is maintained in OMLV --> Printcode for the required warehouse number.

As the driver program for this transaction is RLVSDR40 is mapped in table T340d-repid.

For the adobe forms  the print program is: /vso/p_rlvsdr40_pdf.

Is there any way or any other Tcode where I

can map this program with my corresponding adobe form.

I have checked ther links in SCN for using smartforms:

1. Using user exit.

2. taking a copy of the print program.

I want to follow a SAP standard way of doing.

Please share any information which could direct me for the solution.

Thanks.

4 REPLIES 4

balbino_soaresferreirafil
Active Participant
0 Kudos

Hi

I see two ways to do this,

The first is to copy the program RLVSDR40 to ZRLVSDR40, then replace the code reference of sapscript printing to print using adobe forms.
After do this, you need to go in OMLV --> Printcode for the required warehouse number and change the program by your Z program.
 
Another way is using the user exit:  EXIT_RLVSDR40_001’ in the Enhancement ‘MWMD0001’ . (Enables printing of Transfer Order via RLVSDR40)
In this exit you can call  the adobe forms.

I think the second way is the better, because you only need change the user exit. But I don't know what the better way recommended by sap.

regards

Former Member
0 Kudos

Hi Vishnu,

No need to copy the standard program. You can do it through the user-exit.  follow the below steps.

In side the program(RLVSDR40)  will have the user-exit. Activate the user-exit and create the project.

- use the below structures and if you want add and modify the structures.

  XRLDRC STRUCTURE  RLDRC
*"      XVBLKK STRUCTURE  VBLKK
*"      XVBLKP STRUCTURE  VBLKP
*"      XSERNR STRUCTURE  RISERLS
*"      XRLDRH STRUCTURE  RLDRH
*"      XRLDRI STRUCTURE  RLDRI


*  call the adobe forms.


* finally clear the check boxes.


      c_label = ' '.
     c_single = ' '.
     c_multi  = ' '.

* so that it will stop the scripts processing

0 Kudos

Hello Kiran,

Thanks for your response.

As you said I was also intended to go for USER EXIT, but I wanted to find other alternative.

I found the PDF print program and its form , but it is been called only for MULTI print and not for single print. In OMLV i changed the driver program corresponding to the PDF FORM.

I need to print single(for each line item) and multi (all line items as a whole)prints of transfer orders.

The PDF driver program is not calling the PDF form in case of single print whereas it calls for multi print.

But as my requirement is having both single and multiple prints I cannot configure 2 different driver programs for the same warehouse number.

For reference :

PDF Form :   /VSO/P_TALST_PDF

PDFProgram : /VSO/P_RLVSDR40_PDF

I will try with the solution which you have provided and will get back to you.

Thanks.

0 Kudos

Hi,

You can do it, the data is in your control you can print single or multiple line items.

for example.

if c_letasch is not initial.
if c_single is not initial.

loop at xrldri where singl = gc_x.
perform call_smartform

else.


collect items

call_smartform

endif.