Programming for Extended IDOC

Hi,
My purpose is to create an extended IDOC(derived from a basic one) and then fill that Idoc with data through a custom Z program and send it to SAP PI system. So in this case do I have to lookup a user-exit for filling the IDOC or a REPORT program would be suffice for that.

Hi,
Its same as normal IDOC steps,only difference becuase when you copy standard basic type and its correspond segments have to fill before gneration of idoc.
Go ahead with Z report and make sure all conf BD84,we20,we21 and RFC fine.
Regards,
Lingaraj

Similar Messages

  • Change pointer for Extended IDOC

    Hi guys,
    I have Extended a standard IDOC MATMAS and added few additional fields into it.
    Now i have make Change pointers enabled for this IDOC extension.
    Is it possible?
    Can some one guide me as to how can i create Change pointers for EXTENDED IDOC?
    any extra steps required?
    Sahil

    Hi,
    you can use BD52 transaction to add the extended idoc fields inorder to activite the change pointers for them.
    Please note that the fields in the extended idoc should have chnage entry in CDHDR whenever you change the field in MM02 transaction. if not change pointer will not work.
    If these fields are not marked in change entry in MM02 transaction you can use user exit while saving MM02 and then create the change document for them by coding inside those user exit.
    Hope it helps,
    Shanmugavel chandrasekaran.

  • How to write the logic for extending Idocs...

    Hi,
          Can anybody pls explain how to write the logic for extending IDOCs with an example...
          Good suggestions can be appreciated..
    Regards,
    Ram

    Hi Ram,
    Generally the IDoc user exit is called at the following places:
      1) When the control record is read.
      2) After each and every segment in the data record
      3) At the end of the data segment processing.
    The IDoc user exit interface generally imports IDOC_DATA (data record internal table) table. Now the data records in the internal table should appear in the same order as maintained while defining IDoc structure (WE30 transaction). For SAP standard segment SAP code will take care of this. For extended segment you will have to take care of this aspect by appending the Z-segment in the IDOC_DATA table.
    You can do this by:
             looping at IDOC_DATA table:
                 - Do a case-endcase fo IDOC_DATA-SEGNAM (This stores the segment 
                   structure as per the hierarchy).
                 - Within the case for "Z-segment" you can write the logic for appending
                   the Z-segment to IDOC_DATA-SDATA.
    Hope this gives some clue.
    Regards,
    Gajendra.

  • Userexit for extended idoc for std. idoc WMMBID02 for T.Code MB1A & MB1B

    Hi,
    Which userexit we have to use to populate values in to extended idoc fields of the standard inbound idoc WMMBID02?
    Pls share ur experience.
    Thanks & Regards,
    Balaji

    Hello using this you can find out used user exit
    1.From SE93 get the program name corresponding to the transaction.
    2. then se38 - > enter program name -> attribute -> display
    3. Get the package from here.
    4.  Go to SMOD . Do f4 on enhancement -> information system. enter your package here
    5. You will get the list of all the available exits for the package.
    List could be a long one.Now best thing to do is to sit with your functional analyst. find out approproate exit from the description. put a break-point there. ask functional analyst to run the transaction. if transaction stops at the break point that's the exit you want

  • Creation of  New Message Type for Extended IDoc

    Dear Friends,
    I want to create New Message Type for MATMAS and want to Active Change Pointers accordingly. Thru this Message Type how can I able to use Extended IDoc which I have created for Basic Idoc Type MATMAS05.
    I am Sending Data from SAP to XI ; Any one can help me in this How can I create the Message Type with the IDoc Extn .
    for Change Pointers.
    Warm Regards,
    Naveen Mutyapu.

    Hi naveen mutyapu,
    see these links
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm#_Toc8400404
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a6620507d11d18ee90000e8366fc2/frameset.htm
    http://www.sappoint.com/presentation.html
    http://www.allsaplinks.com/idoc_search.html
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://www.erpgenie.com/sapedi/idoc_abap.htm
    http://www.allinterview.com/rss/interview-questions/new/SAP-ALE-IDocs.xml
    happy learning.
    thanks
    karthik

  • Process code for extended idoc

    Hi,
    If we are creating an extended idoc, do we have to assign a new process code to it ?
    Or will the process code and the associated function module for the basic type work as well for the extended idoc ?

    Process code will come in to picture when you deal with IDOCS .. you need to assign a code which internally will have a Function module or a Include, that will have entire code to run your bussiness for an IDOC or EDI or ALE.
    Process Code is a different name for specific purposes like function module. IDocs are written in this process.
    Outbound Process Code - if you are using outbound processing under Message Control, the IDoc is generated in the IDoc Interface. The process code names the relevant function module
    Inbound Process Code - names the function module or workflow which reads the IDoc data and transfers the data to the application document.
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b7d6243d711d1893e0000e8323c4f/content.htm
    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 useful.

  • Find program for an IDOC type

    Hello Gurus,
    I need to identify what program or transaction does a Particular IDOC type is associated to.
    How do I find Program related to IDOC type?
    How many ways to find such link?
    Regards,
    Abhishek.

    Hello Gurus,
    My scenario is to find the easiest way to search for the Link between and IDOC type (Outbound idoc) to a program.
    I have list of all the IDOC type now I need to find from where these IDOC´s are triggering from?
    Regards,
    Abhishek...

  • Selection program for HR Idocs

    Hi experts,
         If we generate the Idocs for HR master data using PFAL, and configure the partner profile ( No message Control ), do we have any selection program or posting program for the generated idocs to be posted ??
    Please clarify this.
    Thank you in advance.

    data : wa_0041 type p0041.
        CALL FUNCTION 'BAPI_EMPLOYEET_ENQUEUE'
          EXPORTING
            number        = wa_0041-pernr
            validitybegin = wa_0041-begda
           IMPORTING
              return        = wa_enque_return. " type bapireturn1
       CALL FUNCTION 'HR_INFOTYPE_OPERATION'
                EXPORTING
                  infty                  = '0041'  " as per your infty
                  number                 = wa_0041-pernr
                SUBTYPE                =
                OBJECTID               =
                LOCKINDICATOR          =
                 validityend            = wa_0041-endda
                 validitybegin          = wa_0041-begda
                RECORDNUMBER           =
                  record                 = wa_0041
                  operation              =  'INS"
                TCLAS                  = 'A'
                DIALOG_MODE            = '0'
                NOCOMMIT               =
                VIEW_IDENTIFIER        =
                SECONDARY_RECORD       =
               IMPORTING
                 return                 = lw_return  " type bapireturn1
                KEY                    =
         CALL FUNCTION 'BAPI_EMPLOYEET_DEQUEUE'
            EXPORTING
           number        = wa_0041-pernr
              validitybegin = wa_0041-begda
            IMPORTING
          return        = wa_deque_return. " type bapireturn1
    you can call the FM inside loop of your internal tabale.
    reward points if helpful

  • How to find the outbound program for standard IDoc

    Hi Folks,
    Can anyone tell me how to find the outbound program/tcode for a standard IDoc? For e.g. IDoc - MATMAS05 can be generated & distributed using tcode BD10. Similarly how do I find the outbound program/tcode for any standard IDoc? Is there any procedure to find the same.
    I have tried to search based on the package name, but unfortunately I didn't find the information for IDoc: COND_A04.
    Thanks in advance.
    Somu

    You can do following steps if the idoc is generated based on change pointer concept (for masters)
    - Identify the message type associated with idoc type (table EDIMSG).
    - Function module for generating the IDOC will be available in table TBDME (pass message type as input).
    Refer to the standard Outbound IDOC generation program RBDMIDOC for more details.
    If the idoc is generated based on the process code concept (transaction data), get the process code information from table TMSG1 (pass message type as input), get the function module associated process code from table TEDE1 (pass process code as input).
    Regards, Vinod
    P.S: There is no standard way to find out the associated program / Tcode for generating idoc. The above process will be helpful to find out the underlying function modules to generate the idoc.  For generating idocs based on change pointers the generic program RBDMIDOC can be used.
    Edited by: Vinod Kumar on Jul 13, 2011 2:15 PM

  • User exit for extending iDoc

    Hi gurus,
    Can anyone tell me the user exit for extending the message type COAMAS.
    Thanks & Regards,
    Soumya.

    Exit name Short text
      SIDOC001  Customer function for module pool EDI1
      SIDOC002  CA-EDI: Exits in Function Group EDI6 (Partner Profile)

  • HOW TO WRITE USER EXIT FOR EXTENDED IDOC

    Can somebody please help me as i need the user exit code for Shipment idoc.
    I append the structure of VTTP and add one field with the name of ZDELCST i.e Delivery cost so i want to update that table once the idoc will post.
    I have to write the user exit for this but i have no idea how to do this so kindly requesting someone to please write the code for me and i will be very grateful to him/her.
    The functional module is IDOC_INPUT_SHIPPL
    and there is a CALL CUSTOMER-FUNCTION '012'
    this will take us to function module EXIT_SAPLV56I_012
    This includes ZXV56U08
    Within this include in need to map the delivery cost from the idoc to the new append filed VTTP-ZDELCST

    hi ,
    'EXIT_SAPLHRBEN00GENERAL_014'
    1)Goto CMOD  tcode.
    2)Click on Utilites on Menu bar.
    3)Press Shift+F9, below in component name enter
    EXIT_SAPLHRBEN00GENERAL_014,
    4)F8 , then you will get Exit name PBEN0014
    Double Click  again Double Click you will get function
    FUNCTION EXIT_SAPLHRBEN00GENERAL_014.
    within this onel include file is there.
    INCLUDE ZXPBEU14.
    here you will write your Enhanc Code.
    Reward if , you got soln,
    Thanks.

  • Program for inbound idoc processing

    Hi,
    Can anyone provide a sample program structure to process inbound idocs to create delivery and change BOM? Appreciate any help
    Thanks,
    Michael

    Hi gaurav,
    thanks for you reply.
    Can you give an example
    thanks & regards

  • INBOUND program  For custom IDOC

    Hi ,
          i have a one  senario on creation of IDOC,that is interface for the transmission of the Acknowledgement of check Remittance and Supplemental interface,once the message is received Successfully through OUTBOUND program it triges the Acknowledge other wise it send one mail to respective team for that i need to create a one inbound program please explain me i am new in the area of ALE/ IDOC please give in deatials.
    Thanks,
    Harinath

    Hi Harinath,
    In your case SAP is sending <b>Check Remittance and Supplemental</b> data to legacy system which in turn need to send acknowledgement for that. And its going to be in form of an idoc. for this we dont have an idoc you need to create one from scratch. please find the steps to be followed to create a custom idoc.
    1) Create ‘Z’ segment with required fields(fields coming towards you) using WE31
    2) Create ‘Z’ idoc using segment created in step 1 using WE30.
    3) Create ‘Z’ message type using WE81.
    4) Link idoc created in step 2 with message type created in step 3 in WE82.
    5) Create ‘Z’ function module to post the idoc in SE37. Include all validations, updations to tables, Error handling in source code tab of this FM.
    6) Maintain Inbound process code using the FM in WE42
    Coming to sending a mail, It can only be done using workflow. But i think in your case it is not required. so it need to be done manually.
    Get back if you have any doubts.
    Regards,
    Younus
    <b>Reward Helpful Answers!!!</b>

  • User exit for extended idoc..

    Hi,
    I have extended inbound idoc and added segment.. i m using standard function "IDOC_INPUT_FIDCC2" for posting through idoc (FB70)..
    now i want to do coding for the newly added segment.. however i m not getting customer exit where enhancement spot can be created for the logic...
    i want to use function "SAVE_TEXT" in the customer exit.. so mainly once document is generated i can add FI note by using function "SAVE_TEXT"..
    Please let me know which way i can achieve this (name of user exit ??)
    Regards,

    Hi Santosh,
    If you don;t have User EXit  then copy FM IDOC_INPUT_FIDCC2" into 'Z' FM and write your code and define 'Z' FM into WE20 T-code.

  • Multiple occurence not working for extended idocs

    hai friends
    iam doing file to idoc senario in that multiple occurence is not working for Z segments.
    it is extented idoc .
    in taht multilpe segments are not creating only one segment is creating
    what is the problem
    pls help me
    with regards
    srikanth vipparla

    Hi Srikanth,
    You should map the node of the target side(the one which you want to occur multple times) to the node of the source side based upon which the target side node has to occur multiple times. For example lets say our source and target side structures are like this:
    <Source>
                  <Element1>
                  <Element2>
                  <Element3>
    </Source>
    <Target>
                  <Element1>
                  <Element2>
                  <Element3>
    </Target>
    Now if you want Target to occur n times if  Source node occurs n times, you should map Target node to the Source node. Even in case you want that Element1 of target side should occur as many times as many times you have Element1 of Source side, you should do the same.
    Thanks and Regards,
    Sanjeev.
    PS: Reward points if helpful.

Maybe you are looking for

  • 15" Macbook Pro will not boot up

    15" Macbook Pro, from late 2007 early 2008. I have tried everything, resetting pram, smu etc. Reseating RAM, removing battery, booting in safe mode, booting from OS disc, booting in target mode, nothing work, seemingly tried everything. The firewire

  • No WiFi access on iPod touch!!!

    My iPod touch will not connect to WiFi at all. The WiFi section in the settings menu isnt filled in at all, any advise on hpw to get it to connect? Also when connecting to my PC iTunes crashes?? Thankyou Andrewsean85

  • Messages cannot remember my concacts

    When I go to send a text or read it, the numbers come up and not the contact names, but when I press on a number/message, it will sometimes read the name at the top.  How do I fix this problem?

  • Keyfigures in particular source system.

    Hi All, I would like to know the keyfigures that are used in particular source system in the BI. could any one please let me know how to find it out at one place rather then searching in each transformation of that source system. Thank you in advance

  • Unpredictable crop box...is there a preference for this?

    Using my laptop, I tend to rest my thumb on the bottom of the trackpad (where the button is supposed to be) while moving my finger across the trackpad to move the mouse pointer. I have trackpad tap-to-click and ALL multitouch gestures turned OFF in S