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

IDOC segment problem

Hi Experts,

I have to send a custom idoc for PO, so i created a segment with folloing fields

TABLE Field name Data Type

EKKO EBELN EBELN

EKKO LIFNR ELIFN

EKKO EKORG EKORG

EKKO BEDAT EBDAT

EKPO WERKS EWERK

EKPO EBELP EBELP

EKPO MATNR MATNR

EKPO MENGE BSTMG

EKPO REVLV REVLV

MDSB MATNR MATNR

EKET EINDT EINDT

Now the problem is for each PO item there are more than 1 child items(MDSB-MATNR) and i have to send IDOC as & when PO releases.

The problem is how to pass multiple child items to idoc for 1 PO item. DO i need to create 1 more segment or any other ways

Regards,

NIk

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 04:58 AM

    Hi

    When create the segments when you double click in the properties there is a field where you have to gives the Occurances like Minimum/Maximum number

    for item data we give 9999 like that and for header records we give as 1.

    check it and do accordingly

    Regards

    Anji

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 05:06 AM

    Ya u wnt to declare another segment..Because for PO there will two tables EKKO,EKPO.One is for header data and another one for detail data..

    Now u wnt to create the segment based on this and u want to call ths two segments in the idoc..Y we r tryi9ng this is,becoz while populating the values to the idoc it will be very easy..

    Try this,Surely it will work

    Reward if useful

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 05:18 AM

    Hi,

    Goto Tcode WE30 and enter your extended Idoc type then press change button. Goto your Z-segment and double click on it, in the coming pop-up you can give the maximum number as 99 or 999 or and so on. Dont give Maximum number as 1.

    Cheers,

    Bujji

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      I already created 1 segment, with max 99999 entries, but the senario is when we release an idoc it means only 1 PO data will be send it may have 4 items(eg). that is fine because at last we r passing a table to idoc. that means it will send 4 IDOCs. but it will take same PO as diffrent entries because of items

      But i need to pass child items of those items in PO. child items u can also say BOM items. so it may be possible that for 1 PO item there are 100 of line item. if i will release 1 doc, it will send 400 lines with all values same and only 1 field with diffrent entries, i dnt want to send same PO number and other fields so many times.

      Is it possible to send IDOC with 1PO and Item no and having 100 child items ?

      regards

      Manish

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.