• RELEVANCY SCORE 4.43

    DB:4.43:Idoc Segment Sequence f9






    Hi Folks,

    I am extending a standard Idoc and want to add a segment as a child node.But the problem i am facing is the child comes at the first level by default whereas i want it to be in specific sequence.

    For example

    This is the current standard IDoc:

    Parent Segment 1

    E1EDP08 --- Child Segment 1

    E1EDP09 --- Child Segment 1

    I want to make a new custom segment ZE1EDP09 after the E1EDP09 (Not sub-segment),Like:

    Parent Segment 1

    E1EDP08 --- Child Segment 1

    E1EDP09 --- Child Segment 1

    ZE1EDP09 --- Custom Child Segment 1

    But when i try adding it comes on the top,Like:

    Parent Segment 1

    ZE1EDP09 --- Custom Child Segment 1

    E1EDP08 --- Child Segment 1

    E1EDP09 --- Child Segment 1

    Please let me know how to change the sequence of the segments in the Extended Idoc type.Thanks in Advance.

    DB:4.43:Idoc Segment Sequence f9


    Hi Abhishek

    the sequence wont be an issue. When you will fill the data in custom segment in an exit you will have to determine the position anyhow. So it does not matter where it gets inserted

    Nabheet

  • RELEVANCY SCORE 4.39

    DB:4.39:Problem In Extended Idoc 17






    Hi All,

    I have Extended ORDERS05 for adding custom fields for inbound process,

    Steps i have fallowed to create Extend Idoc:

    1,Created new segment with all Z-fields and released,

    2,Created Extension Idoc with reference standard Idoc ORDER05, and added custom segment under standard segment E1EDP01,

    released Extend Idoc,

    am able to see all Z-fields in Z-segment,

    but my problem is am unable to see any standard fields under any standard segment in my Extended Idoc?

    why am not able to see all standard fileds?

    Regards

    suresh.d

    DB:4.39:Problem In Extended Idoc 17


    Hi,

    Are you checking in WE30 or in WE02?

    In WE30 you cans ee only Segment names.

    Give the segment name in SE11 and then see if you are able to see the fields.

    Regards,

    Sravan

  • RELEVANCY SCORE 4.34

    DB:4.34:Segment With Child Segments 8f






    Hi Folks,

    I have created an IDoc in which I have a parent one segment and 2 child segments. I'm trying to send the IDoc through a custom program. If there are only fields inside a segment I know how to populate the IDoc data structure but I don't have any Idea how to populate an IDoc data structure if the sengment has child segments also.

    Kindly Help.

    Regards,

    santosh

    DB:4.34:Segment With Child Segments 8f


    That is code that he provided, though you're right, it's not very descriptive/clear code. He also left out assigning the segment number, parent segment, and length fields. However, if you would just take some time to look at the EDIDD structure, you should be able to figure it out. You also have many outbound process code examples available in the standard system to look at.

  • RELEVANCY SCORE 4.24

    DB:4.24:Post Inbound Idoc - Custom Segment Enhanced Field Of Standard Table zk



    Hello Folks,

    We have a requirement where custom field of a standard table PA0002 needs to be sent through idoc for which i have created a new segment and added a sub segment under main segment and populated the values data has been sent to the receiving system....

    But the problem with above, is only the data in PA0002 is getting updated. How to update the Custom segment data into the PA0002 (append structure) Custom field in inbound idoc

    DB:4.24:Post Inbound Idoc - Custom Segment Enhanced Field Of Standard Table zk


    Go to we31 . give the segment name..goto menu option Edit-set release...

    Try after this .

    Also make sure that u hve transported the Z dataelements ( if u hve created for this segment ) before releasing the segment .

    Edited by: anil sasidharan on Feb 23, 2009 5:18 PM

  • RELEVANCY SCORE 3.96

    DB:3.96:Fill Data To Z Fileds Into Invoic02 Idoc 97



    Hello Folks,

    I need to pass data to screen fileds (custom fields) into BDC session generated by IDOC INVOIC02, Since these fileds are custom fields,maintaining T076K / OBCC. I have extended the IDOC and added extra segment and loaded data into it.

    Parent segement :E1EDK01

    Child Segment: ZINVOIC01_01

    I tried using exit EXIT_SAPLIEDI_002 but its not triggered when i tried to debug from WE19.

    Please let me know if anyone has faced similar issue.

    Thanks in advance.

    Regards

    Aradhya.J.M.

  • RELEVANCY SCORE 3.95

    DB:3.95:Idoc Segment Details Table d8



    Hi all,

    Please help me to get the table for idoc segment details

    In which table is IDoc number and AMT_DOCCUR is saved.

    DB:3.95:Idoc Segment Details Table d8


    Hi,

    the tables are:

    EDIDC - Control Records,

    EDID4 - Data Records,

    EDIDS - Status Records.

    Regards

    Ivan

  • RELEVANCY SCORE 3.91

    DB:3.91:Add Segment To Custom Idoc Type 7z


    Hi,Would like to add a new segment to custom idoc type. When i tried to reset the release for IDoc type, it's gives me a message that Idoc is generated, display possible. Is that means i have to go for extending the idoc type? I thought Custom idoc types can be enhanced at later times.Your inputs are appreciated.Priya.

    DB:3.91:Add Segment To Custom Idoc Type 7z

    Have a look into this thread: Modifiy a generated IDOC (basic) type - HOWTO REGENERATE IDOC?I think you find a solution there.

  • RELEVANCY SCORE 3.88

    DB:3.88:Create Out-Bound Idoc Using Abap Program. jm



    Hi All,

    How to create outbound idoc using ABAP program. I am trying to use the FM MASTER_IDOC_DISTRIBUTE but this is not creating the idoc in its structure. ie all the segments are lined up continues. e.g. i have total 8 segments in custom idoc where 4 the segment is a child to 3rd segment but created idoc shows all the segments at the same level. i am doing something wrong.. can some one explain how to create outbound doc for a hierarchical structured idoc...

  • RELEVANCY SCORE 3.72

    DB:3.72:Reg: Outbound Error Populating In Custom Program d7



    Hi All

    My problem is on OUTBOND SIDE.....

    i am creating custom outbound idoc with Z* Program...

    During creating of idoc i use to pick data from different table...

    i would like to falied the idoc in error with error message if data is initial in a field in segment...

    ex

    Segment : ztest_h

    field : soldto

    field: add

    field :....

    field:.....

    segment : ztest_i

    field : po_num

    field: qty

    field :....

    field:.....

    .....

    for example...

    if no data in soldto po_num ....fields... i would like to add a status record in outbound with status

    07 with error message

    Missing data in soldto field in segment... ztest_h

    Missing data in po_num field in segment...ztest_i

    Question is...

    how to pass the status records while creating in O/B Idoc.....

    Thanks

    RR

    DB:3.72:Reg: Outbound Error Populating In Custom Program d7


    Hi Ramesh,

    Would you mind sharing your solution with us, as we have similar requirement? Further question is this: can we assume that the IDOC will not be sent to PI in this case, giving time to amend the missing data before sending out?

    thx!

  • RELEVANCY SCORE 3.68

    DB:3.68:Idoc Segment With 1000 Char xj



    Hi

    I have a custom IDOC created with one of the segments being 1000 char. The data is populated through a custom program.

    In WE02 I am unable to see all the 1000 char. Even if I export the IDOC to a spreadsheet or word doc it does not show completely all the characters.

    I am able to use FM IDOC_Read_Completely to read the IDOC and view the complete segment but I am looking for a standard transaction.

    Any inputs on how the I can view all the data in the segment in a standard trx ?.

  • RELEVANCY SCORE 3.64

    DB:3.64:Custom Segment Is Not Appearing In Orders05 7s



    Hi ,

    I am trying to extend IDOC type ORDER05.I have followed all the steps But even then segment is not appearing after i generate IDOC and test in we02.

    The two fields has to extended in EKKO and same has to extened in ORDER02 at the time PO creation.

    This is the requirement. Right now iam not passing any data in the custom segment but i have done all the initial configuration..

    Idoc also generated succssfully..but its having my custom segment..Pls advice

    DB:3.64:Custom Segment Is Not Appearing In Orders05 7s


    Hi,

    You need to code in the user exit to populate the extended segment in the idoc.

    Also you need to define the idoc extension in the partner profile definition.

    Thanks and Regards,

    Sriranjani Chimakurthy.

  • RELEVANCY SCORE 3.63

    DB:3.63:Sending Custom Field Added In Standard Infotype Through Idoc zd



    Hello All,

    We have a requirement where custom field of a standard infotype 0002 needs to be sent through idoc only to a desired destination system.

    My Approach:

    I have created a custom segment having custom field from IT 0002 mapped this segment in T777D table.

    But the problem with above, is all the system who are receiving IT0002 will be receiving this custom segment also including desired system.

    How can it be filtered?

    DB:3.63:Sending Custom Field Added In Standard Infotype Through Idoc zd


    Hi,

    Create the new segment and message types of the idoc with cutom field.

    Then map the new mesage type and corresponding receiver( SM59).

  • RELEVANCY SCORE 3.60

    DB:3.60:How To Do Idoc Extension For Generated Idoc Type Through Bdfg 8d



    Hi All,

    I have created Message type ,Idoc type , Outbound, Inbound Function modules through tcode BDFG in CRM 7.0 for CRMXIF_ORDER_SAVE.

    below details:

    Generated Idoc type: ZCRMXIF_ORDER_SAVE01

    and my requirement is to add a custom segment to the generated IDoc type ZCRMXIF_ORDER_SAVE01. When am trying to add custom segment to the generated IDoc getting message as "Action is not Possible".

    So kindly help me how to extend the Idoc type ZCRMXIF_ORDER_SAVE01. after extension wat things needs to be done?

    Thanks regards

    Raj

    DB:3.60:How To Do Idoc Extension For Generated Idoc Type Through Bdfg 8d


    Hi All,

    I have created Message type ,Idoc type , Outbound, Inbound Function modules through tcode BDFG in CRM 7.0 for CRMXIF_ORDER_SAVE.

    below details:

    Generated Idoc type: ZCRMXIF_ORDER_SAVE01

    and my requirement is to add a custom segment to the generated IDoc type ZCRMXIF_ORDER_SAVE01. When am trying to add custom segment to the generated IDoc getting message as "Action is not Possible".

    So kindly help me how to extend the Idoc type ZCRMXIF_ORDER_SAVE01. after extension wat things needs to be done?

    Thanks regards

    Raj

  • RELEVANCY SCORE 3.57

    DB:3.57:Extension Segment - Conversion Table - Problem - Urgent pp



    Hi all,

    I have a extension type Idoc INVOIC02.

    I have added custom segment YE1EDK01 to the Segment E1EDK01.

    IN WE31 , i have released it with 46c version.

    In Segment definition it was showing bYE1EDK01000./b

    while i transported it to testing , the idoc was showing error that NO CONVERSION TABLE for external segment YE1EDK01.

    Kindly help me in solving this.

    Should i use EVNVIRONMENT - CONVERSION in development itself and transport it along with the Segment and the Extension type idoc???

    Waiting for your replies.

    Suki.

    DB:3.57:Extension Segment - Conversion Table - Problem - Urgent pp


    Hi all,

    I have a extension type Idoc INVOIC02.

    I have added custom segment YE1EDK01 to the Segment E1EDK01.

    IN WE31 , i have released it with 46c version.

    In Segment definition it was showing bYE1EDK01000./b

    while i transported it to testing , the idoc was showing error that NO CONVERSION TABLE for external segment YE1EDK01.

    Kindly help me in solving this.

    Should i use EVNVIRONMENT - CONVERSION in development itself and transport it along with the Segment and the Extension type idoc???

    Waiting for your replies.

    Suki.

  • RELEVANCY SCORE 3.57

    DB:3.57:Partner Profile For Idoc - Configuration zp



    Hi..

    I have an inbound IDOC TPSSHT01, which has been extended by adding a Z segment.. But I keep getting an error message.. The IDOC is created with status 56 and the message says "No inbound profile found".. I have configured the Inbound profile to include the message type 'SHIP' in WE20 and also added the message type in WE57 and WE82... Do i need to do any further settings?

    Thanks

    Rishi

    DB:3.57:Partner Profile For Idoc - Configuration zp


    Hi,

    - where the extension released in WE30?

    -BD64, model distributed?

    -Has SYNCH message type been included in the outbound parameters in the partner profile?

    Thanks

    Krithika

  • RELEVANCY SCORE 3.57

    DB:3.57:Update Kna1 Table Using Debmas Idoc Custom (Z Segement) Segment jd



    Hi All,

    We are facing issue in updating KNA1 table fields using custom segment values.

    Values are properly populated in custom segment and we found the user exit for inbound idoc processing as well i.e. EXIT_SAPLVV02_001.

    But once we get the data in IDOC_SDATA how should we process it , we do not want to write direct database table update for KNA1.

    Is there any customer exit or BADI available where we can pass IDOC-SDATA and on posting of idoc data will be updated in KNA1 table.

    If idoc fails data should not be updated. We want to process data from custom segment which should update standard table KNA1.

    BAPI or direct table update approach we do not want to use.

    Regards,

    Sanjana

    DB:3.57:Update Kna1 Table Using Debmas Idoc Custom (Z Segement) Segment jd


    Hi,

    I suppose the exit EXIT_SAPLVV02_001 gets called after the customer has been created. You can also try using the BTE DE_BALE which is called during inbound IDOC processing where you can populate the custom fields in KNA1 (structure x_e1kna1m).

    Hope this helps,

    ~Athreya

  • RELEVANCY SCORE 3.57

    DB:3.57:Not Able To Generate Idoc Extension For Idoc Type, Which Cretated Thrg Bdfg kj



    Hi All,

    I have created Message type ,Idoc type , Outbound, Inbound Function modules through tcode BDFG in CRM 7.0 for CRMXIF_ORDER_SAVE.

    below details:

    Generated Idoc type: ZCRMXIF_ORDER_SAVE01

    and my requirement is to add a custom segment to the generated IDoc type ZCRMXIF_ORDER_SAVE01. When am trying to add custom segment to the generated IDoc getting message as "Action is not Possible".

    So kindly help me how to extend the Idoc type ZCRMXIF_ORDER_SAVE01. after extension wat things needs to be done?

    Thanks regards

    Raj

    DB:3.57:Not Able To Generate Idoc Extension For Idoc Type, Which Cretated Thrg Bdfg kj


    Hi All,

    I have created Message type ,Idoc type , Outbound, Inbound Function modules through tcode BDFG in CRM 7.0 for CRMXIF_ORDER_SAVE.

    below details:

    Generated Idoc type: ZCRMXIF_ORDER_SAVE01

    and my requirement is to add a custom segment to the generated IDoc type ZCRMXIF_ORDER_SAVE01. When am trying to add custom segment to the generated IDoc getting message as "Action is not Possible".

    So kindly help me how to extend the Idoc type ZCRMXIF_ORDER_SAVE01. after extension wat things needs to be done?

    Thanks regards

    Raj

  • RELEVANCY SCORE 3.54

    DB:3.54:Custom Idoc Segment Not In Red Color In We05 mx



    Hi,

    i have a custom idoc for FI posting. Im executing inbound program and getting few errors with status code 51. i can see data and status records in we05 but no segment is in red color. I have 100 segments now how could i check which segment data has error. For other custom Idoc i can see segments in red color if any error. Could anybody please suggest what im missing here.

    Thank you

    DB:3.54:Custom Idoc Segment Not In Red Color In We05 mx


    Hello Srikanth,

    As the status is 51 so Idoc has created successfully and function module will always return 0. function module is calling a BAPI for FB01 transaction and there we have sy-subrc ne 0 but how could i associate this sy-subrc with segment being processed. Anyway, you made a good point and i can see if there is anything inside function module. I will update the thread accordingly.

    Thanks for your time.

  • RELEVANCY SCORE 3.54

    DB:3.54:Custom Basic Type Purchase Req Idoc Hierarchy Issue With Multiple Lineitems cm



    Hi Experts,

    I have created the Custom basic Idoc type for purchase requisition and added all standard segments and under E1BPEBANC segment added 3 more custom segments

    IDoc Structure looks below here

    YPREQCR02 Globus NPM Purchase Requistion Create

    E1PREQCR Header segment

    E1BPEBANC Transfer Structure: Create Requisition Item

    YE1BPEBANC Custom Segment

    YE1BPEBAND Custom Segment

    YE1BPEBANE Custom Segment

    E1BPEBKN Transfer Structure: Create/Display Requisition Acct Assgt

    E1BPEBANTX BAPI Purchase Requisition: Item Text

    E1BPESUHC Communication Structure: Limits

    E1BPESUCC Communication Structure: Contract Limits

    E1BPESLLC Communication Structure: Create Service Line

    E1BPESKLC Create Comm. Structure: Acct Assgt Distr. for Service Line

    E1BPESLLTX BAPI Services Long Text

    Message type and Partner profile had been setup .

    I have written custom program to post outbound IDoc using Standard SAP function module MASTER_IDOC_DISTRIBUTE and single line purchase requistion Outbound IDoc post correctly(I mean segments tree structure) and when multiple lines Purchase requistion outbound Idoc post segments are sequentially.

    in my custom program segments Hierchy levels and PSGNUM and SEGNUM are populating properly.but MASTER_IDOC_DISTRIBUTE overwriting with other numbers

    My SAP version is 4.6C

    Even I have try with another IDOC post outbound standard function' IDOC_OUTBOUND_WRITE_TO_DB',still multiple line PR Idoc not posting tree structure.

    if anyone know about this problem, can you please let me know.

    DB:3.54:Custom Basic Type Purchase Req Idoc Hierarchy Issue With Multiple Lineitems cm


    Hi Experts,

    I have created the Custom basic Idoc type for purchase requisition and added all standard segments and under E1BPEBANC segment added 3 more custom segments

    IDoc Structure looks below here

    YPREQCR02 Globus NPM Purchase Requistion Create

    E1PREQCR Header segment

    E1BPEBANC Transfer Structure: Create Requisition Item

    YE1BPEBANC Custom Segment

    YE1BPEBAND Custom Segment

    YE1BPEBANE Custom Segment

    E1BPEBKN Transfer Structure: Create/Display Requisition Acct Assgt

    E1BPEBANTX BAPI Purchase Requisition: Item Text

    E1BPESUHC Communication Structure: Limits

    E1BPESUCC Communication Structure: Contract Limits

    E1BPESLLC Communication Structure: Create Service Line

    E1BPESKLC Create Comm. Structure: Acct Assgt Distr. for Service Line

    E1BPESLLTX BAPI Services Long Text

    Message type and Partner profile had been setup .

    I have written custom program to post outbound IDoc using Standard SAP function module MASTER_IDOC_DISTRIBUTE and single line purchase requistion Outbound IDoc post correctly(I mean segments tree structure) and when multiple lines Purchase requistion outbound Idoc post segments are sequentially.

    in my custom program segments Hierchy levels and PSGNUM and SEGNUM are populating properly.but MASTER_IDOC_DISTRIBUTE overwriting with other numbers

    My SAP version is 4.6C

    Even I have try with another IDOC post outbound standard function' IDOC_OUTBOUND_WRITE_TO_DB',still multiple line PR Idoc not posting tree structure.

    if anyone know about this problem, can you please let me know.

  • RELEVANCY SCORE 3.53

    DB:3.53:Matmas Idoc 81



    Hello Gurus,

    I am using MATMAS05 Idoc to send material master data to a non SAP application, and I am using change pointers as a mechanism to populate the Idoc everytime there is a change in Material master Data.

    I have added a custom segment (ZMAMAS) to E1MARAM segment and added ATNAM and ATWRT fields to to this custom segment, which are supposedly for Charecterstic name and charecterstic value for charecterstics under Material Class 001.

    Problem: Every time I do any changes to the fields belonging to the standard segments of MATMAS05 (for ex : Material group, UOM, Shelf life, etc., ) an Idoc is triggering. But everytime i make changes to the charecterstic value for charecterstics under material class No Idoc is getting generated.

    Please Help.

    DB:3.53:Matmas Idoc 81


    check the distribution model, add the message type your model

  • RELEVANCY SCORE 3.53

    DB:3.53:T777d 2nd Idoc Segment Not Working pc



    I have enhanced an IDOC i.e. HRMD_A. In this, because we have added a new field to Infotype 0019, I have created a new segment ZS_P0019 to include this.

    Now in Table T777D we have:

    IDOC Segment E1P0019

    2nd IDOC segment ZS_P0019

    3rd IDOC segment

    When we send the IDOC across the new field is not filled even though on the outbound everything works fine.

    When I change the T777D table to:

    IDOC Segment ZS_P0019

    2nd IDOC segment

    3rd IDOC segment

    then everything works fine.

    How do I get this to work without removing E1P0019 from the IDOC segment 1st position? The reason I ask is that we have other IDOCs which require this E1P0019 segment so it cannot simply be removed as I have done. What I am doing is on the dev system at the moment so I cannot break anything, but I certainly cannot take this to Production.

    DB:3.53:T777d 2nd Idoc Segment Not Working pc


    I have enhanced an IDOC i.e. HRMD_A. In this, because we have added a new field to Infotype 0019, I have created a new segment ZS_P0019 to include this.

    Now in Table T777D we have:

    IDOC Segment E1P0019

    2nd IDOC segment ZS_P0019

    3rd IDOC segment

    When we send the IDOC across the new field is not filled even though on the outbound everything works fine.

    When I change the T777D table to:

    IDOC Segment ZS_P0019

    2nd IDOC segment

    3rd IDOC segment

    then everything works fine.

    How do I get this to work without removing E1P0019 from the IDOC segment 1st position? The reason I ask is that we have other IDOCs which require this E1P0019 segment so it cannot simply be removed as I have done. What I am doing is on the dev system at the moment so I cannot break anything, but I certainly cannot take this to Production.

  • RELEVANCY SCORE 3.51

    DB:3.51:Eewb-Idoc j3



    Hi,

    I have created one custom field via EEWB and extended it in table CRMD_ORDERADM_H.

    Now I have an interface with legacy system using IDOC. I need to populate the custom field but I can't locate the new field in the IDOC segment. Pls tell me if I should regenerate the IDOC message type manually.

    What are the steps involved?

    Thanks,

    NS

    DB:3.51:Eewb-Idoc j3


    I've read that I need to regenerate the IDOC.

    Cam someone guide me through the steps?

    Thanks,

    NS

  • RELEVANCY SCORE 3.51

    DB:3.51:Adding A Custom Segment To A Generated Idoc Type x3



    Hi,

    I need to add a custom segment to the IDOC type EQUIPMENT_CREATE02. I see that the IDOC already has an extension with the same name, however when i try to change it, I get a message that generated types cannot be changed. I see that there is a delegation ZEQUI for the type EQUI. But when i try to view the interface for either EQUI or ZEQUI in BDBG, i get a message that there is no interface for the selected object type.

    I have checked in another sandbox, and am actually able to display the interface for EQUI in transaction BDBG. So this problem is peculiar to our current system only. It seems a previous developer has delegated the object type EQUI and generated the IDOC with extension, but I am not able to trace back the steps.

    Any help on this would be appreciated.

    thanks,

    Venkata.

    DB:3.51:Adding A Custom Segment To A Generated Idoc Type x3


    Hi,

    I need to add a custom segment to the IDOC type EQUIPMENT_CREATE02. I see that the IDOC already has an extension with the same name, however when i try to change it, I get a message that generated types cannot be changed. I see that there is a delegation ZEQUI for the type EQUI. But when i try to view the interface for either EQUI or ZEQUI in BDBG, i get a message that there is no interface for the selected object type.

    I have checked in another sandbox, and am actually able to display the interface for EQUI in transaction BDBG. So this problem is peculiar to our current system only. It seems a previous developer has delegated the object type EQUI and generated the IDOC with extension, but I am not able to trace back the steps.

    Any help on this would be appreciated.

    thanks,

    Venkata.

  • RELEVANCY SCORE 3.51

    DB:3.51:Adding Few Fields To The Existed Custom Segment cc



    Hi all,

    I want to add 10 extra fields to the existed custom segment. But when i am trying to edit the segment in the T.code we31 it is not able to editing.is there any settings that i need to do?

    Tell me how to add the fields to the existed custom segment.

    Thanks,

    DB:3.51:Adding Few Fields To The Existed Custom Segment cc


    Hi Mythily,

    If the latest segment version is already released (you can see the 'Released' checkbox to set, if so) you would have to create a new segment to whih you can add new fields or delete existing fields from the list. And finally for this segment to take effect you need to release it when done.

    Hope this helps.

    Thanks,

    Jo

  • RELEVANCY SCORE 3.51

    DB:3.51:User Exit To Update Extended Segment In Idoc For Va01 z7



    Hi Experts,

    I am working on Outbound IDOC interface for VA02 and VA01

    I am using ORDERS05 IDOC type

    i want to create one custom segment

    and i want to fill that custom segment

    but i am not able to find user exit to update this custom segment

    please help.

    DB:3.51:User Exit To Update Extended Segment In Idoc For Va01 z7


    Akshay,

    I think you want to send order response for the orders created via Va01 or edited by Va02

    To do this steps are:-

    1) Use FM IDOC_OUTPUT_ORDRSP to send order response (ORDERS05)

    2) Find the function exits in this Fm using search string as " Call Customer-function".

    3) Use include in the exits to write code to append new segments to the IDOC. Look for the Tables parameter in the Exits which are of structure type EDIDD. Insert new Segment details in this table and your IDOC will be generated with required values.

    Hope this helps!!

    Harry

  • RELEVANCY SCORE 3.50

    DB:3.50:Idoc Filter Problem In Bd64 9f



    Hi,

    I am using LOIPRO to send production orders to other systems. I extended the standard idoc to include control recipe destination information by adding custom segment and used this field in the filter objects at distribution model level.

    First i faced the error "internal error: Program read table idoc_structure, command data_select_for_block, argument Z1CRDT". After going through some posts, i understand the extension type is not passed in CIMTYP field. After this, i am not facing this error but the idoc is generated inspite of not meeting the filter object conditions. Somehow, the custom segment which was added is missing.

    For example, at the filter object level i had set control recipe destination should be 03. If it is 03, the idoc is generated with custom segment and every thing else is fine. If it is not 03, the idoc is still generated with out the custom segment.

    Thanks,

    Prasad.

    DB:3.50:Idoc Filter Problem In Bd64 9f


    Custom segment was not mandatory. I made it mandatory and it worked.

    Thanks,

    Prasad.

  • RELEVANCY SCORE 3.49

    DB:3.49:Standard Segment E1edka1 Not Existing In Pricat01 1p


    Dear Experts,I have created a custom segment YE1EKKA1 with few fields and have to add to the standard segment E1EDKA1 of PRICAT01Idoc.But standard segment E1EDKa1 is not existing in PRICAT01 Idoc so that I am unable to add my custom segment YE1EDKA1 to E1EDKA1.Can u please suggest me how to over come this.Thanks in Advance,Farook

    DB:3.49:Standard Segment E1edka1 Not Existing In Pricat01 1p

    Hi Farook,probably it is simply a misunderstanding? The Pricat01 has the segment E1ADRM1 and it is really similar to E1EDKA1. If you compare both segments it is really easy to see.Probably you should add your custom segment to this group.Hope this helps.Regards,SDCrack

  • RELEVANCY SCORE 3.48

    DB:3.48:How To Preserve Spaces In Idoc-Xml Conversion cf



    Hi,

    My source is an IDOC(ARTMAS04) which is an imported object in the Integration Repository. When I am posting an IDOC from R/3, the XML structure that is created in XI has one of the segment field(type string) condensed with instead of preserving with spaces(even with spaces in the value).

    If it is a custom defined data type we can preserve the white spaces but since the source is an IDOC please suggest how to preserve the spaces in the segment fields.

    Thanks,

    Sumanth.

    DB:3.48:How To Preserve Spaces In Idoc-Xml Conversion cf


    Andrew,

    I have did in the same way as what anand said, I have stored the data from SXMB_MONI and viewed it through Notepad, but still I see that spaces are condensed in the actual message.

    Is there any way to preserve them.

    Thanks,

    Sumanth.

  • RELEVANCY SCORE 3.46

    DB:3.46:How To Modify An Idoc Ampliation Segment dc



    Hi xprts,

    I've created and ampliation of an existing IDOC of HR module.

    When i'm trying to modify the segment trough tcode we31, adding a new version to modify sections of the segment, it returns the following message :

    NAME E1P0021 not permitted in customer system. althought on tcoce menu this options appeas enabled.

    Tnxs for ur hlp.

    DB:3.46:How To Modify An Idoc Ampliation Segment dc


    You cannot directly modify a standard segment.

    Follow the process given below to enhance an Udoc to add or modify segments.

    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b7d6243d711d1893e0000e8323c4f/frameset.htm

    Regards,

    Ravi

  • RELEVANCY SCORE 3.46

    DB:3.46:Idoc Extension Related Issue d1



    Hi,

    I have a standard idoc type extended with a custom segment. I have mentioned the same in the corresponding partner profile(idoc type and the extension).

    When I tried to import the meta data for this idoc in XI, it is taking it as ZXXXXX, instead of the standard idoc name. The incoming idoc is showing as a standard idoc with custom segments in it. But internally, what we have is of ZXXXX. Due to this i am getting errors.

    Could anyone let me know how to import the idoc data with the standard SAP name and with custome segments in it?

    DB:3.46:Idoc Extension Related Issue d1


    Hi,

    May I know are you adding or ignoring the fields.

    once you change the standard one it will have the Z name.

    Regards

    Agasthuri Doss

  • RELEVANCY SCORE 3.46

    DB:3.46:Change Pointers Not Being Created For Hr-Pa Custom Infotype aj



    Problem Description:

    We have a custom Infotype in SAP to store the data for contingent employee - Infotype 9001. Change pointers is

    turned on. We are running the program RBDMIDOC to send changes to Oracle IDM using message HRMD_A. The change

    detected for all infotypes except 9001. For 9001, the change pointer is not created.

    The following are the current configuration details:

    IDOC Extension Created to Idoc type HRMD_A07 (ZHR_EXT)

    custom segment zhr_seg

    Change pointers are switched on.

    Change pointers switched on for message Type HRMD_A.

    IDOC configuration created for Port / Process code etc.

    Maintenance of view T777D - Added ZHR_SEG.

    If I add the segment ZHR_SEG as a 2nd segment to Infotype 0000, I dont get a syntax error. But the changes for Infotype 9001 are not picked up.

    If I add the segment ZHR_SEG as a segment to Infotype 9001, I get a syntax error - check EDI: Syntax error in IDoc (mandatory segment missing) below.

    -

    EDI: Syntax error in IDoc (mandatory segment missing)

    Message no. E0072

    Diagnosis

    The segment ZHR9001 has the attribute 'Mandatory' in the syntax description of the basic type HRMD_A07 (customer enhancement ZHR_EXT). However, the segment is missing in the IDoc. The segment number logged in the status record identifies the item before which the segment is missing.

    This error may have been triggered by an unidentifiable segment before the expected mandatory segment.

    Procedure

    Please check the IDoc or the syntax description of the basic type HRMD_A07 (customer enhancement ZHR_EXT).

    DB:3.46:Change Pointers Not Being Created For Hr-Pa Custom Infotype aj


    Problem Description:

    We have a custom Infotype in SAP to store the data for contingent employee - Infotype 9001. Change pointers is

    turned on. We are running the program RBDMIDOC to send changes to Oracle IDM using message HRMD_A. The change

    detected for all infotypes except 9001. For 9001, the change pointer is not created.

    The following are the current configuration details:

    IDOC Extension Created to Idoc type HRMD_A07 (ZHR_EXT)

    custom segment zhr_seg

    Change pointers are switched on.

    Change pointers switched on for message Type HRMD_A.

    IDOC configuration created for Port / Process code etc.

    Maintenance of view T777D - Added ZHR_SEG.

    If I add the segment ZHR_SEG as a 2nd segment to Infotype 0000, I dont get a syntax error. But the changes for Infotype 9001 are not picked up.

    If I add the segment ZHR_SEG as a segment to Infotype 9001, I get a syntax error - check EDI: Syntax error in IDoc (mandatory segment missing) below.

    -

    EDI: Syntax error in IDoc (mandatory segment missing)

    Message no. E0072

    Diagnosis

    The segment ZHR9001 has the attribute 'Mandatory' in the syntax description of the basic type HRMD_A07 (customer enhancement ZHR_EXT). However, the segment is missing in the IDoc. The segment number logged in the status record identifies the item before which the segment is missing.

    This error may have been triggered by an unidentifiable segment before the expected mandatory segment.

    Procedure

    Please check the IDoc or the syntax description of the basic type HRMD_A07 (customer enhancement ZHR_EXT).

  • RELEVANCY SCORE 3.45

    DB:3.45:Adding Segment In Custom Idoc d3



    Hi Experts,

    I have created an outbound program to populate the outbound IDOC . . Now I need to add one segment to IDOC basic type .

    Initially when the idoc type was released ,release was 700 . Now the release is upgraded to 701 . Hence I am not able to insert the segment in the same IDOC type .

    So I have created the sucessor for this IDOC type and added this new segment in this sucessor IDOC . Now when this outbound program is executed IDOC goes in error with status record 26 as shown below :

    EDI: Syntax error in IDoc (segment cannot be identified)

    Message no. E0078

    Diagnosis

    The segment Z1ZAUDHDR does not occur at the current level of the basic type ZFI_CUST_AGEING (extension ).

    Also , I tried updating the release to 701 in table EDBAS and EDISDEF . And then I was able to insert new segment in the original IDOC type .

    Can you please let me know what should be the ideal way to do this and why is this error 26 ??

    Also should I pass the new sucessor IDOC type in the control record in outbound program.

    Please suggest.

    Regards,

    Kaustubh.

    DB:3.45:Adding Segment In Custom Idoc d3


    Hi Kaustubh,

    Is the new idoc extension created released, i.e. maintain suppose release 702.

    or check if the data populated in the Idoc is in proper sequence in which ur segments are present.

    We got similar kind of issue and we got to know that data was not in proper sequence.

    Regards,

    Ganesh.

    Edited by: Ganesh Lathi on Dec 28, 2011 11:51 AM

  • RELEVANCY SCORE 3.45

    DB:3.45:Bd10 And Bd21 - Idoc Custom Segment - Error In Bd21 But No Error In Bd10 3k



    Hi All,

    I have a custom segment 'ZXXXXX' added to MATMAS05 idoc type.

    When I use BD10 to send a material to another system I don't have any errors but when I use BD21 Change pointers I'm getting an internal error.

    Is there something I need to add so that it works both for BD10 and BD21 without any errors?

    Please help.

    Meghna

    DB:3.45:Bd10 And Bd21 - Idoc Custom Segment - Error In Bd21 But No Error In Bd10 3k


    Do you have a filter in the distribution model for a field in your custom segment ?

    If yes ... you have to assign parameter CIMTYP (changing parameter) in your customer exit with the Value of your "IDoc Extensionname"

    Example:

    IDOCTP = MATMAS05

    Extzension = ZZMATMAS

    P_CIMTYP = 'ZZMATMAS'.

    Thats all !

  • RELEVANCY SCORE 3.43

    DB:3.43:Enhanced Fields In Idoc Message Type Crmxif_Order_Save_M z1



    Dear Experts,

    I have enhanced the Business Transaction with EEWB and is used in Complaint Handling scneario. Now, I need to send the IDoc for the complaints. So, I have used the Message Type CRMXIF_ORDER_SAVE_M for this. But this message type does not have the Custom Fields which were enhanced. When I searched on the internet, I found the solutions to Re-generate the IDoc after adding fields in CRMXIF_CUSTOMER_H Segment. But when I try to do that it is asking for Access Key. I think there must be another way.

    Please guide me.

    Regards,

    Sreenivas Raju.

    DB:3.43:Enhanced Fields In Idoc Message Type Crmxif_Order_Save_M z1


    Hey Sreenivas,

    Standard provided Idoc will not have segments for Z fields that you add using AET/EEWB. How did you try to regenerate Idoc? You need to use transaction BDFG to generate a custom Idoc.

    Follow the steps below.

    1. Create a Z function group.

    2. Run BDFG. Enter 'CRMXIF_ORDER_SAVE' in parameter for function Module and press enter. It will list the available message types including 'CRMXIF_ORDER_SAVE_M'

    3. Press Create button in application toolbar. A popup will come. Give a name for new message type. Another popup will come, give names for inbound/outbound functions using the Z FG you created, suitable development class and press enter.

    4. Now view your message type. Go to the idoc type and release it.

    5. Finally selecting your new Z message type, go to menu Edit-Idoc Type and Segment Type-Release. Release your objects. There may be a few popups, respond accordingly.

    6. Maintain partner profile settings. Process code will be APLI or APLM as per your need.

    Voila!! You have your new message type having segments for Z fields.

    Let me know the outcome.

  • RELEVANCY SCORE 3.40

    DB:3.40:How To Remove Segment Fields From The Idoc Segment pp



    Hi

    I would like to know ,how to remove segment fields from idoc segement in the program dynamically based on certain conditions.

    Thanks

    Subha

    DB:3.40:How To Remove Segment Fields From The Idoc Segment pp


    Hi ,

    You can not delete fields but there is option to delete segemnt.

    GOto BD53 transaction. In the Reduced message type field, e.g type value Zmatmas , then press the Create button. In the popup window which appears, type in the Message type reference field the value MATMAS.

    Please revert for Qs.

    Thanks and regards,

    P.Bharadwaj

  • RELEVANCY SCORE 3.39

    DB:3.39:Fill Custom Segment For Fidccp02 Idoc Type fj



    Hi friends,

    I created a custom segment in FIDCCP02 IDOC type. I coud'nt find an exit or someting to fill my custom segment.

    I did find an exit "EXIT_SAPLF050_001", but we can fill only one segment at item level using this one.

    How to fill the custom segment at header level.

    Thanks in advance.

    DB:3.39:Fill Custom Segment For Fidccp02 Idoc Type fj


    Hi andreas,

    Thanks for your comment.

    EXIT_SAPLF050_006 is used for inbound IDOC where my requirement is for OUTBOUND IDOC.

    I used BADI IDOC_DATA_INSERT for populating custom segments in outbound processing.

    Thanks a lot for your time.

  • RELEVANCY SCORE 3.38

    DB:3.38:Idoc Extension With Non-Mandatory Segments j3



    Hi,

    I have a generic question on extension of IDOCs. If we are creating a child segment of a standard segment in extension, can we create a child as mandatory segment of a non-mandatory parent segment, here parent is some standard/custom segment and child is a custom segment. I have confusion on this as the system allowed on this as how a child segment can arrive in Idoc if parent segment is missing.

    Regards,

    Harsh.

    DB:3.38:Idoc Extension With Non-Mandatory Segments j3


    Hi,

    I have a generic question on extension of IDOCs. If we are creating a child segment of a standard segment in extension, can we create a child as mandatory segment of a non-mandatory parent segment, here parent is some standard/custom segment and child is a custom segment. I have confusion on this as the system allowed on this as how a child segment can arrive in Idoc if parent segment is missing.

    Regards,

    Harsh.

  • RELEVANCY SCORE 3.38

    DB:3.38:Invoke Idoc Ordchg Whenenver Credit Block Of Sales Order Is Released. jd



    Hi All,

    Scenario : In the business process, whenever a sales order is created then a Purchase Order is created. And then an outbound ORDERS03 IDOC gets created. Now if the Sales Order is on credit block then a custom segment is dynamically created and sent through the IDOC. But if the later on the Sales Order credit block is released then I need to again send the IDOC with custom segment IN IDOC ORDCHG. As the change in credit block status in Sales Order does not reflect in the PO, so the IDOC doesnt get created. Please advice how to get the IDOC created even in case of credit block status change.

    Thanks in advance..

    Rahul.

    DB:3.38:Invoke Idoc Ordchg Whenenver Credit Block Of Sales Order Is Released. jd


    Hi All,

    Scenario : In the business process, whenever a sales order is created then a Purchase Order is created. And then an outbound ORDERS03 IDOC gets created. Now if the Sales Order is on credit block then a custom segment is dynamically created and sent through the IDOC. But if the later on the Sales Order credit block is released then I need to again send the IDOC with custom segment IN IDOC ORDCHG. As the change in credit block status in Sales Order does not reflect in the PO, so the IDOC doesnt get created. Please advice how to get the IDOC created even in case of credit block status change.

    Thanks in advance..

    Rahul.

  • RELEVANCY SCORE 3.38

    DB:3.38:Idoc f9



    Hi

    How to create a new segment in the idoc

    Regards

    Azeez

    DB:3.38:Idoc f9


    hi,

    Enter transaction WE30 (ALE-Extension- IDOC types-Maintain Idoc type)

    - Type in your name of the extended IDOC type (usually starting with 'Z') and click on the Basic IDoc type, click the create icon.

    - Click on Create new and enter a description and press enter.

    - Click on ZIDOCTYPE01 and then on the Create icon.

    - Enter ZIDOCTYPE as the segment type, click on Segment Editor.

    - Enter a description for your segment type and create.

    - Enter a description for your segment, enter each field required in your IDoc and press enter to validate.

    - Save and generate, press back

    - To release the segment choose Goto, Release from the menu.

    - Check the box on the line of your segment.

    - Save, back and enter.

    - Your Idoc type structure should be displayed with your new segment.

    - Save and back.

    - To release the Idoc type choose Extras, Release type from the menu and Yes.

    go through these links.

    http://www.sapgenie.com/sapedi/idoc_abap.htm

    http://www.allsaplinks.com/idoc_sample.html

    have created a customised IDOC scemnario and have a document designed by me with all the minute steps and with screen shots.

    Please have a look at http://www.geocities.com/xplosion78/customised_ALE_IDOC_BY_SACHIN_DABHADE.zip

    ==============================

    Other helpful links

    http://www.sapgenie.com/whitepapers/ale.htm

    http://www.sapgenie.com/ale/index.htm

    http://www.sappoint.com/abap.html

    http://www.sapbrain.com/TUTORIALS/TECHNICAL/ALE_tutorial.html

    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEIO/BCMIDALEIO.pdf

    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEPRO/BCMIDALEPRO.pdf

    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFAALEQS/CABFAALEQS.pdf

    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFAALEHR/CABFAALEHR_ALE_QS.pdf

    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/ECPCA/ECPCA_ALE_154.pdf

    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc

    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm

    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419

    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm

    http://www.sapgenie.com/sapedi/index.htm

    http://www.sappoint.com/abap/ale.pdf

    http://www.sappoint.com/abap/ale2.pdf

    http://www.sapgenie.com/sapedi/idoc_abap.htm

    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm

    http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm

    http://www.allsaplinks.com/idoc_sample.html

    http://www.sappoint.com/abap.html

    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm

    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc

    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419

  • RELEVANCY SCORE 3.37

    DB:3.37:Extended Idoc Fidccp02 - Getting Status Code 02 8c



    Hello Friends,

    I am extending Idoc FIDCCP02 with an custom segment. I have followed this steps

    Created Segment - Created Extended Idoc with Custom Segment created - Released both Segment and Idoc - Attached Idoc to FIDDC2 message type - Added message type to model view - maitained partner Profiles with extended idoc - created port type 'G' - Added necessary code in user exit (I am able to view data in my custom segment)

    The Problem is - If I do not maintain Extended Idoc in partner profiles - I get Idoc XML created in external system with status code 03

    But once I add extended idoc to the partner profiles - I get Status Code 02 with error saying Error in passing data to HTTP Port 500 internal Server error

    Kindly can some body help me if I am missing some steps.

    Thanks for help.

    DB:3.37:Extended Idoc Fidccp02 - Getting Status Code 02 8c


    Dear Vasu,

    I am creating Z message type, when I am creating that idoc (I have used XML Port) its initially comes in status 30 (IDoc ready for dispatch (ALE service)).

    Now when I process this idoc with tcode WE19 then it give status 02 (Error passing data to port). Please suggest where i am doing mistake.

    Your help will be appreciated.

    Regards, Vicky M. Khambhati

  • RELEVANCY SCORE 3.37

    DB:3.37:Idoc Segment Definition Received Instead Of Segment Type 8j



    Hello Folks,

    When i send a Z Idoc Segment from A to B System, It is successfull from A System, but in B System sometimes its erroringout because in the inbound idoc Segment Definition is coming instead of Segment type.

    For Example

    From A System I have sent Z1P0002 segment

    B System I have received Z2P0002000(Which is the segment definition for Segment type Z1P0002)

    Any inputs to above problem?

    DB:3.37:Idoc Segment Definition Received Instead Of Segment Type 8j


    Hi ,

    Is your system B also SAP system / non-SAP system.

    If it is non-SAP then Segment definition only transfered and then Subsystem will map according to the target system segment definition.

    Regards,

    Ravi Sankar.Z

  • RELEVANCY SCORE 3.37

    DB:3.37:Collective Inbound Idocs Into R/3 System Using Master_Idoc_Distribute Fm p8



    Hi All,

    I want to process inbound idocs (4 idocs collectively) in R/3 using master_idoc_distribute function module. The idoc is coming into system as one idoc having 4 segments (each segment for each idoc and contains sub segments too). I want to call master_idoc_distribute for each idoc for sending it to external system. I am using a custom FM for calling the master_idoc_distribute and assigning it into process code inbound for processing the incoming idoc.

    The FM is working for one idoc perfectly but throwing error for more than idocs coming in collectively. Any help is appreciated.

    Thanks

    DB:3.37:Collective Inbound Idocs Into R/3 System Using Master_Idoc_Distribute Fm p8


    thjis f/n mod master_idoc_distribute need to be called in a loop containing the idoc data and if any customized seg u use then u may need to code explicitly in the user exit for framing the segments.

  • RELEVANCY SCORE 3.37

    DB:3.37:Custom/New Qualifier In Idoc? 7a



    I need to add a custom/new qualifier to a segment in standard article master idoc. I found the exit where I need to do this. This segment also needs to repeat several times based on the new qualifiers.

    Can some one provide a sample code to add a new qualifier to an existing idoc segment before it goes out?

    DB:3.37:Custom/New Qualifier In Idoc? 7a


    Hello,

    check this link it may help u

    http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b833f43d711d1893e0000e8323c4f/frameset.htm

    Thank u,

    santhosh

  • RELEVANCY SCORE 3.36

    DB:3.36:Extending A Basic Idoc Type fc



    Hi,

    Can anyone give me details regarding the extestion of Basic IDOC type? I need to add a new segment to basic IDOC type HROT_USP as well as modify an SAP standard segment in this IDOC type by adding a new field. Is this possible?

    Thanks,

    Sai.

    DB:3.36:Extending A Basic Idoc Type fc


    Hi,

    Enter transaction WE30 (ALE-Extension- IDOC types-Maintain Idoc type)

    - Type in your name of the extended IDOC type (usually starting with 'Z') and click on the Basic IDoc type, click the create icon.

    - Click on Create new and enter a description and press enter.

    - Click on ZIDOCTYPE01 and then on the Create icon.

    - Enter ZIDOCTYPE as the segment type, click on Segment Editor.

    - Enter a description for your segment type and create.

    - Enter a description for your segment, enter each field required in your IDoc and press enter to validate.

    - Save and generate, press back

    - To release the segment choose Goto, Release from the menu.

    - Check the box on the line of your segment.

    - Save, back and enter.

    - Your Idoc type structure should be displayed with your new segment.

    - Save and back.

    - To release the Idoc type choose Extras, Release type from the menu and Yes.

    Reward points if found helpfull..

    Cheers,

    Chandra Sekhar.

  • RELEVANCY SCORE 3.36

    DB:3.36:Idoc - Custom Segments Added? aa



    Hi,

    I am new to IDOC and working on Sales Order BOM inbound interface. Using BOMORD01 Idoc and filling E1STZUM, E1KDSTM and E1STPON segments. Getting a message saying "Segment cannot be identified" (ZE1FIKP) and also "Custom segments added" but actually my intention is not to add any custom segments, why I am getting this message and how to correct it.

    Thanks in advance.

    Regards,

    Balaji Viswanath.

    DB:3.36:Idoc - Custom Segments Added? aa


    Hi,

    The BADI implemented for some other object got triggered when I am executing my code. I went to SE19 and changed the code in implementation of other object, so that it will get triggered only for that object.

    Regards,

    Balaji Viswanath.

  • RELEVANCY SCORE 3.36

    DB:3.36:Inbound Side Idoc Segment Defination Is Showing Instead Of Segment Type c7



    Dear all,

    i created z idoc ZMIGO961 and z segment ZJ1IW in both source and destination, when i send the idoc from the source to destination, in destination it is showing the segment defination i.e ZJ1IW000 in idoc instead of segment type ZJ1IW in my idoc.

    plz help .

    regards,

    Edited by: manoj kv on Apr 4, 2010 9:18 PM

  • RELEVANCY SCORE 3.36

    DB:3.36:Idoc Segment For Shpmnt Notification For Idoc Type Shpmnt02 s1



    Hi gurus,

    I have to find the idoc segment for shipment notification,idoc type which we are going to use is shpmnt02 or shpmnt01,Can any one of you please tell me the idoc segments for this idoc type with fields and table name?.Thanks in advance.

  • RELEVANCY SCORE 3.36

    DB:3.36:Custome Segment In Sales Order fz



    Hi All,

    We have a requirement to add Additional tab for header level, also Sales order data coming from legacy system, for that we are extended ORDERS05 Idoc , but i small query regarding adding New custom segment(header level) , where i need to add this custom segment(under which

    segment)?

    Regards,

    Suresh.D

    DB:3.36:Custome Segment In Sales Order fz


    You need not create any custom message type for this what you need to do is you need maintain 1 more entry with your extension in both WE82 and WE57 transactions.

    Thanks,

    Mahesh.

  • RELEVANCY SCORE 3.36

    DB:3.36:Extending An Idoc - Inserting A New Segment At A Particular Position 8z



    Hello....

    I am using ORDERS01 IDoc. I want to extend this IDoc, I want to add one new segment as a child segment of E1EDP01 but after E1EDPT1 segment (my new segment should be the last segment in E1EDP01. How can I insert a segment at a particular position.

    Please guide....

    Thanks

    Ankur Jain.

    DB:3.36:Extending An Idoc - Inserting A New Segment At A Particular Position 8z


    Hi Ankur,

    Goto WE30, first of all right click on the segment E1EDPT1 and Insert Segment as a child segment.

    Then you can use cut segment option and insert it at the desired place.

    bReward points if it helps./b

    Regards,

    Amit Mishra

  • RELEVANCY SCORE 3.36

    DB:3.36:Idoc_Error_Parse_Failure: An Idocillegaltypeexception Occurred While Parsing Idocxml:State=Reading_Segment_Starttag 7x



    Hello Experts,

    We are getting a strange issue while trying to post IDOC into ECC through PO 7.31 Single Stack.

    We are having a custom segment in IDOC with a single field.If we don't create that segment in PO,i.e. if we don't map this segment the IDOC is getting posted.But if we map the custom segment(setting SEGMENT=1),we are getting error "com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.conn.idoc.IDocParseException: (7) IDOC_ERROR_PARSE_FAILURE: An IDocIllegalTypeException occurred while parsing IDocXML for type *IDOC_NAME*:

    state=READING_SEGMENT_STARTTAG, charPosition=834, lineNumber=1, columnNumber=835".

    I have gone through other discussion in scn related to this exception,but they are not similar to our problem.

    Please suggest.

    Regards,

    Suman

    DB:3.36:Idoc_Error_Parse_Failure: An Idocillegaltypeexception Occurred While Parsing Idocxml:State=Reading_Segment_Starttag 7x


    Hi,

    We restarted the server. The IDOC metadata was not getting refreshed even after re-importing.

    Suman

  • RELEVANCY SCORE 3.36

    DB:3.36:No Segment Found In Metadata Table 7j



    Hi,

    We are posting an Idoc from an external application to R/3 using C RFC libraries. There was a new custom segment Z1xxx added to an Extension message type Zxxxx on SAP. There is an error in the external application while trying to build/Map the Idoc segments before sending the idoc to R/3.

    The error says "uNo such segment type found in metadata table/u". The segments heirarchy is the same as defined on SAP.

    The release have been checked for this new segment, its released to 45B as similar to other standard segments.

    Please let us for any resolution for successful posting of an Idoc with the custom Z1 segment.

    Thanks,

    Prabhu

    Message was edited by: Prabhu Kudlapura

    DB:3.36:No Segment Found In Metadata Table 7j


    Hi,

    We are posting an Idoc from an external application to R/3 using C RFC libraries. There was a new custom segment Z1xxx added to an Extension message type Zxxxx on SAP. There is an error in the external application while trying to build/Map the Idoc segments before sending the idoc to R/3.

    The error says "uNo such segment type found in metadata table/u". The segments heirarchy is the same as defined on SAP.

    The release have been checked for this new segment, its released to 45B as similar to other standard segments.

    Please let us for any resolution for successful posting of an Idoc with the custom Z1 segment.

    Thanks,

    Prabhu

    Message was edited by: Prabhu Kudlapura

  • RELEVANCY SCORE 3.36

    DB:3.36:Obligatory Node 'E1konp' Missing In The Structure 9a



    Hi Experts,

    I am extending cond_a04 idoc. am adding the custom segment as the child segment of E1KONH. Am populating the custom fields of this segment in an enhancement in LVKOEF01. This segment is populating and the idoc is successful but its not reaching PI side. In SM58 it shows status text as "Obligatory node 'E1KONP' missing in the structure" and the function module it shows in SM58 is "IDOC_INBOUND_ASYNCHRONOUS". Am confused. When sent without this extended segment its reaching PI side. What might be the problem??

    DB:3.36:Obligatory Node 'E1konp' Missing In The Structure 9a


    issue solved. need to check structure in IDX is also same.

  • RELEVANCY SCORE 3.35

    DB:3.35:Finding The Object Class 11



    Hi Experts,

    There is a object class called DEBITOR. A custom program is developed using change pointers for generating the idoc. In this program they are using the class DEBITOR for triggering idoc for all the segment even when one segment is changed. I want to know is there any transaction to view this object class.

    Regards

    Sridevi S

    DB:3.35:Finding The Object Class 11


    May I know how you solved this?. I hope you check into forum everyday!!

  • RELEVANCY SCORE 3.35

    DB:3.35:Custom Segment Getting Created As Seperate Segment d7



    Hi,

    I am adding a custom segment to a standard idoc and it works fine. The only problem is that it displays the custom segment as a seperate segment instead of displaying it as child to a standard segment.

    I have created an extension in We30 and have placed this custom segment as child to the standard segment. Even in the exit, i am calling this custom segment only after the standard segment is called. Still i do not understand why it is not getting created as child.

    Pls find my code below for the same

    LOOP AT t_idoc_data.

    WHEN 'E1LTORI'.
    l_tapos = t_idoc_data-sdata+0(4).

    t_idoc_data-segnam = 'ZEDE2LTO1'.
    l_index = sy-tabix + 1.
    READ TABLE t_ltap WITH KEY lgnum = l_lgnum
    tanum = l_tanum
    tapos = l_tapos.
    IF sy-subrc IS INITIAL.
    l_enh-vbeln = t_ltap-vbeln.
    l_enh-posnr = t_ltap-posnr.
    l_enh-brgew = t_ltap-brgew.
    l_enh-gewei = t_ltap-gewei.

    t_idoc_data-sdata = l_enh.

    INSERT l_data INTO t_idoc_data INDEX l_index.

    ENDIF.

    WHEN OTHERS.
    ENDCASE.
    ENDLOOP.

    DB:3.35:Custom Segment Getting Created As Seperate Segment d7


    Hi,

    I am adding a custom segment to a standard idoc and it works fine. The only problem is that it displays the custom segment as a seperate segment instead of displaying it as child to a standard segment.

    I have created an extension in We30 and have placed this custom segment as child to the standard segment. Even in the exit, i am calling this custom segment only after the standard segment is called. Still i do not understand why it is not getting created as child.

    Pls find my code below for the same

    LOOP AT t_idoc_data.

    WHEN 'E1LTORI'.
    l_tapos = t_idoc_data-sdata+0(4).

    t_idoc_data-segnam = 'ZEDE2LTO1'.
    l_index = sy-tabix + 1.
    READ TABLE t_ltap WITH KEY lgnum = l_lgnum
    tanum = l_tanum
    tapos = l_tapos.
    IF sy-subrc IS INITIAL.
    l_enh-vbeln = t_ltap-vbeln.
    l_enh-posnr = t_ltap-posnr.
    l_enh-brgew = t_ltap-brgew.
    l_enh-gewei = t_ltap-gewei.

    t_idoc_data-sdata = l_enh.

    INSERT l_data INTO t_idoc_data INDEX l_index.

    ENDIF.

    WHEN OTHERS.
    ENDCASE.
    ENDLOOP.

  • RELEVANCY SCORE 3.35

    DB:3.35:Exact User Exit For Scheduling Aggrement Regarding Creation Of Idoc Custom Segments f3



    Hi,

    What is the exact user exit for scheduling aggrement when i'm adding custom segment.

    My Assumption is:

    Enhancement: MM06E001

    Description: User exits for EDI inbound and outbound purchasing documents.

    So if the above Enhancement is the right one, then what will be the exact exit.

    Example: EXIT_SAPLEINM_018

    Further Details:

    Message Type: DELJIT

    Idoc Type: DELFOR02

    Process Code: ME13Output Type: LPJ1

    With Regards,

    Yarnagula Sudhir.

    DB:3.35:Exact User Exit For Scheduling Aggrement Regarding Creation Of Idoc Custom Segments f3


    Got it.

    Its EXIT_SAPLEINM_020 and the fields to be added to the Internal Table DINT_EDIDD.

    With Regards,

    Sudhir.

  • RELEVANCY SCORE 3.34

    DB:3.34:Populating Idoc jf



    Hi,

    I have a custom IDoc with 2 same level segments, No mandatory segments are there. These two segment's max number of repetitions are 99999.

    I am filling the IDocs in the following way.

    I am filling the first segment in a loop after that I am filling the second segment in a nested loop of the first loop. After filling the second segment it is again going to first segment and it is filling and this process is going on until the loop ends.

    I am getting the 26 syntax error in the IDoc.

    My IDOC # is in the following way right now.

    1st segment

    2nd segment

    1st segment

    2nd segment

    1st segment

    2nd segment

    Can anybody tell me, is this filling of IDoc is wrong or correct.

    Thanks,

    BSV.

    DB:3.34:Populating Idoc jf


    Hi bsv,

    If I understood your questino correctly, then...

    Usually one header record will be having a set of item records. Lets suppose u r generating IDOC's based on a Z program which extracts some data based on a selection screen entries into (lets suppose) two internal tables (1 - header and 1 - item table).

    In this scenario, you have to loop through the 1st internal table, fill header segment and loop through the 2nd internal table (nested loop) for the corresponding header record and after the nested loop, you can call the function module that generates the idoc. Now, this continues for all the header and its corresponding items and generates 'n' number of IDOC's based on entries in header table.

    Hope it solves your problem.

    Regards,

    Phani.

  • RELEVANCY SCORE 3.34

    DB:3.34:How To Cancel The Release Of The Current Segment Definition-We31-Idoc? 81



    Hi Experts,

    Am trying to add a new field to a existing custom segment type/defination. This segment type is already using in the system.

    So, went to WE31 and pressed the PENCIL button for changing/adding my new field, but am geting the below message,

    (1)pls let me know that does it mean CANCEL the release (MenuEditCancel Release)? if so, Can I go ahead and use this CANCEL the release? do I need to take any pre-requisites as this segment is already relased?

    (2)But, you know there is another option saying 'ADD VERSION-Shift+F5', if I choose this option, its also taking me to a screen where in I can add new fields so which is correct option for me is it either (1) or (2)?

    Current segment definition Z_segment_defination can no longer be changed
    Message no. EA666

    Diagnosis
    The current segment definition Z_segment_defination of segment type Zsegment_type is already released.

    System Response
    The segment definition cannot be changed.

    Procedure
    You can either add a new segment definition or cancel the release of the current segment definition.

  • RELEVANCY SCORE 3.34

    DB:3.34:Adding Aet Field In Idoc jp


    Hi Experts,We have one custom IDoc.In that we have a segment for AET generated fields.Now i added a new field using AET.I am trying to add this new field to the segment.So i am trying to cancel release status of segment using we31.But i am getting error Error while resetting release of segment ZXXXXX Message no. EA259 .I checked many of SDN threads but no where exact solution is mentioned for this.Current release for the message type is 701.so we are on same version now also.I put a break-point in LEDIJF05 in form CHANGE_CLOSE_SEGDEF.i observed it is failing at line 625 and can not unclose segment: release of last version is not SAP-version.Can any body tell me what is the exact issue.Thanks in advance, Vijay

    DB:3.34:Adding Aet Field In Idoc jp

    Hi Experts,We have one custom IDoc.In that we have a segment for AET generated fields.Now i added a new field using AET.I am trying to add this new field to the segment.So i am trying to cancel release status of segment using we31.But i am getting error Error while resetting release of segment ZXXXXX Message no. EA259 .I checked many of SDN threads but no where exact solution is mentioned for this.Current release for the message type is 701.so we are on same version now also.I put a break-point in LEDIJF05 in form CHANGE_CLOSE_SEGDEF.i observed it is failing at line 625 and can not unclose segment: release of last version is not SAP-version.Can any body tell me what is the exact issue.Thanks in advance, Vijay

  • RELEVANCY SCORE 3.33

    DB:3.33:User Exits In Idocs 8z



    Hi All,

    If we extend an idoc by adding a custom segmant with some new fields we will write the code for the new segment in the respective user-exit(by finding them through cmod and smod).After writing the code when we execute the program that new user-exit will automatically triggers or we need to write any logic for when to trigger the new user-exit.

    Regards,

    Rakesh.

    DB:3.33:User Exits In Idocs 8z


    hi

    1. you will associate the user exit with a project in CMOD.

    2. Will write ur logic in exit.

    3. then activate the project.

    it will be then triggred when the transaction is saved.

    regards

    vijay

    reward points if helpfull

  • RELEVANCY SCORE 3.32

    DB:3.32:Urgent!! Problem With Idoc When Imported To 4.6c sk



    Hi All,

    A custom idoc segment,a custom abap report and custom function module used in the report are developed in 4.7 to retrieve some data required for client. Now when the same idoc is imported in 4.6C, It is not working in 4.6C.

    The Request used to transport the idoc to 4.6C consists of following elements.

    1. Package

    2. Function Group

    3. Program

    4. Table

    5. Customizing: Table Contents

    So please analyze and let me know the possible reasons for the above issue.

    Thanks Regards,

    Rajendra.

    DB:3.32:Urgent!! Problem With Idoc When Imported To 4.6c sk


    Hi Rajendra,

    Can you please elaborate on what error message you receive while executing the report/function module? Also, check whether partner profile and all other settings are exactly same as it is in 4.7c.

    Please reward points if the information solves your problem.

  • RELEVANCY SCORE 3.32

    DB:3.32:Inbound Idoc dp



    is it possible to insert one blank segment in Inbound IDOC programatically

    DB:3.32:Inbound Idoc dp


    Hi,

    Yes. You can do that. Find out appropriate user exit and add your blank record. INDEX is very important. Because if you INSERT any segment at wrong place, IDOC will go to error. So INSERT your record just before/after/inbetween the same segment populated by standard code.

    Thanks,

    Vinod.

  • RELEVANCY SCORE 3.31

    DB:3.31:Ale/Idoc Reduce Messagetype xa


    hi,i have a doubt in ALE/IDOCS requirement is add a field to segment in tcode BD53(reduce message type) after adding a field.what configuration i need to do.

    DB:3.31:Ale/Idoc Reduce Messagetype xa

    I think u just need to save the changes to segment..

  • RELEVANCY SCORE 3.31

    DB:3.31:Error In Idoc Processing ks



    hi all ,

    I am getting error No. 26 while processng IDOC. error is Segment Cannot be identified,

    Mandatory segment missing. how can i resolve that error

    actually i want to add one zsegmant to standard basic type DESADV01.

    please give me a detail stepwise procedure for adding that segment with transaction

    is there any type of setting that i have to maintiain after adding that segment.

    please give a solution.

    thanks,

    vinod

    DB:3.31:Error In Idoc Processing ks


    I AM USING LSMW TO LOAD DATA USING BAPI.IN THAT WE HAVE A STEP START IDOC PROCESSING.(STEP14).

    I AM GETTING AN ERROR LIKE 'NO DATA COULD BE SELECTED'

    WHAT COULD BE THE REASON..PLEASE TELL ME.

  • RELEVANCY SCORE 3.31

    DB:3.31:Extending A Customer Segement f9



    Hi interface experts,

    My client uses custom defined idoc types to communicate with external non-sap systems. In one of our requirements as part of enhancing the existing system functionality, we need to extend a segment to include a new field. This segment is a customer segment and not provided by SAP. Do i need to extend both segment idoc type or simly to change the customer segment in the segment editor and release?..

    In any case can you provide brief list of steps that need to be followed?

    Rgds,

    Harikrishna indugu.

    DB:3.31:Extending A Customer Segement f9


    Every thing is Custom in your case, so there is no problem . No problems comes with the version. Make sure every thing you changed in the segment attached to Transport.

    After changes set release again.

  • RELEVANCY SCORE 3.30

    DB:3.30:Difference Between Idoc Message Type Pordch Ordchg a9



    Hi

    Could anybody clarify me difference between Idoc types PORDCH ORDCHG.

    For PO Change (Can be adding new line item, deleting existing line item, Change existing line item )

    which IDOC is suggested.

    Can i use ORDCHG Idoc for this purpose, But i find many fields are not exist in this segment.

    Pl clarify.

    Rams.

    DB:3.30:Difference Between Idoc Message Type Pordch Ordchg a9


    Hello,

    if you want to change the PO, it's the PORDCHG (IDOC-Type PORDCH01).

    The ORDCHG (IDOC-Types ORDERSxx) is to send the order to your vendor.

    Regards Wolfgang

    Edited by: Wolfgang Valtin on May 22, 2009 5:47 PM

  • RELEVANCY SCORE 3.30

    DB:3.30:Does Idoc Extension Has Impact On Existing Applications/Programs? mf



    Hello,

    In my in this case all is custom objects, FMs, IDOC, report.

    We have already there is a IDOC creation/populating (1)interface report program and we also have a this IDOC posting to appilication (2)FM in our system.

    Now, i need to add a additional new custom segment as a child segment to the exsting parent custom segment.

    Actually, here the parent segment is also a child segment to a existing grand-parent segment.

    Pls. let me know is my change (addiing a new child segment) does have any impact on existing above (1)(2) items?

    Thank you

    DB:3.30:Does Idoc Extension Has Impact On Existing Applications/Programs? mf


    This depends on your business requirement.

    Obviously you need to make the child segment not mandatory. Also you need to take care the processing logic of this idoc. I am giving you an example.

    Header segment: contain Business partner (label 1 segment)

    Child segment: BP Address Data (label 2)

    Next child: BP Email IDs (Label 3)

    Here if any BP don't have Email ids the nothing need to pass on this segment also no need to add this segment to IDOC data..

    Similarly for your case if nothing required to pass then don't pass and also need to change the processing logic so that if nothing pass to this segment it should work fine..

    Thanks

    Subhankar

  • RELEVANCY SCORE 3.30

    DB:3.30:Idoc s8



    SAP Gurus

    What is a segment in a IDoC

    Thanks in advance

    DB:3.30:Idoc s8


    Hello Yves,

    Segment in IDOC holds data. It consists of a header that contains the identity of the Idoc. Its constituents include, a sequential segment number, a segment type description and field containing the actual data of the segment.

    You can refer below link:

    http://help.sap.com/saphelp_46c/helpdata/en/dc/6b827c43d711d1893e0000e8323c4f/content.htm

    Reward points if helpful.

    Regards,

    Priyanka

  • RELEVANCY SCORE 3.30

    DB:3.30:Idoc Segment Counting fj



    Hi Experts,

    How to count the IDOC segment if particular field value is "IN".?

    Regards

    Sara

    DB:3.30:Idoc Segment Counting fj


    Hi Sara,

    Try to use the following UDF's for increment and initialisation of the counter

    Increment the Global Variable Counter

    public String incrementCounter(String a,Container container){

    //write your code here

    if(a.equals("IN"))

    {

    Object o = container.getGlobalContainer().getParameter("CNTR");

    Integer ii;

    if( o == null ) ii = new Integer(0);

    else ii = (Integer)o;

    ii = new Integer( ii.intValue() + 1);

    container.getGlobalContainer().setParameter("CNTR", ii);

    String temp = ii.toString();

    return temp;

    }

    else return " ";

    Intialise the Counter

    Object o = container.getGlobalContainer().getParameter("CNTR");

    Integer ii = new Integer(0);;

    container.getGlobalContainer().setParameter("CNTR", ii);

    return "1";

    Regards,

    Vinod.

  • RELEVANCY SCORE 3.30

    DB:3.30:Matmas05 Outbound Extension c8



    I have created an extension for outbound MATMAS05 to incorporate a custom segment. I want to populate this segment using CMOD enhancement project MGV00001-EXIT_SAPLMV01_002 but only for the extended iDoc, not for any standard MATMAS05 iDocs that will be generated. However, the iDoc extension is not available as a paramater in EXIT_SAPLMV01_002, so I'm unable to determine whether the iDoc is a standard MATMAS05 or extended MATMAS05 iDoc.

    This means I can't support multiple versions of the MATMAS05 iDoc, and this is not consistent with the enhancement strategy for ORDERS05 (for example), where I am able to determine the specific scenario conditionally based on the message type, idoc type and extension, which are all available in the user exit.

    Is it possible to support multiple versions of the MATMAS05 iDoc by implementing an extension to the standard MATMAS05 rather than having to create a new iDoc? If so, how do I achieve that?

    DB:3.30:Matmas05 Outbound Extension c8


    I have created an extension for outbound MATMAS05 to incorporate a custom segment. I want to populate this segment using CMOD enhancement project MGV00001-EXIT_SAPLMV01_002 but only for the extended iDoc, not for any standard MATMAS05 iDocs that will be generated. However, the iDoc extension is not available as a paramater in EXIT_SAPLMV01_002, so I'm unable to determine whether the iDoc is a standard MATMAS05 or extended MATMAS05 iDoc.

    This means I can't support multiple versions of the MATMAS05 iDoc, and this is not consistent with the enhancement strategy for ORDERS05 (for example), where I am able to determine the specific scenario conditionally based on the message type, idoc type and extension, which are all available in the user exit.

    Is it possible to support multiple versions of the MATMAS05 iDoc by implementing an extension to the standard MATMAS05 rather than having to create a new iDoc? If so, how do I achieve that?

  • RELEVANCY SCORE 3.29

    DB:3.29:Error: Unable To Import The Zinv_Ex(Unable To Read The Segment). 91



    Hi ALL,

    i have a requirement. were i have to add a custom segment(Z1_E1EDP01) to standard Invoic02 Idoc and created extension of invoic02(basic type) as ZINV_EX.

    i added the segment and populated the values accordingly to the newly created segment.

    the problem I'm facing is when i try to import this ZINV_EX custom idoc we getting an error :

    Unable to import the ZINV_EX(unable to read the segment).

    I'm done with the port creation and all the required configuration in idx1 and idx2.

    Please can anyone to tell how to resolve this issue.

    Thank you,

    Lalit.

    DB:3.29:Error: Unable To Import The Zinv_Ex(Unable To Read The Segment). 91


    one of the data element definition in z segment was changed... because of that the z segment was not read. by the data element the issue solved.

    thanks,

    Lalit

  • RELEVANCY SCORE 3.28

    DB:3.28:Adding Alternative Unit Of Measure To Outbound Idoc x8


    Hi gurus,

    I need to add alternative unit of measure information to an outbound ORDERS idoc for each line item segment.

    In master i have made the conversion, but system is picking up base UOM

    I am new to Retail

    Thanks!

    Regard
    Nabil

    DB:3.28:Adding Alternative Unit Of Measure To Outbound Idoc x8


    If maintain alternative unit of mesaure alos system caluculate order price unit with bace unit of measure.

    If you want to see perticular alternative unit of measure then add one custom field in in the segment and populate the alternate UOM.

    You can create chaild segment against E1EDP01 with your own name then populate required fields.

  • RELEVANCY SCORE 3.27

    DB:3.27:Idoc Scenerio 7d



    hi

    in my scenerio, i am adding a custom segment in the idoc type.and populating the value through user exits.while i transferring the idoc to Xi server.whether the custom segment is also added r not. if added, how i map the field with it..

    i think so u understand my scnerio.. plz give me the solution.

    DB:3.27:Idoc Scenerio 7d


    hi

    thanks for everyone who answer for my question...

    thx a lot...

  • RELEVANCY SCORE 3.27

    DB:3.27:Idoc Structure Not Getting Displayed s7



    hi,

    I am new to IDOC and this is the first time i am creating one. I have created a structure in SE11.Then created a custom segment in we31.Went inside Segment-Create with reference.Put the Structure name in DDID and created the segment.Released it and added it to idoc,released basic type also.Now when i see the basic type,all SAP segments have the segment name,description and Structure name mentioned.But,for custom segment alone only the description of the segment is mentioned.The structure type doesn't seem to populate there.Can anyone help me with this.

    Thanx

    Venkat

    DB:3.27:Idoc Structure Not Getting Displayed s7


    Hi,

    You release the custom segment that is correct, but you told before that you release basic type too. This is wrong. You have to release extension idoc.

    Also, when you want to look at the idoc,

    - Go to transaction WE30.

    - Enter your Zidoc name ( extension ) idoc.

    - Select radio button "extension'.

    - Now hit display. You will see extension idoc with Z segment added.

    Also you are saying that "But,for the custom segment,only the segment name and description gets displayed not the strucuture name ". What do you mean by this? What is the difference between 'segment name' and 'structure name'. What strucutre name are you talking about.

    Also, make sure that segments are also released. ( you have mentioned that you did this but just double check ).

    Let me know if you have any question.

    Regards,

    Rs

  • RELEVANCY SCORE 3.26

    DB:3.26:Adding A Custom Segment. ja



    Hi,

    I want to create a custom segment in standard idoc.And have to wirte a abap code for that particular segment to hold the data using user exit.

    Please let me know the steps to do this.

    Thanks Regards,

    Pragathi.

    DB:3.26:Adding A Custom Segment. ja

    Hi,

    Transaction WE31; Creation of a customized segment, provide the field names that is required to appear in the segments and save it .
    Select EDIT from the Menu bar and press release. The segment would be available.

    Transaction WE30: Creation of IDoc Extension, provide the a new name, after which you would have to provide the Basic Type.
    Select Edit and provide the segment name after which all the existing segments under the basic type would be displayed. Select Create Segment and fill in the details.

    Transaction WE82; This used for connecting the basic type, message type and the extension.
    Find the appropriate user exit and write the code.

    Thanks
    Krithika

  • RELEVANCY SCORE 3.25

    DB:3.25:Required Field In Idoc dk



    Hi experts,

    while designing my mapping (file to idoc), I realised I had different segment of my idoc that have a required field called segment.

    I have :

    Tree Occurence

    E1KOMG 1..1

    SEGMENT required

    E1KONH 1..9999

    SEGMENT required

    E1KONP 1..99

    SEGMENT required

    In the graphical mapping, segment appears as @SEGMENT.

    Could you pls tell me what does it stand for and with what should i map this 'SEGMENT' field?

    Thanks a lot,

    Jamal

    DB:3.25:Required Field In Idoc dk


    Thanks all for your very helpul and fast answers, it is pretty much clearer now.

    I'll just map it with a constant value.

    Regards,

    Jamal

  • RELEVANCY SCORE 3.25

    DB:3.25:Custom Idoc Segment Fields Not Populated 91



    Way back in 1999 someone create a custom Idoc type with custom Idoc segments in it. Unfortunately, they forgot to release one of the segments.

    Recently a change was request to add new fields to this custom segment. In order to get the fields transported the segment had to be released.

    All worked fine in Dev and the new Idoc segments were populated as expected. However when the idoc segment was moved to the test system all visually appears to be fine but when the idoc is created (status 50) the new fields are not popultated.

    In 40B the start of the inbound process was IDOC_INBOUND_DATA. Does anyone know what the new starting point is in 4.7??

    I beleive the error is actually that SData is not reading all the input values and stopping right where the old fields end in teh custom segment.

    Thanks,

    Anthony

    DB:3.25:Custom Idoc Segment Fields Not Populated 91


    Built a new segment and created a successor from the original IDoc to solve this issue. I don't believe there was any other possible solution.

    -Anthony

  • RELEVANCY SCORE 3.25

    DB:3.25:Extending Batmas03 Bapi-Idoc xj



    I need to add a custom segment to the BATMAS IDOC for the batch short text. I created a new basic message type ZBATMAS with a new segment and am now stuck.

    How do I get the BAPI to use the custom message type so I can fill in the new segment from a user exit? Can this be done with a BAPI IDOC? Is there a better way?

    Any help is very much appreciated!

    Thanks,

    Chuck

    DB:3.25:Extending Batmas03 Bapi-Idoc xj


    Hi Charles,

    If you dont mind, can you email me your custom function module code , if you have it with you or just tell me what is the difference between the 2 function modules and why do we need to copy 2 function modules instead of having one.

    Please dont mind, as i am having same requirement i am asking this.

    my mail id is janagarsundaramoorthy@gmail.com

    Regards

    S.Janagar

  • RELEVANCY SCORE 3.25

    DB:3.25:Idoc da



    Hi,

    IDOC segment for ORDERS01 - E1EDP01 can be viewed in transaction WE31 and SE11.

    In SE11, it can be extended by adding an Append Structure, as for other tables/structures.

    The problem is that this appended structure cannot be viewed in transaction WE31.

    any ideas how I can access the fields that I have appended ?

    DB:3.25:Idoc da


    Hi..

    A Segment have 3 Parts:

    1. Segment Type - E1EDP01

    This is Version independent (Creates a strucute in ddic with this name)

    2. Segment Definition - E2EDP01001

    E2EDP01002

    Actual fields of the Segment.

    This is Version dependent .

    3. Segment Documentation

    This is also Version dependent .

    So when you Append a structure in DDIC structure of the Segment type it will not affect the Segment Definition.

    Only SAP will extend segments from one Version to Another.

    We have to Always add new Segments to Extend idoc types.

    And one more problem with Adding new fields to Segment is there is a limitation of the Size of the segment .. i.e. 1000 chars.

    bReward if Helpful/b

  • RELEVANCY SCORE 3.25

    DB:3.25:Error In Custom Generated Idoc Message Type For Xif 1a



    Hi all,

    I had generated a custom message type under interface function module crmxif_partner_save for enhanced fields. While generating from BDFG it popups inconsistency sap notes which is already in crm 2007. so i just ignaore them. idocs are generated sucessfully with this custom message type. but i should release this message type here it throws error

    1. (red) The interface is not current. It must be regenerated

    2. (yellow)

    Segment E101CRMT_BUS_EI_SET40_DATA - CRMT_BUS_EI_SET40_DATA

    3. Segment E101CRMT_BUS_EI_SET140_DATA - CRMT_BUS_EI_SET140_DAT

    4. Segment E101CRMT_BUS_EI_SET30_DATA - CRMT_BUS_EI_SET30_DATA

    5. Segment E101BUS_EI_BANKDETAIL - BUS_EI_BANKDETAIL

    Unable to release this message type. Please reply with answers would be appritiatable

    DB:3.25:Error In Custom Generated Idoc Message Type For Xif 1a


    Hi,

    I am not very sure of whether you have got answer to this issue.

    If not kindly implement the note 975684 to solve this issue.

    Regards,

    Venkat

  • RELEVANCY SCORE 3.25

    DB:3.25:Idoc View jz



    Dear friends,

    If I create an Idoc view by default the first segment will be in green color which means it is included in the view.If I dont make other segments green and use the created custom IDOC in the partner profile what will be the impact when the IDOC is generated?Will all the segments gets the data or not?

    With thanks regards,

    DB:3.25:Idoc View jz


    Dear friends,

    If I create an Idoc view by default the first segment will be in green color which means it is included in the view.If I dont make other segments green and use the created custom IDOC in the partner profile what will be the impact when the IDOC is generated?Will all the segments gets the data or not?

    With thanks regards,

  • RELEVANCY SCORE 3.25

    DB:3.25:Unable To Release Idoc Segment 1d



    Hello,

    I have to add a new field to an existing Z IDOC segment. There were two versions existing with the same release 620, namely 000 001. My current system release is also 620 To Add a new field, I "cancel release" the latest version 001 . Then added a new field.

    After adding the new field if I " set release", I get a error message "A released definition already exists for '620' in Release Z1ED..."

    Does anyone know how to release the IDOC segment

    Thanks

    DB:3.25:Unable To Release Idoc Segment 1d


    Hello,

    I have to add a new field to an existing Z IDOC segment. There were two versions existing with the same release 620, namely 000 001. My current system release is also 620 To Add a new field, I "cancel release" the latest version 001 . Then added a new field.

    After adding the new field if I " set release", I get a error message "A released definition already exists for '620' in Release Z1ED..."

    Does anyone know how to release the IDOC segment

    Thanks

  • RELEVANCY SCORE 3.24

    DB:3.24:Adding New Fields To Th Custom Segment ka



    Hi all,

    I have to add new fields to the custom segment Z1EDPZ1.

    Iam getting error msg saying 'Error while resetting release of segment Z1EDPZ1' when I click the cancel release inorder to add new fields in WE31.

    Thanks

    Saichand.

    DB:3.24:Adding New Fields To Th Custom Segment ka


    Hi Sai,

    do one thing first cancel the release of the basic type and then cancel the release of the segment.Now add the fields and release both the segment and the basictype.

    also check in the segemnt the version.

    regards,

    Nagaraj

  • RELEVANCY SCORE 3.24

    DB:3.24:Reduce Idoc With Extension zf


    I've created an extended idoc based on HRMD_A06 (the extension segment is for IT0220 which is not included in the standard HRMD_A06)I also want to reduce the idoc so that it will only produce E1P0014 and my custom segment.Is this possible and how ??Much appreciated ..John

    DB:3.24:Reduce Idoc With Extension zf

    You can probably do the segment filtering at the Distribution model itself, so that when the IDOC is being generated it will generate specific segments.Here is the SAP help for the same.http://help.sap.com//saphelp_470/helpdata/EN/0b/2a611c507d11d18ee90000e8366fc2/frameset.htmregards,RaviNote : Please mark all the helpful answers

  • RELEVANCY SCORE 3.24

    DB:3.24:Error In Subroutine Read_Namtb m3


    Hi,While posting an idoc through the test tool WE19, we are encountering an error 'Error in subroutine READ_NAMTB for structure of infotype'. We are using the extended idoc type ZRMD_A06 with a custom segment containing the PERNR and some other details.Are we missing out on something?Please advise!Thanks in advance!Regards,Nejuma Iqbal

    DB:3.24:Error In Subroutine Read_Namtb m3

    Hi Paul,We deleted the segment that gives the error after we have used it in our exit.Regards,Nejuma

  • RELEVANCY SCORE 3.24

    DB:3.24:Adding Few Fields To The Existed Custom Segment 1m



    Hi all,

    I want to add 10 extra fields to the existed custom segment. But when i am trying to edit the segment in the T.code we31 it is not able to editing.is there any settings that i need to do?

    Tell me how to add the fields to the existed custom segment.

    Thanks,

    DB:3.24:Adding Few Fields To The Existed Custom Segment 1m


    Hi Gupta,

    First check the verison of the segment which you are going to edit. If it is the same version which you are working on, then goto EDIT-Cancel release. then click on change. once you added the fields then click on Set Release.

    this wil help to you.

    Thanks!!!

  • RELEVANCY SCORE 3.23

    DB:3.23:Error In Sm58 When Sending Customized Idoc mm



    Hi everybody,

    we get the following errors in SM58 when sending a new define4d IDOC:

    Check segment ZE1_E1VDEWUNH000

    Repository structure missing for segment ZE1_E1VDEWUNH000

    Segment ZE1_E1VDEWUNH000 has no object dictionary entry

    Entries missing in table of Segments for segment ZE1_E1VDEWUNH000

    Entries missing in table of Segment definitions for segment ZE1_E1VDEWUNH000

    Entries missing in table of Segment structures for segment ZE1_E1VDEWUNH000

    Segment ZE1_E1VDEWUNH000 is inconsistent

    Does anybody know what do do?

    Regards Mario

    DB:3.23:Error In Sm58 When Sending Customized Idoc mm


    Apart from the above checks, try loading the Idoc Metadata in IDX2 in XI and check if it works.

    If the metadata already exists delete the same and try again.

    Regards

    Bhavesh

  • RELEVANCY SCORE 3.23

    DB:3.23:Queries Regarding The Use Of Fm: Edi_Change_Data_Segments dz



    Hi All,

    I have a requirement to change Idoc segment data through a custom report and update. However, my need is

    New field value will be updated in the Idoc, and a new Idoc will be created to store the original Idoc before value is changed .

    I found the FM EDI_CHANGE_DATA_SEGMENTS to change segment values. Please let me know if this FM creates any new IDoc number as well.

    I found in a column that if I use this FM for Inbound idocs, A new IDoc is created to store the initial IDoc data and is saved in the system with STATUS 70 .

    Does it work only for inbound idoc

    Secondly, where do i get the new idoc number since the table that is returned is of type EDIDD which can hold only one idoc number.....

    DB:3.23:Queries Regarding The Use Of Fm: Edi_Change_Data_Segments dz


    Hi All,

    I have a requirement to change Idoc segment data through a custom report and update. However, my need is

    New field value will be updated in the Idoc, and a new Idoc will be created to store the original Idoc before value is changed .

    I found the FM EDI_CHANGE_DATA_SEGMENTS to change segment values. Please let me know if this FM creates any new IDoc number as well.

    I found in a column that if I use this FM for Inbound idocs, A new IDoc is created to store the initial IDoc data and is saved in the system with STATUS 70 .

    Does it work only for inbound idoc

    Secondly, where do i get the new idoc number since the table that is returned is of type EDIDD which can hold only one idoc number.....

  • RELEVANCY SCORE 3.23

    DB:3.23:Idoc Structure Special Character. c1


    Hi Experts,We have a custom IDOC and when i try to import the IDOC from ECC to PI its showing few speical characters:Actual structure in ECC looks like this:When I download in PI, it looks like thisHere the slashes (/) are replaced as _- for the segment name and its segment fields.Could you please let me know how can I resolve this issue.Thanks,--Kishore

    DB:3.23:Idoc Structure Special Character. c1

    Hi Kishore,/BEV1/ is a namespace in ABAP. For some reason I don't know the PI import of Idocs replaces these delimiters / by _.This is normal an will not cause problems. I have already build such interfaces without problems. Just use the created types as they are generated./Michael

  • RELEVANCY SCORE 3.23

    DB:3.23:Extension In Acc_Document cf



    Hi,

    I need one help regarding the idoc acc_document01. In the incoming idoc, there will be no customer number in the segment E1BPACAR09. Instead we are having custom segment with the custom field. Based on the value in the custom field, i need to get the customer no from the custom table.

    It is not allowing me to create the extension of the idoc. So i wanted to know if i can use acc_document02, extension2 parameter. Put the logic of getting the custom no from the custom table?

    or Do i need to implement the badi for this. let me know regarding this.

    Thanks,

    Deepak

    DB:3.23:Extension In Acc_Document cf


    Hi,

    I need one help regarding the idoc acc_document01. In the incoming idoc, there will be no customer number in the segment E1BPACAR09. Instead we are having custom segment with the custom field. Based on the value in the custom field, i need to get the customer no from the custom table.

    It is not allowing me to create the extension of the idoc. So i wanted to know if i can use acc_document02, extension2 parameter. Put the logic of getting the custom no from the custom table?

    or Do i need to implement the badi for this. let me know regarding this.

    Thanks,

    Deepak

  • RELEVANCY SCORE 3.22

    DB:3.22:Custom Idoc With Change Pointers For Condition Record 1p



    Hi ,

    I have a scenario to develop a custom segment for sending the condition record. I dont want to extend the COND_A01. I want to develop a custom IDOC with only the segment to send.And the IDOC should be generated when ever there is a chnage in the KONP Price field.

    Please suggest what are all the various methods to implement this.Is it still possible to use MASTER IDOC FM with the Custom IDOC.

    Regards

    Vinaya.

    DB:3.22:Custom Idoc With Change Pointers For Condition Record 1p


    Hi,

    WE81 to create the custom message type
    BD52 to assign the fields to the message type
    BD50 to activate

    Also it would be a better idea to trigger it directly in the on SAVE exit rather than checking for all this.

    Put your distribution code in BADI

    SD_COND_SAVE_A -
    Save condition application A, E

    Regards,

  • RELEVANCY SCORE 3.22

    DB:3.22:Adding Extra Field In Idoc Cond_A01, Segment E1konp cs



    hi in the idoc COND_A01, in segment E1KONP i have to extract a field from VBAP , so which exit i have to use, can any ony suggest the exact user exit ...

    DB:3.22:Adding Extra Field In Idoc Cond_A01, Segment E1konp cs


    hi in the idoc COND_A01, in segment E1KONP i have to extract a field from VBAP , so which exit i have to use, can any ony suggest the exact user exit ...

  • RELEVANCY SCORE 3.21

    DB:3.21:Collective Inbound Idocs Into R/3 System Using Master_Idoc_Distribute Fm 9d



    Hi All,

    I want to process inbound idocs (4 idocs collectively) in R/3 using master_idoc_distribute function module. The idoc is coming into system as one idoc having 4 segments (each segment for each idoc and contains sub segments too). I want to call master_idoc_distribute for each idoc for sending it to external system. I am using a custom FM for calling the master_idoc_distribute and assigning it into process code inbound for processing the incoming idoc.

    The FM is working for one idoc perfectly but throwing error for more than idocs coming in collectively. Any help is appreciated.

    Thanks

  • RELEVANCY SCORE 3.21

    DB:3.21:Populate The Values For New Segment In E1edp01 3x



    Hi All,

    I have a requirement were have to extend the INVOIC02 Idoc and add a segment under the E1EDP01 say z1_cust.

    can anyone tell how to populate the values for custom idoc under E1EDP01.

    i have the user exit to add the code , but confused in between while writing code.

    Waiting for your valuable Reply.

    DB:3.21:Populate The Values For New Segment In E1edp01 3x


    Hi,

    You don't need to loop at the table int_edidd. This exit will get executed for all the segments.

    Just check for the segment name and process.

    Hope it helps.

    Sujay

  • RELEVANCY SCORE 3.21

    DB:3.21:Idoc Processing With Multiple Segment md



    Hi Team,

    Pl clarify my doubt about Idoc processing.

    If the IDOC have multiple segment for example if I create IDOC with multiple segment, say as 10 segment , to create multiple transportation lane (SCM- APO master data) and one segment have the error , will the complete IDOC be in the error record ? or only the error segment will be in error record?

    Best Regards

    Thamizh

    DB:3.21:Idoc Processing With Multiple Segment md


    Hi Team,

    Pl clarify my doubt about Idoc processing.

    If the IDOC have multiple segment for example if I create IDOC with multiple segment, say as 10 segment , to create multiple transportation lane (SCM- APO master data) and one segment have the error , will the complete IDOC be in the error record ? or only the error segment will be in error record?

    Best Regards

    Thamizh

  • RELEVANCY SCORE 3.21

    DB:3.21:Edi: Syntax Error In Idoc (Too Many Repetitions Of A Segment) p1



    I am creating an idoc which is a list of

    country code,plant,matnr,quantity.

    I have created a custom segment for this.

    While creating an idoc I am putting this line in the same segment i.e.

    t_edidd-segnam = 'TESTIDOC'.

    t_edidd-sdata = zsegment.

    t_edidd-segnum = count_seg.

    t_edidd-psgnum = 0.

    t_edidd-hlevel = 1.

    The idoc is being created but I am getting errors as

    Get details from previous status records with status 26

    and

    EDI: Syntax error in IDoc (too many repetitions of a segment)

    How this type of idocs are created?

    DB:3.21:Edi: Syntax Error In Idoc (Too Many Repetitions Of A Segment) p1


    Hi,

    This error is the segment definition violation. Open your BASIC IDOC type in WE30, double click on the segment TESTIDOC.

    In the popup you can see properties like mandatory segment, Minimum number and Max number. Your IDOC is crossing the max number of repetitions it can have. If any of the segment definition perperties like this one, or improper position of the segment etc occurs IDOC is generated with syntax error.

    Thanks,

    Vinod.

  • RELEVANCY SCORE 3.20

    DB:3.20:Will Reimporting Idoc Schema Remove Old Mappings ? 7m



    Hi,

    I have an idoc imported in SAP PI by another developer. I am adding a new field to a custom segment in ECC and I want that fiels to be used in PI.

    So I assume in ECC , I need to use WE60 and export the schema to XSD format and then import in PI ?

    My questions:

    1. How do I re - import in PI ? Menu option ?

    2. Will this re import delete the old data mappings ? Will I have to redo the data mapping for all fields ?

    thnks

    DB:3.20:Will Reimporting Idoc Schema Remove Old Mappings ? 7m


    Adding to what Liang mentioned, if you "re-name" an existing field which is already mapped, then you will loose mapping for that field. So, make sure all field mappings are in place.

  • RELEVANCY SCORE 3.20

    DB:3.20:Error When Adding A Segment To An Idoc 8x



    Hi I have added one segment to an IDOC through one user exit and it is giving the error with status 26.

    Here I am pasting the error details,

    The segment E1IDT02 does not occur at the current level of the basic type PEXR2001 (extension ).

    This error can have several reasons:

    The segment E1IDT02 is assigned to a group whose header segment does not occur.

    The segment E1IDT02 does not exist in the syntax description of the basic type PEXR2001 (extension ).

    The sequence of segments in the group in which the segment appears is incorrect.

    Previous errors ('mandatory' segment or group missing) may be due to this error.

    Can any body help me, and let me know what can I do to avoid this.

    Thanks,

    Deepak.

    DB:3.20:Error When Adding A Segment To An Idoc 8x


    Actually in the basic type of IDOC, there is no segment with this name. But I am adding this directly in an user exit. Can you tell me what is the actual procedure to add a new segment to the basic type of IDOC

    Thanks

    ravi

  • RELEVANCY SCORE 3.20

    DB:3.20:Idoc Segment Field - Maximum Length ? fa



    Hi,

    what is the maximum of characters in a segment field of an idoc ?

    regards,

    Hans

    DB:3.20:Idoc Segment Field - Maximum Length ? fa


    hi hans,

    the maximum length is 1000 characters.

  • RELEVANCY SCORE 3.20

    DB:3.20:Idoc Segment Data Element Problem aa



    Hi SDNites,

    I have created a custom segment for a custom IDOC and the details of this segment has to be shown in the ALV with field headers having the description corresponding to data element used for IDOC segment fields. But when the segments are created as a structure all the data elements are changed to char automatically so my column header descriptions are coming

    DB:3.20:Idoc Segment Data Element Problem aa


    That's where in the good old days SAP used to generate several dictionary structures. The bE1/b structure was used for filling the actual IDoc, so had to consist only of character-type fields. However, then there were also corresponding bE2/b (segment definition) and bE3*/b (segment documentation) structures defined, which contained the relevant information. This doesn't happen any longer, but you can see that for example when looking at E1MARAM, E2MARAM does have the information you need.

    Anyhow, nowadays those (superfluous) additional dictionary structures are no longer generated and segment information field information is stored in table EDSAPPL. However, in general you're probably better off to utilize a function module (as indicated by previous poster) in case you worry about versioning.

    However, instead of using function module IDOC_COMPLETE_SEGMENT_READ, I'd use SEGMENT_READ_COMPLETE, because the latter is released. Should you need complete IDoc information use IDOCTYPE_READ_COMPLETE.

    Cheers, harald

  • RELEVANCY SCORE 3.20

    DB:3.20:How To Resolve Idoc Error Status 02 c1



    Hi Experts,

    I'm creating extended idoc for MATMAS05 and additionally adding one new segment Z1SEG contains 4 fields.

    when i'm trying to generate idoc.. i'm getting error status 02 as below

    Segment Z1SEG is unknown in Release 701 /

    how to resolve this error.. i searched in SDN also but not getting answer for this type of description error .

    Thanks to all..

    Regards,

    Balaji.

    DB:3.20:How To Resolve Idoc Error Status 02 c1


    Hi You use the Latest version of which the IDoc is present and check which version your IDES system is.Also Please check all the basic setting of Idoc and Check if any notes have to be implemented.

    https://scn.sap.com/thread/791896 Please check if this link is helpful.

    Thanks,

    Vijay.

  • RELEVANCY SCORE 3.20

    DB:3.20:Idoc - Standard Idoc In Custom Program c9



    Hello,

    I am not sure if this is the right forum for asking idoc doubts. Sorry if not.

    Is it possible to call a standard idoc(Inbound)from a custom program? I do not want to create Z segment or call new standard idoc. I would like to use the standard idoc for inbound in my custom program.

    Regards,

    Prem

    DB:3.20:Idoc - Standard Idoc In Custom Program c9


    Hello,

    Yes this is very much possible, to achieve.

    when you will some how have to map the segments in idoc with the data and if you specify your business scenario.

    a better solution may be described.

    One simple was is call the the FM associated with the Idoc in your custom program

    Regards,

    Abhishek

  • RELEVANCY SCORE 3.20

    DB:3.20:Extend Idoc Invoic02 - E1edka1 - Syntax Error c3



    Hi All,

    I have extended Basic idoc INVOIC02 and using exit EXIT_SAPLVEDF_002 to extend custom segment. I am trying to add a custom segment under E1EDKA1. In program I am inserting Z1 segment after parent segment E1EDKA1. I am passing Parent segment reference (INT_EDIDD-PSGNUM) and hierarchy level of custom (INT_EDIDD-HLEVEL) segment. Problem is custom segment still placed under root segment after E1EDKA1 segment, which is incorrect. Idoc error with status 26 Syntax error. Can any one tell me what I am doing wrong or how do I manage to get custom segment under parent segment E1EDKA1, so that I dont get this error. Below code for your reference. Thanks in advance.

    Regards,

    Tim

    Program -

    "ZXEDFU02" -

    describe table INT_EDIDD lines gv_indes.

    read table INT_EDIDD index gv_indes.

    if sy-subrc eq 0.

    if INT_EDIDD-segnam eq co_e1edka1 and

    INT_EDIDD-sdata+0(3) eq 'ZM'.

    Now INSERT segment Idoc value and custom extend field

    if not gv_email is initial.

    INT_EDIDD-PSGNUM = gv_indes.

    INT_EDIDD-HLEVEL = '03'.

    move: co_z1edka1 to INT_EDIDD-SEGNAM,

    'email address' to INT_EDIDD-SDATA.

    append INT_EDIDD.

    endif.

    endif.

    endif.

    DB:3.20:Extend Idoc Invoic02 - E1edka1 - Syntax Error c3


    Your logic looks ok. I would remove the code to populate the parent segment number and hierarchy level. SAP will determine those on its own.

    As for the result you are seeing, if there is a syntax error on an IDoc, the entire hierarchy will be lost so the fact that the custom segment is showing up at the same level as its parent doesn't mean that is actually causing the syntax error.

    Did you add your extension in the partner profile?

    Program -

    "ZXEDFU02" -

    describe table INT_EDIDD lines gv_indes.

    read table INT_EDIDD index gv_indes.

    if sy-subrc eq 0.

    if INT_EDIDD-segnam eq co_e1edka1 and

    INT_EDIDD-sdata+0(3) eq 'ZM'.

    Now INSERT segment Idoc value and custom extend field

    if not gv_email is initial.

    INT_EDIDD-PSGNUM = gv_indes.

    INT_EDIDD-HLEVEL = '03'.

    move: co_z1edka1 to INT_EDIDD-SEGNAM,

    'email address' to INT_EDIDD-SDATA.

    append INT_EDIDD.

    endif.

    endif.

    endif.