‎2009 Oct 19 1:57 PM
Hi,
I have a requirement where I need to populate the multiple lines in one segment without getting created multiple segment.
I am generating material with multiple line data in the additional data using MATMAS05 IDOC for segment E1MTXHM but its generating multiple sub segments. I need to have multiple lines in one segment and not multiple segment.
Please let me know how to achieve multiple lines in one segment.
Thanks & Regards,
Rayan
‎2009 Oct 19 2:01 PM
Hello Rayan,
Please remember that E1MTXHM is a simple structure and not a table or deep structure.
So back to basics, simple structure can hold only one record & not multiple.
Hence your req. to add multiple lines to single segment is not possible. Anyways whats the difference if you generate multiple segments?
BR,
Suhas
Crappy Post !!! I must have been out of my mind when posting
‎2009 Oct 19 3:04 PM
Hi rayan,
please excuse Suhas' limited knowledge of IDOCs.
You are right, segment E1MTXHM is defined as a subsegment of E1MARAM and can have from 1 to 9999 lines, it is not obligatory.
And, here Suhas is right, E1MTXHM defines the material master long text header. It will occur more than oce only if you have more than 1 long text, e.g. different languagesor special texts for various material segments.
If you have a text with more than one line, you must poulate the E1MTXLM Material Master Longtext Line subsegment which can occur up to 9999 times - carrying the long text lines.
Kind regards,
Clemens
Edited by: Clemens Li on Oct 19, 2009 4:05 PM
‎2009 Oct 19 3:09 PM
Hello Clemens,
Thanks for pointing this out 😛
I missed the segment E1MTXLM. So in short E1MTXHM is (sort of a deep structure) which can have multiple lines of E1MTXLM !!!
Please excuse me for my silly post.
BR,
Suhas
‎2009 Oct 19 3:28 PM
Hi Clemens,
Thanks for the help and my requirement is I need to hold multiple lines in one E1MTXLM segment. I have a long material text for 5 lines and when I am generating an IDOC it is creating 5 sub segments of E1MTXLM. My client needs all the 5 lines in one E1MTXLM segment only.
Example: IDOCs Line1
IDOCs Line2
IDOCs Line3
Please let me know any other IDOC (DEBMAS, CREMAS etc) which can hold multiple lines in one segment without generating multiple segments.
Thanks & Regards,
Rayan
‎2009 Oct 19 3:32 PM
Hello rayan,
Can you share the code where you have populated the segments?
That will help us in analysing your problem in a better way.
BR,
Suhas
‎2009 Oct 20 7:41 AM
Hi Subas,
I haven written any code as I am triggering IDOC through BD10. This is a testing requirement and we need any IDOC irresepective of MATMAS, DEBMAS, CREMAS etc etc which can have multiple lines in a single segemnt.
Sample IDOC:
Z2XXXXD000 00002300002203CTDI-PA
90210 Testing Address
CA
Beverly Hills
United States
Z2XXXD000 00002400002203ON TESTING
303 308 5319
Z2XXXXC000 00002500000102Z004E
Actually every IDOC I am generating is getting multiple segment and each segment holding one line and my requirement is that all the lines should be get accomadated in a single segment like the above sample IDOC.
Actually each segment has segment name and IDOC no. followed by field values but my requirement is within one segment name and IDOC no. all the field values get accomadated. Hope you got the understanding of what my requirement is? Please guide me how to trigger multiple line in a segment.
Thanks & Regards,
Rayan