cancel
Showing results for 
Search instead for 
Did you mean: 

Extract Invoices to a Folder

Former Member
0 Kudos

HI gurus,

We need to extract a list of invoices to a shared folder so that customers with no SAP access can view their invoices.

By opening the shared folders, they can print, view or open the invoices they needed to check.

Is this possible? IF it is, how can this be done from SAP to the shared folder?

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member183879
Active Contributor
0 Kudos

Hi Rumar,

I understand that the requirement is to save the PDF document of the invoices created in SAP to be saved in a folder automatically.

If this is the reqmt, this is very much possible and we have done it earlier.

You have to create that directory in SAP itself in tcode AL11. In AL11, in the application server, the folder will be created and the path will be noted.

In the output type, the program shoudl create a PDF document of the invoice and name the PDF document using a convention ( say <BILLING DOCUMENT NUMBER>_<PAYER NUMBER>_<DATE OF INVOICE CREATION>.PDF), and the document should be saved in the directory which is available in the application server.

Once this is done, specific access to the directory can be given to only authorised people and they can go to the directory using tcode AL11 and view the documents there.

Former Member
0 Kudos

Hi SNavaneetha Krishnan,

Can you please explain how to get the data of invoice document so that we can create another file on application server with that data.

As now i am geeting some Junk data from the document.

Thanks

Gaurav Jain

Former Member
0 Kudos

Hi SNavaneetha Krishnan,

Can you please explain how to get the data of invoice document so that we can create another file on application server with that data.

As now i am geeting some Junk data from the document.

Thanks

Gaurav Jain

former_member183879
Active Contributor
0 Kudos

Hi,

You need to enable an output type for the invoices. The functional guy will help you in configuring the output type. This shoudl be a print output type.

You need to create a program and smartform with the layout requested by business and the program should update the smartform with the invoice details. For this you can use the tables VBRK, VBRP, KONV etc in the program to fetch invoice and pricing related information.

Once the smartform is filled with the invoice details, you have to convert the OTF format of the form to PDF format. There is a standard function module for this purpose.

Once the PDF is generated, you should programatically direct this PDF document to the predefined directory.

This is at the conceptual level. If you want how these details need to be coded, the functional guys here wont be able to give you the code, you have to ask for technical information pertaining to this in ABAP forum or Smartforms/SAPScript forums in SDN.