cancel
Showing results for 
Search instead for 
Did you mean: 

Add UDF to row section of documents object.

Former Member
0 Kudos

Hey,

How do I add a UDF to the row section of a marketing document using the UserFieldsMD object from the DI API? Has anyone done this? By default they all get added to the title section of the marketing document.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

barend_morkel2
Active Contributor
0 Kudos

Hi Laura,

To add a UDF to a row you would have to access the correct table.

E.g.

If you add a UDF to table OINV - Your UDF would be against the Invoice header.

If you add a UDF to table INV1 - Your UDF would be against the line item of the Invoice (each line of the Invoice)

Thus find the table in which the rows are stored and add the UDF to that table (check out the table name using the "View Debug Information") in the SAP client for the document you are interested in...

Add your UDF to that - and you'll have the UDF against the rows...

AdKerremans
Active Contributor
0 Kudos

Hi Laura and Barend,

One small remark to Barends post.

If you add a field to one of the document-header table or document-lines table It is added to ALL document-header or document-lines tabels.

Ad

Answers (0)