Cut a segment on IDOC  (IDOC_INPUT_ORDERS) . Is it possible ?

Hello,
is it possible to cut, or ignore a segment, when an Idoc is coming ??
How??
Thank you,
R.

Hello
the segment is :
E1EDPA1   (If the parvw = 'WE')
I would ignore this segment (because I would that the system take the default data instead the data on E1EDPA1 )
Tks for your reply
R

Similar Messages

  • Manual price condition item for the Idoc IDOC_INPUT_ORDERS

    Hello,
    I need to inform the item manual price using the function module for IDOCs IDOC_INPUT_ORDERS. I am trying by the segment E1EDP05, field Price, but it doesn´t work properly.
    Thanks in advance
    Regards

    Manuel,
    Merely putting the 'price' into a segment-field won't result in good result. You will need to (potentially)populate a few more fields to tell SAP what you want changed. Here is an example, I have a Condition Type called 'Z123' which is a manual condition record. It has been defined as a 'dollar-off' based discount (as opposed to a percentage etc). If I want to push through a discount of, say, $1.00 per unit then I will be populating the following fields within E1EDP05:
    KSCHL - 'Z123'
    KRATE - '2.21'
    MEAUN - 'EA'
    KOEIN - 'NZD'
    Try that and see how you get on. Also check your EDI config around the handling of Messages for Inbound Orders.
    Here's another hint... Simulate what you want to achieve by creating a sales order manually on the system with the relevant condition types populated and then trigger an outbound IDoc. Take a look at the E1EDP05 segment of the outbound IDoc and it will effectively tell you what you need to populate and where to populate it.
    Since I'm on a roll and feeling altruistic, here's another hint for you... Use WE19 and use the 'Inbound function module' icon and from the dialogue box select the 'Process in the Foreground'. As this function module is effectively a dirty old BDC wrapped around a SAP standard FM, you can step through it and see how it is behaving...
    If you are still having problems, let me know, and I will help you out as much as I can.
    Cheers,
    Paul...

  • How to generate a new segment in IDoc for multiple occurance of Control Num

    Hi Experts,
    In my scenario, i need to generate a new segment in IDoc(Target Structure) based on  Control Number Field in the Source Structure.
    The segment need to be created for multiple occurance of the Control Number.
    Ex:
    Control Number - 100 appears 5 times in Source Structure.This control Number is mapped to one of the Field in the Segment of  IDoc.
    Now my requirement is to generate the Segment 5 times with respective to this Control Number.
    please help me out to resolve this issue.
    Thanks,
    Kish.

    Hi,
    Here is the XML Structure of my Source:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:GoodsReceipt_MT xmlns:ns0="urn:WOL-com:XI:data:HJ:10">
       <row>
          <CONTROL_NUMBER>111</CONTROL_NUMBER>
          <LINE_NUMBER>1111</LINE_NUMBER>
          <CONTROL_NUMBER_2/>
          <OUTSIDE_ID/>
          <WH_ID>111111</WH_ID>
          <LOCATION_ID/>
          <HU_ID>11111</HU_ID>
          <NUM_ITEMS/>
          <ITEM_NUMBER>111111</ITEM_NUMBER>
          <CONTROL_NUMBER_3>LR</CONTROL_NUMBER_3>
          <LOT_NUMBER>11111</LOT_NUMBER>
          <UOM>11111</UOM>
       </row>
       <row>
          <CONTROL_NUMBER>111</CONTROL_NUMBER>
          <LINE_NUMBER>12222</LINE_NUMBER>
          <CONTROL_NUMBER_2/>
          <OUTSIDE_ID/>
          <WH_ID>12222</WH_ID>
          <LOCATION_ID/>
          <HU_ID>1222</HU_ID>
          <NUM_ITEMS/>
          <ITEM_NUMBER>112222</ITEM_NUMBER>
          <TRAN_QTY>112222</TRAN_QTY>
          <CONTROL_NUMBER_3>LR</CONTROL_NUMBER_3>
          <LOT_NUMBER>12222</LOT_NUMBER>
          <UOM>1122222</UOM>
       </row>
       <row>
          <CONTROL_NUMBER>222</CONTROL_NUMBER>
          <LINE_NUMBER>2222</LINE_NUMBER>
          <CONTROL_NUMBER_2/>
          <OUTSIDE_ID/>
          <WH_ID>22222</WH_ID>
          <LOCATION_ID/>
          <HU_ID>222222</HU_ID>
          <NUM_ITEMS/>
          <ITEM_NUMBER>2222222</ITEM_NUMBER>
          <TRAN_QTY>22222222</TRAN_QTY>
          <LOCATION_ID_2>33333333</LOCATION_ID_2>
          <CONTROL_NUMBER_3>LR</CONTROL_NUMBER_3>
          <LOT_NUMBER>22222</LOT_NUMBER>
          <UOM>22222</UOM>
       </row>
       <row>
          <CONTROL_NUMBER>333</CONTROL_NUMBER>
          <LINE_NUMBER>3333</LINE_NUMBER>
          <CONTROL_NUMBER_2/>
          <OUTSIDE_ID/>
          <WH_ID>33333</WH_ID>
          <LOCATION_ID/>
          <HU_ID>33333</HU_ID>
          <NUM_ITEMS/>
          <ITEM_NUMBER>333333</ITEM_NUMBER>
          <TRAN_QTY>33333333</TRAN_QTY>
          <CONTROL_NUMBER_3>LR</CONTROL_NUMBER_3>
          <LOT_NUMBER>33333</LOT_NUMBER>
          <UOM>333333</UOM>
       </row>
    </ns0:GoodsReceipt_MT>
    Now Control_Number 111 occurs 2 times, 222 & 333 occurs 1 time.
    Now one IDoc for 111,222 & 333 should be generated.
    But Control_number 111 appears 2 times.
    Now the data in the 2 rows should be passed to Single IDoc by repeating the segments inside the IDoc.
    As u said i changed the Occurance of IDoc to 0...unbound and imported as External Definition. I have done upto Generating IDoc for each unique Control_Number.
    I stuck up at repeating the Segments in the IDoc.
    So please help me out.
    Thanks,
    Kish.

  • How to isolate error with a record/segment in IDOC with multiple records

    I have an IDOC with multiple records/segments (typically 1000 records/segments). Sometime XI can not process the IDOC because of some control characters in data.
    1. How can I pre-processed the IDOC to remove those control characters?
    Can I use XPATH expression/Java class to do it? How can I configure the XPATH expression/Java class in XI to pre-process the file?
    2. Until I have answer to 1st question. I would like to find out the error is exactly for which record? What configuration can I do in XI to isolate the error is with which record/segment in IDOC?
    Thanks in advance.

    Split the IDoc.
    with in the UDF, after the validations if every thing fine, pass as successful records to success_MT and pass it to target system using Branching in BPM.
    if errors found in the record, then store the error records in Hash table with in UDF, get the IDoc number, frame as a string and raise alert.
    U have to do this in the context of IDoc.
    If U wanna get the IDoc Number, Segment Name and field name for every failure, U can pass the expected error field name as constant to UDF, frame the sentence in the UDF like -> <b>IDoc 1234321 segment – SEG001 – field – FLD03 has a special character ‘*’</b>.
    If U wanna pass this string to source/target, U can do in error messages branch in BPM.
    U must use BPM for splitting the IDoc, since it is multi-mapping.
    reg.,
    Yallabandi.

  • How  can create SEGMENTS and IDOC TYPE in BADI in ECC 6.0 version

    Hi All,
                Can any one help, how  to create SEGMENTS and IDOC TYPE in BADI in ECC 6.0 version.This is my task.
    Given BADI name was----VENDOR_ADD_DATA_BI .
    Thanks

    Anil,
    look at this thread ..may be this helps you.
    Re: 824 IDOC and BADI/User Exit
    sateesh.

  • In exit EXIT_SAPLKD01_001 populate custom segment of idoc ext. cremas05

    Hi,
       I am using EXIT_SAPLKD01_001 where I need to populate 2 custom segments for idoc extension cremas05.
    I have created a function module separately where I have populated the 2 structures that is of same type as the segment structure.
    In the exit I have called the function module where the structures are populated.
    Now my question is how to populate the custom segments from the function module structures directly in the exit.
    Thanks and Regards
    P

    Hi
    Now I'm able to do this.... closing the thread.

  • E1EDKT1 segment in Idoc INVOIC02

    Hi,
    Im getting the following error when sending an INVOIC02 Idoc to ECC:
    "Error: Segment 'E1EDKT1', segmentnumber '000010' not correct in structure INVOIC02"
    I already refreshed the IDoc metadata and I see the segment in the repository and IDX2. The connection to the backend works fine: when I remove this segment the Idoc is processed succesful. What could be causing this problem?

    Hi Iddo Rijsdijk,
    It solved my issue as well. Thanks.
    - Netrey

  • Optional Segments in IDocs

    How do Optional segments in Idocs gets triggered ? Iam generating Idocs on R/3 Side and optional segments seems to be not getting created when I see on WE05 Tcode.
    My Question is does these segments will be created automatically if there is a data ?
    Please clarify

    Hi Ram,
    There needs to a specific coding for filling the segments be it optional or anyother. I believe the filling of the segment is being done in SAP R/3 and there might not be a code to fill these optional segments.
    Just simply write a code where you are filling other segmemts for the IDoc in case it's not there and it should work.
    Hope this helps.
    Nishant
    Message was edited by: Nishant Rustagi

  • Idoc segment to idocs

    Hello all,
    I am working on idoc to idoc scenario, i have to map a segment to idoc, exact requirement is
    " If there are 10  "E1P12" segments in the inbound IDOC then we need to create 10 outbound Delins IDOCs, each with 1 E1EDP10 segment.
    Can anyone provide me the steps to follow in this scenario.
    Thanks for all your help.

    one more
    For every Idoc generated on the target side the header data is populated frm source Idoc.(i.e) the same header repeated 4r all idocs right???
    In order to do tat u need to write a simple udf
    public void Test(String[] a,String[] b,ResultList result,Container container)
       //write your code here
    for (int i=0; i<a.length;i++)
         result.addValue(b[0]);
    use this udf under all header element(eg.element1 under header tgt side)
    then mapping ll be
    E1EP12----->
                          Test-------->Split By Value---->element1
    src element---->

  • Segment to idoc..

    Hello all,
    I am working on the scenario where i need to mapp a segment to idoc.
    means if i am having 10 segments then 10 idocs should get created.
    If there are 10 EDP10 segments in the inbound IDOC then we need to create 10 outbound Delins IDOCs, each with 1 EDP10 segment.
    I have to display the header part from other segment with each idoc created.
    Please explain in detail.
    Thanks for all your help.

    Hi siddhesh,
       Try the below logics...
       It will working fine for me in Orders IDOC.
        If you have a Multiple E1EDPO1 for each E1EDPO1 need to create a
        Each IDOC.
        and also Each IDOC have Only one E1EDPO1.
        But Header segments Like EIEDKO1 comes only one time.
        This also should be enable each IDOC in the Receiver.
      First for Multiple IDOC:
        E1EDPO1Remove ContextSplitByValue(Each)Collapse ContextIDOC
      Second for enable each E1EDPO1 for each IDOC:
        E1EDPO1SplitByValue(Each)E1EDPO1
         other elements need to simple map.
         Like..
         Posex--Posex
         Action--Action
      Third For header need to use Each IDOC:
        EIEDKO1(Context IDOC)                     ---
        E1EDPO1(Change the context to IDOC)---UseOneAsMany-E1EDKO1
        E1EDPO1                                          ---
        Other elements also need to map like above.
        Consider the field ACTION
         ACTION(Context IDOC)                       ---
        E1EDPO1(Change the context to IDOC)---UseOneAsMany-ACTION
        E1EDPO1                                           ---
       In useoneasmany we need to keep first and second node context should be same.
    Regards,
    Prakasu

  • How can i check the segment in idoc.

    hi gurus,
       how can i check the segment in idoc.please help me as

    Hi Rohit,
    In WE02/05 U can view the IDocs.
    Since u r having the IDoc with u, Double click the Idoc no. and it will take you to screen where it will show you all the segments of IDoc. Here you can check which segment is giving error.
    Go to  WE60/63 which shows the detailed documentation in the MySAP environments if u have been using the old 4.6c systems. In 6.10 since the documentation is not available ,modify your personal settings to show the documentation by default; In 6.10 in transactions WE60 and WE63, documentation is no longer generated by default for the segment fields when the documentation is generated. To activate the generation of the documentation from the corresponding data elements, proceed as follows: WE60/WE63. > Goto > User settings. Here you must set the indicator for 'Display of the documentation' under 'Display attributes for IDOC types' and then save the change. Now the documentation is also displayed for the segment fields when WE60/WE63 is executed.
    **Reward points if u find this useful.
    Thanks & Regards,
    gyanaraj

  • Limit the no of segments per IDOC to less than the current default value

    Hi friends,
    please help me in the following issue.
    The possibility to limit the number
    of segments per IDOC to less than the current default value.
    Purpose is to limit the traffic of IDOCs between systems.
    How to solve this issue to avoid traffic
    Thanks in advance.
    Regards
    Sandeep

    Hi Kiran,
    Actually we are using standard ones at that time we are getting prolems. When using custom developed ALE's
    we are putting segment size is less.To decrease segment size is there any filtering at the sender side? To change segment size may be nedd to take help form SAP.
    But if have filtering at any level from sender side need to confirm before consult SAP.
    Regards
    Sandeep

  • Filling up segments of Idoc of Invoice List

    Hi!
    Invoices and Invoice List are beeing created... everything would be fine, but some fields are missing in the Invoice List while existing in Invoices.
    I guess I need to find the code where these fields are filled up for Invoices and to add this code to appropriate place for Invoice List. How to do this?
    I think that needed segments are existing for Invoice List, just not filled up...
    By the way, how to find out Idoc number of Invoice List? If I have it, I could compare segments with Idocs of Invoices.
    Any ideas?
    Will reward,
    Mindaugas.

    I saw the Function module -
    Please look at code at :
    Include program : LVEDFF0R
    FORM REDUCTION_TABLE_CREATE.
      PERFORM IDOC_SEGMENTS_READ.
      PERFORM IDOC_ACTIVE_SEGMENTS_SET.
    ENDFORM.                    " REDUCTION_TABLE_CREATE
    Keep the break point at form routine and debug the the function module
    If you do not know how to do debugging then use following way :
    keep the break point in form routine above as i said
    Create invoice or invoice list
    when you maintain output type in invoice or invoice list -
    Now click on Further data ->select peridoc scheduling-> back and save it.
    Run RSNAST00 Program
    Output application : V3
    Object key : Invoice or invoice list number
    Output type : RD00 or LR00
    Medium = 6(EDI) ,A (ALE)
    when you execute the program and it will goto debugging.
    Thanks
    Seshu

  • Adding segment to Idoc

    Hello Guys,
    I have an inbound Idoc in my system with 'N' segments. If I need an 'N+1' segment in the idoc, is it possible to add the new segment using the BADI  HRALE00INBOUND_IDOC?
    regards,
    Gergo

    Hi,
    It depens of type of IDOC. Check Note 753153 - FAQ: Customer-functions in IDOC_INPUT_ORDERS for instance for IDOC ORDERSXX.
    Regards,
    Eduardo

  • Populating  the segments of idocs

    Hi,
        How do segments of the idoc get populated with data from SAP tables ?  (for SAP standard idoc or newly created idoc and outbound process)
    Can anyone say in details?
    Good answer will be rewarded
    Thanks ,
    Manas Behera

    For any IDOC there is a specific standard function module assigned that is called to fill the IDOC segments.
    For orders it is e.g. IDOC_OUTPUT_ORDERS.
    This function takes care of the filling of the IDOC segments. You also usually have user exits available in those function modules that you can use to manipulate the IDOC data or fill/add custom segments/fields.
    The function modules usually start with IDOC_OUTPUT_* for outgoing IDOCS and IDOC_INPUT_* for incoming IDOCS.
    Hope that helps,
    Michael

