Best way to customize IDOC INVOIC02 (outbound)

Hello,
I want to customize the IDOC type INVOIC02 (outbound). Customize means:
- remove segments
- change some values
I tried different ways to achive this, but it does not work as needed. What I tried:
- IDOC extension: can not be used, because I can not remove segments
- IDOC view: not possible for INVOIC02 (see sapnote 185445)
- new IDOC type: I created a new IDOC type and copied all needed segments from INVOIC02. Now I want to use the existing function IDOC_OUTPUT_INVOIC, but it does not work. The IDOC gets status 26 (Syntax error, E1EDK17 does not exist). I do not want to rewrite the existing function. I think this would be the worst.
- new idea (not tried yet): use the existing INVOIC02 and change, remove segments in the user-exit.
Can someone help me and maybe give me hint?
Thanks, best regards
Andreas

Hi Sasidhar,
I am using EXIT_SAPLVEDF_002 now and it works like a charm. Thanks!
This is my coding right now (maybe it helps someone reading this):
*&  Include           ZXEDFU02                                         *
*separate by partner
CASE control_record_out-rcvprn.
* Special customer
  WHEN '0000123456'.
*   get segment
    CASE int_edidd-segnam.
*     delete segments
      WHEN 'E1EDK17' OR
        'E1EDK23' OR
        'E1EDK28' OR
        'E1EDK29' OR
        'E1EDK14' OR
        'E1EDP03' OR
        'E1EDPA1' OR
        'E1EDP28' OR
        'E1EDP08' OR
        'E1EDP30'.
        DELETE TABLE int_edidd.
    ENDCASE.
ENDCASE .
Regards,
Andreas

