Regarding Mapping of fields for Repeated Segments in an IDoc

Hello Experts,
We have an Orders IDoc with segment E1EDK02 with Occurence 0..10.
In this segment there are two fields QUALF & BELNR.
We want to map a value (Yes or No) to 2 target fields based on the incoming values of QUALF & BELNR .
Now the problem is that for the first occurence of segment E1EDK02 the mapping is working fine.
But for the subsequent occurences of the segment wrong value is mapped to the target field.
The context of both QUALF & BELNR is set to E1EDK02.
Please help!
Thanks in advance,
Suraj

Hello Suraj,
The Source structure is of IDOC Orders05
ORDERS05                     1..1
           IDOC                    1..1
              Segment1
              Segment2
              E1EDK02          1..10
                    QUALF       0..1
                    BELNR       0..1
              Segmentn
Target Structure
MT_ORDERDATA             1..1
             TargetField1        0..1
             TargetField2        0..1
              ORDERITEM         0..unbounded

Similar Messages

  • Get the value of a particular field in a segment of an Idoc

    Hi All,
    I have a requirement where I need to write a report which will fetch the value of a particular field in a segment of an idoc.
    I have the idoc number segment and field name as input parameters by which I can fetch Sdata from EDID4 but the confusion is how to find the exact field value from that Sdata. How to Map the SDATA to the segment structure.
    Please advice...

    Hi,
    I have one last doubt that may be you people can help with... The user will be giving the segment name and field name as input. So by following Kesav's code while i can get all the values in the segment structure at runtime please suggest how to display any one field from that structure given that that particular field will come at runtime.
    EX: user gives an idoc number 123 (say belonging to Orders basic type)
                                 segment E1EDK01
                                 field  BELNR.
    So i need to display the value of E1EDK01-BELNR of idoc number 123.
    Please suggest how to achieve this....

  • Maximum number of times for the segment in the idoc

    I am in WE30 transaction, and i am creating a new idoc type, and i have a doubt in the maximun number of a repeated segment.
    Example idoc 1:
    Line_of_order xxx
    Text y1y1y1
    Text y2y2y2
    Line_of_order xxx
    Text y1y1y1
    Text y2y2y2
    What would be the idoc orders structure :
    A)
    Line_of_order min:1  max: 1
    Text min 1 max 2 
    B)
    Line_of_order min:1  max: 2
    Text min 1 max 4

    It would be:
    Line_of_order min:1 max: 2
    Text min 1 max 2
    Regards,
    Naimesh Patel

  • XI Message Monitoring - Mapping custom fields for search in monitor?

    Is it possible to map a reference field so that searching for a specific message is more user friendly?
    For example, we produce hundreds of outbound SHPMNT04 messages each day.  Would it be possible to map a field such as E1EDT20.TKNUM (Shipment Number) to a field in the monitor (SXMB_MONI) such as "Outbound Reference" so we can easily search on this field?
    Currently we use a combination of WE09 and IDX5 to find a specific message.  Obviously, this is cumbersome and time-consuming.
    Thanks in advance.

    Hi,
    of course it is possible in many ways
    there are at least two ways
    the first one is to use Trex search for xi + standard
    the second one is described in this weblog + but remember that
    without indexing this will take long to search like this
    /people/alessandro.guarneri/blog/2006/02/14/super-message-monitor-for-sap-xi
    Regards,
    michal

  • Problem in mapping the fields for 0FI_GL_4

    Hi,
      can I get any document regarding the mapping the fields at BW side. I need to give Profit and loss Account report.
    Regards
    kamineni

    Hi,
    Better go through the Business COntent in help.sap.com.
    It will give you the complete details.
    try this link
    http://help.sap.com/saphelp_nw04/helpdata/en/57/dd153c4eb5d82ce10000000a114084/frameset.htm
    hope this helps.
    Assign points if useful.
    Venkat

  • How to generate multiple files for each segment in the IDOC

    Hi,
    I have a IDOC with multiple segments, for each segment, a file needs to be generated,
    There is only one target structure. Please let me know as to how do we handle this requirement in XI.
    Regards,
    Younus

    Use multimapping in message mapping. Then map the Idoc node to the Message Type of File.
    Illustration of Multi-Mapping and Message Split using BPM in SAP Exchange Infrastructure
    Regards,
    Prateek

  • Finding Mendatory fields in an segment of an IDOC

    Hi All,
    Can anyone tell me how to find out the mendatory fields required in a segment of an IDOC if we are going to upload data using IDOC technology.
    Thanks in Advance.

    Hi,
    Pls go thriugh the following forum link:
    Re: IDoc Mandatory feilds
    Regards,
    PePe

  • Finding Mendatory fields in a segment of an IDOC

    Hi All,
    Can anyone tell me how to find out the mendatory fields required in a segment of an IDOC if we are going to upload data using IDOC technology.
    Thanks in Advance.

    Hi Ginger,
    Can anyone tell me how to find out the mendatory fields required in a segment of an IDOC if we are going to upload data using IDOC technology.
    The fields in the IDOC can never be made mandatory but the Segments in the IDOC can be made mandatory.
    If segment is mandatory it means that atleast one field in the Segment should be filled.
    generally while defining the IDOC Header data is made as the mandatory segment with Minimum number  1 Maximum number  1 and rest all as optional and can occur more than once.
    Hope this clarifies!
    Regards
    Shital

  • Help needed to "map" HRMS fields for reporting

    Hi all,
    I have been asked to map for reporting purposes all the fields in the HRMS person and assignment forms, plus vacany requisition and absence.
    For example, on the people form in HRMS the "last Name" field would translate into sql as "per_people_F.last_name".
    I have found all the person/assignment/absence and vacancy fields but cannot find any of the following:
    Bank account/ pay method information.
    Salary previous/ salary proposal form information
    Anything from the element entries screen or the tax information fields.
    Anyone have any ideas which tables would hold this information for querying using developer or toad??

    Hi Michel, Vijaya, Praksh
    Thanks for all the replies. I will be a bit more detailed in my Query and Vijaya if u cud explain me the same way then it wud be helpful...
    Idoc Structure:
    GLMAST01
    IDOC
      BEGIN
    --EDI_DC40
         SEGEMENT
        TABNAM
    --E1SKA1M
         SEGMENT
        MSGFN
        KTOPl
        SAKNR
      --E1SKATM
         SEGMENT
         MSGFN
      --E1SKB1M
         SEGMENT
         MSGFN
    The Message type is
    FCC_MSGTYPE
    -MOVEMENT
      -Row
        MANDT
        KTOPL
        SAKNR
    I am not sure whether to Map the MOVEMENT part. Tell me what I should do. The requirement is to populate the R/3 with the MANDT, KTOPL, SAKNR etc which all occur in the E1SKA1M segemnt and the nothing to the subsegments under it.
    Please tell me how to do that.
    Thanking all in anticipation.
    Best Regards
    Chakra and Somnath

  • Changing names of mapping target fields for import

    Is there a way to change the names of some of the target fields that are used to map imported lists? Some of the have names like "Person Attribute 1", etc-- we need to make those names more meaningful.

    The answer to your question would be in the oracle implementation guide Appendix D - Oracle Marketing List Import Field Reference
    HTH

  • Regarding Mapping In XI for Oracle Structure

    Hi Eveyone,
    How should i need to assing a system date and message date need to desing in Xi when i am passing message from R/3xiOracle
    Regard's
    Raj

    Raj,
    can you please explain further what you want?
    If you need to get the sysdate value, then use an User Defined Function with the following code,
    java.text.SimpleDateFormat dateformat =new java.text.SimpleDateFormat("yyyyMMdd");
    String sysdate =  dateformat.format(new java.util.Date());
    Also, take a look at this blog,
    /people/alessandro.berta/blog/2005/10/04/datetime-datatypes-and-oracle-database
    Regards,
    Bhavesh

  • Required fields for Purchase Order through ORDERS05 idoc

    Hi,
    I'm creating PURCHASE orders from ORDERS05 IDOC through XI. Could anyone tell me what all segments and fields are required for this purpose, if they have done this earlier.
    Regards,
    Vijay

    Hi Vijay,
    It depends how the input is populated. Anyway to know about Mandatory Segment /Fields, you can go to Transaction code WE30 in the R/3 system and give the idoc name and open the structure. There you can get to know about Mandatory Segments/fields etc with the help of Occurences
    Regards,
    Moorthy

  • To add field in the segment of an IDOC

    Hi,
    Is there any impact on other IDOC types, if a field is added in the segment of an basic IDOC type.

    Hi,
    You can add the field VGBEL in the custom segment ZE1EDL24 and add this segment as a child segment to E1EDL24 and save it as an extension for the basic idoc type.
    You can populate the VGBEL field using custom code in the function exit.
    This would solve your problem.
    Please let me know if you have any further queries.
    Thanks,
    Mahesh,

  • Problem mapping a same field to a field in duplicated segment

    Hello,
    I have a problem with my mapping. I'm trying to map a MATMAS.MATMA05 to another MATMAS.MATMAS05 iDoc. The mapping for the other fields is ok except for the LTKZA.
    The idea is to duplicate the E1MLGNM segment in the target IDOC. Then I would like to have the LTKZA field for each segment mapped to the STOFF field(wich only appears once in the origin segment), with a small function that checks the value of the STOFF.
    My problem is that the LTKZA in the first E1MLGNM segment is populated with the right value, but the one in the second segment is not populated.
    Could anyone help with this issue? Do u think I can save the value of STOFF in variable, so that I can use it later?
    Thank you all for your help.

    Thank you Gordon,
    I combined the copyPerValue function and the SplitByValue and it worked fine.
    Sorry again to post the thread in the wrong forum.
    Regards,
    Natacha

  • Mapping the IDOC fields for Inbound PO

    Hi,
    I am trying to map the fields for PO for IDOC type ORDER05, but unable to do so for the following IDOC fields in segments.
    Document Date
    Vendor
    Account Assignment Category
    Delivery Date
    Requirement No.
    Requisitioner
    Purchase Requisition
    Preq Item No.
    Outline Agreement
    Outline Agreement No.
    What fields in the IDOC match these in SAP R/3.
    Thanks,
    Randy.

    Hi Did you manage to get this IDoc working? I'm having the same problem with the mapping and the documentation is really bad.
    Thanks.

Maybe you are looking for

  • How to send a text file over a LAN?

    Hi: I am working on a program (web app using a servlet), that produces a text file with Key / Value pairs ex) NAME joe CITY los angeles I want to send the text file over an intranet (LAN) to another pc and store it in the C:\temp directory of the rec

  • Column Validation

    In my form the requester is asked a choice and required to give a "yes" or "no" answer. I need to know if I can set a validation that would require the requester to attach a file when "yes" is selected. I am not using info path or designer for this f

  • No messages for initial processing exist in MB90

    Hi friends,    When i try to take print from MB90 the error "No messages for initial processing exist" for Goods receipt --> others MIGO.      I maintanin the Print controls in SPRO --> MM --> IM --> Print Control.       Please help me in this issue.

  • Photoshop Elements 10 - problem installing on 2nd computer

    When I try to install Elements 10 on my second computer, I get an error message: please install/uninstall the product using Setep.exe in the root folder Any ideas?

  • Leopard will only boot from my external HD, Macintosh HD nowhere! Ah!

    In order to use Bootcamp, I was told that my HD would have to be formatted to the Mac OS Extended(Journal) format. I transferred everything onto my external HD, formatted it, then transferred it all back to my laptop and reformatted my external HD so