Maybe you are looking for

  • How to  build a  Calculator in WAB Template  by using  Java Script......

    Hi , I am  trying   to build a dynamic  calculator in WAD which is as  similar to one in Executive view in Cognos. The  problem i am  facing  is,  i can  able to build a normal  calculator  by using  java script  but  i am  unable  to read the  key f

  • ALV not appear in a embed view

    Hi Gurus, Initialy I have two differents views:The first one with some fields and a filter button and the second one with an ALV list and buttons. The requirement is join the two view in one. I create in the first one view a ViewcontainerUIElement th

  • No capture...no import from imovie hd

    I've just installed FCE HD. Since the add on apple.com said it worked with most of the recent camecorders, I did'nt checked the "official" qualified list . Of course, my SONY DCR-PC330E pal is not listed though rather recent and it seems that only a

  • Search no longer works

    I have Bridge 4.0. Search has suddenly stopped working. Whether I use quick search or Edit/Find, I can't bring anything up unless I type in the exact file and and extention. Saying that I want to search for a certain word that is in a certain folder

  • Question: have CC LR on mac pro want to install on desk top ..how do i do this ???  thank you

    have owned CC on 9.99 for year or so..now want to install on desktop as well how do i do it? also once software setup whats best way to transfer files..I have 40,000 photos any help much appreciated