User exit in VAxx trx

Hello All,
  I need to display the editor of long text at item level of an order in display mode(for example VA01). Is there an user exit to do this?
Any help would be appreciated.
Thx in advance.
Regs,
Sid.

Hi,
Include MV45AFZZ provides plug in points for the user routines for Sales order related activitites. Check if you can plug in your code in one of the routines available.
Also through SMOD, you could search for any function exits using component name SAPMV45A
Regards,
HR

Similar Messages

  • User exit EXIT_SAPLL03T_002 and jobs

    Hi everybody,
    I have a problem with user exit EXIT_SAPLL03T_002 and trx LT12, i put code (the code is in the end) in the user exit in order to update the field QNAME from the standar table LTAP, the sentences for the update are in a job.
    The problem is when a run the LT12, put the order and press enter the trx finish normally, but when i see the jobs resumen (SM37) there isnt any job.
    Thank you for your help, see you.
      INCLUDE ZXLTOU02                                                   *
    DATA:
        WJ_JTANUM LIKE LTAP-TANUM,
        WJ_LGNUM LIKE LTAP-LGNUM,
        WJ_WERKS LIKE LTAP-WERKS,
        WJ_USER LIKE SY-UNAME,
    Parametros para el Job
        l_numero  LIKE tbtcjob-jobcount,    "ID de un job de fondo
        l_fecha   LIKE tbtcjob-laststrtdt,  "Fecha de ejecución más tardía
        l_hora    LIKE tbtcjob-laststrttm,  "Ultima hora de ejecución para
        l_jobname LIKE tbtco-jobname VALUE 'JOB_RF',
        W_USER LIKE SY-UNAME,
        W_HORA LIKE SY-UZEIT,
        W_DIA LIKE SY-DATUM.
    GET PARAMETER ID 'mb_usuario' FIELD W_USER.
    Solo lo realiza para la transaccion LM05 y LM07
    y si es por logueo No SAP
    ***ANTIGUO
    *IF ( SY-TCODE EQ 'LM05' OR
      SY-TCODE EQ 'LM07' OR SY-TCODE EQ 'LM03' OR
      SY-TCODE EQ 'LM04') AND ( W_USER NE '' ).
    **********ACTUALIZADO 07/02*********
    IF ( SY-TCODE EQ 'LM05' OR
       SY-TCODE EQ 'LM07' OR SY-TCODE EQ 'LM03' OR
       SY-TCODE EQ 'LM04' OR SY-TCODE EQ 'LT12' ) AND ( W_USER NE '' ).
    ojo
      UPDATE ZTMB_USERCOLA
        SET STATU = ' ' DOCNUM = ' '
        WHERE
        BNAME = W_USER.
      GET PARAMETER ID 'mb_hora' FIELD W_HORA.
      GET PARAMETER ID 'mb_dia' FIELD W_DIA.
      CALL FUNCTION 'JOB_OPEN'
             EXPORTING
                  jobname          = l_jobname
             IMPORTING
                  jobcount         = l_numero
             EXCEPTIONS
                  cant_create_job  = 1
                  invalid_job_data = 2
                  jobname_missing  = 3
                  OTHERS           = 4.
        SUBMIT ZUPDATE_LTAP
            AND RETURN
              VIA JOB l_jobname NUMBER l_numero
                WITH WJ_TANUM = T_LTAP_VB-TANUM
                WITH WJ_LGNUM = T_LTAP_VB-LGNUM
                WITH WJ_WERKS = T_LTAP_VB-WERKS
                WITH WJ_USER = W_USER.
      Llama a la funcion para cerrar el Job
        CALL FUNCTION 'JOB_CLOSE'
             EXPORTING
                  jobcount             = l_numero
                  jobname              = l_jobname
                  strtimmed            = 'X'  "Inicio inmediato
             EXCEPTIONS
                  cant_start_immediate = 1
                  invalid_startdate    = 2
                  jobname_missing      = 3
                  job_close_failed     = 4
                  job_nosteps          = 5
                  job_notex            = 6
                  lock_failed          = 7
                  OTHERS               = 8.
    ENDIF.
    REPORT ZUPDATE_LTAP .
    PARAMETERS:
          WJ_TANUM LIKE LTAP-TANUM, " Numero de OT
          WJ_LGNUM LIKE LTAP-LGNUM, " Almacen
          WJ_WERKS LIKE LTAP-WERKS, " Centro
          WJ_USER LIKE SY-UNAME,    " Usuario SAP
          W_QNAME LIKE LTAP-QNAME.
    data: w_actual, w_timeout type i.
      Actualiza el campos de usuario
    w_actual = '0'.
    w_timeout = 0.
    while w_actual = '0' and w_timeout < 300.
      w_timeout = w_timeout + 1.
      WAIT UP TO 7 SECONDS.
      UPDATE LTAP
        SET QNAME = WJ_USER ZZRF_BNAME = WJ_USER
      WHERE
        TANUM = WJ_TANUM
            AND
        LGNUM = WJ_LGNUM
            AND
        WERKS = WJ_WERKS.
    AGREGANDO 4 ENERO
      UPDATE ZTMB_USERCOLA
        SET TPICKEO = SY-UZEIT FPICKEO = SY-DATUM
      WHERE
        LGNUM = WJ_LGNUM
            AND
        BNAME = WJ_USER.
    AGREGANDO 4 ENERO
      if sy-subrc = 0.
        w_actual = '1'.
       UPDATE LTAK SET ZZRF_BNAME = WJ_USER
       WHERE TANUM = WJ_TANUM AND
             LGNUM = WJ_LGNUM.
      endif.
      commit work.
    endwhile.

    Hi,
    Check the print parameters. Probably after execution you may be deleting the job.
    You can change the print parameters during runtime.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
       EXPORTING
         no_dialog                    = 'X'
         user                         = sy-uname
       IMPORTING
      OUT_ARCHIVE_PARAMETERS       =
         out_parameters               = params
         valid                        = ws_valid.
      IF ws_valid <> space.   
        params-pdest = 'LOCL'.  "Destination
        params-primm = ''.      "Print Immediately
        params-prnew = 'X'.     "New Spool Request.
        params-armod = '1'.     "Print: Archiving Mode - Print Only
        params-linct = 65.      "Rows
        params-linsz = 255.     "Cols
        params-paart = 'X_65_255'.
        params-prrec = sy-uname.  "User name
        params-prsap = ''.      "Print: SAP Cover Page
        params-prunx = ''.      "PRINT: Host spool cover page
        params-prcop = '001'.   "number of copies
        SUBMIT zmib_fiber_link_background
               WITH file     = i_file_list-name
               WITH rb1      = space
               WITH rb2      = c_x
               WITH p_launch = c_x
      VIA JOB ws_c_session NUMBER ws_c_jobnum
      EXPORTING LIST TO MEMORY 
        TO SAP-SPOOL
        WITHOUT SPOOL DYNPRO
        SPOOL PARAMETERS params
        AND RETURN.
    endif.
      CALL FUNCTION 'JOB_CLOSE'
           EXPORTING
                jobcount             = ws_c_jobnum
                jobname              = ws_c_session
                strtimmed            = 'X'
           EXCEPTIONS
                cant_start_immediate = 1
                invalid_startdate    = 2
                jobname_missing      = 3
                job_close_failed     = 4
                job_nosteps          = 5
                job_notex            = 6
                lock_failed          = 7
                OTHERS               = 8.
    Also check the sy-subrc after JOB_OPEN.
    Regards
    Subramanian

  • User Exit for trx FAGL_FC_VAL program FAGL_FC_VALUATION

    does anybody knows if is there a user exit for trx FAGL_FC_VAL / program FAGL_FC_VALUATION?
    I need SAP to copy some information fron valuated document into valuation document created by the program.
    Cheers
    Rafael Barreda

    does anybody knows an answer to this question?
    thanks in advance.

  • What are the user-exits which will trigger on saving Sales Order

    Hello Experts!!!
    I am working on Sales Order VA01. The requirement is I need to pre populate Sold-to-Party field. I find out user-exit (V45A0002  Predefine sold-to party in sales document  ). So it is working fine.
    Now second requirement is I need to capture all the date once user saves Sales Order. Also the time or Sales Order creation I have to make u2018GRAYu2019 some of the fields so user cannot change the value. Can anybody tell me which user-exits should I use to retrieve the entire information user entered and lock fields in Sales Order screen?
    Thanks a lot on advance.

    Hi
    U can't find it there,because it's a include, not enanchement.
    So u need to use the trx SE38, not CMOD.
    For sales ored there aren't the enanchements, but only some FORMs defined in particular includes.
    U need to get the access key by OSS in order to change them.
    These are the rest of the includes where u can find other exits:
           INCLUDE MV45ATZZ.            " Data definitions in MV45ATOP
             INCLUDE MV45AOZZ.             " User-modules PBO
             INCLUDE MV45AIZZ.             " User-modules PAI
             INCLUDE MV45AFZA.             " User-forms < 3.0
             INCLUDE MV45AFZB.             " User-forms
             INCLUDE MV45AFZC.             " User-forms < 3.0D
             INCLUDE MV45AFZD.             " User-forms   3.0E
             INCLUDE MV45AFZF.             " User-forms   3.0F
           include mv45afzg.             " User-forms   3.1G
             INCLUDE MV45AFZH.             " User-forms   4.6B
             INCLUDE MV45AFZZ.             " User-forms
             INCLUDE MV45AFZ4.             " User-forms   4.0
    Anyway u can find some information about these exit in customizing (trx SPRO):
    Sales and Distributions->System modifications->User exits
    Max

  • User Exit/ BADI for PO release

    Hi Experts,
    Can anyone please tell me about the User Exit or BADI for Sub contract PO release.Also tel me how to proceed for the following 2 requirement ,
    i have to send an IDOC as & when the Sub contract PO releases.
    And automatically resent if changes are made in PO with the repeat output function in ME22N.
    Regards,
    Nik

    Hi,
      Use trx SE19 to implement your BADI: create an ZME_PROCESS_PO_CUST using ME_PROCESS_PO_CUST as definition.
    Now in Interface Tabs you can see the METHODs you can use as "user-exit", in particular there's PROCESS_ITEM to manage items data.
    You have to write your code into this method.
    This method has IM_ITEM like parameter in its interface, and it's like the type IF_PURCHASE_ORDER_ITEM_MM.
    This type has the method IF_LONGTEXTS_MM~SET_TEXT, you can try to use it to set your text in item.
    This is code for example:
    DATA: TLINE TYPE MMPUR_T_TEXTLINES.
    CALL METHOD IM_ITEM->IF_LONGTEXTS_MM~SET_TEXT
    EXPORTING
    IM_TDID = <YOUR ID>
    IM_TEXTLINES = TLINE.
    So you should read the text you want to copy and pass it to TLINE.
    You can use the METHOD PROCESS_HEADER to read the text you need. This METHOD has IM_HEADER as parameter and it's like the type IF_PURCHASE_ORDER_MM, this type has the method IF_LONGTEXTS_MM~GET_TEXT to read header logn text.
    Anyway while you're in implementation of the BADI go to:
    GoTo->Sample Code
    Here you can try an example how to implement the method you need to use.
    Regards

  • Creation of a User exits FI data posted from MIGO Good receiving

    Hi all!, Will appreciate very much if you can help me. I have a situation where we dont use the std inter-co posting to trace inter-co trx . Neither do we use the SAP Consol Module. We are trying to capture the inter-co trx in SAP to be interfaced with Hyperion. Therefore we would require that VBUND filled in BSEG to be filled up for accts that are inter-co controlled . This control is done using the validation rule in FI. But the problem comes from integration from MM and SD. As the SD and MM do not have fields for VBUND when these postings post to a inter-co controlled accts the trx are not able to be posted. So was thinking if there is any way that we could assign the VBUND field thru user exits based on a logic to dervie the last 4 char from Vendor no. As our org codes all inter-co profile by the Acct grp = Interco and the last 4 char linked to SAP co. code.

    Anderton,
    I would prefer moving them to VBAK and then using it. Why?
    1. Once you have queried KNVV and moved it to VBAK you do not have to perform the select again.
    2. During SO change, you already have the data in VBAK so you do not have to fetch again from KNVV.
    3. Lets say the Z field was changed on KNVV after creation of SO and if your requirement is to use the Z field content when the SO was created, you cannot go back to KNVV since the data is changed. But if the same was stored in VBAK, you do not have that problem.
    Thanks,
    Vikram.M

  • Call transaction in user exit?

    Hi
    can we say "call transaction" in the background?.while using user exit...
    regds
    gunjan

    Hi Gunjan
    I've to consider you ( or your exit) are in trx, so if you need to update some tables or another object don't belong to main trx, you make sure to do the updating only if the main trx is finished successfully.
    So it's usually placed the code for updating in a exit called before saving.
    But also you make sure the saving is done successfully, SAP usually does the saving in update tusk, so it has to call a COMMIT to start the saving action.
    When the COMMIT is called you can be sure the saving'll be done.
    So if you run your code in update tusk, you'll be sure your action'll start after saving.
    For these reason you should insert your code in a form called in update tusk.
    PERFORM UPDATE_MY_DATABASE ON COMMIT.
    So only when the system'll do the commit your code'll work.
    Max

  • How to know the tcodes/programs that uses a user exit

    Hi, anybody knows given the user exit (function module) how will i know the tcodes/programs that uses it? the where used list doesn't return any.

    Hi,
      You will find the enhancement for the exit EXIT_SAPLCOZF_001 ,go to se11>enetr MODSAP Table name in Memeber postion you can enter your function module name EXIT_SAPLCOZF_001>now you will get the enhancement COZF0001 (trx SMOD)
    yOU will find whre the exit is called from the t.code Try this method:
    All exits have the program name as part of their own name, for eg, EXIT_SAPLCOZF_001. In this, SAPLCOZF is the program that the exit is called in, you can use this program name and search for transaction codes related to the program (in SE93).
    The only hitch in the above method is when the program name is a function group program name (SAPL*), in which case you will have to drill down into the function group to find the corresponding tcode.
    Or
    Go to SMOD transaction.
    Enter the Enhancement Name in SMOD.
    Open in Display mode.
    Now get the package name from the window.
    Now go to transaction SE80.
    Choose package from the listbox
    and enter the package name.
    Now it will display the list of Transactions associated with the project.
    Regards
    Kiran Sure

  • ME21 User Exit to check/validate WEPOS field

    We want to use ME21 transaction for simple purchasing
    We want to build a small enhancement to check the GR indicator (WEPOS) based upon a threshold order value
    Does anyone know a user exit, badi or alternative that will allow us to import and export this value?
    Thanks
    Steve

    Dear Steve,
    If there's a requirement to change the indicator agains a specific condition, you can define the condition in the exit, then create a Z* program that contrain a BDC of change PO (ME22), and in the Z* program you can check to the exit condition, if its meet than the GR indicator can be unticked, cause you'll need also to check , whether GR has take place for the PO or not and other condition, so you need to things to do.
    1. add condition logic in the exit
    2. create a Z* program to change the WEPOS flag(using BDC code ME22--> its more recommend cause you use the standard SAP trx) and you can schedule the Z* program to run background.
    Regards,
    w1n

  • User exit / change vbrk during reversing an invoice

    Hi together,
    I'm looking for an user exit to change vbrk-rfbsk during reversing an invoice (trx. vf11).
    Thanks for any help

    Hi
    Try with BADI_SD_BILLING_ITEM, method VBRK_VBRP_FILL. I'm not sure if it will be triggered by VF11.
    See these notes:
    SAP Note 1259505 - FAQ: New cancellation procedure in SD
    SAP Note 400000 - FAQ: Transaction VF11: Cancellation of SD billing documents
    It seems that some userexits aren't triggered as in VF01 or VF04.
    I hope this helps you
    Regards
    Eduardo

  • User Exit for KE51 - for maintaing profit centre group

    Hi,
    We have maintained a Z-table wherein we have mainatined a ranage of profit centers which will fall in a particular profir center group. Say, all profit centers created in range of 100001 to 100099 shound fall under profit center group 'AAA'.
    So, if someone is creating a new profit center 100010 and by mistake gives profit center group as 'BBB', we expect the system to give message saying "the intended profit centre does not fall in the range assigned to profit centre group 'BBB'.
    Kindly advise how to triger the message as above? Is there any user-exit for t-code KE51 that can be activated to check whether the profit center group (as defined in Z-table) assigned in profit centre master is correct or not?
    Thanks,
    Bijay

    Hi,
    thanks for your reply.
    I couldn't understand what you are trying to say by  saying "The only option I see is to modify trx. KE51 report according to your needs". Please explain.
    Thanks,
    Bijay

  • User exit in MIRO for differences

    Hi all,
    When the user enters an invoice in TRX miro, sometimes there are differences between PO, GR and amounts invoiced. Differences are posted automatically in standard SAP.
    My requirement is to, in some cases, use a different GL account to post any difference in MIRO.
    Is there a user exit to post the invoice difference to a different GL account? if so, do you have code or more details about it?
    Thanks,
    CD

    Hi,
    Try using one of the following BADI'S.
    MRM_TRANSACT_DEFAULT
    MRM_HEADER_DEFAULT
    BADI_FDCB_SUBBAS01
    BADI_FDCB_SUBBAS02
    BADI_FDCB_SUBBAS03
    BADI_FDCB_SUBBAS04
    BADI_FDCB_SUBBAS05
    FI_TRANS_DATE_DERIVE
    ME_COMMITMENT_STO_CH
    ME_COMMTMNT_PO_RELEV
    ME_COMMTMNT_PO_REL_C
    BADI_PRKNG_NO_UPDATE
    MRM_PAYMENT_TERMS
    MRM_WT_SPLIT_UPDATE
    MRM_HEADER_CHECK
    KR Jaideep,

  • User Exit  for structure BAPIMTCS

    Hi Experts:
    Is there a user exit (trx. XD02) to modify structure BAPIMTCS and to execute a Z function module?
    The problem is that a additional data field of client is not replicated to CRM. We have a client aplication working well. The only problem is, that no BDoc is generated when the (additional data) field and only the field is changed.
    Hoping for your help.
    Best regards,
    Cristina

    check
    Enhancement
    SAPMF02D                                User exits: Customer master data

  • What is the difference between User exit and BADI

    in user exit support to  4 types of exits(Menu exit,Screen exit,Field exit,Function module exit)in similar way  is badi  supported to all  type

    hi,
    BADIs (Business Add-Ins) are the new way in which SAP allows you to enter additional logic into an application, and is based on OO ABAP. (Methods in Interfaces) Transactions SE18/SE19.
    Customer Exits are the older method (which is still supported), whereby you create an include that is in a function module, which is called when the customer exit is activated. Transactions CMOD/SMOD.
    In terms of terminology, people often use the terms "Customer Exit" and "User Exit" interchangeably, however, strictly speaking, User Exits are places provided in subroutines (notably in the SD module) where you can insert your own code, but require a modification to an include (although it is provided for customers to change).
    They are two different methods to do the same thing: to check and update the data into std trx.
    The user-exit is the old concept based on function module
    The BADI is the new concept based on OO ABAP.
    So you can often to find a BADI and an USER-EXIT to do the same thing and you have to decide what you prefer to use.
    Anyway the new trx and the enjoy trx use BADIs as exit
    User-exits are SAP's oldest way of updating data in standard programs - see MV45AFZZ - Form Userexit_Save_Document_Prepare.
    Here you simply add ABAP code or add INCLUDES, etc
    Customer-exits were SAP's next generation. They are built on the concept of function modules - where you add your custom within the Z func modules.
    BADIs are SAP's newest and current way of updating data uisng Object-oriented concepts.
    Please check this link.
    http://www.sap-img.com/abap/difference-between-badi-and-user-exits.htm
    Check the below links:
    http://sap.ittoolbox.com/groups/technical-functional/sap-r3-dev/badi-vs-user-exit-405324
    http://www.sapfans.com/forums/viewtopic.php?t=172792
    User-Exit is a specific place in a transaction-process where SAP offers
    third parties to include there own business functionality. Actually
    User-Exit is the namespace used for Exits programmed by SAP specifically
    for SD. For the other modules it's called Customer-Exit.=20
    >Business Add-Ins (BADI) =20
    The use of object orientated code within SAP has lead to new method of
    enhancing standard SAP code called Business Add-Ins or BADI's for short.
    Although the implementation concept is based on classes, methods and
    inheritance you do not really have to understand this fully to implement
    a BADI.
    Difference between BADI's & User-Exit.
    1. Check the replies for your question which asked by another person.
    http://sap.ittoolbox.com/groups/technical-functional/sap-r3-dev/569786
    2. Similar thread.
    http://www.sapfans.com/forums/viewtopic.php?p=559472&sid=99caa729618b18a8f7c46cc2f047af52
    3. Same question explained
    http://www.sap-img.com/abap/difference-between-badi-and-user-exits.htm
    Badi Tutorials
    1. Sample program.
    http://www.sap-img.com/abap/business-add-in-you-need-to-understand-abap-oo-interface-concept.htm
    2. Implementing BADI.
    http://www.sapdevelopment.co.uk/enhance/enhance_badi.htm
    Hope it helps.
    3. From help.sap.com
    http://help.sap.com/saphelp_nw04/helpdata/en/5f/071eed117c11d5b37d0050dadef62b/frameset.htm
    Pls : award points if it is useful

  • User-exit EXIT_SAPLSPOR_001 not executed (filter spool requests)

    Hi,
    The default SAP functionality provided to control the output controller functions via auth. objects S_SPO_DEV, S_SPO_ACT & S_ADMI_FCD does not do what we would like to do.
    There's a user-exit available to implement some additional code: SPOOAUTH / EXIT_SAPLSPOR_001.
    I've activated SPOOAUTH via CMOD and added a record in table TSPOPTIONS (AUTHORITY, value CUSTOM) which was mentioned in the documentation of the function module.
    No other changes were made.
    However, this user-exit is not called when I start trx. SP01.In the selection screen I choose to show all spool request from all users for a specific time period. According to the documentation this should trigger the user-exit.
    Now the funpart begins:
    I've debugged SP01 and found that FM RSPO_CHECK_JOB_PERMISSION contains:
           IF INIT IS INITIAL.                   
             data: v like tspoptions-value.      
             call function 'RSPO_OPTION_GET'     
               exporting                         
                 name                = SPOPT_AUTH
               IMPORTING                         
                 VALUE               = v.        
             if not v is initial.                
    return value of v should be CUSTOM. However it is empty -> skips the user-exit.
    The check in FM RSPO_OPTION_GET contains:
    ALL 'RSPO_CACHE_CONTROL' ID 'AREA' FIELD 'OPTION'           ID 'OP'      
    FIELD 'GET'                
                             ID 'NAME'
    FIELD NAME                 
                             ID 'VALUE'   
    FIELD V.                   
    if sy-subrc ne 0.            
       perform write_trace1 using 'RSPO_OPTION_GET %s failed\n'  name. "#EC NOTEXT                     
       select single value from tspoptions into v where spoption = name.
    Field NAME = AUTHORITY
    Field V    = empty
    Return = 0 -> skips user-exit.
    Have I overlooked something?
    Any help would be welcome.
    Kind regards,
    Mark

    Hi Mark,
    Could be that the option value is being picked from cache/buffer (old value). You can restart the system and verify.
    Also, after putting a break-point in FM RSPO_OPTION_GET, you can edit the value of 'v' in debugger and set it to CUSTOM, just to check whether the user-exit gets executed in this case.

