Basic type DELVRY01 - Message typeDESDAV- User exit required

HI,
    We are using the Basic type DELVRY01 as an outbond IDOC to post the data to external system. I'm looking for change the USER Exit where I can add entries to the segment E1ADRM1.
  Early replies are appreciated and rewarded.
Thanks & Kind Regards,
Suresh

Hi Suresh,
Please check this sample code on how to update for particular IDoc segment.
DATA: ZE1EDPT2 LIKE E1EDPT2.
LOOP AT IDOC_DATA.
  CASE IDOC_DATA-SEGNAM.
     WHEN 'E1EDPT2'.
       MOVE IDOC_DATA-SDATA TO ZE1EDPT2.
       ZE1EDPT2-TDLINE   = <...>    <- import from memory id
       ZE1EDPT2-TDFORMAT = <...>    <- import from memort id
       MOVE ZE1EDPT2 TO IDOC_DATA-SDATA.
       MODIFY IDOC_DATA.
     WHEN <...>
     OTHERS.    
   ENDCASE.
ENDLOOP.
Regards,
Ferry Lianto

Similar Messages

  • Error Message in user-exit  EXIT_SAPLRRS0_001 in Query

    Hi,
    ABAP BW Guru's
    I got an ABAP  type problem with RANGE numeric variables  in EXIT_SAPLRRS0_001.
    With character or dates iuser-exits worke fine.
    My characteristic is CONNID Type  NUMC 4
    My user-exit variable is named CONNID_EXIT_STEP_2.
    My ABAP processing in the exit for the user-exit varibale is quite simple (testcase):
      DATA: l_e_t_range TYPE rsr_s_rangesid.
      l_e_t_range-low  =  '17'.
      l_e_t_range-opt  =  'EQ'.
      l_e_t_range-sign =  'I'.
      APPEND  l_e_t_range      TO   e_t_range.
    My Error message in the BEX Analyser is:
    Value "17" for user-exit variable CONNID_EXIT_STEP_2 is inavlid.
    What's wrong with the ABAP processing in the exit  (testcase) ?
    The debugger clearly shows l_e_t_range-low with value 17.
    l_e_t_range-low  seems is a character.
    Anyone can give a tip ?
    Thank You !
    Martin
    ThanXs

    Dear Karthik,
    You are right. First time my user exit execute, after that report automatically call message located Function Module LCOPDU13 504th row
         IF NOT SY-MSGID IS INITIAL.
           MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    Message number is 806 message id is RU.
    Can you help me for fix this situation? I just want to add a data control in ZXCOFU05 user exit. For user fill data (werks based)
    Thanks your helpful answer

  • INFO MESSAGE in USER-EXIT

    Hello Friends,
           I am trying to give information message in User exit while creating PO
           Is it possible to give message type ' I '  ???
           If not how to give info message on to ME21N ??
    Thanks,
    Ajay

    I'm not sure why that should be. Perhaps as gudise mahesh  says it will not trigger in update mode? My code is straightforward and it does work. It outputs a message type i if the last person to amend a po tries to release it.
    IF sy-ucomm = 'MERELEASE' AND
       sy-repid = 'SAPLXM06'.
      CLEAR wa_bekpo.   
      READ TABLE it_bekpo INTO wa_bekpo INDEX 1.
      SELECT SINGLE ernam FROM ekko INTO l_uname
          WHERE ebeln = wa_bekpo-ebeln.
      IF l_uname = sy-uname.
        e_cekko-ekorg = space.
        MESSAGE i076(zmm).
        LEAVE TO TRANSACTION sy-tcode.
      ENDIF.
    Exclude last person to change PO   
      SELECT * FROM cdhdr   
        INTO CORRESPONDING FIELDS OF TABLE it_cdhdr   
        WHERE objectclas = c_class       
          AND objectid   = wa_bekpo-ebeln    
          AND change_ind  NE c_i.   
      IF NOT it_cdhdr IS INITIAL.  
        SORT it_cdhdr BY udate DESCENDING utime DESCENDING.
        READ TABLE it_cdhdr INDEX 1 ASSIGNING <cdhdr>.  
        IF <cdhdr>-username = sy-uname.   
          e_cekko-ekorg = space.  
          MESSAGE i089(zmm).    
          LEAVE TO TRANSACTION sy-tcode. 
        ENDIF.      
      ENDIF.
    ENDIF.
    Sorry I couldn't be of much help.

  • USER EXIT REQUIRED DURING DELIVERY OF SALES ORDER VL01N

    hi
    i want to block all the delivers ( by default ) i.e after creating sales order when user go for delivery ( or runs transaction VL01N ) it should block all the deliveries
    plz suggest user exit as i dont find any
    thanks
    taran

    Hi taran,
    Check, it may help you.
    Exits for VL01N ::::::
    V02V0001 Sales area determination for stock transport order
    V02V0002 User exit for storage location determination
    V02V0003 User exit for gate + matl staging area determination (headr)
    V02V0004 User Exit for Staging Area Determination (Item)
    V50PSTAT Delivery: Item Status Calculation
    V50Q0001 Delivery Monitor: User Exits for Filling Display Fields
    V50R0001 Collective processing for delivery creation
    V50R0002 Collective processing for delivery creation
    V50R0004 Calculation of Stock for POs for Shipping Due Date List
    V50S0001 User Exits for Delivery Processing
    V53C0001 Rough workload calculation in time per item
    V53C0002 W&S: RWE enhancement - shipping material type/time slot
    V53W0001 User exits for creating picking waves
    VMDE0001 Shipping Interface: Error Handling - Inbound IDoc
    VMDE0002 Shipping Interface: Message PICKSD (Picking, Outbound)
    VMDE0003 Shipping Interface: Message SDPICK (Picking, Inbound)
    VMDE0004 Shipping Interface: Message SDPACK (Packing, Inbound)
    LE_SHP_GOODSMOVEMENT BADI.
    Regards,
    Ramesh.

  • How can i display warning messages in user exit EXIT_SAPLMGMU_001 (MM02)

    Hi all,
    while modifying the material master using MM02, i have added new conditions to display messages in user exit EXIT_SPALMGMU_001.
    But using this user exit i am not able to display warning messages.
    Can you please help me with this?
    Sample code which i have included in exit :
    SELECT SINGLE mstav FROM mara
    INTO w_mstav
    WHERE matnr = wmara-matnr.
    IF wmara-mstav NE w_mstav.
    IF wmara-mstdv NE sy-datum.
    wmara-mstdv = sy-datum.
    MESSAGE w177(z03_mm) WITH text-s04 text-s21.
    ENDIF.
    ENDIF.
    Thank you all in advance.

    As written in the SAP documentation of the Enhancement , you can only raise error message using a
    MESSAGE .. RAISING APPLICATION_ERROR.
    You could manage the "warning" yourself, sending an error first time and keeping a trace of the check in some STATICS variable, and not raising the error again if data input remains unchanged between two call of the include.
    <i>----
    EXIT_SAPLMGMU_001
    Where Is the Customer Exit - EXIT_SAPLMGMU_001 called?
    The customer exit is in function module MATERIAL_UPDATE_ALL. The
    function module checks the data for errors (logical relationships,
    foreign keys, fixed domain values, and so on) when the material master
    is updated.
    Use
    o New fields
    You can make checks possible for new fields of your own. These
    checks must be identical to the checks that you carry out for your
    new fields in online maintenance.
    o Existing fields
    For existing fields, you can extend and intensify the checks.
    You can also change data for descriptions and general material data
    (MARA). For example, the descriptions can be generated from attributes
    of the material.
    Limitations
    You cannot bypass existing checks.
    Interface to Application
    The respective data of the current logical transaction is contained in
    the structures, for example, in structure WMARA for MARA. Nonrelevant
    structures are transferred with their initial values.
    General material data that can be changed (CMARA) has the structure
    MARU. This MARA view contains fewer internal fields than MARA itself. If
    WMARA is filled, CMARA is also filled when accessed.
    The customer exit contains the exception APPLICATION_ERROR for your
    self-defined error situations.
    Using the language element MESSAGE .. RAISING APPLICATION_ERROR, you can
    terminate the current (logical) transaction and display your message in
    the log. </i>
    Regards

  • BASIC TYPE VS MESSAGE TYPE

    Hi all,
    Can i know wats the difference between Basic type and Message type??
    wat s the use of having both this types????

    hi
    Message Type:
    A message type represents the application message exchanged between R/3 systems and R/3 and an external system. A message type characterises the data sent across systems and relates to the structure of the data called an IDOC type.
    Diff. with IDOC type
    An IDoc type specifies the structure of the data.
    A message type specifies the meaning of the data
    Diff. b/w IDOC type and IDOC
    An IDoc type is the definition of a specific data structure.
    An IDoc is an actual instance of data based on an IDoc type. Therefore, there can be many IDocs created from a single IDoc type.
    Every idoc type will have Message Type.
    It mean Idoc will be recognised By message type.
    For ex : MATMAS03 is idoc type, and its message type MATAMS.
    There are different message type for every master data. suppose for vendor master CREMAS is the message type, for customer mast DEBMAS like these there many message type for other type of master data.
    To recognise the particular idoc, we use message types.
    We82 is the TCode where IDoC type is attached to Mesage tYpe.
    Refer to this related thread
    difference between message type and idoc type
    Check these links.
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.sappoint.com/abap/ale.pdf
    http://www.sappoint.com/abap/ale2.pdf
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sappoint.com/abap.html
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.docs
    Please check this PDF documents for ALE and IDoc.
    http://www.sappoint.com/abap/ale.pdf
    http://www.sappoint.com/abap/ale2.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEIO/BCMIDALEIO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEPRO/BCMIDALEPRO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFAALEQS/CABFAALEQS.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDISC/CAEDISCAP_STC.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDI/CAEDI.pdf
    Check below link. It will give the step by step procedure for IDOC creation.
    http://www.supinfo-projects.com/cn/2005/idocs_en/2/
    Regards
    Anji

  • Basic type and message type

    hi,
    may i know what is the difference between basic type and message type in WE05.
    thanks

    Hi,
    This is similar  as Subject of a mail and content of the mail..
    Without seeing the contect if the give appropriate subject we will know what was the mail regarding.
    the same thing applies to IDOC also.
    Regards,
    Nagaraj

  • Custom error message in user exit is giving Short dump

    Hi All,
    We have a scenario where in if any user try to create/Change/Delete particular types of contract in SAP system we have to issue error message
    saying ZIN/ZIR contract creation/Change/Deletion is blocked in SAP. This has to be done from the web application. So we are putting below code
    in user exit MV45AFZZ in the form USEREXIT_SAVE_DOCUMENT_PREPARE.
    CONSTANTS: lc_vbcpic01 TYPE sy-uname VALUE u2018VBCPIC01u2019, u201CWeb application user ID
             lc_zin           TYPE vbak-auart VALUE u2018ZINu2019,
                         lc_zir            TYPE vbak-auart VALUE u2018ZIRu2019,
                         lc_text(32)    TYPE c VALUE u2018Check long text for more detailsu2019.
    DATA: l_uname TYPE sy-uname.
    CLEAR: l_uname.
    MOVE sy-uname TO l_uname.
    *If user ID is not the Web application ID then block the creation/Change/Deletion
    IF   l_uname NE lc_vbcpic01
    AND ( vbak-auart EQ lc_zin
    OR    vbak-auart EQ lc_zir ).
    MESSAGE e830(zv) WITH lc_text.
    ENDIF.
    This code is working fine while creating/Changing the contract i.e. Giving us error message so that user wonu2019t be able to create/change the contract.
    But when we delete the contract from VA42, Control is coming to this message statement and is giving Short dump. Below is the error analysis of the dump.
    Error Analysis:
    During "Exit Command" processing, the program tried to send a " " message.
    This is not allowed at this point in processing.
    The program had to be terminated.
    Screen name.............. "SAPMV45A"
    Screen number............ 4001
    If any one has come across such scenario/any work around for this problem please let me know your inputs. Your inputs are highly appreciated.
    I am working on 4.6C version of SAP.
    Note: When i issue information/Warning message contract is getting deleted after displaying the message.
    Thanks,
    Vinod.

    I exactly replicated the same in DELETE_DOCUMENT also
    I am getting the Dump. I tried with exit also , but it continued and deleted. To avoid deletion we have to use Leave program or LEAVE TO CURRENT TRANSACTION.
    Delete Function is Defined as EXIT command. so it is not possible to give error message. To convice you i just copied demo program and raised the error message.
    it is also giving the dump.
    copy the demo program DEMO_DYNPRO_AT_EXIT_COMMAND and make this change , information to error .
    MODULE cancel INPUT.
      MESSAGE e888(sabapdocu) WITH text-001 ok_code input1 input2.
      IF ok_code = 'CANCEL'.
        CLEAR ok_code.
        LEAVE PROGRAM.
      ENDIF.
    ENDMODULE.
    and see...

  • Display error message in user-exit EXIT_SAPMP56T_002

    Hi,
    I'm doing a validation in user-exit EXIT_SAPMP56T_002 (include ZXTRVU03), and I want to display a error message. So, I'm using the instructions:
    continue_with_update = 'N'.
    MESSAGE ID xxx TYPE 'E' NUMBER yyy.
    What happens is that in SAP GUI it works fine, but in SAP Portal it gives a lot of java exceptions.
    Is there other way to display the error message that it works fine in the portal?
    Thanks.
    Sónia

    Hi,
    I tried with that but it doesn't work.
    With the instruction "Message ID..." the portal shows an RFC ERROR SYSTEM FAILURE with all that java exceptions.
    With your suggestion it does not retrieve my message, and instead it retrieves a customized message "Trip cannot be saved in this status, check mileage start and end location", that refers to the expense report and does not make any sense when I'm only creating the trip.
    Any idea for this?
    Thanks.
    Sónia

  • WARNING MESSAGE in USER EXIT

    Hi ,
    We are not able to TRIGGER a WARNING MESSAGE but we are able to TRIGGER an ERROR MESSAGE for a particular Business Scenario in side a user Exit.
    Any way we can produce the WARNING MESSAGE from the USER EXIT.
    Regards,
    Sap User

    Hi sapuser,
    1. We can issue message of type 'I'
      (messsage of type W
      gets displayed on status bar,
      and if the standard transaction,
      again display some its own message,
      then our message will be overwritten)
    2. it will be displayed in a message box.
    regards,
    amit m.

  • PR release strategy - customer individual scenario.- user exit required.

    Hi,
    WE have customer individual scenario wherein PR is created from sales order (just like) third party scenario. we have sepatare document types for both these SO (ZCUS)and PR (ZCS).
    Now our requirement is to have release strategy for all such ZCS PRS for which customer group of the customer master in SO has the value 02.
    We set up the standard release strategy for PR based on document type (with value ZCS) at header level. Now we want to add the above condition.
    ANy idea how to achieve this?
    Appreciate your quick help.

    Hi Pat,
    I understand that you have already setup the release strategy for Purchase requisition ZCS, But now you want  a check to happen, that the release strategy should only be triggered if the Customer group of the customer master in the Sales Order is 02.
    I think this is possible by using a user exit at header level as provided by Arminda.
    Thanks and do let us know.
    Regards
    Shailesh

  • Error message from user exit - current screen becomes grayed(non-editable)

    I am working on a Sales Order (VA01/VA02) user exit(USEREXIT_SAVE_DOCUMENT_PREPARE) in MV45AFZZ program. I am validating certain values entered by user in this exit. Based on a condition, I issue a error message e.g. "message e001(ZV) with .....". I expect the processing to interrupt and the system control  returns to the current screen. When there is an error, error message shows up on the status bar, but the current screen is completely grayed out(non-editable), not able to modify the incorrect entries. I keep hitting ENTER but no change to the grayed screen. Is there anything wrong in the way I issue error message?
    I am on ECC6.
    Thanks.

    could you please help me if possible in my senario :-
    I am validating a field(serial number while creating delivery) in standard exit ZXQSMU04 and written a code to display an error message. The functionality is working correctly on validation and displaying the error message. But once the error is getting trigger the serial number field is becoming in gray mode i.e non editable.
    I tried a lot to overcome this issue but not getting success could anyone help me to make the field editable while triggering the error message.
    Please note : Its an exit and not having any message field in export or return table. Also tried with warning and information message.
    Thanks in advance.
    Regards,
    Gautam Kumar

  • BADI-User exit required for updating Purchase order header field -IHREZ

    Hello All,
    We have requirement in our business to update the purchase order header field "our reference" EKKO-IHREZ with some text field. We need a BADI/user exit that can be used for updating this field . We have checked the BADI ME_PROCESS_PO_CUST and unfortunately we are not able to use this BADI as it getting triggered in enjoy SAP transactions ME21N , ME22N etc. We are not creating the purchase order manually and we are using ME59N for creating Purchase order . Hence we are looking for some user exit/BADI that can be used in ME59N for updating the purchase order header field IHREZ.
    Thanks in advance for your immediate response .
    With regards,
    Joseph Anand B

    TRY using the exist u2022     EXIT_SAPLME59_001
    You can also later on add this field by BAPI_PO_CHANGE

  • Raising error messages in user exit..

    hi,
    i have my code in sales order user exit FORM USEREXIT_SAVE_DOCUMENT.
    the code needs to check for a condition and if that fails i do not want to allow the user to save the sales order, rather do the change as i expect.
    i can display the message using my message class, right ? but then how to prevent further action of saving the sales order ?
    thks

    After you give the error message, set the FCODE to 'ENT1'.
    Like:
            message e398(00) with
                    'Some error occured. Press enter.'.
            fcode = 'ENT1'.
    Regards,
    Naimesh Patel

  • User Exit Required

    Hello Friends
    EDI 850 is for Creating Sales Orders
    Customer is sending BEG 00 Or BEG 01.
    00 is for new orders and should be normally processed to create Sales Order.
    01 is for Cancel Orders, an email should be send to users email id for that particular IDOC.
    Query 1.
    In which segment the BEG qualf 00 or 01 should be mapped.
    Query 2.
    Is there any user exit available to write the Email Functionality

    Transaction Code - VA01                     Create Sales Order
    Exit Name           Description
    SDTRM001            Reschedule schedule lines without a new ATP check
    V45A0001            Determine alternative materials for product selection
    V45A0002            Predefine sold-to party in sales document
    V45A0003            Collector for customer function modulpool MV45A
    V45A0004            Copy packing proposal
    V45E0001            Update the purchase order from the sales order
    V45E0002            Data transfer in procurement elements (PRreq., assembly)
    V45L0001            SD component supplier processing (customer enhancements)
    V45P0001            SD customer function for cross-company code sales
    V45S0001            Update sales document from configuration
    V45S0003            MRP-relevance for incomplete configuration
    V45S0004            Effectivity type in sales order
    V45W0001            SD Service Management: Forward Contract Data to Item
    V46H0001            SD Customer functions for resource-related billing
    V60F0001            SD Billing plan (customer enhancement) diff. to billing plan
    No of Exits:         15
    Rewards if useful.......................
    Minal

