Regarding SHipment function exit

Hi Experts,
                I have to update some custom table in the function exit of  VT01n transaction code based on some condition.
I have done it using update statement as it is custom table there is no problem.
BUT in the code After that UPDATE statement ,based on some condition i have to through a message which will stop the transactionn.
In that case if i exit from the transaction using exit button in the menu bar, the updated custom table has to roll back.
Can i use ROLL BACK Statement. in the function exit in that case.
If i use that ,does it effect any standard functionality.
Orelse is there any alternative solution for that.
Regards
Ramakrishna L

Hi Ramakrishna,
If u r updating the custom table in the same exit where u r throwing the message , don't use the commit work after updating the table. use it at end of the exit.
Regards,
Srinivas.

Similar Messages

  • Regarding a function exit

    hi guys,
    i have extended an idoc and for this i am using a function exit to populate data in the added new segment z1segment under E!knvkm segment ( parent segment). I found which funtion exit to use but i could not make out the logic to populate the data in the segment z1segment.
    can any one please help me regarding this
    thank you very much
           pavan

    Hi Pavan,
    I fail to understand the req.  You have found the proper function exit.. You have application data.. You have the idoc/segment details ....Check following code to update the idoc...
    <b>STEP 1 - Open document to edit</b>
    CALL FUNCTION 'EDI_DOCUMENT_OPEN_FOR_EDIT'
           EXPORTING
                document_number               = t_docnum
           IMPORTING
                idoc_control                  = itab_edidc
           TABLES
                idoc_data                     = itab_edidd
           EXCEPTIONS
                document_foreign_lock         = 1
                document_not_exist            = 2
                document_not_open             = 3
                status_is_unable_for_changing = 4
                OTHERS                        = 5.
    <b>STEP 2 - Loop at itab_edidd and change data</b>
    LOOP AT itab_edidd WHERE segnam = 'E1EDKA1'.
      e1edka1 = itab_edidd-sdata.
      IF e1edka1-parvw = 'LF'.
        e1edka1-partn = t_eikto.
        itab_edidd-sdata = e1edka1.
        MODIFY itab_edidd.
        EXIT.
      ENDIF.
    ENDLOOP.
    <b>STEP 3 - Change data segments</b>
    CALL FUNCTION 'EDI_CHANGE_DATA_SEGMENTS'
               TABLES
                    idoc_changed_data_range = itab_edidd
               EXCEPTIONS
                    idoc_not_open           = 1
                    data_record_not_exist   = 2
                    OTHERS                  = 3.
    Hope this helps you..let me know if need more input on this...
    Enjoy SAP.
    Pankaj Singh.

  • Regarding po function exit

    Hi all,
    My requirement is .......in me21 and me22 end users are entering line items in dis order like 1,20,25,14 . I have to modify it to 10,20,30 for existing line items for me22 i have to restrict with erro message.my exit is exit_sapmm06e_012.
    Please help me,it's urgent.
    Thanks and regards.
    ram.

    write the code as we write to validate a field.
    the event will be
    at selection screen on <field>
    REWARD ME IF CLEAR AND HELPFUL.

  • HI Regarding shipment exit

    Hi In the Shipment (VT01n) exit ,
    1.Enhanvement -V56NUMB---there is include ZXV56u12.
    2.This is used to provide number range for the shipment.
    3.While doing this i need deliveries information attached to the shipment (VT01n)
    4.I am importing the deliveries from some other exit V56UCHCO--
    ->but if the delivery split happens , i want to know t from which delivery this split happens
    ->because the splitted delivery coming with the number $00001...like that
    With this i have to query the vbrk,,which is not possible.
    Regards
    Ramakrishna L

    Hi,
    I dont think it will make any difference, I executed the function module with IGNORE_BUFFER = 'X' and IGNORE_BUFFER = ' '.  In both cases, NRIV-NRLEVEL got updated with the next number.
    See the documentation of the parameters "IGNORE_BUFFER"
    The parameter IGNORE_BUFFER causes numbers to be taken directly from the
    database.  Number range object buffering is ignored. The application
    programs must prevent that numbers for a number range object are
    procured both from the buffer and from the database during a LUW because
    this may cause a deadlock situation
    Regards
    Vinod

  • Regarding function exit

    hi all,
          I am doing Function Exit for Transaction CO12.
    When the Wage Group is initial it should display message like "Enter Shift A/B/C in field Wage Group".
    i am getting this one. after display this message screen should go to previous screen ( What we  entered data) .  I am getting this one but data is clearing and fresh CO12 transaction is opening.
    I want that data also.
    Please sugget.
    Regards
    Rami

    Hi Shaik,
    for Functional exit we are adding our own funtionality into sap standard coding.
    to find the function exit for a specific transaction
    go to system-> status-> double click on transaction.
    you will get the package.
    now use transaction SMOD.
    then Utilities->find->give the package name which you get earlier. Then execute.
    You will get all the possible exit existing in that package.
    You need to chose the right one.
    Then double click on that enhancement & you will get the exit and within that exit you will get one include program.
    In that include you need to write down your code.
    At last you need to add that exit into a project by using transaction CMOD.
    Hope you understand well.
    Regards,
    Tutun

  • How to use Add Shipments functionality in Shipment document creation

    Dear All,
    We wanted to use the Add Shipments functionality in the Shipment document creation / change.
    We have two different shipment types.
    I want to add shipments of one shipment type in to Shipment document of anohter shipment type.
    I am not able to do it now as system is saying in the selection log that the shipment types are not same.
    Please let me know what are the pre requisite configurations to enable us to add shipments in to another shipment.
    Please let me tknow he standard functionality of "Add Shipments option" and how to use it to add shipments in a Shipment
    Regards
    Venkat

    Hi Venkat,
    The option "find shipments" is provided to select the shipments to reassign or deassign the deiveries etc in VT01n or VT02n
    transaction planning screen. Basically you can play around to assign and reassign the deliveries to different shipments
    This option is not creating the shipment within shipment. It is just selection of shipments for planning purposes
    Hope this helps.
    Regards,
    Ramana

  • Regarding Enhancements/User-Exits in ABAP

    Hi,
    Can anybody tell me What is meant BY Enhancements & User-Exits.
    Also what are diffrent types of Enhancements/User-Exits avialable.
    Can anybody explain me about diffrent types of Enhancements/User-Exits.
    Can anybody provide me documentation with the examples
    for diffrent types of Enhancements/User-Exits.
    If anybody is having good material on the same please post it.
    Thanks in advanace.
    Thanks & Regards,
    Rayeez.

    Customizing exits allow you to add your own functionality to SAP’s standard business applications without having to modify the original applications. SAP creates customer exits for specific programs, screens, and menus within standard R/3 applications. These exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your own add-on functionality onto these hooks.
    If you want to enhance the functionality of your R/3 System, you should take advantage of the exits available in standard R/3 applications. There are two main reasons why you should use exits rather than modifying SAP software yourself. Add-ons attached to exits have the advantage that:
    •     They do not affect standard SAP source code
    When you add new functionality to your SAP System using SAP’s exits, you do not alter the source code of standard SAP programs in any way. The code and screens you create are encapsulated as separate objects. These customer objects are linked to standard applications, but exist separately from SAP’s standard software package.
    •     They do not affect software updates
    When you add new functionality to your R/3 System using SAP’s exits, your objects (called customer objects) must adhere to strict naming conventions. When it comes time to upgrade a to a new software release, customer objects’ names ensure that they will not be affected by any changes or new additions to the standard software package.
    Customer exits are not available for all programs and screens found in R/3 standard applications. You can only use customer exits if they already exist in the R/3 System. You find find more information about locating applications with pre-defined exits in Locating Applications that have Exits.
         As part of the enhancement concept, it is possible for the customer to 
         add his own elements to application logic, screens and menus.                                                                               
    The current possibilities for enhancement are:                                                                               
    Text enhancements:                                                     
         Allow the customer to add supplementary documentation for data fields  
         non-specific to a transaction, and to change key word texts.                                                                               
    Field exits:                                                           
         Every screen element with data element reference can branch to PBO or  
         prior to PAI to a function module if desired. The field contents are   
         available here for doing special checks and making changes (e.g. user- 
         specific checks, authority checks, writing entered data and producing  
         statistics...).                                                                               
    Function exits:                                                        
         From the main program you branch into a software level, in which you you
         can store ABAP/4 coding. The applications programmer at SAP determines 
         where in the main program the function exit is placed, and which data is
         imported/exported via the interface. The accompanying documentation    
         describes the functionality of the function exit.      
         Menu enhancements:                                                       
         Pre-conceived menu items can be activated and named. On the function code
         set at menu item selection, there can be a reaction in a relevant        
         function exit.                                                                               
    Screen enhancements:                                                     
         The customer can determine the layout of areas in screens provided by the
         applications developer. Here, additional information can be displayed or 
         data entered.

  • Activating only one function-exit in a multiple function-exit in CMOD

    Dear All,
    I am using customer-exit for doing validation in PO during saving. I am using EXIT EXIT_SAPMM06E_012 under enhancement
    MM06E005. The code is working fine. The problem is that when I am activating the screen all the components under that enhancements are getting activated. There are 10 function-exits, 6 screen-exits and 2 incude tables. I have not  added any new screen or done custom include. I only want to activate EXIT_SAPMM06E_012, rest I want to deactivate. It is giving a dump in production server when we are trying to create a contract as it is looking for a screen 0211 which we have not created.
    Regards
    D. Mallick

    am using customer-exit for doing validation in PO during saving. I am using EXIT EXIT_SAPMM06E_012 under enhancement
    MM06E005. The code is working fine. The problem is that when I am activating the screen all the components under that enhancements are getting activated. There are 10 function-exits, 6 screen-exits and 2 incude tables. I have not added any new screen or done custom include. I only want to activate EXIT_SAPMM06E_012, rest I want to deactivate. It is giving a dump in production server when we are trying to create a contract as it is looking for a screen 0211 which we have not created.
    HI ,
    You can activate only one function exit EXIT_SAPMM06E_012, But you must and should create below empty screen and active Using SE51.
    SAPLXM06                       0101
    SAPLXM06                       0111
    SAPLXM06                       0201
    SAPLXM06                       0211
    SAPLXM06                       0301
    SAPLXM06                       0311
    Thanks & Regards
    Sudheer Madisetty

  • How to write BDC in Function exit (user exit )

    Hi champs,
    I am trying to write one bdc code in a function exit but it is giving me the error:
    " Incorrect nesting: Before the statement "FORM", the structure
    introduced by "FUNCTION" must be concluded with "ENDFUNCTION". -     
    The code which i have written is
    **&  Include           ZXMRCU01
    data: begin of it_imptt occurs 0,
            POINT like imptt-point,
            MRMIN like imptt-MRMIN,
            MRMAX like imptt-MRMAX,
          end of it_imptt.
    Internal table to store BDC screens   *
    and field values                      *
    DATA: BEGIN OF it_BDCDATA OCCURS 0.
            INCLUDE STRUCTURE BDCDATA.
    DATA: END OF it_BDCDATA.
    select point
           MRMIN
           MRMAX from imptt into it_imptt
           for all entries in imrg_ins
           where point = imrg_ins-point.
    endselect.
    read table imrg_ins with key point = it_imptt-point.
    if imrg_ins-readg < it_imptt-mrmin
         or imrg_ins-readg > it_imptt-mrmax.
      perform bdc_dynpro      using 'SAPLIQS0' '0100'.
      perform bdc_field       using 'BDC_CURSOR'
                                    'RIWO00-QMART'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '/00'.
      perform bdc_field       using 'RIWO00-QMART'
                                            'M1'.
      perform bdc_dynpro      using 'SAPLIQS0' '7200'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '=BUCH'.
      perform bdc_field       using 'VIQMEL-QMTXT'
                                            'test desc1'.
      call transaction 'IW21'
                            using it_BDCDATA
                              Mode 'A'
                                update 'S'.
      REFRESH it_BDCDATA.
    endif.
    **&      Form  bdc_dynpro
          text ---- Taking 2 parameters Screen Name & Screen Number.
    FORM BDC_DYNPRO USING SCREEN_NAME SCREEN_NUMBER.
      CLEAR it_BDCDATA.
      it_BDCDATA-PROGRAM = SCREEN_NAME.
      it_BDCDATA-DYNPRO = SCREEN_NUMBER.
      it_BDCDATA-DYNBEGIN = 'X'.
      APPEND it_BDCDATA.
    ENDFORM.                    "bdc_dynpro
    **&      Form  bdc_field
          text---- Taking 2 parameters Field Name & Field Number.
    FORM BDC_FIELD USING FNAME FVAL.
      CLEAR it_BDCDATA.
      it_BDCDATA-FNAM = FNAME.
      it_BDCDATA-FVAL = FVAL.
      APPEND it_BDCDATA.
    ENDFORM.                    "bdc_field     
    Is there any different way of writing bdc in user exit?

    <b>FUNCTION.</b>
    **& Include ZXMRCU01
    data: begin of it_imptt occurs 0,
    POINT like imptt-point,
    MRMIN like imptt-MRMIN,
    MRMAX like imptt-MRMAX,
    end of it_imptt.
    Internal table to store BDC screens *
    and field values *
    DATA: BEGIN OF it_BDCDATA OCCURS 0.
    INCLUDE STRUCTURE BDCDATA.
    DATA: END OF it_BDCDATA.
    select point
    MRMIN
    MRMAX from imptt into it_imptt
    for all entries in imrg_ins
    where point = imrg_ins-point.
    endselect.
    read table imrg_ins with key point = it_imptt-point.
    if imrg_ins-readg < it_imptt-mrmin
    or imrg_ins-readg > it_imptt-mrmax.
    perform bdc_dynpro using 'SAPLIQS0' '0100'.
    perform bdc_field using 'BDC_CURSOR'
    'RIWO00-QMART'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    perform bdc_field using 'RIWO00-QMART'
    'M1'.
    perform bdc_dynpro using 'SAPLIQS0' '7200'.
    perform bdc_field using 'BDC_OKCODE'
    '=BUCH'.
    perform bdc_field using 'VIQMEL-QMTXT'
    'test desc1'.
    call transaction 'IW21'
    using it_BDCDATA
    Mode 'A'
    update 'S'.
    REFRESH it_BDCDATA.
    endif.
    <b>ENDFUNCTION.</b>
    **& Form bdc_dynpro
    text ---- Taking 2 parameters Screen Name & Screen Number.
    FORM BDC_DYNPRO USING SCREEN_NAME SCREEN_NUMBER.
    CLEAR it_BDCDATA.
    it_BDCDATA-PROGRAM = SCREEN_NAME.
    it_BDCDATA-DYNPRO = SCREEN_NUMBER.
    it_BDCDATA-DYNBEGIN = 'X'.
    APPEND it_BDCDATA.
    ENDFORM. "bdc_dynpro
    **& Form bdc_field
    text---- Taking 2 parameters Field Name & Field Number.
    FORM BDC_FIELD USING FNAME FVAL.
    CLEAR it_BDCDATA.
    it_BDCDATA-FNAM = FNAME.
    it_BDCDATA-FVAL = FVAL.
    APPEND it_BDCDATA.
    ENDFORM. "bdc_field
    Regards
    Peram

  • How to read data from a function exit

    Hi friends,
    I have a requirement, where in i am creating a screen exit for ME51N.I am using MEREQ001 enhancement for this.It is working fine, but i am to get data in to this so as to write any code.For that i am using the function exit EXIT_SAPLMEREQ_001 in that same enhancement(thought of doing export and import).
    But the data is declared in this way..
    REFERENCE(IM_REQ_ITEM) TYPE REF TO IF_PURCHASE_REQUISITION_ITEM
    so now it is having a method GET_DATA in which i have all the parameters required.
    can anyone please tell me how to read this data...
    Regards,
    Thoufique.

    thats ok friends..i got the solution.
    Regards,
    Thoufique

  • BPS: Creating FM for function exit.

    Hi Everybody,
                       I have a question regarding creating Function Module that will be used as an exit function while executing a business planning group.
    Q1.> Data is displayed in an excel sheet when user clicks on 'Display Plan Data' in Tcode: BPS0. Now user wants to manipulate the data on that excel sheet after executing the planning function. How will i fetch the data displayed on excel and feed the FM?

    Hi,
    There is a function module called API_SEMBPS_GETDATA
    That helps you to get exactly the same result than an end user in different tables (header, rows, columns).
    Use it within your user exit.
    Regards

  • BUPA_REL: Custom Function exit

    Hi
    I'm replicating BP in CRM as Vendor in ECC.
    When a BP and its relationship is created in CRM, the following BDOcs are generated: VEND_MAIN, BUPA_MAIN & BUPA_REL.
    To extend the Vendor to a particular company code and update couple of fields for vendor (Recon Acct, Tolenrance grp, withholding tax details), I'm using CUstom FM "Z_V_SAMPLE_INTERFACE_DE_DALE". DALE being BTE for vendor creation.
    Now the issue is with relationships. The BDoc BUPA_REL is triggered. I need to add these partners as "Permitted Payees" of the Vendor.
    Can anyone shed light one how execute custom logic for BUPA_REL like any function exit, or BTE exit.
    Thanks in advance
    Cheers
    /Arun

    Hi,
    Thank you for your answer.
    I checked FM CRM_UPLOAD_TRIGGER which is called in ERP when BDoc arrives from crm. Here the Z-field is available. Later on when FM PI_BP_PROXY_BAPI_CUSTOMER is called, it is lost. The problem is in FM PI_BP_BAPIMTCS_TO_REL. Here the Z-field is available in bapimtcs structure, but there is no processing of the custom fields here (of course - it is a standard FM which processes the standard part of BUPA_REL BDoc). However I did not find any user exit at this point.
    I have to update field KNREF from table KNVP of the particular relationship.
    Any advice how to do that?
    Regards,
    Desislava

  • Difference between user exit/Function exit / Customer exit and BADI

    Hi Guys,
    I am confused with the types of exits-user exit/Function exit / Customer exit and BADI.
    Can you tell me the difference between the different exits/Enhancements?
    Classify the following:
    what is the one which is shown in SMOD under enhancements? There are 3 sections in that - Function module, Screen and includes.
    What is the one which are called using -
    Call Customer-Function 001?
    Regards,
    Guru

    hi,
    The standard applications do not offer some of the functionality you need. The R/3 enchancement concept allows you to add your own functionality to SAP's standard business applications.
    Different types of enhancements
    Enhancements using customer exits
    Customers' potential requirements which are not included in the standard software are incorporated in the standard as empty modification 'shells'. Customers can then fill these with their own coding. Enhancements can relate to programs, menus and screens. Upward compatibility is assured. In other words, SAP guarantees that the jump from the standard software to the exit and the interface which call the exit will remain valid in future releases.
    Enhancements to ABAP/4 Dictionary elements
    These are ABAP/4 Dictionary enhancements (creation of table appends), text enhancements (customer-specific key words and documentation for data elements) and field exits (creation of additional coding for data elements).
    advantages of enhancements
    Do not affect standard SAP source code
    Do not affect software upgrades
    Customer exit - The R/3 enhancement concept allows you to add your own functionality to SAP’s standard business applications without having to modify the original applications. SAP creates customer exits for specific programs, screens, and menus within standard R/3 applications. These exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your own add-on functionality onto these hooks.
    Various types of customer exits
    Menu exits
    Screen exits
    Function module exits
    Keyword exits
    Menu exit
    Adding items to the pulldown menus in standard R/3 applications .
    Screen exit
    Adding fields to the screens within R/3 applications. SAP creates screen exits by placing special subscreen areas within a standard R/3 screen and calling a customer subscreen from within the standard dynpro's flow logic.
    Function module exit
    Adding functionality to R/3 applications. Function module exits play a role in both menu and screen exits.
    keyword exit
    Add documentation to the data elements of key words defined in the ABAP/4 Dictionary. The system displays this documentation whenever a user presses F1 to get online help for a screen field
    Hope this helps, Do reward.

  • USER DEFINED EVENT IN FUNCTION EXIT

    HI,
      CAN WE TRIGER AN USER DEFINED EVENT  IN AN  FUNCTION EXIT FOR XK01.

    Hi,
    if you identified the correct place then yes we can trigger the event. you want any workflow event to be raised.
    do you have any such exit with you.
    Regards
    vijay

  • When we use ZBW220 Function Exit   EXIT_SAPLRSAP_001& what meant for .

    Hi,
    When we use ZBW220 Function Exit   EXIT_SAPLRSAP_001& what meant for
    EXIT_SAPLRSAP_001
    EXIT_SAPLRSAP_002
    EXIT_SAPLRSAP_003
    EXIT_SAPLRSAP_004
    Regards,
    Anand Mehrotra.

    Hi Anand,
    ZBW220 is the project defined in your system to activate the componenets which include enhancement code for data sources.
    Check the link below to know more on this topic.
    http://help.sap.com/saphelp_nw04s/helpdata/en/6e/fe6e420f00d242e10000000a1550b0/frameset.htm
    Regards,
    Sunmit.

