03-02-2011 10:18 AM
Hello experts,
In Vl03n i have the option to attach document to delivery in this way : service button -
> create attachment
And choose the file that will be attach to this delivery.
After this operation i can display in this document like this way: service button -
> Attachment list.
I want to attach one document that exist in server "
Cilaff01\data$\Sap\Sela\Delivery_Note\file_name" to delivery.
Every time , that the user create or change the delivery in VL02N tcode , will be create attachment from this delivery
To suitable document that exist in server "
Cilaff01\data$\Sap\Sela\Delivery_Note\file_name".
After this operation i will be can display this document like this way: service button -
> Attachment list.
File_name = delivery number. ********
Thanks for the help,
Avi.
03-02-2011 3:56 PM
Do you have a specific question? Have you traced the process or read about BDS processing or searched on the topic here?
03-02-2011 3:56 PM
Do you have a specific question? Have you traced the process or read about BDS processing or searched on the topic here?
03-02-2011 4:09 PM
Hello,
My Question is how can i do this process , when the user create or change the delivery .
I want that user not will be should to create attachment to the delivery in manual , if the user it will be in VL02N
He can see the attachment that was created automatic .
Thanks for the help,
Avi.
03-02-2011 4:42 PM
03-02-2011 4:58 PM
Hello,
Thanks , but can you give me example that suitable in my case ?
Avi.
03-02-2011 5:41 PM
/people/rammanohar.tiwari/blog/2005/10/10/generic-object-services-gos--in-background
hope this helps
03-02-2011 6:05 PM
Thanks , but can you give me example that suitable in my case ?
Is the 'where-used' button broken in your GUI? Why don't you search the forum, the help files, or for actual applications that use the process? OSS has many notes that document the process from config to development objects as well.
03-02-2011 6:05 PM
Thanks, but it is very details , i don't know what can be suitable in my case.
Avi.
03-02-2011 6:07 PM
Hello,
I was search, but i wasn't find suitable case to my case.
Avi.
Edited by: avi azulay on Mar 2, 2011 7:07 PM
03-02-2011 6:33 PM
This is the place where you need to read your file contents:
In case of File attachments
WHEN 'EXT'.
Upload the file contents using open dataset in lt_doc_content .
Some conversion ( Compress ) might be required.
Not sure at this point
Then for the object key - debug to find what is being passed when you attach something to a delivery - alternately look in table SRGBTBREL for details
Here is a typical example:
Rel. type ATTA
Instance ID (INSTID A) <delivery number>
Object Type (TYPEID A) LIKP
Object Category (CATID A) BO
Instance ID (INSTID B) FOL30000000000024EXT36000000000789
Object Type (TYPEID B) MESSAGE
Object Category (CATID B) BO
03-02-2011 6:48 PM
Hello,
Thanks but i can't to apply this.
i don't understand what is this:
SWC_SET_TABLE LT_MESSAGE_CONTAINER 'DocumentContent' LT_BINARY.
SWC_SET_ELEMENT LT_MESSAGE_CONTAINER 'DOCUMENTSIZE' LV_DOC_SIZE.
SWC_REFRESH_OBJECT LO_MESSAGE.
SWC_CALL_METHOD LO_MESSAGE 'CREATE' LT_MESSAGE_CONTAINER.
Refresh to get the reference of create 'MESSAGE' object for attachment
swc_refresh_object lo_message.
Get Key of new object
SWC_GET_OBJECT_KEY LO_MESSAGE LV_MESSAGE_KEY.
?
Avi.
Edited by: avi azulay on Mar 2, 2011 8:08 PM
03-05-2011 9:55 AM
Hello,
Somebody can help me in this case?
Thanks for the help,
Avi.
03-07-2011 3:07 AM
>
> Hello experts,
>
> In Vl03n i have the option to attach document to delivery in this way : service button -
> create attachment
>
> And choose the file that will be attach to this delivery.
>
> After this operation i can display in this document like this way: service button -
> Attachment list.
>
> I want to attach one document that exist in server "
Cilaff01\data$\Sap\Sela\Delivery_Note\file_name" to delivery.
>
> Every time , that the user create or change the delivery in VL02N tcode , will be create attachment from this delivery
>
> To suitable document that exist in server "
Cilaff01\data$\Sap\Sela\Delivery_Note\file_name".
>
> After this operation i will be can display this document like this way: service button -
> Attachment list.
>
>
> ***** File_name = delivery number. ********
-->you dont even know delivery number at the time of Delivery Creation , so which file you are going to pick from the file server ?
> Thanks for the help,
>
> Avi.
03-07-2011 6:53 AM
Hello,
I know the delivery number when the user make change in VL02N tcode, this what i mean in my description.
Thanks for the help,
Avi.