Maybe you are looking for

  • Adobe Photoshop Elements Organizer Stops Working due to Sony AVCHD files

    Hello I installed Adobe Photoshop elements and have been having trouble with it crashing. To solve this problem I deleted my Catalog and added a Catalog with only one folder. This folder has photos, in JPEG and Sony .ARW format as well as AVCHD files

  • My adobe acrobat X1 pro, keeps jamming up? Any ideas how i redownload this program?

    I bought this program, but it keeps locking up. I run my computer with win8.1 and previously I had no problems with it, but now it is locking up and wont do anything. Is it possible to re-download it from anywhere? I can't seem to find it!

  • Spry horizontal menu- not showing in some browsers

    my spry horizontal menu is showing up as a vertical list in some of our viewers computers. can i adjust the basic html so that if spry does not show up on someone's computer, a more basic horizontal table will show?

  • Query regarding cron expression in BPEL

    Hi, I am using the quartz scheduler in BPEL and using the cron expression in bpel.xml but the problem I am facing is it is running for only one day it is not running for the next day the expression I am writting in bpel.xml is <activationAgents> <act

  • Sender FCC - missing files

    An external systems sends TXT file of large size. The file will be read for every 500 sets and written to an XML file with timestamp in output folders.. My content conversion has following parameters: Recordset name : DATA Recordset structure: header