Skip to Content
0

Delete segments from idoc INVOIC02

Oct 18, 2016 at 02:42 PM

279

avatar image

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

10 |10000 characters needed characters left characters exceeded

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.

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Maria Merino Oct 19, 2016 at 02:35 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded