Dynpro exit ampl. MEREQ001

Hi all
I have a custom field in dynpro exit SAPLXM02 111 of ampliament MEREQ001
My problem: I have a custom field in this dynpro, if i  choose some value in matchcode the other custom field must put input = 0.
how do it? thanks all.
rewards for all

Hello Fabrizio,
let's say you have the fields ZZ_OWN1  and ZZ_OWN2.
At  PBO you would store the value of ZZ_OWN1 to a programm field ZZ_OWN1_OLD.
At  PAI you would have:
CHAIN.                                                    
   FIELD: ZZ_OWN1.
   FIELD: ZZ_OWN2.                                            
    MODULE RESET_ZZ_OWN2.
  ENDCHAIN. 
In that module reset_zz_own2 you could simply ask, if ZZ_OWN1 has change and reset ZZ_OWN2.
Regards
Wolfgang

Similar Messages

  • How to create a Dynpro Exit in  my own report? (in 46c)

    Hi all,
    i have written an report. the selection screen contains a tab strip for the parameters and select optios these are the standard parameters for the program. one of the tabstrips contains only a subscreen where customer specific parameters and select options should appear. i have done this in 47 with the screen BADI but in 46 they are not available. so how could i do that in 46?
    there is the statement:
    CALL CUSTOMER-SUBSCREEN b INCLUDING 'SAPLX...' dynnr.
    has anyone some example coding?
    Message was edited by: Steffen Engert

    Hi Steffen,
    If it is a Z Report, then I don't see any need for an user exit or BADI for this. In the screen PBO module and PAI module u can write codes that dynamically filters the search help values based on the screen values. For this do as follows.
    1) Use FM dynpro_values_read to read the field value in the subscreen based on which the other fields must show the search values(customer specific parameters).
    2) Then code for the other fields ON VALUE REQUEST filled up with internal tables containing the appropriate search values.
    3) You can use the FM F4_int_value_request for the same.
    Thus, when the user selects a particular customer in the subscreen, other fields can show search helps based on this.
    Bingo!!! This will work. Don't confuse yourself with BADIs and other exits.
    Cheers,
    Sam
    Is it like you want to make the

  • User Exit in ME51N: EXIT_SAPLMEREQ001 Problem with header

    Hello together,
    I am using EXIT_SAPLMEREQ001 and EXIT_SAPLMEREQ003 to change custom fields in the item. But i have the following problem:
    When I call IM_REQ_ITEM->get_data(  ) in EXIT_SAPLMEREQ001 it has always the BSART 'NB' and not the
    one the user has chosen. It seems that it has always the state from the start of the programm where the default for BSART is "NB"

    User Exit
    PR -
    MEREQ001
    PO -
    MM06E004  Control import data screens in purchase order
    MM06E005  Customer fields in purchasing document
    ME_PROCESS_PO_CUST (BADi)
    Hope the above helps.
    Regards,
    Vivek

  • User Exit in ME51N & ME21N for checking stock at location

    Dear All,
    Requirement is to give error message while creatin a PR / PO for a material for whcih there is stock at XXXX storage location.
    Is there user exit for checking stock whiel creating PR and PO waih will check stock at a particular storage location ?
    OR any other way ..
    Regards,
    Rakesh

    User Exit
    PR -
    MEREQ001
    PO -
    MM06E004  Control import data screens in purchase order
    MM06E005  Customer fields in purchasing document
    ME_PROCESS_PO_CUST (BADi)
    Hope the above helps.
    Regards,
    Vivek

  • User-Exit of BADI in ME51n T-code

    Hi All,
           I need an urgent help. I want to change the line items data of the purchase requisition before it is saved. When we press the SAVE button in the ME51n transaction, I should be able to add total value of the REQUISITION to some non-significant field of each ITEM in the requisition.
           What all I need at this stage is the user-exit or BADI in which I can do this and where I can get the item details that can be changed in that user-exit. I tried all the user-exits in MEREQ001 include but couldnt find where the item details are stored and where to change the data.
         Any inf. on this will be very very helpful.
       Thanks in advance.
       Raja Sekhar.

    Hi friend,
    Try this ampliation at CMOD:
    WCOUP001
    Try this BADI:
    RDM_PROMOTION_WAK1
    Regards,
    Welinton Rocha

  • BADI / Exit ME51N SAVE button, modify items is possible

    Hi all,
    I have to save certain information in a PR items on having touched the button SAVE, have seen that passes for several exits, have the parameters type import.
    The last exit for the one that passes is the EXIT_SAPLMEREQ_006, but it does not have parameters.
    Would they know some exit or badi from where I could modify the items data on having touched the button SAVE?
    Thanks.

    Hi Gautham,
    I have already tried all the exits of MEREQ001.
    But I see no any exit where can modify the data when press SAVE.
    Thanks.

  • Trouble with MEREQ001

    I've been trying to implement this Purchasing requisition enhancement, and have gotten to display the tab in the req and have the fields attached to the EBAN table. I have also coded the include to capture data from the two new fields. The screen looks ok, but no data is written to the database. I must be doing something wrong, the values don't get written as they are entered 'too late'. Can any of the more experienced developers have a look at my code and give me some pointers?
    =========================================================
    Export Data to Customer Subscreen for Purchase Requisition(PBO)
    types: t_pur_req_item TYPE REF TO  IF_PURCHASE_REQUISITION_ITEM,
           t_pur_req_hdr  TYPE REF TO  IF_PURCHASE_REQUISITION.
    data: pur_req_item type t_pur_req_item,
          pur_req_hdr  type t_pur_req_hdr,
          s_item  type mereq_item,
          s_hdr   type mereq_header,
          l_mepo_doc   type MEPO_DOCUMENT,
          l_trans_type type TRTYP.
    data: ls_mereq_item like line of gt_mereq_item_tab.
    Determine transaction type
      pur_req_item = IM_REQ_ITEM.
    Get header data
      CALL METHOD pur_req_item->GET_REQUISITION
        RECEIVING
          RE_REQUISITION = pur_req_hdr.
      CALL METHOD pur_req_hdr->GET_DATA
        RECEIVING
          RE_DATA = s_hdr.
      CALL METHOD pur_req_item->GET_DATA
        RECEIVING
          RE_DATA = s_item.
      CALL METHOD pur_req_hdr->GET_TRANSACTION_STATE
        IMPORTING
           EX_DOCUMENT        =  l_mepo_doc
       EX_TCODE           =
       EX_UNCOMPLETE      =
       EX_PARKING_ALLOWED =
       EX_CHANGED         =
      l_trans_type = l_mepo_doc-trtyp.
      gl_trans_type = l_trans_type.
    Change or Display transaction
      if l_trans_type eq 'H'   "add
      or l_trans_type eq 'V'   "change
      or l_trans_type eq 'A'.  "display
        CALL METHOD pur_req_item->GET_DATA
          RECEIVING
            RE_DATA = s_item. * <---- it doesn't get populated with zzproject and zzdocument
    CALL METHOD pur_req_item->SET_DATA
      EXPORTING
        IM_DATA = s_item.
        read table gt_mereq_item_tab into ls_mereq_item
              with key
              banfn = s_hdr-banfn
              bnfpo = s_item-bnfpo
              zzproject = s_item-zzproject
              zzdocument = s_item-zzdocument.
        ls_mereq_item-banfn = s_hdr-banfn.
        ls_mereq_item-bnfpo = s_item-bnfpo.
        ls_mereq_item-zzproject = s_item-zzproject.  "Screen value
        ls_mereq_item-zzdocument = s_item-zzdocument.  "Screen value
        if sy-subrc is initial.
          modify gt_mereq_item_tab from ls_mereq_item index sy-tabix.
        else.
          append ls_mereq_item to gt_mereq_item_tab.
        endif.                                        "sy-subrc
        if  gl_banfn ne ls_mereq_item-banfn.
          gl_banfn = ls_mereq_item-banfn.
        endif.
        if gl_bnfpo ne ls_mereq_item-bnfpo.
          gl_bnfpo = ls_mereq_item-bnfpo.
        endif.
        if gl_zzproject ne ls_mereq_item-zzproject.
          gl_zzproject = ls_mereq_item-zzproject.
        endif.
        if gl_zzdocument ne ls_mereq_item-zzdocument.
          gl_zzdocument = ls_mereq_item-zzdocument.
        endif.

    Hi greg misiorek and others,
    I have the same requirement and the same problem .... i ve implemented the exit in MEREQ001 - exit - 003, Now i want the user specified field to be populated when the transaction is run for the display/change transactions .... ( Iam doing this in the item level )
    What should i do ?????
    Expecting ur answers ...
    Please revrt back if the question is not clear !
    Thanks In Advance ......
    R.Kripa.
    .........New Upcoming abaper ............

  • Error FI899 , FM_WRITE_CASH_FLOW_PR

    Hi
    While creating PO from a PR having 3000+ lines . I am getting the error as below,
    I will appreciate if some one can help me out to get rid of this error.
    FM_WRITE_CASH_FLOW_PR TOO MANY PO-LINES in MM document *********
    Message no. FI899
    Thanks
    Ganesh LK

    Hi
    You are Converting  PR to PO that contains 3000+ lines items ?? .I think so  This problem is due the number of line items in PR.
          You have to split the PR line items into multiple PR and then try to do PO.
      May be some other solution will be there to achieve these . I will try and let you know if i got any solution.
    Use the user exit to MEREQ001 to restrict the number of line in PR.
    Regards
    Anand

  • Webdynpro for abap 与 javascript 的问题

    WebDynPro for ABAP 的 VIEW 里面,可以写JAVASCRIPT吗?

    BSP的确支持Javascript,作为BSP的后续产品,Webdynpro当中针对客户的Javascript支持是被故意删除的,如同iPhone不支持Flash,既然是政治决策,我想SAP也不会轻易改变。BSP是过时技术,没有特殊原因不要用它开发新程序。
    建议你尝试用Webdynpro的其他技术实现你要的效果,比如你要用Javascript弹出警告窗口,也可以用Webdynpro的modal window,总之不要用BSP。如果是非用不可,也最好最小程度的使用,然后用Web dynpro的Exit plug跳转到BSP。等到你升级到NetWeaver 7.02,用Local Page Builder把Webdynpro和BSP做到一个CHIP里面显示。

  • Planned price in material master default in valuation price in PR

    Hello,
    I want to default planned price  of material master in valuation price of Purchase requisition,
    Currently MAP is defaulted in valuation price field in Purchase requisition.
    Is this possible by using any user exit?
    Regards

    Yes this is possible .you have to use the BADI    ME_PROCESS_REQ_CUST  and method PROCESS_ITEM  if the PR created manuallly or through MRP. Try this User exit also MEREQ001
    If the PR created through sales order you could use user exit in sales order   program name:SAPMV45A and subroutine : USEREXIT_MOVE_FIELD_TO_ME_REQ in the include MV45AFZB.
    Appreciate if it is helpful

  • ME51N/ME52N: Editable customer columns in ALV grid item overview

    Hi All,
    In purchase requisition ME51N-ME53N I added a customer tab with customer fields. But they are outputed every time in ALV grid item overview in display mode.
    Hence my question is how I can make them editable for tcodes ME51N/ME52N?
    The customer tab I implemented with the User-Exit enhancement MEREQ001. In the forum I found that I have to use for handling the fields in the ALV grid the BADI ME_PROCESS_REQ_CUST.
    Can anyone give me a working example?
    Thank you very much  in advance for your support!
    Kind regards
    Silvan

    Hi Sankarbabu
    Thanks a lot for your reply.
    May you have an example to modify the field catalog? I didn't find out how this can be done.
    Do I have to do the changes in the method "FIELDSELECTION_ITEM"? Curiously this method wouldn't be called...
    Kind regards,
    Silvan

  • Can't save screen 0111 in request

    Hi,
      I usr the screen exit of MEREQ001 0111. When I want to save the screen, it can not fill the package,  as a result
    it save to local.  And I cant modify it .
      How can I save the screen to package.
    Plz tell me.
    Thanks a lot.

    And one more issue is  you cannot save it to a standard SAP package ....you have to have your own package say. "Z***"  created under your client ....
    and any modifications to the screen will result in whole client object ...
    so  please make sure who have a package of yours on app server .... or create one .... and try to save the modified screen to it ..
    I hope this information is helpfull
    Regards,
    topppi

  • Do we run SAP console?

    Hi all,
    We run RFID devices in our ERP, so we set the users with screens to be able to be seen on the devices. Question is, does that mean we run SAP Console? How can i be sure we do? I'm just not sure as i'm new to these type of configurations.
    Thanks,

    Hi,
    SAP provide the standard solution for RF device, the system landscape for RF terminals:
    Different connection types of RF terminals
          - Graphical terminals that use the SAP GUI
          - Character-based terminals that use Telnet and the SAPConsole
          - Character-based terminals that use proprietary protocol (supported by hardware vendors) and the SAPConsole
    Screens and flow logic are developed entirely in the development environment of SAP
    You can replace each screen with your own specific screen without having to change the processing logic (dynpro exit)
    New device types are implemented easily
    Recovery is possible if the connection is lost and you set up the connection again.
    Merry Xmas
    Tao

  • Changing Item Values before saving Purchase Requisition in me51n, set_data function

    Hello,
            I have written a user exit, which is called whenever changes are made to a purchase requisition. User Exit is MEREQ001 , function module EXIT_SAPLMEREQ_010 . My requirement here is that the Requisitioner should be 135 for every PR item under certain conditions. Therefore whenever there is any change made to the PR, before saving the PR item, I need to set the Requisitioner to 135, give a status message saying that the Requisitioner is set to 135 and save the Pr with the changed values. Following is the code I have written in EXIT_SAPLMEREQ_010. However, the set_data function called below does not change the PR values. Pls help
    data: lt_item type mmpur_requisition_items,
           wa_item type mmpur_requisition_item,
           wa_itemdet type mereq_item,
           wa_itemref type ref to if_purchase_requisition_item,
           w_message type i.
    constants: c_135 type afnam value '135'.
    call method im_req_header->get_items
         receiving
                 re_items = lt_item.
        loop at lt_item into wa_item.
         wa_itemref = wa_item-item.
         wa_itemdet = wa_itemref->get_data( ).
         if wa_itemdet-afnam ne c_135.
           w_message = 1.
           wa_itemdet-afnam = c_135.
           call method wa_itemref->set_data( wa_itemdet ).
         endif.
       endloop.
      IF w_message = 1.
        MESSAGE 'Requisitioner defaulted to 135 for all items' TYPE 'I'.
      ENDIF.

    Hi Sachin,
               I am able to get a reference to if_purchase_requisition_item in my code (wa_itemref ) and am also able to access each of the line items in the PR in the work area wa_itemdet.
    At this point in the code ( wa_itemdet-afnam = c_135 ) , the work area value is set to '135', However, call method wa_itemref->set_data( wa_itemdet ), does not change the values of the work area wa_itemdet . Pls help

  • Problem with ME52N

    Hi all!
    My problem is: I have a programm thatcreates a Purchase order with a BAPI with ME51N and later I try to update Caracteristic Value Assigment of the material through CALL FUNCTION 'CUCB_CONFIGURATION_TO_DB' , the changes are not made correctly. If I check iit out, the caracteristicsof the material in ME52K are filled but not their values. Can anybody tell me any User Exit o something?
    Thank u very much!!

    Hi claragarlop ,
    ME52N Contains only one exit:
    Enhancement   MEREQ001                          Customers' Own Data in Purchase Requisition     
    Exits in ME21n
    Enhancement   ME590001                          Grouping of requsitions for PO split in ME59                    
    Enhancement   MEQUERY1     Enhancement to Document Overview ME21N/ME51N                    
    Enhancement   MM06E007      Change document for requisitions upon conversion into PO     
    I hope this may helpfull.
    Thank you,
    Thanks,
    AMS

Maybe you are looking for