cancel
Showing results for 
Search instead for 
Did you mean: 

How to get data from dynamic standard program RVADOR01 of sap?

Former Member
0 Kudos

Hi guys,

the standard programm RVADOR01 is running by output determination (ta: NACE)?

It creates a sap script form (ta: SE71). After saving an quotation(ta: VA22), I can save it as pdf.

Now I want to call the programm RVADOR01 in my own report to get this pdf or the data to create the pdf.

How can I do this? Copy it as z-program? How can I use the custom form defined in SE71?

Accepted Solutions (0)

Answers (2)

Answers (2)

DoanManhQuynh
Active Contributor
0 Kudos

That report just for ouput data from quotation as you said so you wont get data from there.

I dont know your zprogram logic but if you just want that form (which mean you have the data) you just need to use fm to write data to that form ( OPEN_FORM, WRITE_FORM...) just search for using sap scrpit.

hedvig_rohonyi
Active Participant
0 Kudos

Hi Mehmet,


My recommendation: VOK2 is a transaction which you can easily reach any SD output type available in ERP and assign your printprogram and form.


1. Copy RVADOR01 as custom report ZRVADOR01
2. Assign it to the SD (quotation) output type using transaction VOK2 -> SDS Document -> Sales document -> condition type -> AN00 ...

3. To get the PDF file you can change the copied printprogram ZRVADOR01:


The function 'OPEN_FORM' is called by ZRVADOR01. During the OPEN_FORM you can transfer a structure ITCPO
at parameter OPTIONS. If you set ITCPO-TDGETOTF = 'X', the function module CLOSE_FORM
returns the OTF data in table OTFDATA. After this you can convert the OTF data to PDF via function module
CONVERT_OTF. Please use the export parameter BIN_FILE when calling the function module CONVERT_OTF.
The advantage of the parameter BIN_FILE is that it automatically returns the PDF data in XSTRING format in parameter BIN_FILE.

Best regards,
Hedvig