[IDOC] Creating own IDOC

Hey,
playing with IDOCs, I would like to create an own one with customized structure.
Found this thread:
Creating own IDOC with segments
In we31 I have to create a segment.
- Do you uses segment names longer than 7 characters? I would not
  communicate with R/2 or older systems, so would you use longer names?
- Data elements: If you create your own IDOCs do you use own data elements?
  Just want to have something like a string element. Or is there a standard
  data element you can use? (sorry, a newbie question). I would like to use
  S_PASSNUM, S_PASSNAME2, S_PASSNAME2......
thanks a lot.
chris
Edited by: Christian Riekenberg on May 21, 2008 2:54 PM

Hi Christian,
Data elements: If you create your own IDOCs do you use own data elements?
Its not mandatory that you have to create your own data element.  You can use an existing data element.You must create new data elements in the following case:
A data element in SAP does not use one of the allowed data types for IDOC segments. For eg: the future price field (ZKPRS) in the E1MBEWM segment of the MATMAS02 basic type uses data type CHAR12 instead of ZKPRS. The reason is that the data type for ZKPRS is CURR (Currency) which is not allowed in a segment definition.
Reward points if helpful.
Regards,
Soumya.

Similar Messages

  • How to create  Own IDOC

    how to create  our own idoc ..
    plz help me with  detail steps and explanations...
    thanks in advance.

    Hi Avi,
    Please go through the blog updated by me.
    http://theguruspeaksaboutsap.blogspot.com/2007/07/idoc-creation-steps.html
    or go through this link
    http://www.geocities.com/xplosion78/customised_ALE_IDOC_BY_SACHIN_DABHADE.zip
    Reward if helpful.
    Regards,
    Harini.S

  • Creating own IDOC with segments

    can any one let me know the steps to create <b>Z</b> IDOC and segments required  for  it.
    and also the sample code (program) to poplulate the data into those segemnts from a (excel/csv file )or tables.
    Thanks..

    hi Aday,
    There are basically two types of IDOCs.
    Basic IDOCs
    Extended IDOCs
    Idoc Components
    Basic Idoc
    Basic IDOC type defines the structure and format of the business document that is to be exchanged between two systems.
    Extension Idoc
    Extending the functionality by adding more segments to existing Basic IDOCs.
    Creation of IDoc
    To Create Idoc we need to follow these steps:
    Create Segment ( WE31)
    Create Idoc Type ( WE30)
    Create Message Type ( WE81)
    Assign Idoc Type to Message Type ( WE82)
    Creating a Segment
    Go to transaction code WE31
    Enter the name for your segment type and click on the Create icon
    Type the short text
    Enter the variable names and data elements
    Save it and go back
    Go to Edit -> Set Release
    Follow steps to create more number of segments
    Create IDOC Type
    Go to transaction code WE30
    Enter the Object Name, select Basic type and click Create icon
    Select the create new option and enter a description for your basic IDOC type and press enter
    Select the IDOC Name and click Create icon
    The system prompts us to enter a segment type and its attributes
    Choose the appropriate values and press Enter
    The system transfers the name of the segment type to the IDOC editor.
    Create IDOC Type
    Follow these steps to add more number of segments to Parent or as Parent-child relation
    Save it and go back
    Go to Edit -> Set release
    Create Message Type
    Go to transaction code WE81
    Change the details from Display mode to Change mode
    After selection, the system will give this message “The table is cross-client (see Help for further info)”. Press Enter
    Click New Entries to create new Message Type
    Fill details
    Save it and go back
    Assign Message Type to IDoc Type
    Go to transaction code WE82
    Change the details from Display mode to Change mode
    After selection, the system will give this message “The table is cross-client (see Help for further info)”. Press Enter.
    Click New Entries to create new Message Type.
    Fill details
    Save it and go back
    Regards,
    Naveen

  • Track changes in customer material info (VD52) and create custom IDocs

    Dear experts,
    we want to track changes, which are made in VD52 (Customer matertial info record) and create custom IDocs (Z-format) based on these changes. What is the best way to do this?
    Best regards,
    David

    Hi,
    There are a dedicated BTEs (Business Tranaction Event) for this purpose (transaction FIBF).
    - created customer material infos OUTBOUND_CALL_00504001_E
    - changed customer material infos OUTBOUND_CALL_00504002_E
    - deleted customer material infos OUTBOUND_CALL_00504003_E
    You can assign your own FM to the BTE and send custom IDoc whenever there is a new/updated/deletd customer-material info record.
    Regards,
    Marcin

  • Identify wether a PO was created by IDOC or by transaction

    Hi all,
    I am currently working in the BADI ME_PROCESS_PO_CUST method PROCESS_ITEM.
    I am supposed to apply a treatment only if PO was created by transaction but not when created by IDOC.
    Might someone know something about how to find this out?
    Thanks for your help

    Hi
    You can set an your own variable called (for example) PO_BAPI
    How you can set/get it?
    1- Create a new function group having 2 function modul:
    - The first one to set the global value PO_BAPI
    - The second one to get the value of global value PO_BAPI
    So:
    2 - You can call the fm to set PO_BAPI in a user-exit called only by BAPI or you can call this fm in your IDOC just before calling the BAPI for PO
    3- and so you can call the fm to get the value of PO_BAPI in the exit where you need to skip your custom controls
    Max

  • Outbound idoc: creating segment with name 'BATCHCOLLECTION'

    Hello gurus.
    I'm developing my own idoc outbound xml solution and one of the xml requirement is that the segmentnames and fieldnames is not in the SAP name range (of course).
    I have e.g a segment called BATCHCOLLECTION and when I try to create it in transaction WE31 I receive the following message:
    Error: Name range violation : Name BATCHCOLLECTION not permitted in CUSTOMER system
    Is it possible to map all the names before the outbound xml is created ?
    How ?
    Please advice.
    Edited by: Erik Hoven on Feb 20, 2009 10:01 AM

    Hi,
    You can find information on this post :
    https://www.sdn.sap.com/sdn/collaboration.sdn?node=linkFnode6-1&contenttype=url&content=https://Re: Sending IDoc Batches to SAP: Issue with Header Mapping for SNDPRN
    There is no problem if you send idoc one by one with one EDIDC. But if you want to send Idocs with differents EDIDC, today, there is no way.
    Regards,
    Chris

  • How to create Inbound Idocs in a ABAP program? Any function Module?

    Hello Experts,
    My requirement is : I have sales order data which I extracted from third party system in my internal tables. In the same box I need to create inbound Idocs and then consequently create sales orders.
    I have used the function module IDOC_INBOUND_WRITE_TO_DB to create inbound Idocs from Sales Orders data in internal tables. I have populated all the data records with correct PSGNUM and HLEVEL values. My plan is to create inbound idocs with this function module and send those to IDOC_INPUT_ORDERS function module which creates Sales Orders.
    If a sales order in the internal table in ABAP program contains only one item, then I am getting correct idocs. But if more than one item exists for a sales order then the line item segments which got repeated in Idoc are having PSGNUM and HLEVEL values as zero when I checked in WE02. As a result the hierarchy from the second item segment is getting disturbed and getting the status 60.
    I populated T_EDIDD with data records from  IDOC_INBOUND_WRITE_TO_DB.
    To the function module IDOC_INPUT_ORDERS,  T_EDIDC and T_EDIDD are the input. I observed that in T_EDIDD also the PSGNUM and HLEVEL values are blank.
    I am getting Status 60 with message 'EDI: Syntax error in IDoc (segment cannot be identified)' for idocs which have more than one item.
    I need to extract sales data from third party and create inbound idocs and create sales orders in one ABAP program only. I need to display corresponding Idoc numbers for the corresponding third party sales order number in a listoutput.
    Can anybody please provide inputs?
    Regards.

    Hi Anjali,
    Thanks for the response.
    I have passed the PSGNUM and HLEVEL values while populating the data records. Then I sent the data records and control record information to the function module IDOC_INBOUND_WRITE_TO_DB. Inside this function module there is code to clear the PSGNUM values and HLEVEL values.
    for compatibility: clear administration data of data records
               perform data_records_wipe
                                      tables
                                          t_data_records.
    FORM DATA_RECORDS_WIPE
                      TABLES
                          T_DATA_RECORDS_IN  STRUCTURE EDIDD.
      LOOP AT  T_DATA_RECORDS_IN.
        CLEAR: T_DATA_RECORDS_IN-MANDT,
               T_DATA_RECORDS_IN-DOCNUM,
               T_DATA_RECORDS_IN-SEGNUM,
               T_DATA_RECORDS_IN-PSGNUM,
               T_DATA_RECORDS_IN-HLEVEL.
        modify t_data_records_in.
      ENDLOOP.
    ENDFORM.                               " DATA_RECORDS_WIPE
    This is the code which is clearing all the PSGNUM and HLEVEL values. After coming out of this function module we are getting the error idocs created with disturbed hierarchy.
    I need to create INBOUND Idocs with the data in ABAP program.
    Please let me know if any inputs? Is there any function module existing to create Inbound Idocs inside an ABAP program?
    Regards

  • Message output(IDoc) from MIGO creates multiple idocs repeats for each line

    Hi Experts,
    We want to send one idoc message thru MIGO output message control upon posting at HEADER level regardless of how many line items are there on the Purchase Order.
    Using MIGO we are doing a 101 goods receipt on a PO with 3 line items and we are getting 3 idocs created with the same information form the message output control(basically it is at item level).
    I don't know if this is how standard SAP designed the MM message output control.
    From MIGO or MB03 there is no option to display the messages at the header level because you have to go thru the line item details to see the messages
    I have also tried the collective slip option on MIGO and it did not work(help suggests that it will combine everything in one output)
    Can you please let me know if there is a config or development that needs to made on controling the message output at the header level from MIGO.
    Thanks for all your help
    Shraj

    Hi Sri hari Raju.
    Did you solve this problem?
    Can you tell me how?
    Thanks

  • How to create an IDoc just with the updated data.

    Hello I have a question regarding IDocs.
    In case I updated an existing material.
    Is there a transaction where I can put a matnr in, that reads the change pointer table and creates an IDOC with just the updated fields for an existing material.
    Like the transaction BD21, for example. But there I just have the possibility to enter a message type and not a material number.
    If there is no standard transaction. What steps do I have to do to achieve this goal?
    Kind regards,
    Tobias

    thanks a lot for your fast answers. but I want to decide weather I want to create a idoc that includes all data for a material (using transaction bd10) or create an idoc that includes just the updated data.
    The program logic should be the following:
    Select all materials in the change pointer table (that have been changed or new created).
    Check what value has been changed.
    If it is value YSAPSYSTEMXX (extension of mara) then create a idoc with all data for the material.
    If not YSAPSYSTEMXX has been changed create an idoc that includes just the updated data.
    For Idocs that include all material data I would use sap standard transaction BD10 and batch-input.
    For Idoc that should only include the changed/updated data I am searching for a corresponding transaction….
    Kind regards,
    Tobias

  • Multiple document numbers not created while creating multiple idocs.

    Hi Experts,
    we have developed one the interface file to idoc, whenever invoice number change it will create a multiple idocs.
    but i am facing some issue with context handling, can you suggest the suitable mapping / UDF for the below issue.
    Our customized idoc structure has header and line items and both are in not same level-its parent child structure.
    in our sample file there are three different invoice number and as per the requirement its creating three idocs and corresponding headers but not line item details.
    all line item details creating in 1st idoc itself and 2nd and 3rd idoc has only header items no line items. but tried fix with graphical mapping context handling for this problem but not resolved. please advise.
    Regards,
    Krushi.

    hi Hareesh,
    thank you for your quick response.
    after the File Adapter FCC, below is the inbound payload, first four feilds we mapped to header and rest for line items.
    <SettlementDetails>
    <row>
      <PaymentType>CHECK</PaymentType>
      <Filler></Filler>
      <Currency>IN</Currency>
      <Filler1></Filler1>
      <Invoice>100410-133MT5-MH</Invoice>
      <Filler2></Filler2>
      <SettlementMethod>4</SettlementMethod>
      <Filler3></Filler3>
      <PreferredTradingPartnerIdentifier>MT</PreferredTradingPartnerIdentifier>
      <Filler4></Filler4>
      <FinalPayAmount>12.00</FinalPayAmount>
      <Filler5></Filler5>
      <ProductIDUnformatted>55111064001</ProductIDUnformatted>
      <Filler6></Filler6>
      <Filler7></Filler7>
      <Filler8></Filler8>
      <PaytoPreferredTradingPartnerIdentifier>MT</PaytoPreferredTradingPartnerIdentifier>
      <ClaimType>ORIG</ClaimType>
      <CMSRecordID>FFSU</CMSRecordID>
    </row>
    </SettlementDetails>
    multiple settlement details will be there.
    regards,
    krushi.

  • Do not want to create EUPEXR IDoc during F110 run

    HI All
    I am running F110 with RFFOEDI1 program, and after the payment program, it is generating payext IDocs as well as EUPEXR IDocs. But I do not want to create EUPEXR IDocs. I Could nt figure out what settings are  driving these EUPEXR IDocs . Can any one help me out? plzz

    sorry,  I have nt added the message type to the partner profile.the program is still creating the EUPEXR IDocs...but those idocs are failing anyway as there is no EUPEXR Message type in the partner profile.

  • Creating Multiple IDOCs and Line Items based on Posting date from file

    Hi All,
    My scenario is File to IDOC(MBGMCR01)...
    Need your suggestions and help on how to go with this...
    Source file structure is
    DC61|2009-03-15|000000000001200051|00000005.00|200|0001|1234|
    DC61|2009-03-15|000000000001200363|00000001.00|300|0001|1234|
    DC61|2009-03-15|000000000001200334|00000002.00|400|0001|1234|
    DC61|2009-03-16|000000000001201145|00000001.00|200|0001|1234|
    DC61|2009-03-16|000000000001201086|00000002.00|100|0001|1234|
    DC61|2009-03-17|000000000001200051|00000003.00|200|0001|1234|
    DC61|2009-03-17|000000000001200052|00000003.00|200|0001|1234|
    DC61|2009-03-17|000000000001200053|00000003.00|200|0001|1234|
    DC61|2009-03-18|000000000001200056|00000003.00|200|0001|1234|
    And target IDOC(MBGMCR01) is
    IDOC (0u202699999)
    E1BP2017_GM_ITEM_CREATE(0u2026999999)
         Date
    For Each new Posting date(column 2) of the source a new idoc to be created and the corresponding records of each posting date to be added to E1BP2017_GM_ITEM_CREATE
    The out put for the above should be like this
    IDOC(2009-03-15)
    E1BP2017_GM_ITEM_CREATE=2009-03-15
    E1BP2017_GM_ITEM_CREATE=2009-03-15
    E1BP2017_GM_ITEM_CREATE=2009-03-15
    IDOC(2009-03-16)
    E1BP2017_GM_ITEM_CREATE=2009-03-16
    E1BP2017_GM_ITEM_CREATE=2009-03-16
    IDOC(2009-03-17)
    E1BP2017_GM_ITEM_CREATE =2009-03-17
    E1BP2017_GM_ITEM_CREATE=2009-03-17
    E1BP2017_GM_ITEM_CREATE=2009-03-17
    IDOC(2009-03-18)
    E1BP2017_GM_ITEM_CREATE=2009-03-18
    Will be thank ful if any one gives a hint....
    Thanks and regards,
    Sridhar

    I rather meant a picture of your mapping - anyways. Hope this is correct:
    Your souce structure:
    <MT_IAR>
      <IAR_Recordset>
        <IAR_Details>
          <Inv_adj_date>
        </IAR_Details>
        <IAR_Details>
          <Inv_adj_date>
        </IAR_Details>
    Than mapping should be like this:
    <Inv_adj_date>        ==> SplitbyValue        ==> IDOC
    Please confirm this doesn't work.

  • IDOC - create SD Contract from a Purchase Order

    Hi,
    I need to know if exist an IDOCs to create a SD Contract from a Purchase Order and another IDOC to change a Purchase Order from a SD Contract.
    Regards,

    Hi again,
    1. PO will create ORDERS IDOC this is SAP Standard.
    2. ORDERS IDOC will be send
    3. IDOC Segment E1EDK14 qualifier 12 contains the order type. A contract is also a type of sales order. So we need to get the correct order type in the segment. One option is using the userexit proposed earlier another and even easier is asking the XI colleagues to do the change already in XI.
    4. During Inbound processing the contract will now be created.
    http://help.sap.com/saphelp_erp2004/helpdata/en/cf/ab3827940311d295e600a0c9306667/frameset.htm
    You will send a ORDRSP from your Contract (I made a mistake earlier and said ORDCHG this would be the update of the contract from the PO...)
    I think you will need to worry to much of the ORDRSP on the SD side as in fact the IDOC does not care if it is send from order or from a contract.
    Depending on your configuration in MM it will update the PO.
    http://help.sap.com/saphelp_erp2004/helpdata/en/1c/deffb0844f11d2b471006094b9476a/frameset.htm
    Bascally in regards to quantity you will need to do more on the MM side because usually it is not expected that the Vendor is chnaging quantities etc... So it is still possible:
    http://help.sap.com/saphelp_erp2004/helpdata/en/1c/deffb0844f11d2b471006094b9476a/frameset.htm
    By the way we are having the scenario with the contract in our SAP sending ORDRSP and ORDCHG for contracts and it is working fine.
    Hope it helps.

  • Inbound Idoc Create/Change Purchase Order

    Hi All,
    I have to do a inbound Idoc scenario for create as well as change Purchase Order.
    Which is the IDoc type for Create/Change purchase order.
    I went through this form found that ORDERS05 can be used but I am not sure this can be used for both create as well change Purchase Order.
    If ORDERS05 can be used then which is Process code,Function Module and Message type for both create and change Purchase order.
    I also found that IDoc type PORDCR102 can be used for  create Purchase order and PORDCH02 can be used for change Purchase order,but i don't want to use two Idoc types.
    Please suggest.
    Thanks in advance.
    Regards,
    John

    Hi John,
    For creating a IDoc for PO, whenever a PO is created/Changed, it has to be configured in Parter Profile(WE20) for a particular Partner in Outbound Paramtrs tab.
    Give ORDERS05 in Message Type and select the line & go to Display.
    In the screen which appears , choose tab Message Control and give the Process code
    ME10 - Creation of PO
    ME11 - Changes to PO & check the Change Message.
    Give respective Output Message Type & Application(VF) for PO.
    Create Output types for a vendor in T.Code MN04, else take help from MM Consultant.
    Create a PO & save. Then make some changes in Po & again save.
    Now IDoc will be created while saving the Po & IDocs will be created whenver you make changes to PO and saving it.
    Hope It helps.
    Regards,
    Anbalagan

  • IDOC-Segment Created a idoc document against Billing document

    Dear All,
    Thanks in  advance.
    Already created a idoc document against Billing document and one of the IDOC segment is not in the IDOC document output segments(WE05) actually it missed the segment.
    so i want to add the segment which it was missed during generation of IDOC document against billing document.
    Example:
    a) IDOC document misses one segment let suppose "Seg1".
    b) In "Seg1" it have only one field let suppose "Field1".
    c) But "Field1" does not have any value while generation of IDOC document so it doesn't create the respective segment in IDOC document.
    d) so here, i want to edit the IDOC document to add the "Seg1" in the IDOC document and reprocessing the IDOC document.
    Please help on this issue.
    Regards,
    Sridhar.

    Hello,
              If your requirement is to have the Segment even with only 1 Field, you'll have to create an Idoc Extension in WE30.
             In order to populate the Custom Segment, Use the Customer Function '002' in the IDOC_OUTPUT_INVOIC which is EXIT_SAPLVEDF_002 where you can actually insert the Segment as a Child Segment of an Appropriate Segment.
            You can go for Custom segment with the IDoc Extension so that you dont have to manually insert the Segment again and again while reprocessing it.
    Thanks and Regards,
    Venkat Phani Prasad Konduri

Maybe you are looking for

  • IMessages sending to iPhone without data/wifi

    Hi all, When I text my friend with my iPhone it goes through and says "delivered" however it is sending through as iMessage. My friend however has no data plan. I thought it was when she had wifi but the times I texted, she didn't and it still went t

  • Print command from linux PC on to Windows Environment

    Hi Experts, We have SAP on Windows and the network printer is also on Windows, the PC with Linux is integrated with network printer i.e when the print command from Linux is given the output is available from the printer (Windows). But when the print

  • Frequent message that time machine disk not properly ejected

    I am using a 750 GB USB HDD for Time Machine backups.  I am getting frequent pop up message stating that the external drive was not properly ejected when in fact it wasn't ejected at all - on 24/7.  Backups are halted until I click the OK button on t

  • Date time data altered by edit

    I have been struggling with what seems to be a significant bug in Photoshop Elements 9. When I edit a photo (creating a version set), the date/time stamp on the original and edited photo takes on the date and time of the edit and not the original dat

  • Audigy 2 front I/O is

    Hi guys, new guy here. I am having an issue with my front I/O. I have a SB Audigy 2 card (driver version?5.2.496) I connected the front I/O?to it, plugged my headphones in and no sound. I can hear a slight hum through the headphones so i am assuming