‎2006 Dec 18 8:48 AM
Dear friends
The need for me is to use idoc segment multiple times when loading data.
I read about idocs that each segment has an attribute that defines the minimum and the maximum number of times a data record corresponding to a segment can exist in an Idoc.
My question is how??? Please advise me or any links where i can find info about this. else if you have any docs on the same I will be glad if you mail me at pank0906@yahoo.com. Its a bit urgent...
Many thanks
Pankaj
‎2006 Dec 18 8:59 AM
Pankaj,
Go to WE30, type in the IDOC type name, and display. Now, double click on the Segment name and you should be able to see the MIN and MAX times the segment can be repeated in that IDOC. These numbers are defined while designing the IDOC and cannot be changed at runtime.
Regards,
Ravi
Note - Please mark all the helpful answers
‎2006 Dec 18 8:59 AM
Pankaj,
Go to WE30, type in the IDOC type name, and display. Now, double click on the Segment name and you should be able to see the MIN and MAX times the segment can be repeated in that IDOC. These numbers are defined while designing the IDOC and cannot be changed at runtime.
Regards,
Ravi
Note - Please mark all the helpful answers
‎2006 Dec 18 9:12 AM
HELLO Ravikumar
thanks for your reply.
I think you misinterpret my question, is not to change this values but how to use a segment multiple times, I am using LSMW and we have multiple items for which we have to use a segment multiple time depending upon how many Items we have??
I hope this will clear my question.
thanks
Pankaj
‎2006 Dec 18 9:19 AM
I don't know how to do it LSMW, but if done programmatically, you append the table of type EDIDD with the same segment name and the correspoding data multiple times, along with the other fields of EDIDD.
Regards,
Ravi
Note - Please mark all the helpful answers
‎2006 Dec 18 9:32 AM
HELLO Ravikumar
Is it possible you can tell me the format of the flat file in the same case? looks like you have used it. And if the sample code is available you may wish to paste it here.
any how its a helpful answer. Thanks.
Pankaj
‎2006 Dec 18 9:58 AM
Look at the following example code.
LOOP AT I_PROJ_INFO INTO WA_PROJ_INFO.
MOVE WA_PROJ_INFO TO WA_PROJ_INFO_TMP.
* Moving the Asset Details
LWA_ASSET-GISASSETID = WA_PROJ_INFO-GISASSETID.
LWA_ASSET-ASSET_CAT = WA_PROJ_INFO-ASSETTYPE.
LWA_ASSET-SAPEQUIPMENTID = WA_PROJ_INFO-SAPASSETID.
LWA_EDIDD-SEGNAM = 'ZE1ASSET_UPD'. "Segment Name
LWA_EDIDD-SDATA = LWA_ASSET. "Actual Data
LWA_EDIDD-HLEVEL = 3. "Segment level in the IDOC
APPEND LWA_EDIDD TO LI_EDIDD.
CLEAR LWA_EDIDD.
ENDLOOP.
Regards,
Ravi
‎2006 Dec 18 10:10 AM
thanks man gr8.
This definetly will help me get my problem solved. Only the last thing if it is possible for you that you can send me a sample flat file how this same thing will look like in the flat file.
pank0906@yahoo.com.
Thanks though for your help.
Pankaj