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.

Similar Messages

  • MIGO : need vendor material no field ( IDNLF ) as input / output field

    Hi friends  ,
    My requirement is : In MIGO transaction 
                                 under material tab for item detail  ( SAPLMIGO      SCREEN NO : 310 )
                                 to make vandor material no ( IDNLF ) AS Input enable  .
    i have make field as i/p o/p field in screen attributes but it's still in display mode for MIGO transactiom
    kindly reply me with elaborated step  .
    Thanks & Regards
    Digvijay Rai

    Hi,
    First of all, why do you want Vendor Batch no & material no while doing receipt against process order.  You can enter the same while doing a GR against Purchase order & same can be tracked using some reports.
    As you said, since you are doing a receipt against the Process order, vendor doesn't come in picture. Hence the vendor batch no: or vendor material no: wont be populated as per Std.SAP.  You can check for some enhancements/BAdi's in MIGO transaction to populate the same.
    Thanks & Regards,

  • Field restriction for ME22N using BADI

    Dear All,
    i had a requirement in which i had to restrict ME22N transaction for a particular user for a particular document type
    so i used BADI ME_PROCESS_PO_CUST now the requirement has changed and the user wants the restriction only on three fields rather than entire transaction.
    is there any provision in BADi by which i can prevent changes made to a  particular fields the fields are QUANTITY,RATE PER UNIT & PAYMENT TERMS fields,by throwing error message if changes are done and  for other fields changes should be allowed .
    my code is as below
    method IF_EX_ME_PROCESS_PO_CUST~CHECK.
    IF SY-TCODE = 'ME22N'.
      DATA: IT_MEPOHEADER  TYPE MEPOHEADER.
        IT_MEPOHEADER = IM_HEADER->GET_DATA( ).
         IF IT_MEPOHEADER-BSART = 'ZLNB' OR IT_MEPOHEADER-BSART = 'ZLUB' OR IT_MEPOHEADER-BSART = 'ZLS'
            OR IT_MEPOHEADER-BSART = 'ZLC' OR IT_MEPOHEADER-BSART = 'ZLFO' OR IT_MEPOHEADER-BSART = 'ZLLN'
              OR IT_MEPOHEADER-BSART = 'ZLDB'.
           IF SY-SUBRC = 0.
                IF SY-UNAME = 'ABAP05'  .
                        Message 'You are not authorized to use ME22N for the given  document type' type 'E'.
                 ENDIF.
             ENDIF.
          ENDIF.
         ENDIF.
    endmethod.
    can anyone plz help me
    Thanks in advance,
    Ronak

    Dear All,
    plz let me know if there is any other alternative (other than BADI) to restrict based on filteration for user , document type , and the three fields i have mentioned..
    Regards Ronak

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

  • Script task error during the creation of partition by reading a table and using AMO - SSAS 2012

    Hi,
    I need to create SSAS (tabular) and process partitions in an authomatic manner. Moreover, the partitioning is respect to a category, an year and a month.
    Category, year and month are resident on a table to read to create the SSAS partitions.
    So, in a SSIS pkg:
    a. I've created a data flow task to read the SQL Server table having category, year and month data,
    b. I've connected the output of the ole db source as the input for a recordset destination, associated to an object variable,
    c. I've used a for each loop container (ado enumerator) specifying the object variable and three variables, for category, year and month,
    d. inside the for each loop container I've created a script task using AMO (visual basic) to control for any existing partitions, if not presents to create the new ones and then to process them.
    For the first iteration, a new partition has been created and processed successfully, but then, for other category, year and month values the script task fails. I've controlled the code many times and I've tried to put returning messageboxes but I've found
    anything. The error is a generic one and no other info are returned.
    Well, any suggests to me in order to solve this issue, please?
    Many thanks

    Hi, thanks, I've solved adding to the code end the SSAS server connection termination.
    Bye

  • Date Profile -- custom date field should be populated.

    Hi All,
    I am creating a sales order from CRM Web UI. I am having Configurable Product. to create a sales order.
    If i click on configure product button, I can maintain the parameter values (Months) while creating a sales order.
    Now my question is i need the "Sales Order End date" automatically populated with "Sales order start date" + above menctioned Parameter value by months.
    Please let me know if you need any more details.
    What i have done is i created a date rule to configure this and added the parameter in the generated ABAP code for date rule.
    But i am not having any luck to populated the value.
    Please show some light to move further.
    Thanks in Advance.
    Regards,
    Siva

    Hi Sushma,
    Create 2 Date instances for 'FromDate' & 'ToDate' with required values & set them.
    Example:
    java.sql.Date fromDate = new java.sql.Date(109, 1, 1); // This is 1st Feb, 2009
    wdContext.currentTimelogElement().setFromDate(fromDate);
    Similarly, java.sql.Date toDate = new java.sql.Date(109, 1, 6); // This is 6th Feb, 2009
    wdContext.currentTimelogElement().setToDate(toDate);
    For details, refer http://java.sun.com/j2se/1.4.2/docs/api/java/sql/Date.html
    Hope this answers your query.
    Kind Regards,
    Nitin
    Edited by: Nitin Jain on Feb 6, 2009 6:41 AM

  • Hiding fields in a screen using BADI

    Hi Experts
    I want to invisible certain fields  in the screen for certain users and it should be made  visible for certain users,the requirement is to do with badi.Can anyone help me regarding this issue.
    Thanks & Regards
    Pravitha

    Use (or Create) authorization [field|http://help.sap.com/saphelp_nw04/helpdata/en/52/67168c439b11d1896f0000e8322d00/frameset.htm] and [object|http://help.sap.com/saphelp_nw04/helpdata/en/52/6716a6439b11d1896f0000e8322d00/frameset.htm], in the BAdI [check this authorization|http://help.sap.com/abapdocu_70/en/ABAPAUTHORITY-CHECK.htm] and change the INVISIBLE field and not the ACTIVE field in SCREEN structure.
    - [Programming Authorization Checks|http://help.sap.com/saphelp_nw04/helpdata/en/52/6712ac439b11d1896f0000e8322d00/frameset.htm]
    Inform system admin to manage those new object and field in the user roles. ([SAP Authorization Concept Modules|http://help.sap.com/saphelp_banking463/helpdata/en/5c/deaa74d3d411d3970a0000e82de14a/frameset.htm])
    Regards,
    Raymond
    NB: The "d" of BAdI should always been in lowercase, except in statement GET BADI...

  • Make a field of transaction mandatory using badi/exits.

    Hi ,
    I'm asked to make a field of transaction CO11 mandatory.when the user enters a value into scrap/rework field, a message has to be displayed saying that reason for variance is mandatory and should allow the user to enter the value into this without exiting from the transaction.
    Please give me the solution other than creating transaction variant thruogh SHD0.

    hai krupa, go to se24 and type CL_EXITHANDLER in this class go to method GET_INSTANCE and put break poitn at CALL METHOD cl_exithandler=>get_class_name_by_interface  and u enter the transaction and ur debug will stop at this point and see the exti name in exit_name field , this is the badi used in particual screen , and where u want to get the message find the badi definition , and go to transaction se19 and implemetn it and here u cna check the condtion and put the message
    afzal

  • Validate a field entered in infotype using BADI

    I am writing code in PAI method of BADI HRPAD00INFTY for implemetation class CL_PT_P2012_IF to capture the number the hours entered in infotype 2012 and validate that it is not more than 40. I am not able to field any field in the parameters which corresponds to number of hours entered by the user. Can anyone please suggest me a way to get them.
    Regards,
    Saurabh

    In The PAI
    FIELD <DATEFIELDNAME> MODULE CHECK_DATE ON INPUT.
    In Proram
    MODULE CHECK_DATE.
    <Your Check here>
    ENDMODULE.
    The above module will be triggered only on an entry or change in the date field
    Cheers

  • How to set screen properties for Customer fields in PO(Enhanced using BADI)

    Hi All,
    I have added one custom tab with seven fields in the PO item level using the BADI 'ME_GUI_PO_CUST  and ME_PROCESS_PO_CUST'.
    Now i want to change the screen property dynamically. According to some calculation i need to change the customer fields in display mode and change mode. when ever it is in change mode i need to set the fields as mandatory.
    How can i implement this logic using this BADI. Please help in solving this issue.
    Best regards,
    Kannan. B

    Hi,
    Try adding the code in the PBO part of your custom program used for the custom screen which you have created and added inside the BADI.
    Regards,
    Harish

  • Re: Default value in field Plant during PR creation (tcode: ME51N)

    Hi,
    It seems parameter id is not available for defaulting a value in field PLANT during PR creation?
    Is there any option i can use on this instead? thanks in advance.
    Rgds,
    She

    Hi She,
    Go to ME51N Trxn code and Click on Personal Setting Tab and Here You can set you Palnt as Default in Default Values Tab.
    If It is not there in Default Values then Click on More Fields tab and Select Plant then copy and save.
    Reg,
    Ashok

  • Vendor material number in purchase order

    Hello,
    I have the following problem :
    When i create a purchase order (transaction ME21N), the vendor material number (field IDNLF) will be suggested from the purchasing info record.
    It isn't the case, the vendor material number is empty.
    I don't understand why.
    Do you have an idea ?
    Thank you

    Hello,
    Vendor Material Number;  Material number used by the vendor, Usually we saw this field in Info records.
    We can see the same field in ME21N in Material data tab ( Item level of the PO), If Vendor and Material combination have correct info record and if suppose user has maintained  Vendor Material number field,  then while creation of PO for the combination of particular material and vendor system will get Inforecord price in PO and  system will populated Vendor Material number in Material data tab of the PO in item level.
    Thanks and Regards
    Mahesh Naik

  • Vendor material no is not replicated in R/3

    Hi Everyone,
    I have an issue related to replication of vendor material no in SAP R/3. During shopping the vendor material no could be seen in table CRMD_ORDERADM_I in EBP R/3 but they are not replicated in SAP R/3 system after transferring. Can any one tell where these tables are created in SAP R/3?
    Looking forward for help or pointers in this regards.
    Regards
    Dinesh Singh

    Dinesh,
    you can check if crmd_orderadm_i-partner_prod is transfer to your backend with debug. start se37 transaction and run MF bbp_reqreq_transfer with the number of your shopping cart.
    create a shop with approver, and put a break-point in FM META_PO_CREATE. You'll see if the N° is in transfer structure.
    If you want to debug the bapi in R/3 you have to change the RFC user in Dialog mode (user-exit exists in BAPI_PO_CREATE).
    You can check in backend, if the field can be filled by creating a PO manually with me21 Transaction.
    Regards,
    Bertrand

  • Creation of materialized view

    Hi All,
    We had created some other materialized view with for small set of data. The materialized view name is ‘XXCA_PAGL_RECON_GL1_TRANS_MV’ and it has created a table with the same name.
    What I am unable to understand is that the new table which was created by the system during the creation of materialized view is in VALID state but the materialized view is in INVALID state.
    Please help me to understand this process.
    Thanks in advance
    Venkatesh

    The column dba_objects.status for mviews is set to INVALID when the base tables are updated. See Metalink note 454552.1. It is normal.
    Edited by: YasinBaskan on Feb 17, 2009 2:07 PM

  • Payment Term in PO based on Vendor / Material / Plant Combination

    Hi,
    The payment terms in Purchase Order are defaulted from the payment terms maintained in Vendor Master. Hence, if we order any material on vendor, then also, the same payment term gets copied to Purchase Order.
    We have set different Payment Terms with Vendor based on the material which we purchase from him. For example - For some materials, we have set payment terms as 30 Days Credit & for other materials, we have set payment terms as 60 Days Credit.
    Presently the concerned buyers are changing the conditions manually while creating the purchase order. We would like to have this defaulted in the purchase order based on Vendor / Material / Plant combination.
    Can we use 'Condition Group' in Purchasing Info Record for this purpose?
    If yes, how can we default the payment term from Purchasing Info Record to Purchase Order?
    Regards,
    Prashant Kolhatkar

    Hi,
    Thanks for your reply.
    In this case -
    1) I create the info record manually for vendor / material / plant combination.
    2) Create PO for this combination.
    3) After PO is created, then the payment term can be maintained in Info Record.
    Is this correct?
    If so, then where can we maintain this Payment Term in Purchasing Info Record?
    If maintained, then for further POs, should this get copied from the Info Record instead of Vendor Master?
    Regards,
    Prashant

Maybe you are looking for

  • What happens to the old phone at the time one gets (upgrades) to the 3G?

    So, I understand that the old phone stops working when you upgrade to the 3G, as they will transfer your number to it's SIM. I am wondering how instantaneous it is, and what actually happens, i.e. is displayed on the old phone. I am thinking of upgra

  • How do I turn off |INFO| entries in my server.log files?

    Sun Java System Application Server 8.2 How do I turn off |INFO| entries in my server.log files? Is this a setting in the admin console that I am over looking? Thanks, --Todd [#|2006-06-01T09:48:43.776-0500|INFO|sun-appserver-pe8.2|javax.enterprise.sy

  • Need Optimized Solution to insert a table with 70 columns

    Hi, I need to insert almost 13 million records to a table which has 70 columns, and each column is a derived one.I have used the pl/sql tables to get all the 13 million records and process them, it takes 3 mins for 100 records. Any optimized solution

  • Light table question

    I would like to take a layout that I make on the Light Table and export that layout to use on a webpage. I see I can export the images to the web but I would like to keep the layout intack and not just sent the individual images. I would also like to

  • Droid DNA battery life after kit kat update cut in half

    Since the kit kat update,  my battery has gone from lasting about 13 hours to barely 7. If I am actually using the phone heavily it's less.  If I look under usage, Android system is shown at 76% with Facebook being next highest at 6%. I haven't insta