A wierd problem in a user exit in IT0030

hello,
In infotype 0030 we developed a new field. Then we developed a user-
exit which delimits a record after opening a new one (the info typy is
has time constraint=3).
When the user looks with the overview icon or the display icon it's
seems as if the first record is NOT delimited. Only if the user turns
back to the main menu and then returns to PA30 to the overview icon or
the display icon the first record is shown delimited.
It seems like some sort of a TRIVIAL progarmming issue (REFRESH or something of this sort).
But we can not put our fingers on it.
Please, help.
thank you.
zohar
p.s., I have screenshots but I do not know how to attach them to this posting.

I think your problem is related to JDBC cursors being forward only. Once you call next (or whatever the call is to move the cursor forward), you can't get at values you've left behind. As the table needs to repaint, it is trying to access those values and throwing a fit.
Have a look on the Java Pro (magazine) web site. They did a CachedResultSet a little while ago that I think would solve your problem.
Good luck

Similar Messages

  • 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

  • Problem in activating User Exit

    Hi
    I need to create a user exit for SDTRM001 for transaction VA01. This userexit is containing a Function Module EXIT_SAPVSTRM_NO_ATPCHK_001. But when I try execute transaction VA01, this is user exit is not getting called. So, I tried debugging the program. I found out that there is a Function Call to FM MODX_FUNCTION_ACTIVE_CHECK before the call to the previous FM. This Function Module is taking Import parameters exit name as SDTRM001 and Function Number as 001. and it is checking for FM EXIT_SDTRM001_001 in table TFDIR which is not there. So, it is giving the exit is not active. I don't know how to rectify this problem.
    Please help me out.
    Thank you in advance.
    Eswar

    Hi,
        In CMOD, after creating a Project, enter your enhancement - SDTRM001. Go to the components. There you can see your Exit name. Double click on the Exit. It will take you to the Function module. Click on the Include and activate it. Come back. You will see a green tick mark before the Exit name in CMOD. Return to the Initial screen of CMOD and activate project.
    Regards,
    Sharmila

  • Problem with a user exit PBAS0001

    Hi Experts,
    We have a new sand box in ecc6. when I go to any sandbox or production in 4.6c system transaction pa40 runs fine.
    I slected change of pay in new sandbox ecc6 through pa40, but it is throughing with an error stating
    The current ABAP program "SAPFP50M" had to be terminated because it has        
    come across a statement that unfortunately cannot be executed.                                                                               
    The following syntax error occurred in program "SAPLXPAD " in include "ZXPADU02
      " in                                                                          
    line 22:                                                                       
    ""I0028" and "INNNN" are not mutually convertible. In Unicode programs,"       
    " "I0028" must have the same structure layout as "INNNN", independent o"       
    "f the length of a Unicode character."                                         
    The above error is found in user exit PBAS0001 with
    EXIT_SAPFP50M_001
    EXIT_SAPFP50M_002
    can anyone let me know how to handle this to correct in new sand box to run as normal.
    Thanks
    Ravi

    Hi Ravi,
    After release 5 due to unicode the structure innnn and Pnnnn are not compartiable, hence move statement ll not work.
    Use the below methods for conversion. Point if helpful.
      MOVE innnn TO gs_0041.
    PERFORM MOVE_INNNN_TO_STRU USING INNNN gs_0041.
    FORM MOVE_INNNN_TO_STRU  USING    P_INNNN
                                      P_GS_0041.
      CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
        EXPORTING
          PRELP  = P_INNNN
        IMPORTING
          PNNNN  = P_GS_0041.
    ENDFORM.                    " MOVE_INNNN_TO_STRU
          MOVE gs_0041 TO innnn.
    PERFORM MOVE_STRU_TO_INNNN USING gs_0041 INNNN.
    FORM MOVE_INNNN_TO_STRU  USING    P_INNNN
                                      P_GS_0041.
      CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
        EXPORTING
          PRELP  = P_INNNN
        IMPORTING
          PNNNN  = P_GS_0041.
    ENDFORM.                    " MOVE_INNNN_TO_STRU
    Br/Manas

  • Problem with execute User-exit  in BPS

    hi all.
    I made user-exit for BPS, the function is validate values in master tables.
    the user insert datas in layout and the response time is very slow.
    We analyzed and the program called the user-exit  the same number of times exist in the layout.
    there was any way to make the process into data packets and not data by data or to make it faster processing
    Thanks
    Francisco.

    put filters wrapping your user -exit code so that the latter is accessed only for the necessary cases.

  • User exit problem

    Hi,
    My requirement is to stop deletion of infotype 2001 record for some specific users. I am not able to achieve this through authorization, as through authorization if a user is given create access automatically he gets modify and delete access.
    So, I have tried EXIT_SAPFP50M_002 user exit from PBAS0001 enhancement.
    The problem with this user exit is that it is triggered for all infotypes. Since I want this to execute for only infotype 2001 and not for all infotypes in PA30. Anyone have an idea how to achieve this.
    Following is my code in exit:
    Case sy-ucomm.
      When 'UPDL'.
        Message 'Record cannot be deleted.' Type 'E'.
    EndCase.
    Thanks,
    Waqas Rashid
    Moderator message: please use more descriptive subject lines for your posts.
    Edited by: Thomas Zloch on Jan 26, 2011 3:48 PM

    Hi,
    Try this.
    CASE INNNN-INFTY.
    WHEN '2001'.
       "Your code comes here.
    ENDCASE.
    Regards,
    Jovito

  • Without "User Exit" how to solve the problem

    Hi all,
    We are using DEBMAS06 to send the data to a legacy system.The data sent will consist primarily of address and partner information extracted via IDOC based on configured change pointers. The change pointer settings in SAP R/3 will ensure that changed customer master records are included in the IDOCs sent out of R/3.
    The problem is when there is a change in the KNA1 segment the Idoc doesn't come out with KNVP segment which has the partner roles. Is there any way to debug this problem without using User Exit.
    Thanks in advance,
    Srinivas

    Hi,
    Try out with tcode WE19.
    regards,
    sharath

  • User-Exit for the Me22n

    Hi,
       I am Mohan. I faced on Problem with the User Exit. I write the user exit for the ME21n for PO Creation. While Creation of the PO the Purchase Requition is mandatory. it is working for the ME21n. But PO creation is another two ways is there. Those are ME22N (Purchase order---> Create) and ME23N
    (Purchase order---> Create) for this case also my condition applicable but it is not working for this case. How to write the Code for this. by using Sy-ucomm  also. but it is not working.
    Please help me.
    Regards,
    Mohan

    Following the user exit's related to ME22N transaction.
    AMPL0001 User subscreen for additional data on AMPL
    LMEDR001 Enhancements to print program
    LMELA002 Adopt batch no. from shipping notification when posting a GR
    LMELA010 Inbound shipping notification: Transfer item data from IDOC
    LMEQR001 User exit for source determination
    LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt
    LWSUS001 Customer-Specific Source Determination in Retail
    M06B0001 Role determination for purchase requisition release
    M06B0002 Changes to comm. structure for purchase requisition release
    M06B0003 Number range and document number
    M06B0004 Number range and document number
    M06B0005 Changes to comm. structure for overall release of requisn.
    M06E0004 Changes to communication structure for release purch. doc.
    M06E0005 Role determination for release of purchasing documents
    ME590001 Grouping of requsitions for PO split in ME59
    MEETA001 Define schedule line type (backlog, immed. req., preview)
    MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
    MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
    MEQUERY1 Enhancement to Document Overview ME21N/ME51N
    MEVME001 WE default quantity calc. and over/ underdelivery tolerance
    MM06E001 User exits for EDI inbound and outbound purchasing documents
    MM06E003 Number range and document number
    MM06E004 Control import data screens in purchase order
    MM06E005 Customer fields in purchasing document
    MM06E007 Change document for requisitions upon conversion into PO
    MM06E008 Monitoring of contr. target value in case of release orders
    MM06E009 Relevant texts for "Texts exist" indicator
    MM06E010 Field selection for vendor address
    MMAL0001 ALE source list distribution: Outbound processing
    MMAL0002 ALE source list distribution: Inbound processing
    MMAL0003 ALE purcasing info record distribution: Outbound processing
    MMAL0004 ALE purchasing info record distribution: Inbound processing
    MMDA0001 Default delivery addresses
    MMFAB001 User exit for generation of release order
    MRFLB001 Control Items for Contract Release Order
    Regards.

  • User exits for saving in IQ02 transaction.

    Hi All,
    I have the following problem: The end user is unable to save few fields (Stock type, plant, storage location) data in IQ02 transaction.
    1. Enter IQ02 transaction, give the material and serial number.
    2. In SerData tab, give the stock type, plant and storage location
    3. Now when I am trying to save, the following error is prompted: "System status ESTO is active (EQU 30055392)"
    4. After this when I press continue button, the data is not saved.
    I feel that there could be some problem in the user exits for this transaction. Please tell me the user exits for saving in this transaction.
    Thanks,
    Vishal.

    Hi Vishal,
    Please find list of userexit for Tcode IQ02 as below,
    Exit Name           Description
    IEQM0001            Add. checks for equip. installation at functional locations
    IEQM0002            Additional checks for definition of equipment hierarchies
    IEQM0003            Additional checks before equipment update
    IEQM0004            Object is allowed for contract partner (Order->MaintCont.)
    IEQM0005            Object allowed for SD contract (MaintContract->MaintCont.)
    IEQM0006            Object allowed for SD contract (Maintain maintenance cont.)
    IEQM0007            Check/change manufacturer field in equipment master.

  • Stop Purchase Order creation via a user exit...

    Hi all,
    I have a requirement to display an error and hold the PO creation when a material in PO doesn't have a planned price. I used the enhancement MM06E005 and EXIT_SAPMM06E_012 within that. I checked the material planned price and passed an error message depending on the result. But me21n gives user a option of holding data instead of stopping on error message. Is there anyway of keeping users from saving POs under this condition?
    Thanks
    Naveen

    Naveen,
    I think configuring RELEASE STRATEGIES is the solution for this. That way you can even control who can release the PR's and assign the authorizations only to some users.
    The problem with the user exit, is that there is no clear cut condition when you want to create the PO and when you don't.
    Regards,
    Ravi
    Message was edited by: Ravikumar Allampallam

  • How to use MV45FZZ user-exits to validate PONumber

    I want to detect duplicate PO numbers on sales orders. On VA01 I want to check if for the Sold-to-party is there already an Order with the some PONumber. Code to detect this is simple. The problem is what user-exit routine I should use (and how) in report MV45AFZZ.
    There is a form called  USEREXIT_MOVE_FIELD_TO_VBKD but how do I know in this routine that the screen field POOrder was changed, and not any other? I would like to make the check only once, after changing VBKD-BSTKD or XVBAK-KUNNR, not to any screen-field change.
    Can someone give an help on this user-exit usage?
    Thanks

    yes. I didn't knew there were standard validations for duplicate POs
    Where do I configure thais? in Sales Document types?
    Thanks

  • User Exit - infotype 105

    Hi,
    I need a user exit that will executed when the user will update infotype 0105.
    I tried to use EXIT_SAPFP50M_002 but this function wasn't executed when updating infotype 0105
    Thanks,
    Ofir

    The User Exit was ZXPADU02..
    I had a mistake in my code.
    I have a problem with this user exit.
    The user exit export current info type record, but this record isn't returning the new e-mail address.
    If I return the e-mail address "manually" (via bapi), I see the old e-mail.
    How can I return the new e-mail address (without using a badi) ?
    Thanks you all again,
    Ofir

  • USER EXIT .......    TBB1

    HI ..FRIENDS
    I HAVE A PROBLEM WITH TRIGGER USER EXIT IN VERSION ECC 5.O OF SAP TO EXECUTE TRANSACTION TBB1.
    EARLIER THE CONTROL PROGRAM(RFTBBB00), IT SEND FUNCTION 'TB_FI_DOCUMENTS_CREATE', NOW THIS PROGRAM IT SEND THE FUNCTION 'TB_DEAL_FIX_POST'.
    EARLIER THE PROGRAM SAPLTB32 WAS USED; NOW USE THE PROGRAM SAPLTB32NEU.
    I DID ACTIVATE THE PROJECT AND ADD THE ENHACEMENTS BOTH DON´T TRIGGER THE USER EXIT.
    MY DOUBTS IS.
      IN THAT MOMENT TRIGGER THE USER EXIT IN THE NEW PROGRAM  IN LAST PROGRAM WAS USE THE FUNCTION 'TB_FI_DOCUMENT_CREATE_FOR_FLOW' BOTH THIS FUNCTION NEW DON´T SEE.
    THANKS ...  RAMIRO

    Hi Ramiro!
    Sounds like you have to switch to BADI.
    Maybe FTR_FINANCIAL_OBJECT is the correct replacement, but have also a look at BADIs starting with FTR_TR* (transaction SE18).
    Regards,
    Christian

  • SAPMV60S user exit

    Hi,
    I am trying to find out if the user exit USEREXIT_PRICING_PREPARE_TKOMP in include RV60AFZZ is called from SAPMV60S.  I do not believe that it is, from my searching SAPMV60S for the user exit and the include, but an ex-employee (ABAPer) is telling me that it is.  We have a problem in the user exit but I think that the problem could be that the user exit isn't being called.  I put a break-point on the user exit and executed the batch job (which runs SAPMV60S) and it didn't stop at the break-point. 
    Regards,
    Davis

    Ferry, thanks.  I couldn't find the call to the user exit, or the include, but then again the "where used" list is usually incomplete.  How would I have found out this information on my own?
    Davis
    Message was edited by:
            Davis

  • User exit SAPLV1ZE for batch numbering

    Hello,
    The problem is with user exits. I have to make user exit that checks correct batch numbering. When user enters the batch number in transaction, for example, MSC1N it should check is it according standards. I found that user exit SAPLV1ZE is for such purposes and wrote code for this user exit to save dataset each time it executes, to test is it working.
    As I understand form documentation, this user exit is triggered when you press enter after entering batch number in transaction MSC1N. I tried to do it and everything worked fine (dataset was created)! I added some code and tried to execute it again. It worked, but only once! I tried to execute it again with same code and it didn’t work! Now I commented all the code I added and left only dataset creation part but no results – I can’t make it work again.
    The user exit is activated and the code in it is correct (tried to copy it in report and execute). I thought it can be used only once per material or plant, so I tried to trigger the user exit with different data, but it doesn’t work anyway.
    Maybe anyone of you have this kind of solution in your system or you just have some ideas where the problem could be?
    Any help will be appreciated!
    Thanks in advice!

    The issue is solved! I tried to put break point in function where this user exits are called and it didn't stop when I tried to run it from MSC1N. I tried to do the same from other transactions and found that this user exit is triggered from, for example, MIGO. And it is working fine.
    So the problem was that user exit SAPLV1ZE is not triggered from MSC1N. I'll have to find another user exit...

Maybe you are looking for

  • HELP!  My pages document is almost invisible!

    This is hard to explain... I did a bunch of posters on Pages last week. Yesterday, I upgraded to Snow Leopard, and when i went to open my pages Documents, they're almost invisible! The text blocks and the photos, etc, they're all there, but the only

  • Appending a record in an internal table while debugging

    Hi gurus,           i am trying to add one record in a internal table at run time in debugging mode. i am adding the same record which is already exist in that internal table to test for some scenarios.after adding adn once if i click save, all the d

  • Missing system font for template

    I was trying to load a template (Info, Checkbox), but am getting the error message that this project uses a missing system font: applemyungjo regular. Anyone know where I can get this font?

  • Can't write to locked folders

    Can you lock a folder and still write to it in OS X Server 10.4.6? Under previous versions of OS X Server, I could lock a folder (to prevent it being trashed inadvertantly) and still write files to that folder. Under OSX Server 10.4.6, locking a fold

  • Re: Query Transport

    Can i save two queries in a single transpot request and move the transport. Will there be any issue? Two queries from different data targets (DSO). Regards, Anand