Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3523

Add Segments in IDoc - PAYEXT

$
0
0

Hello Experts,

 

1. I'm executing Automatic payment run (F110). As a result of this, an IDoc is generated and sent to the Bank with Message Type : PAYEXT.

 

2. In this IDOC, there is a Segment E1EDK12, which can repeat 99 times. My requirement is, I want to add two more segments of the same type i.e. E1EDK12 at the same level. This is because I want to pass extra data to these two segments.

 

3. I tried to change the IDoc using following FM's


CALL FUNCTION 'EDI_DOCUMENT_OPEN_FOR_EDIT'

CALL FUNCTION 'EDI_CHANGE_DATA_SEGMENTS'

CALL FUNCTION 'EDI_DOCUMENT_CLOSE_EDIT'

 

It did changed the IDoc content But then it resulted in

 

1. IDoc Status changed to Yellow with status 32 "IDoc was edited".

2. And a duplicate IDoc was created as Backup (of IDoc before change)

 

which I want to avoid. This might be because IDoc is changed after it was processed. Please suggest me something by which I can change/add segment data before it is processed.  Please refer the screen shots for reference.

EDITED.pngORIGINAL.png

 

All suggestions will be greatly appreciated.

 

Thanks,

Nikhil Ghadge.


Viewing all articles
Browse latest Browse all 3523

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>