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: 

IDOC-Segment Created a idoc document against Billing document

Former Member
0 Kudos

Dear All,

Thanks in advance.

Already created a idoc document against Billing document and one of the IDOC segment is not in the IDOC document output segments(WE05) actually it missed the segment.

so i want to add the segment which it was missed during generation of IDOC document against billing document.

Example:

a) IDOC document misses one segment let suppose "Seg1".

b) In "Seg1" it have only one field let suppose "Field1".

c) But "Field1" does not have any value while generation of IDOC document so it doesn't create the respective segment in IDOC document.

d) so here, i want to edit the IDOC document to add the "Seg1" in the IDOC document and reprocessing the IDOC document.

Please help on this issue.

Regards,

Sridhar.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

One way if you you don't want to do it programmatically to go to WE19 using the same idoc and then add data in the missing field by clicking the relevent segment and then press "Standard outbound processing" or use menu Idoc-->Test outbound Idoc to resend the content again.

Please note it generates a new idoc and it is not recommended to do it in Production environment.

Regds,

Rudra

4 REPLIES 4

Former Member
0 Kudos

Hi,

One way if you you don't want to do it programmatically to go to WE19 using the same idoc and then add data in the missing field by clicking the relevent segment and then press "Standard outbound processing" or use menu Idoc-->Test outbound Idoc to resend the content again.

Please note it generates a new idoc and it is not recommended to do it in Production environment.

Regds,

Rudra

Former Member
0 Kudos

Hi,

You can assign a default value in the segment field if it is missing and the segment will be created. This can be done in a userexit. There is a userexit which called after every segment is populated and you can use that userexit to code your requirement . The name of the exit is EXIT_SAPLVEDF_002.

You can do a scan of the segments after the last segment is populated.

which is e1eds01 and then see if your segment is populated or not and insert it if not.

You would have to work out the logic a bit, but its possible.

regards,

Advait

Former Member
0 Kudos

Hello,

If your requirement is to have the Segment even with only 1 Field, you'll have to create an Idoc Extension in WE30.

In order to populate the Custom Segment, Use the Customer Function '002' in the IDOC_OUTPUT_INVOIC which is EXIT_SAPLVEDF_002 where you can actually insert the Segment as a Child Segment of an Appropriate Segment.

You can go for Custom segment with the IDoc Extension so that you dont have to manually insert the Segment again and again while reprocessing it.

Thanks and Regards,

Venkat Phani Prasad Konduri

Former Member
0 Kudos

Dear All,

Thanks for ur Valuable replies.

i solved the problem my self just inserting the segment in the table level.

Thanks again.

Sridhar