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: 

how to modify segment data of idoc INVOIC01 during processing

Former Member
0 Kudos

hi all,

My requriment is to modify and delete some of the segments (line items) of inbound idoc INVOIC01 during processing.

I have tried with userexits EXIT_SAPLIEDI_101 and EXIT_SAPLIEDI_102 but its not updating the segments with the new data.

Please let me know if there is any other userexit/procedure for this.

Regards,

Srilatha

6 REPLIES 6

Former Member
0 Kudos

Hi,

Which inbound process code are you using for inbound processing?

Regards

Vinod

Former Member
0 Kudos

hi,

Iam using FM IDOC_INPUT_INVOIC_FI in process code for inbound idoc INVOIC01.

Regards,

Srilatha

0 Kudos

Hi,

User Exits mentioned by you is correct. Are you updating the table DOCUMENT_DATA in the exit ? See the documentation for exit as

It is called up once per IDoc segment, for standard segments as well as for 
customer-specific segments where an additional IDoc type is concerned. 
You can therefore also process data from standard segments that are not 
considered for standard processing.

Table IDOC_DATA contains the IDoc segments. Parameter IDOC_DATA_INDEX 
indicates the segment currently being processed.

Table DOCUMENT_DATA contains the posting data previously determined. 
Parameter DOCUMENT_LINE contains the number of the line item currently being processed.

Regards

Vinod

0 Kudos

hi Vinod,

I have tried it by changing the DOCUMENT_DATA but stil its not modifying segments after processing.

is there any other procedure for doing the same??

Regards,

Srilatha

0 Kudos

Hi Srilatha,

Can u tell me how u did that update?

I have a similar requirement.

Mithun

0 Kudos

Hi Srilatha,

Can u tell me how u did that update?

I have a similar requirement.

Mithun