Me23n user exit dynpro problem

Hello Everybody,
I'm developing a user exit for me23n transaction. I have added a tab in which i have some fields i want to fill, but i'm having the next problem.
when i enter in the me23n transaction,  i push the edit button and those fields appear on editable state, but when i modify the values and push save the fields the fields continue in editable state.
I have tried to solve this problem in the catching the MESAVE action in the pai of the me22 and calling leaving to the transaction me23 with the vnew values but it's not working. Any ideas?
Here is the source code ( dynpro 111)
process after input.
  field ekpo_ci-zzref_alb.
  field ekpo_ci-ZZFECH_DES.
  field ekpo_ci-zzeqveh.
  field ekpo_ci-zzmatricula.
  field ekpo_ci-zzeqtar.
  field ekpo_ci-zztarjeta.
  field ekpo_ci-ZZCENTRO_SER.
  field ekpo_ci-ZZREF_FACT.
  field ekpo_ci-ZZCLIENTE.
  field ekpo_ci-ZZPAIS.
  field ekpo_ci-zzdoc.
module user_command_0111.
module USER_COMMAND_0111 input.
if sy-tcode = 'ME23N' and sy-ucomm = 'METOGG'.
leave to transaction 'ME22N'.
endif.
if sy-tcode = 'ME22N' and sy-ucomm = 'METOGG'.
  leave to transaction 'ME23N'.
endif.
if sy-tcode = 'ME22N' and sy-ucomm = 'MESAVE'.
sy-ucomm = 'METOGG'.
  leave to transaction 'ME23N'.
endif.
Thanx

Hi,
Check the code below:
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = '0001'
language = sy-langu
name = sname "sales doc is given here
object = 'VBBK'
TABLES
lines = tlines.
if not tlines is initial.
LOOP AT tlines.
CASE sy-tabix.
WHEN 1.
ztable-field1 = tlines-tdline.
WHEN 2.
ztable-field2 = tlines-tdline.
WHEN 3.
ztable-field3 = tlines-tdline.
ENDLOOP.
UPDATE ztable SET field1= ztable-field1
field2= ztable-field2
field3 = ztable-field3
WHERE vbeln = vbak-vbeln.
ENDIF.
endif.
Regards
Kannaiah

