Application Development and Automation 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: 
Read only

IDOC Segment mapping change

Former Member
0 Likes
5,090

Hi,

How can i change the field attached to a IDOC segment.

Actually we have this Invoice IDOC,in which the E1EDK03 012(Qualifier) is passing the IDOC creation date instead of Billing date.

So i need to change this mapping to Billing date.

Please help.

3 REPLIES 3
Read only

christian_wohlfahrt
Active Contributor
0 Likes
1,793

Hi Salz,

go into SE11, enter E1EDK03 into data type and display the structure. Jump to component type EDI_IDDAT and domain IDDAT and of field IDDAT. In tab value range you will find a list of possible qualifiers.

Your requirement looks like qualifier 015 or 016. I can't see, if your talking about inbound or outbound IDOCs - but see, that one of this different qualifiers will be used.

Regards,

Christian

Read only

Former Member
0 Likes
1,793

Hi Salz,

I just checked my version of SAP (4.7) and you should get an invoice date. Check out the subroutine FILL_E1EDK03 in function module IDOC_OUTPUT_INVOIC. The first section of this code creates an E1EDK03 segment with the invoice date (if there is an invoice date), with qualifyer 026.

Is there a possibility that in fact you are getting an E1EDK03 segment with the invoice date, but you are also getting other E1EDK03 segments (such as the one you mention with qualifyer 012) and they are obscuring the one you are looking for?

If there are definitely none being created then can I suggest that you debug the subroutine FILL_E1EDK03 in function module IDOC_OUTPUT_INVOIC to check what is happening. You may need to change the timing of your output record to 1 and run the program RSNAST00 online to get the breakpoint to be hit correctly.

If, in your version, the code doesn't include this date, then you have an exit function module EXIT_SAPLVEDF_002 (called via the subroutine CUSTOMER_FUNCTION in function module IDOC_OUTPUT_INVOIC) where you can actually add your own segment data. For example you an change the contents of an existing segment (as per your original request), or append your own E1EDK03 segment with your own data. I would recommend adding your own segment rather than changing whats there.

It is possible to extend idocs to add your own custom segments (eg Z1EDK03), but I wouldn't recommend it in your case, because in later versions of SAP the date is provided and by not creating a new segment (Z1EDK03) you will have no mapping changes to do when you upgrade. You can just delete your userexit code.

Hope that all makes sense and helps you with your problem.

Cheers,

Brad

Read only

0 Likes
1,793

Hello Friend,

I read ur previous thread regarding idoc segment addition can u please explain for me in this issue what to do thanks in advance.

Billing extraction idoc i have used inbuilt segments for this and function module is idoc_outbound_invoic and i am using invoic as the message type and idoc type invoic01 which i have copied to customised zinvoic and zinvoic01 this are my settings

My basic problem is i need to add customised segment to the idoc type/basic type in we30 which i have done through extension of segment creation and set realease.

But when i process this idoc i am not able to see the customised segment in the list that means the idoc ready for dispatch will contain only the inbuilt sap invoice segments and customised once which i am adding i cant view and they are not been processed

Shall i need to change in the function module idoc_outbound_invoic how to do.

Please help me in this issue.

Thanks and Best regards,

Ujwala.