Creating Outbound IDOC

Hi All,
I have a program which generates an outbound idoc. My basic type is PRICAT. My problem is i cannot make the child segments. The segments created are all parent segments.
How will i make the child segments? what fields do i have to fill up to it child segment?
Any response will be gladly appreciated!
Thanks in advance!
jim

Hi Jim,
for correct child segments you have to provide some fields of structure EDIDD.
Important for the hierarchy relationship are the
following fields:
PSGNUM -> Number of parent segment
HLEVEL -> Hierarchy level
Example:
Definition of MATMAS01
Parent segment E1MARAM
--> Child Segment E1MAKTM(Child of E1MARAM)
--> Child segment E1MARCM(Child of E1MARAM)
> Child Segment E1MARDM(Child of E1MARCM)
....... and so on
==> In EDIDD structure:
DOCNUM | SEGNUM | SEGNAM  | PSGNUM | HLEVEL
000001 | 000001 | E1MARAM | 000000 | 02
000001 | 000002 | E1MAKTM | 000001 | 03
000001 | 000003 | E1MARCM | 000001 | 03
000001 | 000004 | E1MARDM | 000003 | 04
....... and so on
When you are creating the segments,you are responsible
for the correct sequence of segments.
With best regards
Ivan

Similar Messages

  • Function Module to create Outbound IDoc

    I have created a segment (ZSEGPRO), basic type (ZIDOCPRO) and message type (ZMSGPRO) to create a custom IDoc. Now I have to write a Function Module to create Outbound IDoc.
    I want to know what will be in Import, Export, Changing, Tables, Exceptions and Source code of that function module. The fields used in the segment ZSEGPRO is given below:
    Fld NameSource Data Elmn     Description
    PRODUCT MARA MATNR     Material number
    TEXT     MAKT     MAKTX     Material description
    PRN     MARA     YYBCEZNDR     Print Field
    Additional information: Export parameter will be BAPIRETURN for holding error message(if any).
    These Function Module need not require to be RFC enabled.

    Hi ,
    Refer these:
    There are two main reasons
    1) Make sure you call COMMIT WORK after the MASTER_IDOC_DISTRIBUTE
    http://help.sap.com/saphelp_nw04/helpdata/en/78/21783151ce11d189570000e829fbbd/content.htm
    2) The rest of the setting of the ALE IDoc might not have been done
    http://help.sap.com/saphelp_46c/helpdata/en/78/2177c951ce11d189570000e829fbbd/frameset.htm
    You can use the Area Menu WEDI and do the rest of the settings.
    ALE Quick Start guide and ALE Programming Guides for your reference
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFAALEQS/CABFAALEQS.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEPRO/BCMIDALEPRO.pdf
    Recent discussion which could be helpful,
    About WE21, BD64, sm59
    Regards
    Shiva Kumar

  • How to do configuration to create outbound idoc using message control

    The objective is to create outbound idoc based on some selection criteria using message control approach.The interface will be triggered when there is goods receipt via MIGO transaction.............Now based on the material document number from NAST table i am going to fetch data and do further processing inside the function module i am going to create.later idocs will be created via program RSNASTED.How we do the configuration to set up this whole operation?

    Please go thru:
    1) message control
    2) http://help.sap.com/saphelp_di46c2/helpdata/EN/c8/19878343b111d1896f0000e8322d00/content.htm
    Regards
    Shital

  • Creating outbound IDOC for EDI

    HI All,
    I have to create an IDOC for EDI. Can anyone tell be the function module to create an IDOC for EDI. I know MASTER_IDOC_DESTRIBUTE, but it is only used for ALE.
    Can anyone help me in this.
    Thanks.
    Shweta

    Dudes:
    It sounds to me like all of you guys need some training and some understanding of the basics.
    MASTER_IDOC_DESTRIBUTE is called by the standard IDoc interface after an IDoc has been built and is ready to be kicked out the door. It provides all the services needed to write the idoc to the database and send it out through the partner profile and file or tRFC port. It's used both for ALE and EDI IDocs.
    I cover the processing flow extensively in my new book from SAP Press "Architecting EDI with SAP IDocs". The book is available from:
    http://www.sappress.com/product.cfm?account=&product=H3003
    I also cover these topics in my IT Toolbox blog at:
    http://it.toolbox.com/blogs/ehadzipetros
    And my SDN blog at:
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417600)ID1280983950DB11991735787968519403End?blog=/pub/u/252038725
    Good luck. ejh,

  • Standard program for creating outbound IDoc holding wbs+cost plan

    Hello,
    a)
    Before we start developing our own ABAP, I would like to ask the forum if somebody knows if there is already a standard ABAP program for generating outbound IDocs including wbs-element data (CJ20N; wbs ID, description) plus annual data from the cost planning (CJ41; such as fiscal year and costing items from unit costing; quantity, unit, price per unit, total price, description of item) ?
    b) we are planning to use the logical message /ISDFPS/PS, basic type /ISDFPS/PS01 and enhance this IDoc with segments for the costing items from the cost planning.
    Question: Do you know if there is a standard IDoc which has segments for both wbs-element data and costing items?
    Kind regards
    Viveka Schwartz

    Hi Frank,
    Did u check this Link on the PP confirmaitos[LINK|http://help.sap.com/saphelp_47x200/helpdata/en/12/3bbc1c504811d182c20000e829fbfe/frameset.htm]
    Reg
    Dsk
    Edited by: DSk on Sep 14, 2010 3:44 PM

  • Standard program for creating outbound IDoc including wbs + cost planning

    Hello,
    a)
    Before we start developing our own ABAP, I would like to ask the forum if somebody knows if there is already a standard ABAP program for generating outbound IDocs including wbs-element data (CJ20N; wbs ID, description) plus annual data from the cost planning (CJ41; such as fiscal year and costing items from unit costing; quantity, unit, price per unit, total price, description of item) ?
    b) we are planning to use the logical message /ISDFPS/PS, basic type /ISDFPS/PS01 and enhance this IDoc with segments for the costing items from the cost planning.
    Question: Do you know if there is a standard IDoc which has segments for both wbs-element data and costing items?
    Kind regards
    Viveka Schwartz

    Hi Frank,
    Did u check this Link on the PP confirmaitos[LINK|http://help.sap.com/saphelp_47x200/helpdata/en/12/3bbc1c504811d182c20000e829fbfe/frameset.htm]
    Reg
    Dsk
    Edited by: DSk on Sep 14, 2010 3:44 PM

  • How to create outbound idoc?

    Hi Experts,
    I want to know , how to create the oubound idocs.What is the procedure ? I sit gets generated on the  application server.
    Regards,
    Rahul.

    Hi,
    Check this link...
    https://wiki.sdn.sap.com/wiki/display/ABAP/Outbound%20Idoc%20Through%20ALE
    Regards,
    Raj.

  • How to create outbound IDOC for Accounting document type RV

    Hello All,
    We have a requirement to create a downpayment request for a customer. We have copied the FAZ billing type and created a ZFAZ. For this the accounting document type generated is RV. This RV is a statistical document and does not contain any debits and credit entries. It is just to inform the customer to pay. We have to generate an IDOC for the same. I have configured FIDCC1 standard FI message type for this in ALE. But it does not seem to work.
    Does anyone have any inputs on this ? May be RV does not use the message type FIDCC1 ? Anything in relation to RV or downpaymnts, please let me know..
    Appreciate your responses.
    Thanks
    SH.

    Hello Alpesh,
    I tried adding breakpoints to the following userexits and many other places where they occur..but while creating billing doc FAZ nor while generating accounting document RV they were triggered.
    I have created a distribution model and created the partner profile with outbound for basic type INVOIC02 for message type INVOIC . What do you say?
    Just a note that this is an outbound process and i cannot use process codes.
    - EXIT_SAPLVEDF_001 User_Exit controll data IDoc_Output_Invoic
    - EXIT_SAPLVEDF_002 User_Exit customer enhancement of segments outbound invoice
    Thanks
    Smitha
    Edited by: Smitha H on Jul 25, 2008 7:56 AM

  • Steps to create outbound CREMAS IDOC from ERP

    Hi,
    Can you please share the steps to create outbound IDOC from ERP system?
    Business requirement is that whenever a new vendor is created in the ECC system, SAP should trigger an outbound vendor IDOC CREMAS from ERP system. Also whenever the vendor data is changed then the entire vendor details should be passed to outbound IDOC and not just the delta changes. Change pointer can be configured but to create idoc for full vendor records.
    I guess we can use CREMAS.
    Can anyone please share the steps to configure it in ERP?
    Regards,
    Sandeep

    1. Read the file using OPEN DATASET and read and fill up the segment info and fill the EDIDC header data
    and then call function
    CALL FUNCTION 'INBOUND_IDOC_PROCESS'
        TABLES
          IDOC_CONTROL       =  i_edidc
          IDOC_DATA          =  i_edid4.

  • Outbound Idoc after created Invoice document

    Hi All,
    May i know how to create outbound idoc after invoice document created.
    Because i just found out some solution for inbound idoc.
    Regards,
    Luke

    You need to set up the Output type using the NACE tcode and this output type should be configured to trigger the IDOC. Check the below link.
    http://www.erpgenie.com/sapedi/messagecontrol.htm
    This output type can be linked with the IDOC type in WE20 tcode.
    ~Srini
    Edited by: VaasPal on Dec 22, 2011 8:13 AM

  • Sales Order Outbound IDOC - Restricting Items being created with a Segment

    Hi,
    I have a requirement to restrict segments being created for Items (Child) in Sales Order Outbound IDOC based on conditions in the Items (Parent & Child). Can you please suggest me a suitable solution?
    Basic Type: ORDERS05, Message Type: ORDRSP. What is the IDOC Function Module to be used to create Outbound IDOC for Sales Order?
    Appreciate Your Help.
    Thanks,
    Kannan
    Edited by: Kannan SA on Jan 3, 2008 3:03 PM

    Hi,
    if the segments are mandatory then you can't trigger the idoc without those segments.
    Otherwise, you can read the segment and clear all the data in it, the segment will not be attached to the outbound idoc.
    Where to do it? Search the CALL CUSTOMER-FUNCTION '002' for the outbound idoc for example IDOC_OUTPUT_INVOICE for Invocing.
    Regards,
    Baburaj

  • How to generate Outbound idoc for Material Reservation

    Hi Experts,
    I want to send outbound IDoc when a material reservation is created with tcode MB21.
    I have been working on this issue and finding the solution in SCN for a week...
    I found some messages similar to this but I could not find out the correct way how to do that.
    At this moment, I configured BD64/WE20 referring the following topic which seems to be feasible solution but could not find any outbound IDocs created, unfortunately.
    Implement ALE_RESERVATION_CREATE
    I appreciate if someone can help me how to create outbound IDoc with MB21 or advice some possibility of missing configuration or steps.
    Best Regards,
    Kenji

    Hi;
    Have been able to find the solution to create the IDoc MRESCR after entering a reservation? 
    I am in the same situation and I do not see the IDoc output in the BD87. 
    It would be nice if you share the solution.
    Thanks in advance

  • Validation on outbound idoc

    Hello team
    I have the below requirement now. please check and suggest me
    1. i am sending outbound MATMAS05 idoc from SAP system. but i want to do few validations on the data of idoc (for example i will check the value of plant data with some other value of the table). if my checking is success then only i need to create outbound idoc and send it to downstream systems.
    So now i want to know where i need to write the code which performs the validations against the data before creating/posting of idoc.
    Please suggest me.
    Regards
    Raj

    Vinod
    Dont mine of asking little more clarification.  you mean to say go MM01 and find out the package (ie MGA) and then goto SMOD and findout the exits right.
    But when check in this way, i didnt find the enhancment MGV00001 you have provided.
    please tell me the procedure to check in a detail way. i want to know how can we check for the related enhancments for any idoc type. please tell me to check for MATMAS05 as an example, i will use the same techinque for any idoc type.
    Regards
    Raj

  • Outbound idoc creation with MIGO

    Hello,
    I need to create outbound idoc when the GR is created (MIGO).
    I created one output type (ME) with the processing program RSNASTED and form routine ALE_PROCESSING. Unfortunately, the rsnasted does not work, as I can not create message type MBGMCR in BD64 (Model). MBGMCR belongs to BAPI.
    Do you know the way how to proceed?

    yes it is BAPI. sorry for the confusion.
    Edited by: Vijay Babu Dudla on Sep 24, 2008 6:13 AM

  • Triggering outbound idoc from the transaction VL01N

    Hi,
    I have requirement where in which i need to create outbound idoc of sales and delivery data as soon as VL01n transaction is saved,Pls let me know how we can achived this , the Idoc needs to be triggered immediatly after saving VL01n transaction.
    Thanks
    Ravi

    >
    Sujatha Reddy wrote:
    > Hi Ravi,
    >
    > Goto t-code NACE, select Shipping and press push button 'Output Types', now you will get the output type for delivery and you can configure you own output meduim in this screen.
    > select the meduim & assign the require parameters.
    >
    > and goto VL01N and create a delivery and now you can goto extrats-> delivery out put-> header, here you can assign the output type that has been confugured perviously.
    >
    > -hope this helps
    You could of instead told them to search the forum like I did. Instead you chose to give him the answer, even though it is not the full answer. After they have done what you ask, what result would you expect form the output record on the delivery. I will tell you, it will not process, why, because you have not mentioned anything about partner profiles and the output control.
    But I hope you get the points for you reponse and you sleep well.

Maybe you are looking for