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.
cancel
Showing results for 
Search instead for 
Did you mean: 

Delete segments from idoc INVOIC02

maria_merino
Active Participant
0 Kudos

Hi experts,

I have a problem with outbound idoc INVOIC02. I am using exit ZXEDFU02 to make some changes in certains segments and it works fine. When the invoice position is xxx (PSTYV) the user wants to delete the segments related to this posititions (E1EDP01, E1EDP02, E1EDP03, E1EDP19, E1EDP26, E1EDPA1, E1EDPT1..).

I tried to do this in the same userexit but in that moment DOCNUM SEGNUM SEGNAM PSGNUM HLEVEL in table INT_EDDID are not informed so I don't know how to delete the following segments.

Any suggestion ?

Thanks in advance.

María

1 ACCEPTED SOLUTION

maria_merino
Active Participant
0 Kudos

Thanks Jelena, but that's what the user needs. I found the solution anyway. Include ZXEDFU01, those positions that I don't need are deleted from internal table DTVBDPR.

María

2 REPLIES 2

Jelena
Active Contributor
0 Kudos

Why would this be required? If an item is in the invoice then it will also be in the IDoc. If you have some items not relevant for billing then perhaps they should not be in the billing document. Manipulating data in the IDoc is not a good idea and could even be illegal in some cases.

maria_merino
Active Participant
0 Kudos

Thanks Jelena, but that's what the user needs. I found the solution anyway. Include ZXEDFU01, those positions that I don't need are deleted from internal table DTVBDPR.

María