Blocked stock field should get populated in ME21N

Hi ,
When i check the Returns check box,the stock type should be changed from Unrestricted use to blocked stock in ME21N transaction.
Could you please tell me how to do this?
Any possibility with Badi or user exit?
Thanks
Srini

BADI ME_PROCESS_PO_CUST .
here you can add the Logic .

Similar Messages

  • QA11 Blocked stock field as uneditable

    Hi,
    Can any one tell me how to disable the blocked stock field ( In inspection lot tab  of QA11 transaction )
    for input based on PO item category ? Is there any user exit or Badi for that ?
    Regards,
    Krishnam Raju
    Edited by: krishnam raju on Apr 10, 2009 5:50 PM

    i guess, in ur case, user exit or badi is right solution. I guess, u know, How to find available user exit for a transaction......for search BADIs, follow below method,
    This is the way to find BADI in transaction
    1. Go to the TCode SE24 and enter CL_EXITHANDLER as object type.
    2. In 'Display' mode, go to 'Methods' tab.
    3. Double click the method 'Get Instance' to display it source code.
    4. Set a breakpoint on 'CALL METHOD cl_exithandler=>get_class_name_by_interface'.
    5. Then run your transaction.
    6. The screen will stop at this method.
    7. Check the value of parameter 'EXIT_NAME'. It will show you the BADI
    for that transaction.
    actually, the above piece is copied from other thread.
    after finding a approapriate user-exit/badi, u can code like
    if PO_item_category = item_category_make_disable_field
    Loop at screen
    if......screen = XXX
    screen-input = '0'
    modify screen
    endif
    endloop.
    endif
    these days i dont hv sap access, so, pls. just take my code snippet as an idea.
    thanq
    Edited by: SAP ABAPer on Apr 11, 2009 4:46 AM

  • Forwarding Agent details should get populated in E1EDKA1 segment

    Hi all,
    Below is the requirement of client.How we can solve this?
    Forwarding Agent details should get populated in E1EDKA1 segment.
    regards,
    nitin patil

    Raghavan,
    Thanks for your reply.
    I have tried this user exit but unfortunately required data is not available more over if i change the route here system is again changing this route in another enhancement section.
    Could you please let me know in which user exit i can get the Forwarding agent details entered in the Purchase order so that i can export and import these details into required place.
    Thanks for your help.
    Warm Regards,
    Sridhar

  • Blocking a table from getting populated

    Hi All,
    Anybody knows about How to block a table from getting populated at the time of executing a Transaction?. If i execute MM01 transaction I want to block the table MARC only from the population. Is it possible? If possible, please let me know.
    Regards

    hi ,
    One way is that functional guy change the configuration through which we can restrict entry in any table.
    Secondly,   find an enchancemet through which u can delete particular entry before populating the table.

  • Fom field not getting populated

    Hi,
    I have a field in the form role(multi select field). The value of another field in the form 'abc' is depedent on role selection. I have a rule with a switch and case statements for this. In the rule i am using
    <Rule>
    <switch>
    <ref>role</ref>
    <case>
    </case>
    </switch>
    </Rue>
    I tested the rule and it's working good.
    Now i am calling the rule in the field 'abc':
    <Field name='abc>
    <block trace'true'>
    <Expansion>
    <rule name='xxx'/>
    </Expansion>
    </block>
    </Field>
    The prolem here is that, even after i select the role, this field is not getting populated. It is empty.
    Not sure what i am missing. Please help.
    Thanks,

    step1) when you are getting value in the field on which "abc" is dependent , how are you getting that value?you are getting this value in derivation or expansion???
    step2: write the code logic for field "abc" in Derivation instaed of expansion. That should help.
    Please let me know if you are still facing the problem.
    Warm Regards,
    G

  • Foreign key fields not getting populated in datacontrol palette for EJB app

    Hi,
    I am quite new to ADF and EJB.I developed a jdeveloper application with JSF and EJB tiers.(I am using jdeveloper 10.1.3.5)
    For database the default HR database is used.I created the entities for the EMPLOYEES and DEPARTMENTS table.
    I also created a session bean and a data control for the session bean.
    I am having a JSF page that receives all the details of a new Employee and insert into database (i.e persistEntity)
    But the Employees constructor from the Data control palette is not populating the MANAGERID and DEPARTMENTID fields which are
    the foreign key constraints for the EMPLOYEES table and hence while trying to persist the entity
    with the auto populated fields an error message is thrown.
    If I used ADF BC instead of EJB then i could populate all the fields including MANAGERID and DEPARTMENTID.
    Is it possible to have two text fields for Manager and Department in the jsf to insert the Employee details with EJB as the Model?.
    If possible how do I bind the values of these fields to the Employees entity object in EJB.
    Kindly need your insights on this.
    Thanks,
    Guna.

    Hi,
    How are you using MANAGER_ID and DEPARTMENT_ID fields, are they exposed as Long (or some other numeric type), or did you map them on the entity, something like this
    @ManyToOne
    private Employee manager; // this by default uses the column named MANAGER_ID
    @ManyToOne
    private Department department; // this by default uses the column named DEPARTMENT_ID
    .... If you mapped them (which is the right way), when you create an employee you should set these attributes before persisting the entity, by using employee.setManager(manager) and employee.setDepartment(department). Then, the foreign keys get populated automatically by your persistence provider (Toplink).
    If you are using data controls, it is a little different process to set the department and manager, but you should take a look at this tutorial http://www.oracle.com/technology/obe/obe11jdev/ps1/ejb/ejb.html , it will hopefully answer a lot of your questions.
    Pedja

  • During PO creation vendor material no field should be populated using BADI

    Hi,
    I have created on PR and using PR I am trying to create PO. But one field vendor material no  remains blank when giving vendor at the top vendor field.
    So my requirement is the vendor material no field in item overview should be populated regardless filling vendor field at the top.
    So this functionality can be achieved by BADI or User exit.
    So any one give the proper suggestion to get the value in the vendor material no field while creating PO.
    Waiting for quick response.
    Best Regards,
    Bansi

    Hi,
    use the badi ME_PROCESS_PO_CUST in that method PROCESS_ITEM....
    use GET_DATA method like im_item->get_data.
    and modify the value anduse set_data ...
    Thanks,
    Shailaja Ainala.

  • Amount not getting populated in me21n

    hi,
    amount is not getting populated for the condition type in the conditions tab of me21n.

    Hi
    Have you maintained Info record with conditons? Please write in detail.
    regards
    Srinivas

  • Workday field not getting populated in BAPI_ENTRYSHEET_CREATE

    Hi MM gurus,
    I am trying to upload service entry sheets using bapi's , i checked the note 420334 and its working fine now.But, i want to populate  the workday field also in the service entry sheets, but this field is not getting populated even if i enter this field in the test data directory.
    Can anyone give me the reason for this?

    Hi
    Are you trying to populate the workdays field using BAPI in SE37 transaction??
    If you are executing the BAPI in SE37 then the data would not get updated in database.
    You need to run the BAPI FM & another BAPI "BAPI_TRANSACTION_COMMIT" in sequence in SE37 to post the data in database.
    I hope this helps.
    Thanx
    Prasad

  • XREF3 field not getting populated in BSEG table while posting MIRO

    Hi,
         I have one query in MIRO tcode.I have activated xref3 field in MIRO tcode using enhancement LMR1MF6Q.Now when i try to post document with some values in xref3 field on screen ,value is not getting populated in BSEG table.Please tell me what else needs to be done to achieve this ?
    any hint on this?
    Thanks & Regards,
    Soniya S.

    Hi,
    1.- According to SAP Note 904652 - MIRO: Different from FB60
    https://service.sap.com/sap/support/notes/904652
    MIRO is an independent Materials Management (MM) transaction that does not
    claim to be the same as the accounting transactions (such as FB60 or FB01).
    MIRO was developed to allow users to process vendor invoices within the
    context of the MM procurement processes as simply as possible.
    For this reason, among other differences, the field selection was limited
    to the absolutely necessary. For example, the following fields from the
    accounting document are not available in Transaction MIRO (this list is not
    complete):
    Reference key (BSEG-XREF1, -XREF 2, -XREF 3)
    2.- SAP Note 1156325 - BAdIs in the Logistics Invoice Verification environment
    https://service.sap.com/sap/support/notes/1156325
    Have a look at badi MRM_ITEM_CUSTFIELDS.
    This badi will create a new tab at item level in order to display the new fields.
    I haven´t used this badi so i cannot talk from experience here.
    Think twice before deciding.
    Best regards.

  • Regarding: table having block stock field sales order wise

    Hi,
    I am working on report in which i have to display the block stock sales order wise ,i had used to tcode MB52 and MMBE and i was first using table MCHB and MARD ,it displays only the bocked stock ,but when i click on  special stocks icon in tcode MB52 n execute it the qty displayed in that is not being able to be displayed in the tables MARD n MCHB.
    right now i am using table MSKA and varifying it with MB52 tcode.
    PLZZ HELP ME OUT BY telling me which table to be used for displaying the block sales order wise.
    Edited by: ric .s on Mar 6, 2008 11:19 AM

    Hi,
    Try out this.
    DATA: is_object                TYPE sibflporb,
                it_relation_options TYPE obl_t_relt,
                is_relation_options TYPE obl_s_rolt,
               gt_links                    TYPE obl_t_link.
               is_object-instid    = <sales order number with leading zeros>.
               is_object-typeid   = 'BUS2032'.
               is_object-catid     = 'BO'.
    *u201Ddocument relation
    is_relation_options-sign      = 'I'.
    is_relation_options-option   = 'EQ'.
    is_relation_options-low        = 'ATTA'.
    APPEND is_relation_options TO it_relation_options.
    TRY.
        CALL METHOD cl_binary_relation=>read_links
          EXPORTING
            is_object           = is_object
            it_relation_options = it_relation_options
          IMPORTING
            et_links            = gt_links.
    ENDTRY.
    GT_LINKS should be filled if sales order has attachment.
    Regards,
    Sudhakar

  • Fields Not getting Populated in Queries on Multi Provider

    Hi All,
    Product class,Product form and Packet size from Zqn6x03 (ods) are not getting populated in Queries(Multiprovider). Our`s is Heterogenous Multi Provider
    Points will be awarded.
    Thanks in Advance....

    Hi xys redd,
    After checking all the options it is very much important to run a report "RSR_GEN_DIRECT_ALL_QUERIES" IN SE38.
    This is the report used to generate all the changes to reflect in BEx
    It will aolve your problem if am not wrong.
    Don't forget to assign points.
    Venkat

  • How to populate data in MPP through F4 search help(the field should get filtered as per key)

    Dear Experts.
    I am new to ABAP and hence trying jmy hands on various ways of peforming a task.
    I have a requirement. I want to maintain a database tables through MPP :  ZLT_Auftrag (Refer Screen Shot 1: Doubt MPP1) and ZLT_Kunde (Refer Screen Shot2: Doubt MPP2)
    The fields of ZLT_Kunde are: K1, K2, K3
    The fields of ZLT_Auftrag are: A1, A2, A3, A4, P1 P2 and P3 are related as per the key field "A3"   (Here A3 = K2)
    I want the User to be able to Maintain this table through the Screen that I had created using MPP. (Plz refer the attached Screen Shot3:Doubt MPP3  of the SCREEN in MPP)
    When I populate the Kunde name(K1) in the SCREEN (Can be done by F4 Search help), then on hitting the pushbutton "Get Kunde" the  kunde Code (K2) appears . Now from here it can be deleted or even a new Kunde name and code can be saved dirctly to the database table : ZLT_Kunde. (Refer Screen Shoot4: Doubt MPP4)
    For Example for Kunde (K1)= BASF, Kunde Code (K2) = BSF, the Auftrag should be all those values from ZLT_Auftrag (where A3 = BSF)
    When I try to populate the Auftrag value on the SCREEN then on hitting F4 (already created for table ZLT_Auftrag in se11) then I get all the values of Auftrag (A1) from the table ZLT_Auftrag. (Ply refer Screen Shot 5: Doubt MPP5)
    MY REQUIREMENT: Here I want that either through F4 help or through drop down ONLY those values of Auftrag-A1 should appear on the SCREEN which satisfies the condition: A3 = K2
    I am unbale to get how to do that.
    I need your valuable suggstions.
    Regards
    Chandan

    And the  code of the MPP is:
    *& Module Pool       SAPMZDEMO_MPOOL_03
    PROGRAM  SAPMZDEMO_MPOOL_03.
    TABLES:  ZLT_MITA, ZLT_Kunde, ZLT_Auftrag, Zlt_Stdsatz.
    DATA: flg_lock  TYPE c,
    *      indx  TYPE i,
    *      indxk TYPE i,
    *      indxa TYPE i,
    *      TCNT TYPE sy-tabix,
          lv_msgv1  TYPE  sy-msgv1.
    *DATA: it_mita    TYPE TABLE OF ZLT_mita,
    *      it_kunde   TYPE TABLE OF ZLT_KUNDE,
    *      it_auftrag TYPE TABLE OF ZLT_AUFTRAG.
    *&      Module  STATUS_9000  OUTPUT
    *       text
    module STATUS_9000 output.
      SET PF-STATUS 'ZSTATUS01'.
    *  SET TITLEBAR 'xxx'.
      If flg_lock is Not initial.
        LOOP at Screen.
      If screen-group1 = 'G1'.
      Screen-input = 0.
      MODIFY SCREEN.
           Endif.
        ENDLOOP.
          MESSAGE s000(8i) WITH 'Mitarbeiter already locked by user' lv_msgv1.
      ENDIF.
    endmodule.                 " STATUS_9000  OUTPUT
    *&      Module  USER_COMMAND_9000  INPUT
    *       text
    module USER_COMMAND_9000 input.
    *To Populate Data into Mitarbeiter through Pushbuttons
      CASE sy-ucomm.
        When 'OK_GET'.
          Clear : flg_lock.
            IF ZLT_MITA-M1 is NOT INITIAL.
                SELECT SINGLE *
                FROM  ZLT_MITA
                Where M1 = ZLT_MITA-M1.
    *To create a Lock Object so that when two or more employees are accessing the same data
    * at the same time then for the new user the data gets locked and only can been seen in
    *display mode
            IF sy-subrc = 0.
            CALL FUNCTION 'ENQUEUE_EZLT_MITALOCK'
             EXPORTING
               MODE_ZLT_MITA        = 'E'
               MANDT                = SY-MANDT
               M1                   = ZLT_MITA-M1
    *           X_M1                 = ' '
    *           _SCOPE               = '2'
    *           _WAIT                = ' '
    *           _COLLECT             = ' '
             EXCEPTIONS
               FOREIGN_LOCK         = 1
               SYSTEM_FAILURE       = 2
               OTHERS               = 3
            IF sy-subrc <> 0.
              flg_lock = 'X'.
              lv_msgv1 = sy-msgv1.
            ENDIF.
            ENDIF.
            ELSE.
                MESSAGE S000(8i) With 'Enter Mitarbeiter Name'.
            ENDIF.
        When 'OK_SAVE'.
           Modify ZLT_MITA.
           IF sy-subrc = 0.
             MESSAGE s000(8i) With 'Data Saved'.
           ENDIF.
        When 'OK_DELETE'.
            IF ZLT_MITA-M1 is NOT INITIAL.
                DELETE
                FROM  ZLT_MITA
                Where M1 = ZLT_MITA-M1.
              IF sy-subrc = 0.
                MESSAGE S000(8i) With 'Data deleted'.
              ENDIF.
            ENDIF.
    *     When 'OK_FIRST'.
    *           indx = 1.
    *     When 'OK_NEXT'.
    *           indx = indx + 1.
    *     When 'OK_PREV'.
    *           indx = indx - 1.
    *     When 'OK_LAST'.
    *           Describe Table it_mita lines indx.
    *To Populate Data into Kunde through Pushbuttons
        When 'OK_GETK'.
            IF ZLT_Kunde-K1 is NOT INITIAL.
                SELECT SINGLE *
                FROM  ZLT_Kunde
                Where K1 = ZLT_KUNDE-K1.
            ELSE.
                MESSAGE S000(8i) With 'Enter Kunde Name'.
            ENDIF.
        When 'OK_SAVEK'.
           Modify ZLT_Kunde.
           IF sy-subrc = 0.
             MESSAGE s000(8i) With 'Data Saved'.
           ENDIF.
        When 'OK_DELETEK'.
            IF ZLT_KUNDE-K1 is NOT INITIAL.
                DELETE
                FROM  ZLT_KUNDE
                Where K1 = ZLT_KUNDE-K1.
              IF sy-subrc = 0.
                MESSAGE S000(8i) With 'Data deleted'.
              ENDIF.
            ENDIF.
    *To Populate Data into Auftrag Through Pushbuttons
        When 'OK_GETA'.
            IF ZLT_KUnde-K2 is NOT INITIAL.
                SELECT SINGLE *
                FROM  ZLT_Auftrag
                Where A3 = ZLT_Kunde-K2.
            ELSE.
                MESSAGE S000(8i) With 'Enter Kunde Name'.
            ENDIF.
        When 'OK_SAVEA'.
           Modify ZLT_Auftrag.
           IF sy-subrc = 0.
             MESSAGE s000(8i) With 'Data Saved'.
           ENDIF.
        When 'OK_DELETEA'.
            IF ZLT_Auftrag-A1 is NOT INITIAL.
                DELETE
                FROM  ZLT_Auftrag
                Where A1 = ZLT_Auftrag-A1.
              IF sy-subrc = 0.
                MESSAGE S000(8i) With 'Data deleted'.
              ENDIF.
            ENDIF.
    *To Populate Data into Position Thorugh Pushbuttons
        When 'OK_GETP'.
            IF ZLT_Auftrag-A2 is NOT INITIAL.
                SELECT SINGLE *
                FROM  ZLT_Auftrag
                Where A3 = ZLT_Kunde-K2.
            ELSE.
                MESSAGE S000(8i) With 'Enter Kunde Name'.
            ENDIF.
        When 'OK_SAVEP'.
           Modify ZLT_Auftrag.
           IF sy-subrc = 0.
             MESSAGE s000(8i) With 'Data Saved'.
           ENDIF.
        When 'OK_DELETEP'.
            IF ZLT_Auftrag-A1 is NOT INITIAL.
                DELETE
                FROM  ZLT_Auftrag
                Where A1 = ZLT_Auftrag-A1.
              IF sy-subrc = 0.
                MESSAGE S000(8i) With 'Data deleted'.
              ENDIF.
            ENDIF.
        When 'OK_EXIT'.
           Leave Program.
        When 'OK_CLEAR'.
          Clear : ZLT_MITA, ZLT_KUNDE, ZLT_AUFTRAG.
    *              it_mita, it_kunde, it_auftrag,
          CALL FUNCTION 'DEQUEUE_EZLT_MITALOCK'
           EXPORTING
             MODE_ZLT_MITA       = 'E'
             MANDT               = SY-MANDT
             M1                  =  ZLT_MITA-M1
    *         X_M1                = ' '
    *         _SCOPE              = '3'
    *         _SYNCHRON           = ' '
    *         _COLLECT            = ' '
    ENDCASE.
    endmodule.                 " USER_COMMAND_9000  INPUT
    *&      Module  user_cmd_9000  INPUT
    *       text
    module user_cmd_9000 input.
      If sy-ucomm = 'OK_CANCEL'.
      LEAVE PROGRAM.
      ENDIF.
      IF sy-ucomm = 'OK_EXIT'.
          LEAVE PROGRAM.
      ENDIF.
    endmodule.                 " user_cmd_9000  INPUT

  • Functional Area field not getting populated in the AUFK table

    Hi Friends,
    The table AUFK is the table for Internal Order master data.
    The issue which we are facing is:
    In a particular Order type, the field 'Functional Area' is suppressed in the field status group for the order master data.
    But the cost centers which are maintained in the order master has the functional area field populated with value.
    In the table AUFK, the functional area field is populated for some internal orders and not populated for others. In all cases it should pick the functional area from the cost center which is maintained in the internal order.
    Please guide us about what can be the possible reason(s) for populating the field in some cases while not populating in other cases.
    Thanks a lot in advance for your help.
    Regards,
    Shilpi

    Hi,
    maintain the functional area in order master data to ensure 100% functional area is available in AUFK.
    I can't tell you the reason why its sometimes appearing and sometimes not bur FUNC_AREA is not picked from responsible/requesting cost center (from master data).
    If in customizing of internal order order types a "model-order" is assigned with maintained functional area, this func_area is taken if you create a new order for this ordertype.
    Best regards, Christian

  • Custom field not getting populated in the "Show Results where" drop down

    Hi all,
    In appointment detail page by clicking on Add button on the user related information section , it takes us to a search layout showing the list of available users.
    Here we have to filter the user's based on a custom field which has already been created in the user object. But I am not able to add the custom field in the "Show results where" drop down for which the search has to be done.
    It is getting reflected in the normal search layouts.So Can any one tell me why the change is not getting reflected in the user related info search layout?

    I tested your use case and you are correct. I would recommend that you submit a service request to CRM On Demand customer care in reference to this issue.

Maybe you are looking for