Include ZXM06U02 in EXIT_SAPLEINM_002

Hi gurus,
i've tried to add my z-segment ZE1EDP01 into int_edidd like it is described in the following link:
http://help.sap.com/saphelp_dimp50/helpdata/DE/dc/6b7d7c43d711d1893e0000e8323c4f/content.htm
The z-segment will be added, but the idoc went to status red, because of the following error:
'Get details from previous status records with status 26'.
In the data records of the idoc, the whole subsequent structure of segment E1EDP01 is lost, the idoc looks like a flat structure.
It seems, that in the processing after the user-exit the idoc interface does not know, that my z-segment has E1EDP01 as parent segment. But in WE30 E1EDP01 is mentioned as parent segment.
Do you have any ideas or experience with that problem?
Thanx in advance
Cheers
Stefan

Hello Stefan,
If the order of the segments are same as in WE30, no need to mention the parent. Please check this thread.
Re: Error during syntax check of IDoc (outbound)

Similar Messages

  • FM Call within EXIT_SAPLEINM_002- INCLUDE ZXM06U02- Read Code

    Hi,
    Im calling FM RV_PRICE_PRINT_ITEM in EXIT_SAPLEINM_002 ( INCLUDE ZXM06U02). Please find part of code below:
    DATA: tkomv type komv occurs 0 with header line,
          tkomvd type komvd occurs 0 with header line,
          tkomk type komk,
          tkomp type komp.
      WHEN 'E1EDP19'.
        LOOP at int_edidd into x_edidd.
          IF x_edidd-segnam = 'E1EDK01'.
            L_E1EDK01 = x_edidd-sdata.
            EXIT.
          ENDIF.
        ENDLOOP.
        L_E1EDP19 = int_edidd-sdata.
        IF L_E1EDP19-IDTNR <> '' AND L_E1EDP19-KTEXT <> '' .
          SELect single umrez into v_umrez from ekpo where ebeln = L_E1EDK01-BELNR
                                                     and matnr = L_E1EDP19-IDTNR.
          GET PARAMETER ID 'BSP' field bsp.
          CLEAR: tkomv,
                 tkomvd.
          select single * from ekpo where ebeln = L_E1EDK01-BELNR
                                   and ebelp = bsp.
          select single * from ekko where ebeln = L_E1EDK01-BELNR.
          tkomk-belnr =  ekko-ebeln.
          tkomk-mandt = ekko-mandt.
          tkomk-kalsm = ekko-kalsm.
          tkomk-kappl = 'M'.
          tkomk-waerk = ekko-waers.
          tkomk-knumv = ekko-knumv.
          tkomp-kposn = ekpo-ebelp.
       CALL FUNCTION 'RV_PRICE_PRINT_ITEM'
        EXPORTING
         COMM_HEAD_I       = tkomk
         COMM_ITEM_I       = tkomp
          LANGUAGE          = 'E'
        IMPORTING
          COMM_HEAD_E       = tkomk
          COMM_ITEM_E       = tkomp
        TABLES
         TKOMV             = TKOMV
         TKOMVD            = TKOMVD.
       LOOP AT TKOMV.
       IF TKOMV-KSCHL = 'ZD05'.
              select single * into v_konp from konp where knumh = tkomv-knumh.
              kbetr = v_konp-kbetr / 10.
       ENDIF.
    If I test FM RV_PRICE_PRINT_ITEM in SE37 with the values Im supplying, I was able to read data. But if its inside the exit, table TKOMV doesnt contain any entries.
    Is there anything wrong with this?
    Also, how do I debug this exit in IDOC_OUTPUT_ORDERS? I have setup EDI for this,  and Im just using me22n messages to output idoc.
    Please help.
    Thanks.
    Kenny

    Hi Kenny,
    Check in debug mode whether export parameter tkomk and tkomp are populated.
    You can debug from ME22N. after changing the PO, before you save it start debugging, ie., give '/h' in the command and then click save button.
    Once you enter there, click settings, and enable update debugging, after that click breakpoints in the menubar, click breakpoint at, select function module.
    In the pop-up you enter  "EXIT_SAPLEINM_002". then give F8.
    It will stop you in the first screen of the exit.
    Incase the control remains in std program after your F8, try repeating the above step, it will take you to the exit.
    Hope this helps,
    Regards,
    Nidhya

  • Debug ZXM06U02 include file called from RSNAST - outbound PO IDOC

    Hi,
    I have been asked to amend an idoc to include additional fields from the Purchase Order. I have successfully extended the right idoc segments and discovered that the values I need to be added are done at include ZXM06U02. In fact I have hardcoded the 3 values here so that I can test that the hardcoded values are coming out on the Idoc.
    This is all working smoothly however I now need to do the actual work and get the values into the include. However I cant seem to get the debugger to stop at this program/include. I have tried both the standard /h with breakpoints and even WE19 (IDOC test) with debugger but I cant stop at this file to see what information I have available!
    Could someone offer me any advice on how to debug in this situation. I think it may have something to do with the RSNAST as the program in the output - although could be wrong.
    Cheers
    Paul

    Hi Paul,
    Set the dispatch time of the output type which triggers the IDoc in the Purchase Order to '3 Send with application own transaction'. The trigger the output with transaction ME9F (of course after you have put a breakpoint in the include). Now you stop at the breakpoint.
    Regards,
    John.

  • How can I test the IDOC ORDERS05 user exit EXIT_SAPLEINM_002?

    We used user exit EXIT_SAPLEINM_002 for changing the PO IDOC values.
    When I repeated the PO message to create new PO IDOC, I can not stop the process at the user exit EXIT_SAPLEINM_002. Is there any way to debug the PO IDOC creation at the point of user exit EXIT_SAPLEINM_002, so I can see how the user exit EXIT_SAPLEINM_002 works at run time?
    Thank you in advance!
    Fisher Li

    Hi
    Put a debug point at include ZXM06U02 in user exit EXIT_SAPLEINM_002.
    In your PO go to header tab -> output and set ur output type to periodically scheduled job because if that output type is send immediately it will not stop at break point. So select your output type press button Further data and set it to peridically scheduled job.
    Then go to we15 give ur application as EF, your Po number and your output type then execute. It will stop at that user exit.

  • INCLUDE DOUBT

    Hi all,
    I HAVE FM IDOC_OUTPUT_ORDERS AND FROM THERE I HAVE EXIT_SAPLEINM_002 IN WHICH I HAVE AN INCLUDE ZXM06U02 IN WHICH I HAVE CODE WRITTEN . cAN ANYBODY TELL WHEN THIS INCLUDE IS GOING TO GET TRIGERRED .
    PLEASE LET  ME KNOW IF YOU NEED ANY DETAILS.
    DEEPTHI

    This is an outbound IDoc, so it is probably associated with an output type of an order. When you create/change the order, the output associated with this order will be triggered and depending on the timing(immediate or scheduled), you can either find it processed in NAST table with object key equal to order number or you will find it in new status in NAST.
    Run RSNAST00 program, enter the output type, object key(=order number) and execute. If you have a breakpoint in your include it will stop there.

  • Urgent: User Exit (ZXM06U02) have some problem in coding.

    Hi All,
    This is regarding the user exit,
    The present issue is.
    When sending the PO to supplier portal, the outbound IDOC segment does not get populated properly. The text format ‘=’ is again converted to space in ECC 6.0 which was not the case with 4.5B.
    This is an upgrade issue as the function module used to format text ‘FORMAT_TEXTLINES’ is completely different in ECC 6.0. The entire code of this function module in 4.5B has been commented in ECC 6.0 and new code has been implemented which splits the text and inserts spaces while formatting as shown below.
    This issue can be resolved by implementing a customer exit which gets called after standard SAP populates the IDOC. It requires implementing custom code to remove the unwanted spaces inserted by standard SAP for text id F07. Hence after SAP completes its processing to populate the IDOC, the text would be processed further to remove unwanted spaces before actually sending the IDOC out from SAP R/3.
    Thus this upgrade issue resolution requires R/3 development,
    <b>I write the code in exit include ZXM06U02</b>:
    Coding part:
    DESCRIBE TABLE int_edidd LINES tabix.
    READ TABLE int_edidd INDEX tabix.
    IF int_edidd-segnam = 'E1EDPT2'.
       CLEAR E1EDPT1.
       CLEAR E1EDPT2.
    Check whether its higher level segment E1EDPT1 has F07 in field E1EDPT1-TDID
    by looking back internal table int_edidd
       w_tabix = tabix - c_1.
       w_i = tabix - c_1.
       DO w_tabix times.
         READ TABLE int_edidd INDEX w_i.
         IF int_edidd-segnam = 'E1EDPT1'.
           MOVE int_edidd-sdata TO E1EDPT1.
           EXIT.
         ENDIF.
         w_i = w_i - 1.
       ENDDO.
       IF E1EDPT1-TDID = 'F07'.
         READ TABLE int_edidd INDEX tabix.
         MOVE: int_edidd-sdata TO e1edpt2.
      Remove unwanted Space(s) in field E1EDPT2-TDLINE
         CONDENSE E1EDPT2-TDLINE.
         MOVE E1EDPT2 TO int_edidd-sdata.
         MODIFY int_edidd INDEX tabix.
       ENDIF.
    ENDIF.
    <b></b>
    But the code statement 'CONDENSE E1EDPT2-TDLINE.' does not work for removing space.
    i did not understand why the code is not working properly.
    Could any one please explain how write the code for condense the text with out spaces ASAP.
    Thanks,
    sridhar

    "Condense" will leave one space between words by default... so you may want to add "no-gaps" on the end i.e. "CONDENSE E1EDPT2-TDLINE no-gaps." to eliminate all spaces between the words.
    Jonathan

  • Populating field with EXIT_SAPLEINM_002

    Hi,
    I have a requirement where i have to populate the Vendor Name field when PARVW = 'LF'(in ME22N-Create PO Transaction).
    Enhancement name:-MM06E001
    INCLUDE           ZXM06U02
    In Include LEINMF11,this is where i hv to make the changes:-
    int_edidd-segnam = 'E1EDKA1'.
      e1edka1-parvw = 'LF'.
      e1edka1-partn = ekko-lifnr.
      e1edka1-ihrez = ekko-ihrez.
      e1edka1-bname = ekko-verkf.
      e1edka1-telf1 = ekko-telf1.
      e1edka1-spras = ekko-spras.
      WRITE ekko-spras TO e1edka1-spras_iso.
    *<<<<<<<<<<<<<< begin insert note 547957 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
      data: begin of h_iln_vendor,        " help field for concatenating ILN
               bbbnr like lfa1-bbbnr,
               bbsnr like lfa1-bbsnr,
               bubkz like lfa1-bubkz,
            end of h_iln_vendor.
    ILN of vendor
      clear h_iln_vendor.
      h_iln_vendor-bbbnr = lfa1-bbbnr.
      h_iln_vendor-bbsnr = lfa1-bbsnr.
      h_iln_vendor-bubkz = lfa1-bubkz.
      e1edka1-ilnnr = h_iln_vendor.
    *<<<<<<<<<<<<<< end   insert note 547957 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
      MOVE e1edka1 TO int_edidd-sdata.
      APPEND int_edidd.
    Call Method PROCESS_IDOC_SEGMENT (BADI MM_EDI_ORDERS_OUT)
      PERFORM badi_process_idoc_segment.
    Call Customer Function 002 (enhancement MM06E001)
      PERFORM customer_function
    Can any one suggest me how should i maintain the index of the current Segment definition & restore it back so that the vendor name gets populated when ever the IDOC is triggered.
    Thanks in Advance

    Hi Sheetal,
    You can use ABAP command <b>EXPORT/IMPORT <f1> [TO <g 1>] <f 2> [TO <g 2>] ... FROM MEMORY ID <key></b> to maintain the index of the current Segment definition and restore it back so that the vendor name gets populated when ever the IDOC is triggered
    Please check this link for sample code.
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3bde358411d1829f0000e829fbfe/content.htm
    Hope this will help.
    Regards,
    Ferry Lianto

  • User Exit for Sales and Distribution

    Hi,
    I am creating some custom segments, Please provide me the include or enhancement name where i need to write the user exit.
    Module: Sales and distribution
    IDOC Type: idoc_output_orders

    Function EXIT_SAPLEINM_002
    Include ZXM06U02
    Enhancement MM06E001
    The last segment in table INT_EDIDD will tell you what was just appended, so use that to determine when to run your code to add the custom segment(s).

  • Filter Idoc for 4.5B

    Hi experts,
    I'm working on a very old version, the 4.5B.
    I'd like to make filters for Idocs:
    On ECC6, it can be done with transaction BD64, what about 4.5B?
    Thx,
    Regards
    Mehdi

    remove the filter in BD64..
    and add the manual code in the include ZXM06U02, by rasing exception not to create idoc and sent to external system..
    use the below synatx for raising exception..
    Read table int-edidd with key segment = 'E1MARCM' .
    MOVE int_edidd-sdata TO XE1MARCM.
    if XE1MARCM-werks ne 'requiremtnt'.
    This statement stops the Process to create idoc..
        RAISE DATA_NOT_RELEVANT_FOR_SENDING.
    Endif.
    Prabhu
    Edited by: Prabhu Das on May 14, 2009 6:52 PM

  • Common include for two exit EXIT_SAPLEINM_002 and EXIT_SAPMM06E_006.

    Is there any include that is common to both the exit.
    First exit is EXIT_SAPLEINM_002.
    and the second exit is EXIT_SAPMM06E_006.

    No, there is nothing in common between these two...EXITS
    Just curious to know why are we bothered abt the common ones at alll...
    Let us know more to help u...
    Regds
    Karthik

  • Getting dump in my include

    HI,
    i wriien a piece of code in the exit  EXIT_SAPLEINM_002.In development is working fine but in quality giving dump
    ABAP runtime errors    TABLE_ILLEGAL_STATEMENT
           Occurred on     04/27/2010 at 06:08:07
    >> Short dump has not been completely stored. It is too big.
    Error analysis
    You attempted to change, delete or create a line in the
    internal table "\PROG=SAPLEINM\DATA=XEKPO[]", but no valid cursor exists
    for the table.
    Possible reasons:
    1. The relevant ABAP/4 statement does not include the addition
       "...INDEX...", although the statement is not
       inside a "LOOP...ENDLOOP" loop processing this table.
    2. The relevant ABAP/4 statement was called from within a
       "LOOP...ENDLOOP" loop after a DELETE "\PROG=SAPLEINM\DATA=XEKPO[]".
    *The stopped line items should be dropped by the idoc
    loop at DEKEK_X where ebelp = xekpo-ebelp.
    if DEKEK_X-stpin = 1.
    delete DEKEK_X where stpin = 1.
    delete xekpo where ebelp eq DEKEK_X-ebelp.
    endif.
    endloop.
    if DEKEK_X[] is initial.
    delete xekpo.
    endif.

    if DEKEK_X[] is initial.
    delete xekpo.
    endif.
    this is wrong... which record do you wish to delete? you need to tell him... either give an index or a where condition.
    if you want to clear the whole table then make use of the CLEAR command instead of delete.

  • How do I include 'Edge Web Fonts' into Edge Animate?

    How do I include 'Edge Web Fonts' (not Google Web Fonts) into Edge Animate?

    Have you tried to use google fonts? I have used them and they work for me.
    When you add your font for example:
    Copy paste:
    <link href='http://fonts.googleapis.com/css?family=Finger+Paint' rel='stylesheet' type='text/css'>
    and then for font family.
    'Finger Paint', cursive;
    then select addfont on the addfont screen

  • No Apple Remote or Apple Mini-DVI to VGA Adaptor included with new MacBooks

    Hi!
    I just picked up a new (black) MacBook yesterday from the Apple Retail Store in Meadowhall (Sheffield). I was quite surprised to open the box and find that the Apple Remote and Mini-DVI to VGA adaptor cable are now optional items and no longer included in the package. Okay, they're not expensive (an extra £30.00 to add both of them), but I just thought I'd mention it to let potential customers know.
    I have to say that I'm very pleased at the speed bump and the 250GB hard drive though (you can never have too much space). Also good to have 2GB RAM out of the box (rather than paying an extra £90.00 for the 2GB model). Excellent!

    bford0001 - 15% restocking fee? Did you buy it from an Apple Retail store? I bought a black MacBook from them just under two weeks ago (a 2.2 with 160GB HD and 2GB RAM) and they let me take it back and walk out of the store without charging me anything!
    One other thing I have noticed - why has the L2 cache dropped to 3MB from 4MB? I know the processor is more powerful, but doesn't that mean it would just about level out, because of the reduction? I noticed the same for the £1,299.00 MacBook Pro and that on the other two models, it's gone up to 6MB. Anyone know how this would change the performance?

  • Sum of LineCount Including Groups and Detail Data On Each Page Used To Generate New Page If TotalPageLineCount 28

    Post Author: tadj188#
    CA Forum: Formula
    Needed: Sum of LineCount Including Groups and Detail Data On Each Page Used To Generate New Page If TotalPageLineCount > 28
    Background:
    1) Report SQL is created with unions to have detail lines continue on a page, until it reaches page footer or report footer, rather than using  subreports.    A subreport report is now essentially a group1a, group1b, etc. (containing column headers and other data within the the report    with their respective detail lines).  I had multiple subreports and each subreport became one union.
    Created and tested, already:
    1) I have calculated @TotalLineForEachOfTheSameGroup, now I need to sum of the individual same group totals to get the total line count on a page.
    Issue:
    1) I need this to create break on a certain line before, it dribbles in to a pre-printed area.
    Other Ideas Appreciated:
    1) Groups/detail lines break inconveniently(dribble) into the pre-printed area, looking for alternatives for above situation.
    Thank you.
    Tadj

    export all image of each page try like this
    var myDoc = app.activeDocument;
    var myFolder = myDoc.filePath;
    var myImage = myDoc.allGraphics;
    for (var i=0; myImage.length>i; i++){
        app.select(myImage[i]);
        var MyImageNmae  = myImage[i].itemLink.name;
        app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.high;
        app.jpegExportPreferences.exportResolution = 300;
           app.selection[0].exportFile(ExportFormat.JPG, File(myFolder+"/"+MyImageNmae+".JPEG"), false);
        alert(myImage[i].itemLink.name)

  • I have OSX Maverick on an iMac using Outlook e-mail.  PDF attachments are included in the e-mail  as the whole document rather than just the PDF icon.  How can i have just the PDF icon as an attachment?

    In Outlook my PDF attachments appear as whole documents and not just the PDF icon.  How can I have attachments included as PDF icons and not the documents?

    For your own viewing, you can of course control-click on the attachment and select "View as Icon".
    For others' viewing, it depends upon their email reader.  To ensure that attachments are not displayed expicitly you can put them all in a zip file (via control click and "Compress") then attaching them, or you can use third party stuff like Attachment Tamer.
    charlie

Maybe you are looking for