‎2008 Jul 21 6:27 PM
hi friends,
Is there a class/object method or function module to read the attachments with a PO Doc (attached using services for object)? I need to download the attachments attached to the PO.
thanks much in advance,
Soumya.
‎2008 Jul 22 8:36 AM
You can use the class: CL_ATTACHMENT_LIST for doing that here is the sample code for that. The application will BUS2012.
TRY.
CREATE OBJECT GO_ATTALIST
EXPORTING
IO_OBJECT = bo_applicant
IP_CHECK_ARL = ' '
* IP_CHECK_BDS = 'X'
IO_CONTAINER = go_container_al
* IP_MODE = GC_MOD_EDIT
* IP_NOTES = 'X'
* IP_ATTACHMENTS = 'X'
* IP_URLS = 'X'
.
CATCH CX_SOBL_BROWSER .
ENDTRY.
TRY.
CALL METHOD GO_ATTALIST->DISPLAY
.
CATCH CX_SOBL_BROWSER .
ENDTRY.
Also have a look at the FM: RH_APPLICANT_ATTA_IN_POPUP
Hope That Helps
Anirban M.
‎2008 Jul 22 2:58 PM
Thank so much for the reply, Anirban. Does this bring up any dialog box? I need to do this in background.
And what I intend to do is download the attachment that are attached to the POs (and may be save it as a PDF file to my PC).
Could you please explain to me a bit more detailed.
I would appreciate it much.
‎2008 Jul 23 11:14 AM
If you use the FM it will give you a popup. To do this in background you need to use the mentioned class methods.
Hope That Helps
Anirban M.
‎2009 Jun 16 1:53 PM
Hi!
Could anybody tell me, please, how can i toggle attachment list mode between display and edit.
The only way to do this i've thaught is to free attachment list object and to create it again with new IP_MODE value. But at least, i suppose there is actually another one method to switch edit mode.
Thanks.
‎2008 Aug 05 1:48 AM