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

Repeating IDOC segments

Shiva_Ram
Active Contributor
0 Likes
1,133

Hi,

Can anyone explain why and which is a better option among

Repeating an IDOC segment to populate some additional data or extending a segment to populate the data.

I would like to populate supplier code in E2DRM1 segment- Partner_ID field of IDOC type QALITY02. The SAP's standard populates ADRNR number from the KNA1 table (in transaction code QC20). But in transaction QC22, I dont see this segment. How to populate this segment?

I appreciate your response.

Shiva

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
874

Hi,

I suggest you to extend the Segment.

Regards

vijay

4 REPLIES 4
Read only

Former Member
0 Likes
874

Shiva Ram,

If you want to populate field (partner_id field) then you have to extend the IDOC and populate the supplier code for QC22. For QC21, that field will be blank. So go for IDOC extension.

Thanks,

Read only

Former Member
0 Likes
874

Hi Shiva,

The best way is to use repeating existing segment (if still available) to populate the supplier code through custom user exits in process code/function module.

If the above is not available then extended the standard IDoc would be the next option. Extended the IDoc will involve above task and also additional setup in the configuration as well i.e. partner profile (WE20) and etc.

Hope this will help.

Regards,

Ferry Lianto

Read only

0 Likes
874

Hi,

Thank you for your valuable suggestions.

With regards,

Shiva

Read only

Former Member
0 Likes
875

Hi,

I suggest you to extend the Segment.

Regards

vijay