cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Andrew,

As per the system design, is not possible to transfer attachment in an invoice from SRM to ECC. As the Invoice is created through an iDoc, any attachment will be sent.

Sorry for my misunderstanding, but how did you notice about this behaviour?

Best regards,

Denise