Similar Messages

  • User  exit  needed (Problem related to duplicate batch entry in Migo(GR))

    Dear all,
                  I need a help from you.we facing problem in Goods receipt in MIGO.
    where we want to apply a check on batch which has already been assigned to a raw material in MIGO  .we are using manual
    batch entry .we don't want to make duplicate entry of same batch
    against any material.
    I tried to find out the user exit for that but i have not succeed .
    what is solution to
    avoid duplicate batch entry.

    Transaction Code - MIGO                     Goods Movement
    Exit Name           Description
    MBCF0002            Customer function exit: Segment text in material doc. item
    MBCF0005            Material document item for goods receipt/issue slip
    MBCF0006            Customer function for WBS element
    MBCF0007            Customer function exit: Updating a reservation
    MBCF0009            Filling the storage location field
    MBCF0010            Customer exit: Create reservation BAPI_RESERVATION_CREATE1
    MBCF0011            Read from RESB and RKPF for print list in  MB26
    MB_CF001            Customer Function Exit in the Case of Updating a Mat. Doc.
    No of Exits:          8
    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
    Rewards if useful.........
    Minal

  • User Exit related problem

    I have created one user exit for transaction CO02 .We acn navigate on different screens . My user exit works when you click on save button .
    But now problem is when you click on save button of on different screen first time it wont work . But if you go to main screen of CO02 and return back to other screen it works what may be the reason .
    thank you in advance .

    hi ragha,
    it is because the exit u used is allocated for a particular transaction..
    check it in SMOD .. give the exit name to see the documentation..
    thats the reason it doesn't work in the other screens..
    <b>reward if useful..</b>
    Message was edited by: Ashok Kumar Prithiviraj

  • EDI - IDoc - User Exit - Code - Problem - Help - Wanted

    Hi EDI Experts,
    I have extended ORDERS05 IDOC twice.
    ZVKSEG1 is the the segment under extended idoc ZVKORDRS05. This is for one partner.
    Z1DATESH01 is the segment under extended idoc Z1ORDER05. This is for another partner.
    I have completed the configuration thing in WE82 for both the extensions.
    Now the requirement is, whenever a PO is created for the first partner - 100290, the IDoc generated should contain the extra segment ZVKSEG1 and whenever PO is created for the second partner - 10099,the Idoc generated should contain the extrasegment Z1DATESH01.
    Using WE20, i have added the extended IDoc type in both the partner profiles under ORDERS message type.
    Now i've written the user exit for this using EXIT_SAPLEINM_002.
    tables: edidc.
    data: z_edidd like edidd occurs 0 with header line.
    data: y1dath01 like z1datesh01.
    data: yvkseg1 like zvkseg1.
    if edidc-rcvprn = '10099'.
    z_edidd[] = int_edidd[].
    loop at z_edidd.
    if z_edidd-segnam  = 'E1EDK01'.
    read table z_edidd  with key segnam  = 'Z1DATESH01'.
    if sy-subrc <> 0.
    y1dath01-DELDATE = sy-datum.
    clear z_edidd.
    z_Edidd-sdata = y1dath01.
    z_Edidd-segnam = 'Z1DATESH01'.
    append z_edidd.
    endif.
    endif.
    endloop.
    int_edidd[] = z_edidd[].
    elseif edidc-rcvprn = '100290'.
    z_edidd[] = int_edidd[].
    loop at z_edidd.
    if z_edidd-segnam  = 'E1EDK01'.
    read table z_edidd  with key segnam  = 'ZVKSEG1'.
    if sy-subrc <> 0.
    yvkseg1-name1 = 'ZVK Chemicals'.
    clear z_edidd.
    z_Edidd-sdata = yvkseg1.
    z_Edidd-segnam = 'ZVKSEG1'.
    append z_edidd.
    endif.
    endif.
    endloop.
    int_edidd[] = z_edidd[].
    endif.
    Could you please go through the code and tell me where did i go wrong. The extra segments are not being created for both the partners.
    I created PO using ME21n once for each vendor.
    Please help me out guys.
    Thanks,
    Matt

    I myself fixed this problem. I made use of XLFA1-LIFNR to manipulate the partner numbers.
    Thanks

  • User exit message problem

    hi all
    i am giving an error message in a user exit the error message comes as a pop up and moving ahead takes me out of the transaction i seriously donot want this.
    even worning messages are coming as success ones
    is there a way out for giving error msg
    regards
    navjot

    Post details of the transaction code you are trying to issue the message in, and of the exit you are using.
    Often transactions have multiple user exits, and you may be using the wrong one to issue the message.
    In some cases like Purchase Orders you need to call SAP code / macros to add the message to a list of messages that the standard screen will then display.
    Andrew

  • User Exit---Include problem

    Hi all
    am creating a user exit ZFF67 and in the the enhancement assignment am giving as F40K0001.But when i go back and after saving and activating am going to the function module and there in the source code am double clicking on   INCLUDE ZXF40U01 but am getting a warning meessage
    Program names ZX... are reserved for includes of exit function group.Am getting the same error even if am trying to create some other user exit.If its a BASIS issue and if you know the solution.Please do help me
    with regards
    Vijay.

    Hi
    Press ENTER..
    That should be only warning: the system are saying to you you're creating an abap object reserved for enhancement, but it's what you have to do.
    The system can't know you want to create an include for an exit, because you're in abap editor while doing the doubleclick.
    So you can go on.
    Regards
    Kiran Sure
    *P.S--Close the Duplicate Postings..

  • User-exit for problem req cretaion

    Good morning!!
    i want to pass some data from project to a purchase requisition, does anybody know a user-exit in purchase requistion creation?,
    Thanks in advance

    hai,
         ya you can do it by using the enhancement componet MEREQ001, in that select function module EXIT_SAPLMEREQ_005 can be used for urchase requisition creation, change also.

  • User exit EXIT_SAPMM06E_016 problem

    Hi,
    I am doing some modifications to EXIT_SAPMM06E_016, include ZXM06U41 and I am having some trouble. I have a validation for the GL account used. When it fails validation, I want to issue an error message.
    What I do is I go to ME32K then enter an agreement. Once in the agreement, I click a line item (i.e. Item 10) and then click the button Account Assignments. Since the GL account used is incorrect, it fails the validation. Therefore an error message should be triggered.
    The problem is that the error message is displayed as a pop-up and when I press the OK button, it will exit to the SAP Area menu. What I want it to do is to exit to the screen where I selected the line items of the Contract.
    Is there a way of having the error appear in the status bar (bottom) of the screen instead of having it displayed as a pop-up box?
    Note: I did the same validation to EXIT_SAPMMO6E_012, include ZXM06U43 and it seems to work fine there.
    Thanks.

    This exit is a PBO exit ("Export Daten zum Kundensubscreen für Einkaufsbelegposition (PBO)" which export data for customer fields) use the PAI exit EXIT_SAPMM06E_017 ("Export Daten zum Kundensubscreen für Einkaufsbelegposition (PAI)") where error messages are allowed; It can only improve things.
    Look at documentation of Enhancement MM06E005 Customer Fields in External Purchasing Documents and online documentation for MESSAGE statement
    Regards

  • User Exit for checking Purchase Requisitioner Field in CJ20N Transaction

    Hi,
    I want user Exit for checking Purchase Requisitioner field while making PR through CJ20N transaction. I have trie EXIT_SAPLEBND_001 user exit. Problem in this user exit is I am not getting Purchase Requisitioner No & Item No in I_CEBAN
    structure.
    Please suggest what to do ?
    Regard's
    Shabbir

    Hi,
    You can check with this BADI ME_PROCESS_REQ_CUST. 
    Kindly refer below mentioned link for further details:
    Badi ME_REQ_POSTED  For CJ20N Transaction
    Hope this will help you.
    Regards,
    Mudita

  • Modify a value of a field in dynpro, from a User-Exit

    Hi guys, i have a problem and i wish you can help me.
    In transaction IW32, I am using EXIT_SAPLCOIH_002 to generate a stock transfer order with BAPI_PO_CREATE1. Once this bapi is used, it gives me the number of the document created.
    I need to put this number in the field PMSDO-BSTKD (Customer purchase order number) of the dynpro.
    First, i tried to modify directly the database (from table pmsdo), but naturally, the dynpro is not updated and when i save the document, it overwrites with a blank value.
    Then I tried to use a field symbol directly to the variable of the program of the dynpro, like this:
    FIELD-SYMBOLS: <rv_bstkd> TYPE pmsdo-bstkd.
        ASSIGN ('(SAPLCOI3)PMSDO-BSTKD') TO <rv_bstkd>.
        <rv_bstkd> = ls_return-message_v2.
    But its has no effect in the screen.
    Lastly, i tried to use two FM C14Z_DYNP_WRITE_FIELD and C14Z_DYNP_READ_FIELD
    With the "READ" one, I can read the value on the screen. Then with the "WRITE" one, i can write a new value. (that i can, once again, read it, with the new value!). But when I exit the user exit and return to view the screen, the field is still in blank (or with the previous value).
    Any, Ideas? I would be grateful for any suggestions.
    Thanks in advance.

    Hi Jguerra,
    Please try FM 'IQS1_FILL_WA_FROM_BUFFER'.
    Please see a sample code, am not sure about it, but i just give a try.
    data: Lv_VIQMEL like VIQMEL.
    CALL FUNCTION 'IQS1_FILL_WA_FROM_BUFFER'
           EXPORTING
                I_QMNUM        = CAUFVD_IMP-QMNUM
                I_AKTYP        = 'V'
           IMPORTING
                E_VIQMEL       = Lv_VIQMEL
           EXCEPTIONS
                NUMBER_INITIAL = 1
                OTHERS         = 2.
    check sy-subrc = 0.
    if Lv_VIQMEL-MSAUS is initial.
        move 'X' to NO_RELEASE.
    endif.
    Regards,
    Antony Thomas

  • Free Goods Problem and User Exit if needed in Sales Order

    Hello All,
    The problem is related to Free Goods in Sales Order which is given with an example -
    We have maintained Free Goods ( T Code - VBN1) in inclusive scenario which is as follows -
    For 210 PAC (Pack) of Material A 18 PAC Free.
    Where 1 PAC = 20 BT (Bottle) and 20 PAC = 1 CV (Case Pack)
    In the material master of Material A the Base Unit Of Measurement (UOM) = PAC and Sales UOM = Blank so that we can use any conversion factor maintained for the material.
    The conversion factors maintained for Material A are as follows -
    1 BT = 1BT
    1 PAC = 20 BT
    1 CV = 20 PAC
    Now when we are raising sales order for 11 CV the free goods are not generated in the Sale Order.
    Again if we maintain the Sales UOM in CV and raise the sales order it is showing :
    10 CV as main item and 1 CV as Free which is wrong because in the conversion factor we have already maintained 1CV = 20 PAC , Whereas in the inclusive scenario it is given 11CV = 210 PAC and 210 PAC = 18 PAC is free.So in any case it is taking into account 2 more PACs.
    Please suggest what need to be done in this case in respect of User Exit or Source Code in ABAP if needed.
    Thanks & Regards
    Priyanka Mitra

    Hello Priyanka Mitra,
    We are facing a problem same as you.
    How did you solve this problem?
    We are very glad if you teach it concretely.
    Please advise your solution to us.
    Thanks.

  • 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

  • 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.

  • User Exit Problem in Sales Order

    Hello All,
    This problem is related to Sales Order.I want the system to forcibly consider another line item and calculate its pricing while saving the sales order at the last moment.
    For Example in the sales order  I am giving 1st Line Item Material A of quantity 10 and Unit of Measurement BT (Bottle).Then when I am pressing the save button I want the User Exit of Material B as 2nd line item to be populated at that very moment which will be forcibly included and pricing will be calculated in that sales order.The user exit should work at this level.
    Now considering the above scenario please suggest solutions in SD / ABAP regarding the successful running of User Exit in the  Sales Order are required to attain my requirement.
    Looking forward to some valuable suggestions.
    Thanks & Regards
    Priyanka

    Hi priyanka,
    though ur requirement is a bit complex i suggest userexits in this kind of scenarios wont help..rather an additonal program needs to be inserted in the standard sales order program..but for ur reference i am sending the list of all the user exits used in price determination. and the requirements fullfilled by them....  .hope it may help u....and cater to ur requirements....
    User Exits For Price Determination
    u2022     USEREXIT_PRICING_PREPARE_TKOMK (module pool SAPLV60A, program RV60AFZZ)
    This user exit allows you to copy additional fields for pricing in the TKOMK communication structure (header fields), which have not been provided in the standard SAP system. These fields can also be used for pricing in the billing document.
    This user exit is described in detail in the "New fields in pricing" section.
    u2022     USEREXIT_PRICING_PREPARE_TKOMP (module pool SAPLV60A, program RV60AFZZ)
    This user exit allows you to copy additional fields for pricing in the TKOMP communication structure (item fields), which have not been provided in the standard SAP system. These fields can also be used for pricing.
    This user exit is described in detail in the "New fields in pricing" section.
    u2022     USEREXIT_FIELD_MODIFICATION (module pool SAPMV61A, program MV61AFZA)
    You can use this user exit to adjust the display of individual lines in the condition screen by changing the display attributes of the screen fields. This does not include the display of subtotals.
    This user exit is also used in order processing.
    u2022     USEREXIT_FIELD_MODIFIC_KZWI (module pool SAPMV61A, program MV61AFZB)
    You can change the display of subtotals in the condition screen by changing the display attributes of the screen fields.
    This user exit is also used in order processing.
    u2022     USEREXIT_FIELD_MODIFIC_KOPF (module pool SAPMV61A, program MV61AFZB)
    You can adjust the display of subtotals in the condition screen to your requirements by changing the display attributes of the screen fields.
    This user exit is also used in order processing.
    u2022     USEREXIT_FIELD_MODIFIC_LEER (module pool SAPMV61A, program MV61AFZB)
    You can adjust the display of blank lines in the condition screen to your requirements by changing the display attributes of the screen fields.
    This user exit is also used in order processing.
    u2022     USEREXIT_PRICING_CHECK (module pool SAPMV61, program MV61AFZA)
    You can install additional checks to the standard checks of condition lines (e.g. maximum/minimum value).
    u2022     USEREXIT_PRICING_RULE (module pool SAPLV61A, program RV61AFZA)
    In the standard SAP system, it is predefined which condition categories and classes can be copied or recalculated per pricing type. You can change the predefined standard procedure for each pricing type.
    u2022     USEREXIT_CHANGE_PRICING_RULE (module pool SAPMV61A, program MV61AFZA)
    You can use this user exit to change the pricing type that has been predefined in the copying control table in billing.
    u2022     USEREXIT_XKOMV_BEWERTEN_INIT (module pool SAPLV61A, program RV61AFZB)
    This field is used in the formulas and therefore initialized before the loop for the pricing procedure starts.
    u2022     USEREXIT_XKOMV_BEWERTEN_END (module pool SAPLV61A, program RV61AFZB)
    Within a loop for the price components during pricing, specific values can be transferred into the communication structures in pricing to be further processed.
    u2022     USEREXIT_XKOMV_ERGAENZEN (module pool SAPLV61A, program RV61AFZB)
    In change mode, you can change the dynamic part of the condition record (KONVD) that is always redetermined (i.e. it is not stored in database table KONV).
    u2022     USEREXIT_XKOMV_ERGAENZEN_MANU (module pool SAPLV61A, program RV61AFZB)
    You can use this user exit to change the ready-for-input fields of the manually entered condition record in add mode in the condition screen.
    u2022     USEREXIT_XKOMV_FUELLEN (module pool SAPLV61A, program RV61AFZB)
    This user exit is always called up during a redetermination of all or individual price components. You can change the work fields of the condition line. However, this only applies to conditions that have been determined via a condition record.
    u2022     USEREXIT_XKOMV_FUELLEN_O_KONP (module pool SAPLV61A, program RV61AFZB)
    This user exit is always called up during a redetermination of all or individual price components. You can change the work fields of the condition line. However, this only applies to conditions that have been determined via a condition record. This may include subtotals, manually entered conditions or conditions that have been calculated with a formula.
    u2022     USEREXIT_PRICING_COPY (module pool SAPLV61A, program RV61AFZA)
    You can change the KONV fields for copied price components.

  • Problem in triggering the code for CO02 User Exit

    Hi,
    I am using the code for the Tcode CO02 (User Exit) and i am facing a problem that when i am using the code as a normal program it is executing fine and displaying the pop up window and showing the data in it.
    But when i am using that code in the USER EXIT code it is not trigerring that pop up window.
    I am using the enhancement:-
    *PPCO0007 * - Exit when saving production order
    And the include in which i am writing the code is :-
    INCLUDE ZXCO1U06
    plzz provide me guidelines for solving this problem.

    hi ,
    i am using the following: -
    Enhancement No.  ->  PPCO0007 (Exit when saving production order)
    When i click on the enhancement the following is displayed:-
    Function exit  ->   *EXIT_SAPLCOZV_001 *
    When i double click the function exit  the code i had written in the following include:-
    INCLUDE ZXCO1U06
    plzz tell me whether i am doing it right or worng?

Maybe you are looking for

  • Macbook pro won't detect VGA display

    My MacBook Pro (15-inch i7 Early 2011) won't detect an external display using an apple mini displayport -> VGA connector using 10.7.3. All cables and the monitor are fine because my white macbook detects the LG monitor without any problem. I have rea

  • Hide selection screen option on the base of Transaction code

    Hi , i have created one report with two diffrenet transaction code . now we have two different selection  options on the base of Transaction code. how can i do coding for this . anyone has any sample code .. thanks, Jack

  • How do i turn off the nuance voice system?

    Everytime I try to make a call, as soon as I flip open the phone the nuance system starts. How do I shut it off?

  • Problems with video settings after upgrade to  final cut 5.0

    I upgraded my G5 to 10.4.10; and final cut to studio 5, and alkso tried studio 2 final cut 6 both times I get the message: cannot find firewire device. I am using a Sony DSR 25 dvcam deck, and it is recognized a such on the firewire buss in the About

  • URGENT : Dynamic rowHeight in TileList

    I am dynamically populating a TileList with data from a database.  There are multiple rows in the TileList, but each row needs to be a different height depending on the data that is populated, and the row height needs to adjust dynamically to that da