Maybe you are looking for

  • Query on using add_event

    Hi, My primitive event has xmlType and I have defined a composite event with 3 such primitive events. I created 2 rules rule1 with 1 primitive event rule 2 which has a <and> with 2 primitive events. All data required to invoke the rules is present in

  • Netweaver 7.3 AS Java Installation Error in Java Deploy (30th step) of 33.

    Hi Experts, I'm installing Netweaver Application Java 7.3 with the following system credentials. 1) Windows 7.0 - 64 bit 2) 6 GB RAM, 150 GB HDD Software folders downloaded - 1) 510415560_16 (NW730_WPL_IM_WIN_X86_64_ADA) - SAPINST.exe file (started t

  • Cue Point - navigateTourl question

    Ok, this is what I need to do, I have an flv inside an swf. when the flav gets to either 22:00 or a certain frame I need an invisible button to appear ONLY after the cue point where the flv will display a click here graphic and the invisible button w

  • Solaris 11 & Zones

    Hi, What are the changes planned in Solaris 11 for the Zone feature? Will it be a virtual system? Will there be any live migration like Xen or VMotion? Any other feature? Thanks!

  • Flash player in Chrome high CPU usage

    Laptop Specs: Windows 7  64-bit Lenovo Thinkpad T410 Intel Core i5 CPU  m 520 @2.4 GHz 8.00 GB RAM This started happening a couple months back (September ish). My laptop run perfectly fine with game play, watching HD movies, running photoshop, etc. I