Maybe you are looking for

  • Help!! My Illustrator CS5  quits unexpectedly Mac Os X Lion

    Hi , I have installed CS5 Web Premium long ago and since few months the Illustrator CS5 will not launch. It quits during the launch of the app saying just it quit unexpectedly. Other apps work just fine. I have tried uninstalling the suite and reinst

  • Oracle 10g Discoverer Reports & export to xls fails for large reports

    Hi , We have following configurations: 1: RHEL 5.4 2: Discoverer :Version 10.1.2.48.18 3: Oracle10g Apps Version : Version 10.1.2.0.2 Issue: Most of small reports works fine ....but when large discoverer reports are executed the page keeps on refresh

  • Depot  Import Scenario

    Hi expert i have 2 Plant one is manufacturing and depot.i have vendor from whom i import for both the plant. Now my issue is sometime i import for Depot plant, so i need to inventorised all the duties. Regard Nabil

  • G/L account is missing (1) -[message 131-46]

    Hello, I have created a new company and have all the master data uploaded. I have also set all the accounts on G/L determination. When i try to create a A/R Invoice from the SBO client application i get the error "G/L account is missing (1) -[message

  • How to update  Service Contract using BAPI/FM for ME31K

    Hi , I am using BAPI BAPI_CONTRACT_CREATE to create contracts. It works fine, the only problem i am facing is while updating line item with item category "D' its simply skips the item category and create a item. The item category is blank when i see