Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
Showing results for 
Search instead for 
Did you mean: 

EDI Invoice Receipt and Profitability Segment

Former Member
0 Kudos


Hope someone can point me in the right direction. I'm using user exit EXIT_SAPLMRMH_015 to create G/L postings during EDI Invoice Receipt via IDOC_INPUT_INVOIC_MRM but keep getting errors because the Profitability segment is missing.

How do I populate the profitability segment? All the fields that comprise the segment are already filled and if you were to enter the invoice manually the segment is automatically populated but it doesn't seem to get populated via EDI. Any suggestions?




Former Member
0 Kudos

To answer my own question, I used FM COPA_PROFITABILITY_SEGMENT to get the Profitability Segment Number (PAOBJNR) which I pass to T_CO in the user exit.