Coding user exit

Hi,
I have a situation where I need to suppress three material numbers in my query. When I try to do that it wouldn't let me do that because I have 140,000 material numbers and the maxumum can be displayed are 500 values only. Can someone suggest me how I can suppress those three material numbers in the query or any other solution like ABAP coding with default values in user exit, for example, I_STEP=1. If anyone know how to do that in the user exit, I appreciate if you can share the ABAP code.
Thanks,
Rao.

Hi Michael,
Yes, I have entered values manually and moved to the right side of the window. But it is not saving that way and when the query runs it still displays those three values. When I try to display all the values(140,000), I got the error (not enough virtual memory). So, I have increased virtual memory (paging file) on the hard disk. After I have increased the memory, I have selected 'display all' the values and it displayed. Then I selected the values that need and moved to the right and 'excluded from the selection'. It is working now. Thanks for your time and thoughtful input.
Rao.

Similar Messages

  • Checking code for SAP USER EXIT

    we have enhanced SAP given data-source 2LIS_XX_XXXXX, there are hard coded user exits for this extractor. How to debug the code for enhancements?
    I know we enhance data-source in CMOD....SAPLRSAP001 (transactional data)....SAPLRSAP002(attributes)

    Hi Monica,
    There are many ways to debug the code if you wish to enhance the DataSource. In RSA3 you can do that by clicking Debug mode option. This is already been suggested by Srini.
    I would like to give you another way to do so.
    If you want to enhance the Transcational data then you need to choose EXIT_SAPLRSAP_001 component of RSAP001 enhancement. It has 4 component for master data( Text, hierarchy...etc).
    This is a function module enhancement. If you goto the source code of the function module, you will find an include program i.e. ZXRSAU01. double click on this program which will take you to the body of the program. This is the place where you need to write code.
    here you need to write the code as follows.
    case i_datasource.
    when '2LIS_XX_XXXXX'.
    Now here you can set a break point. This can be soft or hardcoded break point if you need to debug.
    Better Hardcode it. Write
    BREAK-POINT or BREAK username.
    Now when you execute the DS through RSA3, The program will stop here. The data extracted from DS will be available in an internal table C_T_DATA. Now you can enhance this by writing code. Again you can debug by pressing F5 or F6. This is as usual the way you debug an ABAP program.
    Hope this helps. If you need any further help contact at [email protected]
    Give reward point if you're satisfied.
    Happy debugging....
    cheers,
    Message was edited by: tapan tripathy

  • User Exit Program works Differently

    I'm trying to sync user info from HCM system to a destination system. There is a limitation in SAP HCM system, which allows only full load and not incrememental load or sync up based on events(New Joinee, Position change, Employee Exit) to happen from source to destination. So, I thought User exit could fix this issue.
    When a person inserts or changes or changes the status of an employee to quit through PA30 and saves it, the user exit program should pass the personnel number (numbers) of the user(s) as input to the report RPLDAP_EXTRACT_IDM.
    I am trying to trigger a report(RPLDAP_EXTRACT_IDM) which exports the data from HCM to a destination system(IDM) with the help of a user exit program. Using PA30 when I change the user info and when I save it, through User exit program I'm passing the personnel number of the user(whose data has been changed) as an input to the report, which inturn will replicate the change to the destination.
    Problem:
                User Exit works differently here. After configuring User exit for this tcode(PA30), once I change a user's info and click save, without saving the data, it triggers the User exit program. Usaully while chanign user info, when I click 'SAVE', i get a message 'Recod changed', but now after sonfiguring User Exit program, since the program runs immediately as soon as i click SAVE, I see the following message' Successfully exported Data to the destination' . And the change that i make is not reflected.
    Shouldn't the User Exit program be triggerred after the data is saved?
    Is there a way where I can trigger the User Exit Program after saving the record.

    Not an ABAP expert, but I remember hearing something about PAI and PBO modules and separate user exit includes depending on where you are executing it. Is it worth investigating on these lines?
    Also is it worthwhile configuring Change Pointers to capture whether a change has been made instead of coding user exits in PA30. You could code uxerexits in the ALE data transfer program to analyse the data based on change pointers and transfer data pertaining to New Joinees etc.
    Again I am not ALE epxert, I am just giving my views For what they are worth. For better results perhaps you should post in ABAP forum.

  • How to code the user exit userexit_number_range from mv45afzz

    Hi, i need to modify the user exit userexit_number_range from mv45afzz, this is an standard include so when i try to modify i get the request for the my access code.
    Can someone explain me what is the procedure to modify an user exit.
    Do i need to request an access code to modify this user exit.
    am i complete lost in the proces of coding user exits?
    i have already check many of the message posted.
    thank for advance

    Hi
    MV45AFZZ is a customer user exit to add customer functionality....so when u change first time..you need to provide access key...for the object...
    Take a Print screen of the screen displayed and send it to basis guy..who can provide you with access key for that object..then u can enter that value and modify the user-exit...
    To add your code into this user-exit...u need to place the cursor in the routine u want to change..and press Insert button on the Tool bar... which will open up space for u to enter the code...
    Thanks
    Balu

  • User exit/BADI  required for coding for the selection custom fields in RSA3

    Hi,
       I have a requirement  in the Datasource extractor. I need to add custom Z fields  in the Data souce of the  2LIS_02_SCL and need to include in the selection part. So I have added the custom filed in the append structure and include the check in the selection checkbox in the transaction LBWE  under the datasource specified above. For the corresponding custom fields, to be populated in the ALV list, I have written the code in corresponding user exit  ZXRSAU01.
    Now I can view my custom Z fields in the list as well as on the selection fileds  while executing the transaction RSA3. But I need to write code for the selection criteria part.  On entering value in the selection criteria of my custom z field, no  values are selected to the corresponding query. Please let me know where should i write the coding part for the selection criteria of the Z fields for the Datasource.
    On debugging, to my understanding only  the standard fields are alone getting filtered by providnig the values in the selection part of the RSA3 tcode. It is called in Macros : Sel  < Datasorce> .... and  the fetch cursor is included inside the macros.
    Please let me know any user exits or Badi;s available for it.
    Thanks in advance

    Hi shivu,
    you might try the BAdI RSU5_SAPI_BADI. A good introduction can be found in the following document:
    [Enhancing DataSources with BAdI RSU5_SAPI_BADI|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/3001894b-b1fb-2910-77ba-e80b6f2053b7]
    The BAdI is called at the time of extraction, so this would be the right place to populate your additional fields.
    Best,
    Chris

  • Coding in user exit in program rffous_t

    The ACH file generated has to be updated with company specific information required by the NACHA file format standards. SAP functionality will be used to generate the interface file. 
    The ACH file will contain all employees who have pay for the current pay period being processed and have direct deposit set up for the current pay period.  The ACH file will run during the biweekly and monthly payroll runs.&#61485;This file will be generated upon completion of the current payroll processing.
    The user-exits are invoked when the RFFOUS_T program is executed.For each record type, use the mentioned user-exit below:
    •     1 (File Header Record)
    o     EXIT_100
    o     Function Module EXIT_RFFOEXIT_100
    •     5 (Batch Header Record)
    o     EXIT_101
    o     Function Module EXIT_RFFOEXIT_101
    •     8 (Batch Control Record)
    o     EXIT_105
    o     Function Module EXIT_RFFOEXIT_105
    Based on the account id (REGUH table-HKTID field), the other fields have been identified.
    Record Type "1"          
    File ID (Immediate Origin) - Structure DTAMUSFH, Component FH4     
    Origination Bank (immediate destination name) - Structure DTAMUSFH,Component FH11
    Company Name (immediate origin name) - Structure DTAMUSFH, Component FH12
    Record Type "5"                         
    Company Name - Structure DTAMUSBH, Component BH3     
    Company Discretionary Date - Structure DTAMUSBH, Component BH4
    Company ID - Structure DTAMUSBH, Component BH5     
    Company Entry Description - Structure DTAMUSBH, Component BH7
    Company Descriptive Date - Structure DTAMUSBH, Component BH8
    Effective entry date - Structure DTAMUSBH, Component BH9
    Record Type "8"     
    Company ID - Structure DTAMUSBC, Component BC7     
    Message Authentication Code - Structure DTAMUSBC, Component BC8
    Can somebody please advice me after reading the above information that how should i proceed for the coding to be done inside the user exit!!

    Hi Bhaskar,
    1. Go to CMOD(transaction) create an enchancement project .
    2. enter the project name ZName and click create and enter the short description of the project.
    3.now click on the enhancement assigment button on the application tool bar and enter the enhancement number: RFFOX100 (File Header Record),RFFOX101(Batch Header Record), RFFOX105(Batch Control Record).
    4.now select the first enhancement number i'e RFFOX10 and click on the components it will show you the fuction module exit EXIT_RFFOEXIT_100.
    5.double click on it it will take you to the fuction builder screen now click on the include it will show you the warrining 'Program names ZX... are reserved for includes of exit function groups' just ignore the warning and press enter after placing your coursour on the include, system asks to create the include press yes.
    6..and now in the include code your logic to update The ACH file generated has to be updated with company specific information required by the NACHA file format standards as per your needs.
    follow the procedure from 4 to 6 to populate Batch Header Record and Batch control record in the exits EXIT_RFFOEXIT_101and
    EXIT_RFFOEXIT_105 respectively.
    thanks and Regards,
    pavankumar

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

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

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

  • Update termination error on coding in user exit EXIT_SAPLCOIH_009

    HI All,
    I am working on approval of a work order in IW32 for which I am coding within a user exit EXIT_SAPLCOIH_009 which gets triggerred at the time of saving the work order. This will update the AUFK table and send a mail to a recipient. But when I save the work order after approving it, it gives me an error saying "Update Termination error". I checked within the SM13 transaction and ST22 for dump analysis, it says "The ABAP/4 Open SQL array insert results in duplicate database records.". Can anyone tell me what could have gone wrong and how I can rectify this. Your help is greatly appreciated.
    Thanks in Advance

    Hello
    This type of error will appear in three cases
    1.when there is a record in the database and trying to insert another with the same number
    2.If there is any inconsistencies in number ranges  (check this only if you have changed the number ranges very recently)
    3. If the output type and the output device is wrongly selected ( not the prescribed)
    Analyse yourself.
    Regards,
    Prakash

  • Coding problem in a user exit for unit conversion please see it once

    Hi experts,
                   i am having a problem in coding i wont to convert the MSEG-ERFME field that is quantity field into tonne when ever it is kg. In tcode j1i5 i got one user exit J_1i7_userexit_validate now inside this user exit i have to write this code that when ever the UOM(unit of measure)ERFME comes in KG it should be converted into TONNE, This code is to be written in the user exit and has to be followed forward in other values.
    Thanks
    sumeet Malhotra

    Hi Experts,
                Have any one used this Function module unit_conversion_simple please help Not getting any reply since tmmrow,I am not able to get the desired output wont to convert all KG inputs into Tonne.
    this is the code part
    CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'
       EXPORTING
         INPUT                      = ERFMG  " QUANTITY
       NO_TYPE_CHECK              = 'X'
       ROUND_SIGN                 = ' '
        UNIT_IN                    = ERFME  " ORIGINAL UOM WHICH EXIST
        UNIT_OUT                   = 'TO'   " UOM REQUIRED
    IMPORTING
       ADD_CONST                  =
       DECIMALS                   =
       DENOMINATOR                = 1000
       NUMERATOR                  =
        OUTPUT                     =   RESULT "OUTPUT
    EXCEPTIONS
       CONVERSION_NOT_FOUND       = 1
       DIVISION_BY_ZERO           = 2
       INPUT_INVALID              = 3
       OUTPUT_INVALID             = 4
       OVERFLOW                   = 5
       TYPE_INVALID               = 6
       UNITS_MISSING              = 7
       UNIT_IN_NOT_FOUND          = 8
       UNIT_OUT_NOT_FOUND         = 9
       OTHERS                     = 10
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Please help
    Thanks
    Edited by: sumeet malhotra on Feb 7, 2009 5:46 AM

  • User exit coding in FBE1

    Hi,
    We want to do some external coding in tcode FBE1 for checking the posting date and due date of the invoice document number before saving the document. Pl. suggest the name of correct user exit where we can do this coding.
    Regards,
    rajesh.

    hi
    you can use the validation for documents line items

  • IPC Pricing with AP 7.00 Database Access/Call function module user-exit

    Hi experts,
    we are running SAP ECO on SAP ECC 6.0 with IPC Pricing AP 7.00 running in the VMC.
    I'm facing a new requirement. In an user-exit for requirements the access to the ABAP database is needed.
    (I know that the SAP recommendation is, don't have access to database. But we need this functionality)
    In ABAP it looks like:
    select single * from  a590
          into     LH_674_a590
          where    kappl  = 'V'
          and      kschl  = 'ZSPR'
          and      kunnr  = komk-kunnr
          and      matnr  = komp-matnr
          and      datbi  >= komk-prsdt
          and      datab  =< komk-prsdt.
    Is there a possibility to implement the same SELECT in the Java-User-Exit?
    Is there maybe the alternative to call a function module instead?
    The database exits on the same application server on which the VMC runs.
    If there is a possiblity can anyone provide me with sample coding or give an advice where to find samle coding?
    I would prefer to call a functions module.
    Thanks in adcance
    Karl-Wilhelm

    Hi Shanto & Sumit,
    Thanks for the inputs.
    as per my understanding of the log
    java.lang.IncompatibleClassChangeError: com.sap.leasing.pricing.tools.LeasingPricingTools: method getPricingConditionByConditionTypeName(Lcom/sap/spe/pricing/transactiondata/userexit/IPricingItemUserExit;Ljava/lang/String;)Lcom/sap/spe/pricing/transa ctiondata/IPricingCondition; used to be stati
    error is thrown by the SAP standard user exit and because of which execution is failing in customer user exits and surprisingly we have not made any changes in both of them.
    this was working earlier before upload.could this be because of the jar packaging.
    how i can download the standard user exit com.sap.leasing.pricing.tools.LeasingPricingTools from crm
    for further investigation.
    Thanks,
    Siddharth

  • Follow-up on Ravi's User Exits example

    Hi,
    Ravi's user exit example:
    You have a content data source with fields say customer,sale org, profit center and amount. You wish to add sales manager to this extractor. You <b><u>locate</u></b> the table and <u><b>field name and append that field to the extractor</b></u> and write a code to pick that field when the extractor extracts data. This piece of code is called exit. What it does is the system reads the customer code.
    In the above example explaining customer exists, regarding the field, can you clarify “locate the field”. I read that if this field were available in the LIS communication structure that would be an enhancement to the structure where we only move the field from the left to the right (extract structure). In this case an append structure will be generated in the corresponding Include structure.
    In the case of the user exit, my understanding is that the field in question, in this example, Sales Manager, is not available in the LIS Communication structure so I was expecting that you would state “create the field” but you said “locate the field”. Did you mean that, and if so, locate from where? Because if it is being located from the LIS communication structure then I would not expect a user exit, at least from my understanding.
    Thanks.

    Hi Amanda,
    Yes, a field can be created when none of the SAP defined fields are solving the issue on hand. In this case too User exits are used. These fields are then appended to the tables.
    So all fields are in some table or the other. The field that you require has to be located in these tables and appended to the extractor. This again requires User Exits.
    For LO Cockpit extractors, if the field is already available in the extracstructure in LBWE then it can be moved from left to right and no extra coding is required.
    Hope this helps.
    Kumar

  • MRP Run with User Exit key for Follow up material

    Dear Gurus,
    I want to run MRP only for followup materials by using User exit key. For example i have a material X(with discontinued Indicator as 1) and it's follow material is Y.
    So we have a user exit key as ZFL, with coding as shown below. Now when i run MD01 with user exit key ZFL and parametre as 1, it only runs MRP for material X and not for material Y. What else we need to do so that when i run MD01 with user exit key ZFL, it shoudl consider both X and Y. 
    WHEN 'ZFL'.
    DATA : BEGIN OF ITAB5 OCCURS 0,
    KZAUS LIKE MT61D-KZAUS,
    END OF ITAB5.
    TRANSLATE USER_PAR TO UPPER CASE.
    SPLIT USER_PAR AT ',' INTO TABLE ITAB5.
    IF ITAB5[] IS INITIAL.
    EXIT.
    ENDIF.
    CLEAR: NO_PLANNING, STOP_PLANNING.
    READ TABLE ITAB5 WITH KEY KZAUS = MT61D-KZAUS.
    IF SY-SUBRC <> 0.
    NO_PLANNING = 'X'.
    ENDIF. 

    Hi Kumar,
         You can use either MRP Type, MRP Controller, MRP Group in this user exit to control the MRP run. For these set of Materials you have to assign any of same value or at least differentiate these material from other material. Then only you can control the MRP by using this user exit even though if you use different MRP Group and MRP Controller. In User Exit, you may have to add your dependent material's MRP Group/MRP Controller. Make sure that these set of materials are different than all other materials.
    If you don't have any plan to run MRP for other materials then as per Ajit suggestion you make that material's MRP type as "ND". But, in your business case they may want to activate the MRP for all the material not now but may be latter.
    Thanks

  • Export Control /Legal control: need user exit to customize

    I have a situation where I want to determine the export control license for a sales order. SAP uses the function module RV_EXPORT_CONTROL to carry out the required check.
    The FM uses the country defined for the ship-to-party as the destination country and carries  out checks to determine if there is an embargo for the good in the line item to destination country.
    My requirement is that the actual destination country or the ultimate destination country ( which is known and not same as the country of the ship to party ) be used to carry out the embargo check.
    I could not find any user exit/badi for the same. Is there a way to achieve this functionality. It has been hard coded in the FM. Can we do any customizing settings to achieve this? I could find two partner function EU ( End user for foreign trade ) and UC ( Ultimate Consignee )...can these be somehow used/ configured to achieve the desired functionality? Or is there any other different approach to the issue.
    Currently I plan to copy the standard FM and add my functionality. I will turn off the standard export control and then I i will call the custom FM in the end ( userexit_save ) as the export control is carried out at save.
    Any suggestion/approaches will be appreciated.

    I too have same issue,  from where the Fm  RV_EXPORT_CONTROL is triggering
    Edited by: erakarthi on Jul 14, 2011 8:44 AM

  • Sales Order Pricing User Exit Problem

    Hi,
    I am facing a problem related to coding in Sales Order pricing user exits. Scenario is as mentioned below:
    Based on Material Entered and Sold To in Sales Order, auto determination of a manual pricing condition happens. For doing this, coding has been done in USEREXIT_PRICING_PREPARE_TKOMP by changing XKOMV table. Auto determination of the manual price is happening properly.
    From Sales Overview Screen when user goes to the Conditions tab, Net Value is not getting calculated. When we navigate away to Schedule line tab and then come back to COnditions tab, Net Value is automatically getting calculated.
    AM i missing something in the coding part? As the data is getting populated automatically I guess some piece of code needs to be triggered. Can anyone shed some light into this.
    Thanks in advance,
    thunderans.

    Prabhu: After filling in XKOMV structure, I am calling FM PRICING. On doing this, the Sales Pricing is getting calculated but even then net value of order at header i.e VBAK-NETWR is not getting populated when we are in Sales Overview screen. When, I am getting into Conditions tab and coming back to Sales Overview screen, Net value is getting populated correctly. This portion of everything not getting populated at the same time is bothering me. The pricing conditon that I am  filling is a manual pricing condition.
    I put a breakpoint after FM PRICING which correctly populates XKOMV structure. How do I properly update Order Net Value in Sales Overview screen wihtout having to navigate to any other tab?
    Nicklas: I am looping at Order line within the user exit USEREXIT_PRICING_PREPARE_TKOMP and determining price. Once all line items are processed, I am using the FM PRICING for calculating Sales Prices.
    J@Y: Request to send me a bit more details into your approach.

Maybe you are looking for

  • How to transfer data using the clipboard

    Does anyone know how to transfer data (string) from the clipboard to labview? I am trying to write C++ code using win32 API using the calls, OpenClipboard, Getclipboard and CloseClipboard functions. The problem is LV crashes when there is a call to t

  • Pdf toolbar in i.e. explorer not functioning

    Installed acrobat 8 with the latest update on a vista 64-bit PC running internet explorer 7. The pdf toolbar pull down menu on the browser provide a listing of all the submenus ( convert to pdf ..etc) however, when I select any of the submenus nothin

  • ByD Studio // Extension // Find modal window

    Hi everybody, I use ByD Studio. It is possible to add extension (field) to a BO of the public solution model. It is also possible to add this field in the user interface via : - adapt mode in the UI - the ByD Studio. My issue is to add the extension

  • External Router and Firewall

    I have just been informed by Apple Care that my entire implementation for my Xserve is off base. We only got to this problem when Kerberos wouldn't work. I had judiciously followed the manual and had my Ether1 and 2 ports set up to do external (1) in

  • Oracle Enterprise Manager 10g

    Hi, I have a problem, I am working in a environment where we have several oracle servers. I had OEM 9i client on my Windows PC, and was able to connect to all oracle 9i servers. Now we have upgraded all servers to 10g. Now when I installed oracle 10g