Skip to Content
0
Former Member
Jun 24, 2011 at 05:29 AM

Printing associated document in PRT within Work Order

1030 Views

Hi,

I have requirement like below:

1) Go to IW32/33 (Maintenance Order)

2) Go to Enhancement tab

3) From Table control select document and then print all attachments which are available in those Documents by hitting Print Button.

-


I have done some development using enhancement IWO10018:

1) I have fetched Routing number of operations in the order (AUFPL), Item counter for PRT (PZLFH), Object ID of the resource (OBJID), Object types of the CIM resource (OBJTY) from AFFH where AUFPL = SAP_CAUFVD_IMP-AUFPL

2) Then in loop I have called Function Module: CF_RF_ROUT_FHM_MASTER_READ and read entire structure which contains Document No.

3) Using document No. I have fetched all document related into from DRAW table which contains Document Info Record.

4) Then I have selected some fields and shown them on Table Control which is available in Enhancement Tab.

5) Now I want to print then as per users choice.

Here I stuck, how to download all those attachments which are available at local PC or on internet and print them?

Thanks,

Jay.

Edited by: jaykrishna007 on Jun 24, 2011 7:30 AM