Skip to Content
author's profile photo Former Member
Former Member

Help On IDOC Program

Dear Friends,

I am having E1EDPT1 segment,

which is in intially having only one child segment E1EDPT2, now i want to add some more child segments E1EDPT2 to my E1EDPT1 during run time .

How can i do this ? Please help me, this is very urgent issue.

This E1EDPT2 contains TDLINE & TDFORMAT .

Thanks & Regards,

Joseph

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 07, 2006 at 04:45 AM

    hi paulraj search a user exit relevant to the program, then using EDIDD,EDIDC,EDIDS structure you can write a coding to populate the segment.mostly the function module used to populate the segment.i think depends upon the output type you can populte the segment

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 07, 2006 at 03:50 AM

    Hi Joseph,

    Please search whether there is a user exits available in the function module to place your additional codes to add new segment for E1EDPT2.

    Hope this will help.

    Regards,

    Ferry Lianto

    Please reward points if helpful.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Joseph,

      You cant add segments to the inbound IDoc since it is already created in SAP. What you do is modify your inbound processing function module or find a user exit where you can add extra text lines to the existing text in the IDoc.

      -Kiran

  • Posted on Jun 07, 2006 at 05:14 AM

    Hi Joseph,

    Which message and IDoc type are you dealing with?

    Is it for inbound or outbound process?

    Regards,

    Ferry Lianto

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 07, 2006 at 02:31 PM

    Hi Joseph,

    I assume you are using standard FM IDOC_INPUT_ORDERS to generate IDoc.

    If you are, then inside the FM there is user exits to modify/add segment for E1EDPT2.

    CALL CUSTOMER-FUNCTION '001'
        EXPORTING SEGMENT = IDOC_DATA
                  DVTCOMAG = VTCOMAG
                  DXMESCOD = IDOC_CONTRL-MESCOD
                  CONTRL   = IDOC_CONTRL
        TABLES    DXBDCDATA = BDCDATA
                  DXVBAP    = XVBAP
                  DXVBEP    = XVBEP
                  DYVBEP    = YVBEP
                  DXVBADR   = XVBADR
                  DYVBADR   = YVBADR
                  DXVBPA    = XVBPA
                  DXVBUV    = XVBUV
                  DD_FLAG_P = D_FLAG_P
                  DXKOMV    = XKOMV
                  DXVEKP    = XVEKP
                  DYVEKP    = YVEKP
        CHANGING  DXVBAK   = XVBAK
                  DD_FLAG_K = D_FLAG_K
        EXCEPTIONS
                  USER_ERROR = 01.

    Hope this will help.

    Regards,

    Ferry Lianto

    Please reward points if helpful.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Lianto,

      thank you very much for your kind help.

      I have modified the Standard FM IDOC_INPUT_ORDERS and using it.

      now should i call the customer-function in my function module's source code itself ??

      pls clarify . May i have ur alternative email id ?

      Thanks & Regards,

      Joseph.

  • Posted on Jun 08, 2006 at 12:39 PM

    Hi Joseph,

    If you want to use the user exits as mentioned above,

    you don't need to modify the standard FM IDOC_INPUT_ORDERS. Any specific reason?

    You just need to activate the include program inside the user exits and place your logic there.

    Don't get me wrong, please use this forum as communication and verification. In this case, all SDNer can learn and share valuable information. Also they will provide you any input and solution (from different point of view). This is one of the resources. 😊

    Again, let me know if you need further assistant.

    Regards,

    Ferry Lianto

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Lianto,

      i have modified the standard FM for some other reasons,

      now i found the customer-funtion '001' is having a inlcude programe ZYDC_VEDAU03, and this include program is not having code in it,

      should i place my logic here in this include programe ?

      i am passing the value which should be updated to Additional text field from my FM thru' a memory id,

      can i use the same here ?

      pls guide me in this .

      Thanks & Regards,

      Joseph

  • Posted on Jun 09, 2006 at 04:20 AM

    Hi Joseph,

    I assume an include program ZYDC_VEDAU03 is correct then absolutely you can place your logic/codes inside the include program.

    Please check whether the customer-funtion '001' has import parameter for IDOC_DATA (Segment) or not.

    If it has then you can code something like this.

    DATA: ZE1EDPT2 LIKE E1EDPT2.
    
    LOOP AT IDOC_DATA.
      CASE IDOC_DATA-SEGNAM.
         WHEN 'E1EDPT2'.
           MOVE IDOC_DATA-SDATA TO ZE1EDPT2.
    
           ZE1EDPT2-TDLINE   = <...>    <- import from memory id
           ZE1EDPT2-TDFORMAT = <...>    <- import from memort id
    
           MOVE ZE1EDPT2 TO IDOC_DATA-SDATA.
           MODIFY IDOC_DATA.
    
         WHEN <...>
    
         OTHERS.     
    
       ENDCASE.
    ENDLOOP.

    At the end, ensure you activated.

    Hope this will help.

    Regards,

    Ferry Lianto

    Please reward points if helpful.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Lianto,

      i want to modify this idoc segment to update the additional text field in Sales order , let me clearly explain you what i want,

      We receive IDOC from Biztalk to post a sales order,

      in that , we have some materials defined as Include Items, we don't want to display this items in sales order, this include items belongs to some other material in the same idoc, for our understanding i can say parent - child relationship.

      Include items will have Action as '003' and Reason for rejection as 'Y9', it will have its parents material's item no in its shipping to field. now in sales order i have to remove the items which are having action as 003, and have to place this material in its parent material.

      Hope you understand my requirement now,

      can you suggest me the solution for this ??

      Thanks & Regards,

      Joseph

  • author's profile photo Former Member
    Former Member
    Posted on Jun 09, 2006 at 09:54 AM

    Hi joseph,

    what ever lianto has given.its correct.See when ur using any inbound idoc .It will come with data.Now when the parent segment comes the data will be there in idoc_data-sata..

    So u an use the code .So write the code which you want to

    modify..

    for example iam getting some ISO code i want to midfy to sap code.

    so what i will do is as i have data in idoc_data-sdata,

    i will move to some workarea and then write the code to modify the iso code and then i will modify the idoc_data.

    so now the idoc_data-sdata will have modified values not the values which has come.

    Regards,

    Nagaraj

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Nagaraj,

      i have tried the same

      but i couldn't get the result.

      Earlier i modified the mateiral based on Customer material no in idoc segments E1EDP01 and E1EDP19, then i had modified it in the XVBAP also, so i got the modified matnr in my sales order,

      Now i have modified the idoc data, and after that to get it in my sales order what should i do ?

      i want this in my sales order item's additional text,

      how to do this ?

      regards,

      Joseph

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.