Skip to Content
0
Former Member
Jun 19, 2011 at 12:32 PM

Attaching a file (in code) when creating an Invoice using FM

27 Views

Hi SRM Experts,

I'm creating invoices in SRM from a CSV file that I upload into SRM. I'm using the function module BBP_PD_INV_CREATE to create the invoices. This is all working fine but I need to also attach a file (as an attachment) when I create these invoices.

I notice that the function module requires a LOIO-OBJID and LOIO-OBJKEY in the IT_ATTACH table to attach a specific document or file to the invoice that is being created. I have the OBJKEY but I need the OBJID and it would appear that the OBJID is unique for each file or document that you upload.

My question is: How do I generate the LOIO-OBJID?

Any assistance would be greatly appreciated.

Regards,

Andrew