Similar Messages

  • Best way populate an IDoc extension?

    Hello,
    Well I define an extension for the IDoc MATMAS04, and my segment definition looks like:
    Segement Type:             ZXXX_YY
    Segment Definition:        ZXXX_YY000
    Field Nane                    Data Element
    Code                            CHAR10
    Description                  CHAR40
    And I want to append like 10 Codes and 10 descriptions to the IDoc, so I don't know if it's better to just declare 1 code and 1 description or:
    Code                            CHAR10
    Description                  CHAR40
    Code1                            CHAR10
    Description1                  CHAR40
    Code2                            CHAR10
    Description2                  CHAR40
    Code3                            CHAR10
    Description3                  CHAR40
    Code10                            CHAR10
    Description10                  CHAR40
    Code                            CHAR10
    And then when I append the segment to the IDocData I will do only 1 append instead of ten appends. And will be the first way better for later changes? so easier to Append more and more codes, then you don't touch the Segment Type¿
    I would really appreciate any new idea or comment.
    Thank you

    Hi,
    Define your fields CODE and and description only once in the Segement.
    while attaching the segment to extension there you need to provide the ocuurence of segment.
    enter it 0 to 99999. so that you same segment can be repeated many number of times.
    Regards,

  • What is the best way to clone my iPad 2?

    We are currently rolling out 30 new iPad2s in our classrooms.  What is the best way to customize/confgure/clone 1 iPad and roll out those settings to the remaining iPads?
    I've tried using the backup and restore in iTunes however, I'm running in to the following issues:
    Backup has iOS 4.3.5, but when I restore from backup, it has iOS 4.3.3
    Backup has Facetime turned OFF, but when I restore from backup, it has Facetime turned ON.

    Thanks for the replies.
    I actually called apple support and the only response was to turn off the camera AND FaceTime in restrictions.  Meantime I've used a combination of the BACKUP and RESTORE FROM BACK UP and iPHONE CONFIGURATION UTILITY (enterprise support). Unfortunately there is no one simple solution.
    Example:
    iTunes backup and restore won't disable FaceTime, but using configuration profiles will.
    iTunes backup and restore let's you set a passcode for restrictions while allowing individuals to still change restrictions, but using configuration profiles will disable your selected restrictions.
    In both programs (iTunes and the invigoration utility) you have to update/install one at a time. There isn't a way to update a group of iPads at one time.
    Especially for use with apps in education/classroom settings, I hope apple figures out a better enterprise solution.

  • What is best way to connect a non-sap sys sending  xml idocs to SAP system

    Hi Can some one please guide as to what will be the best approach in connecting a NON SAP system to a SAP system.
    The non sap system should not be connected to access real time data,it does not support RFC,it can send data in IDOC xml format and i think in teaxt files also.Also I dont think there is any EDI subsystem in place.
    There has to be a periodic upload of material data from SAP /stock status/
    then there will be incoming data into SAP for sales order/purchase order etc
    What would be the best way to connect the two systems,IDOCs with partial EDI looks the best way ,but I am confused as to how will the XML IDOC be converted to normal IDOC and viceversa,how to handle the event triggering mechanism.
    If someone has experience in such a scenario ,please help.
    There is a option to update the database of the application through SQL also...

    Hi,
    Check this link.
    Web Services from Function Module
    it might help u.
    Thanks.

  • Best Way to Debug an Inbound IDoc

    Hi
    As previous posts suggest I am having trouble with IDoc PORDCR101 message type pordcr   bapi_po_create
    i input
    comp code 3000
    doctype      NB
    vender        58121
    purchorg     3000
    purchgrp     000
    doc date     01112007
    item           0010
    material     scw1212
    qty            0001000.000
    currency    USD
    scheduleitem  0010
    deldate           01/18/2007
    qty                 0001000
    i put this exact info in se37 with bapi_po_create
    I can successfully create a new po
    now i try to do the same thing in we19 standard inbound
    using idoc pordcr101
    each time i try i get status 51 enter purchasing org
    what is the best way to debug this thing so that i can see what is going on
    i am entering the purchasing org and for some reason it does not see it
    what can i do in the way of debugging?????
    HELP!!!!!!

    Janice,
    conversion-exit routines are used when the contents of a screen field(SAP GUI) are converted from display format to SAP-internal format and vice versa.
    --Archana

  • IDOC INVOIC02 in outbound - segment E1EDP05

    I'm making some test with the IDOC INVOIC02, i try to generate a invoice idoc for from another SAP system for generate SD invoice with the GN_INVOICE_CREATE.
    I view that the idoc created dont generate the segment E1EDP05 with the pricing procedure conditions (necessary for a mirror creation of invoice on the destionation SAP).
    Anyone knows why the segment is lost?
    Thanks
    Davide

    Hi,
    Could you please check is there any segment filters are set in the sender system.
    Generally we will check any segment filter in BD56 transaction.
    Thanks,
    shyla

  • Posting Header Freight to separate account with idoc INVOIC02

    Hi,
    I am using idoc type INVOIC02 to post a cross-company code invoice.  There is freight at the header level in the invoice and I want the freight amount to hit a different G/L account than the rest of the document. From the help documentation, it looks like I should be able to set the flag in T076S-KOKSEPA, and this should then take the amount in segment E1EDK05 and place it in a separate line item segment in the Idoc.  Once it's in its in a separate segment then I should be able to use settings in table T076I to direct it to a separate G/L account.  However, when I set this flag inT076S-KOKSEPA the system is not doing anything with the amount in the header segment..
    Does anyone have experience with this?  If I set the flag in T076S-KOKSEPA what should I expect to see at the item segment level? Should I get an additional E1EDP01 segment?  If not, what's the best way to get header freight to post to a separate account?
    Thanks,

    Hi,
    You need to add a record in T076I using OBCB transaction, fill EWLNR with the folllowing concatenated values from E1EDK05 :
    - E1EDK05-ALCKZ (the value is - or +)
    - E1EDK05-KSCHL
    In my case T076S-KOKSEPA doesn't work, I got an accounting item corresponding to header condition but no more accounting lines corresponding to invoice items...
    But it works fine using T076S-KOPSEPA to post conditions at item level.
    Your questions :
    - Does anyone have experience with this ?  > We are still waiting ...
    - If I set the flag in T076S-KOKSEPA what should I expect to see at the item segment level ? > Nothing, this parameter works later, when the idoc is processed to create the accounting data (function IDOC_INPUT_INVOIC_FI not function IDOC_OUTPUT_INVOIC_IV_MM)
    - Should I get an additional E1EDP01 segment ?  > No
    - If not, what's the best way to get header freight to post to a separate account ? > It is the best way, but you can try at item level (T076S-KOPSEPA), in my case it works immediatly.
    My question :
    When the flag is set at header level (set the flag in T076S-KOKSEPA), an accounting item is created for the header condition, but how this value is allowed (- or +) on the other accounting items ?

  • WHAT IS THE BEST WAY TO CREATE AN XSD FILE (TO BE USED BY SOAP ADAPTER)

    Dear friends
    I have a simple scenario.
    OUTBOUND DATA  -->  SOAP ADAPTER  --> ( XI )  -->  RFC ADAPTER  --> INBOUND DATA
    The XML file that I got from mapping area of IR (Design) is as follows
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_NAME_SOURCE xmlns:ns0="http://test3.com">
       <FIRSTNAME>DAVE</FIRSTNAME>
       <LASTNAME>SMITH</LASTNAME>
    </ns0:MT_NAME_SOURCE>
    If you notice, there are only 2 fields.
    I need to create an XSD file and import it as an external object, which I can use for SOAP Adapter.
    Which is the best way to create it.
    Also, I need to know if there is any step by step of sending a message from XML SPY. I have downloaded this software, but am not able to undertand how to use this.
    Hope to hear from any experts on this forum.
    Thanks in advance
    Ram

    Hi Ram,
    See the below blog..
    It shows how to send SOAP message using XML Spy.
    It also shows how to generate wsdl.
    /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
    Regards,
    Sumit

  • What is the best way to create business documents in CRM

    Hi All,
    What is the best way to create business documents like contract, sales order, debit memo etc in CRM ? Unlike R3 we can't use our good old BDC with recording. Moreover for most of them although there are Business Object but no BAPI to creation so what is the way ? I found in SDN there are two MAGIC Function module CRMXIF_ORDER_SAVE. Do I need to that alawys ?
    Is it nees to via IDoc and cannot be done just by calling from ABAP program ? The input parameter of the FM is a complex deep structure.
    Please help.

    Ashim,
    Try looking at the program:
    CRM_TEST_ORDER_MAINTAIN
    I think that should help you figure out the parameters.
    Good luck,
    Stephen

  • What is the best way to create a photo gallery?

    Hi,
    I want to create a photo gallery in Dreamweaver without using any pre-built "web gallery" function. What's the best way to swap the images when I click the "next" button? Do I create a new Dreamweaver page for each photograph? Is there a more efficient way to do it than that?
    Thanks,
    Gordon

    Is there a more efficient way to do it than that?
    Most definitely.  With scripts.
    57+ Free Galleries, Slideshows & Lightbox solutions:
    http://www.1stwebdesigner.com/css/57-free-image-gallery-slideshow-and-lightbox-solutions/
    20 Best jQuery Slideshow Scripts
    http://graphicalerts.com/20-best-jquery-slideshow-image-photo-gallery-plugins/
    If you're a photographer or managing a large collection of images, look at JAlbum.
    Download the software.  Drag & Drop your images/folder of images into the work space.  Hit create album.  In a few seconds, jAlbum generates your HTML pages and thumbnail images for you.  A real time saver with plenty of customizable skins to choose from.
    Download: http://jalbum.net/software;jsessionid=qkhdjzieqjtg1rz4x2anjlk5d
    Skins:  http://jalbum.net/skins
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Best practice for migrating IDOCs?

    Subject: Best practice for migrating IDOC's? 
    Hi,
    I need to migrate some IDOC's to another system for 'historical reference'.
    However, I don't want to move them using the regular setup as I don't want the inbound processing to be triggered.
    The data that was created in the original system by the processed IDOC's will be migrated to the new system using migration workbench. I only need to migrate the IDOC's as-is due to legal requirements.
    What is the best way to do this? I can see three solutions:
    A) Download IDOC table contents to a local file and upload them in the new system. Quick and dirty approach, but it might also be a bit risky.
    B) Use LSMW. However, I'm not sure whether this is feasible for IDOC's.
    C) Using ALE and setting up a custom partner profile where inbound processing only writes the IDOC's to the database. Send the IDOC's from legacy to the new system. Using standard functionality in this way seems to me to be the best solution, but I need to make sure that the IDOC's once migration will get the same status as they had in the old system.
    Any help/input will be appreciated
    Regards
    Karl Johan
    PS. For anyone interested in the business case: Within EU the utility market was deregulated a few years ago, so that any customer can buy electricity from any supplier. When a customer switches supplier this is handled via EDI, in SAP using ALE and IDOC's. I'm working on a merger between two utility companies and for legal reasons we need to move the IDOC's. Any other data is migrated using migration workbench for IS-U.

    Hi Daniele
    I am not entirely sure, what you are asking, Please could you provide additional information.
    Are you looking for best practice recommendations for Governance, for example: Change transports between DEV, QA and PRD in BPC 7.0?
    What is the best method? Server Manager backup and restore, etc  ?
    And
    Best Practice recommendations on how to upgrade to a different version of BPC, for example: Upgrading from BPC 7.0 to 7.5 or 10.0 ?
    Kind Regards
    Daniel

  • Best way to transfer files from old Macbook Pro to new one?

    I just got a new Macbook Pro from Apple...YEEEEAAAHHHH! 
    So....
    What's the best way to transfer files from old Macbook Pro to new one?  I know Migration assistant, but is there a recommended way?  I don't want to put do a system restore or transfer everything from the old laptop, but I do want to move important things like photos, music, documents and such over.  Any suggestions on best way to do this?
    Another question, perhaps subquestion.  If I have, say, an older version of iPhoto but a newer version of one on my new Macbook Pro, will it still transfer photos no problem?
    Just looking for hints from the experts so this puppy is set up in the best way possible.

    Just one comment on this:
    ‘If I have, say, an older version of iPhoto but a newer version of one on my new Macbook Pro, will it still transfer photos no problem?’
    the problems are ALWAYS in the reverse way, when you have the newest (or a newer) version of a given app, and wish to transfer its library to an older version.
    Otherwise, see the link to Pondini.
    I have been using Martin Jahn’s iBackup, with which I have become accustomed and works fine. It also makes daily backups. Its advantage over other apps is that you may add whatever you wish to save, beside its default settings (which you may delete or cancel, of course, even if not recommended); it also has a friendly interface and easily customizable. Of course, this is a personal view, you may try other methods as well, or other backup apps. All are good if you are satisfied and correspond to your needs.

  • Best way to export from AVCHD to highest quality possible

    Hello,
    I just got the Canon HF200, a AVCHD Camcorder and new to Premiere Pro CS4.
    Does anyone have the time and is willing to explain what would be the best way to export AVCHD source material after editing ?
    I'm interested in the best quality you can get out of AVCHD.
    It would be nice to have a list of the settings in Premiere to be customized (i.e. setting up new project, exporting format settings and so on) to have the best quality of the footage exported.
    Thanks in advance
    best regards
    checop

    Geezus the guy just wants a simple answer.
    MASTER FILE / FOR YOUR BLU RAY PLAYER / ARCHIVAL
    1) use the Bluray H.264 preset to get a Bluray master. Best quality, takes a while to encode though.
    Unless it's a five hour movie I'm pretty sure it'll fit on a BD disc.
    GENERAL RULE OF THUMB FOR ARCHIVAL AND MASTER FILES: try to match the final product with your source file.
    If your source is H.264/AVCHD export in that format too (In this case, Bluray H264 preset)
    If it's 1080i then export as such
    If it's 24Mbps then use that bitrate to export as too. Etc. etc. etc.
    Now that's for archiving - getting the best looking Master file. Uploading  your movie to the web is different...
    IF YOU'RE GOING TO SHOW YOUR MOVIE ON THE WEB
    1) use that Bluray master (or encode directly from your CS 4 timeline if you have the time) to WMV.
    Choose the NTSC setting and then customize it.
    640 x 360 or 575 x 324 sizes are good; Make sure to use the SQUARE pixels option since the sizes here are figured for that. Keyframes every 2 seconds, or every 5 seconds if there's not a lot of movement and background business going on. In the 1000 - 1600 kbps range is good (larger dimensions = higher bitrate).
    Audio 96/44 is fine.
    Choose 2 Pass Variable Bitrate for best quality/size ratio.
    If you're using CS4 it'll automatically deinterlace when you encode to WMV. In other programs you need to check "Deinterlace".
    2) Flash (FLV) is popular too. Same sizes, you can get away with lower bitrates than WMV. Requires special players either on the web or on the users' desktop so only do this if you feature the movie on your site and you know how to make a SWF file with your FLV embedded.
    Lost me here? Then just forget Flash for now.
    Other Primer Notes (VERY GENERALIZED SPEAKING):
    Forget MPEG 1. Bad quality/size ratio compared to WMV.
    Use MPEG 2 for archival purposes, but use high bitrates (like 1920 x 1080 @ 24 Mbps or similar. )
    Quicktime is good for archiving too but takes a long time to encode on PCs. Not worth it for web delivery anymore... although there will be Mac fanatics disagreeing with me right now.
    Hope this helps
    For more info hit me up http://www.kroycom.com

  • What is the best way to format Videos for ipod touch?

    What is the best way to format Videos for ipod touch? Used Quicktime Pro/ Export (iPhone setting). Videos aren't as crisp as downloaded Videos. Compressors /ipod video Setting also looks crapy (with bitrate med & High). What should I use?

    Visualhub is a transcoder with multiple input and output formats with specific setting for iPod,iPod touch. Costs around $19-used to work great but recently everything I convert suffers audio crash than closes out the player. Hopefully they will fix it.
    Elgato H.264 hardware transcoder is $99 dollars(USB stick that plugs in to Mac)-speeds up encoding of any file quicktime can handle, settings for apple tv, iphone/touch, ipod,Sony PSP. Worth the cost if you transcode a lot of video for the Touch or own an elgato HD tuner. Files work flawlessly and look great.
    Mpeg streamclip-free. Works great, has presets or can customize the output.

  • What is the best way to work with AVCHD 720 24p footage in FCE4.1?

    Hi I have a Panasonic HMC-150 and I've been shooting 720 24p footage at 21 mbps transfer rate.
    I was wondering what is the best way to work with this material in FCE 4.1? I see that in the easy set up menu they only have the option of 1440X1080i at 50 or 60 fps or 1920X1080i at 50 or 60 fps.
    Also in the rates drop down menu there is only 50 or 29.97.
    So I was wondering which is the best choice for 720 24p footage and will it look alright in any of them? Also is it possible to customize these settings?
    And finally can you work with faster transfer rates (21mbps) in FCE?

    Yikes, this is going to be tricky since FCE does not support native 24p editing.
    The work around for some of us is that AVCHD material that is 24p is often recorded to disc at 60i using telecine, in which case it can be editing at 29.97 frames per second, and then detelecined afterward for final export at 23.98 fps. The problem is that I think your camera actually records real 24p - not 24p packed into 60i. When you import the material from the camera what does QuickTime report the framerate as?

Maybe you are looking for

  • Multiple Apple products in same household

    Can anyone suggest how to set up our home system so that every user can access a central library and download only what they want, without having the right to delete from a central library (similar to server) a specific game  or music ? Do we need 3

  • Is pages 5.0

    Is pages 5.0 update free in a mid 2013 Mac Book Air or you have top pay to downoload it?

  • Need help with a download and install problem with PS Elements-Elements opens but Premier has error popup

    I purchased PS Elements and Premier Elements through Academic Superstore as a download on Aug. 8, 2014. I am installing on a MAC Book Pro 10.9.4, and have tried reinstalling 3 times. I also searched the error messages on support and could not find th

  • Troubleshooting checklist?

    As I've made extensive use (my thanks to all of you on these forums!) of these Discussion pages, particularly for troubleshooting my slow Safari problem, one poster with regard to a possible incompatible plug-in problem affecting a Safari upgrade, in

  • Validation in ECC6.0

    Hi there, We are on SAP ECC6.0 and facing problem in setting the Validation. The Validation is activated for Co Code in SPRO. Requirement: 1. There are over 20 Company Codes. 2. Users of X Co Code should NOT be allowed to Post an Accounting Line Item