ME51N - need to concatenate the PR # & the item # into a custom field.

Hi All,
I need to concatenate the PR number and the item number into a custom field in the customer data tab in transaction ME51N. I been looking at some user exits, but the problem is that when I try to use BAPI_PR_CHANGE in a user exit the BAPI failed, because the PR has not been committed to the EBAN table and it cannot fined it. The custom field is in the EBAN table. The other problem is that most user exits don't have access to the PR number. Can anyone tell me how I can update the custom field on a new PR creation after I click the save button?

Hi All,
I need to concatenate the PR number and the item number into a custom field in the customer data tab in transaction ME51N. I been looking at some user exits, but the problem is that when I try to use BAPI_PR_CHANGE in a user exit the BAPI failed, because the PR has not been committed to the EBAN table and it cannot fined it. The custom field is in the EBAN table. The other problem is that most user exits don't have access to the PR number. Can anyone tell me how I can update the custom field on a new PR creation after I click the save button?

Similar Messages

  • XRPM: Need to find the BADI for adding custom fields to  master data

    Hi,
      We have activated XRPM(4.0) business content and need to add some custom fields to some of the master data ( for example need to add custom fields to master data info object 0RPM_IHGU, 0RPM_IGCG etc).
      We have enhanced the data sources ( 0RPM_ITEM_HEADER_GUID_ATTR and 0RPM_FIN_CAT_GUID_ATTR respectively) in the source system  by appending additional fields to the append structure of the data source We are trying to find the BADI where we can implement the custom code.
      Can anybody help to find the particular BADI, id there one for all master data carrying data source in the xRPM source system?
      Thanks

    Dear Arunava,
    1) In your R3 goto  SE16 --> open table ROOSOURCE.
       Search for your OLTP source...eg: 0RPM*
       The column  EXTRACTOR will give you the module name.
    2) Also look/follow the link:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9f668696-0701-0010-22be-a278e4587b68
    Currently available BAdIs include:
    RPM_BUPA_CUST_FIELDS BUPA customer fields
    RPM_CALC_BUPA_BPFTE Calculate the business partner availability
    RPM_CALC_STAFF_ICON calculate the staffing icon
    RPM_CREATEUSR_NAME Generates user names
    RPM_HR_IN_IF001 Customer exit for inbound time processing
    RPM_HR_IN_IF002
    RPM_HR_IN_IF003
    RPM_HR_IN_IF004
    RPM_HR_IN_IF005
    RPM_HR_IN_IF006
    RPM_INTEGRATION_OPTS get and set the project integration options
    /RPM/OBJECT_SERVICES Object support services
    /RPM/PERSON_CUST_FLD Resource customer fields
    RPM_PROCESS_DATA Inbound processing of time data by customer
    Good Luck, BB

  • How to know all the items into a block

    Hello everybody.
    Im working with Forms and Reports 10G.
    A fast question.
    I need to know all the items into a block.
    I know that with the get_block_property first_record and Last_record I can know the first and last item into a record but
    how I can know all the others?
    Thanks in advanced and regards to all.
    Happy Cristmast

    You can the fisrt item in a block by using GET_BLOCK_PROPERTY('BLOCKNAME', FIRST_ITEM);
    then loop over the item
    LOOP
      vcItem:=GET_ITEM_PROPERTY(vcItem, NEXTITEM);
      EXIT WHEN vcItem IS NULL;
    END LOOP;

  • My ipods disabled and it needs to connect to itunes. During the restore a window pops up and says i need to type the password into my ipod but i can't. what do i do?

    My ipods disabled and it needs to connect to itunes. During the restore a window pops up and says i need to type the password into my ipod but i can't. what do i do?

    Then try DFU mode and then restore.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings

  • I need to get the value of a text field that is located in another page JSP

    I need to get the value of a text field that is located in another page JSP. How do I do that?

    Well you see, I have a page at angelfire.com, which
    does not support JSP. I want to call a script located
    at mycgisever and then, when pressing a link on the
    former page, the JSP page is loaded, and the script
    get the value from the text field on the OTHER page.
    Is this possible?I know nothing about cgi. But that should not prevent me from understanding what can and cannot be done, assuming cgi is sort of comparable with jsps.
    I'm unable to understand your description clearly. Try to explain it better. Give precise steps that you intend to follow and I should be able to help you further.
    So you have a page1.
    You hit submit from page1.
    That goes to the cgiserver.
    From the cgiserver, programmatically load up the jsp.
    search this for the text field.
    Display it on your page2.
    Is that what you are trying to do?
    BTW, won't be able to help you with cgi scripting at all. Can help with Java and Jsp.

  • Want to put URLs into a custom field in the requirements

    I tried to put some code into a custom field in Empirix eManager. I was trying to add a URL to the requirement where the person could see more information. Specifically, we have use-cases online and a mockup of the final product to be developed. I wanted to put a mockup URL and use-case URL for each of the requirements where appropriate to help the developers further understand their task.
    So, I did added something like this into the custom field when creating the test case:
    View Textbook Use Case
    Unfortunately the javascript didn't execute because the eManager application put the whole command in as a string. What displayed is exactly what you see above. I'm sure this is done for security reasons so that cross-sight scripting is protected against. However, I'm not trying to do anything suspect -- just trying to link things together.
    So I went to the database for our project in eManager. I could bypass the security coding that disallows code to be placed into the field by adding it at the database level. However, when I got there it became evident that I didn't know the datamodel well enough to successfully add a field value there without possibly causing some problems. In the past I've only queried the database and not any modifications.
    Can someone tell me how a custom field value is inserting into the database? Which tables does it need to be added to to maintain referential integrity? Or alternatively, do you have a document with the schema outlined? Are there any important stored procedures we'd be missing if going directly at the database. Can anybody advise me?

    Hello Gandalf,
    If you created a customer field in OXK3, I am afraid that the customer defined field created is only
    available on G/L account line items but not Customer or Vendor line items(The field is not available on SAPMF05A screens 301 and 302).But it is possible to use it in fast entry screens SAPMF05A 8xxx (see note 2596).
    Best Regards,
    Gladys xing

  • Custom PL/SQL API that inserts the data into a custom interface table.

    We are developing a custom Web ADI integrator for importing suppliers into Oracle.
    The Web ADI interface is a custom PL/SQL API that inserts the data into a custom interface table. We have defined the content, uploader and an importer. The importer is again a custom PL/SQL API that will process the records inserted into the custom table and updates the STATUS column of the custom interface table. We want to show the status column back on the spreadsheet.
    Defined the 'Document Row' import rule and added the rows that would identify the unique record.
    Errored row import rule, we are using a SELECT * from custom_table where status<>'Success' and vendor_name=$param$.vendor_name
    The source of this parameter is import.vendor_name
    We have also defined an Error lookup.
    After the above setup is completed, we invoke the create document and click on Oracle->Upload.
    The records are getting imported, but the importer program is failing with An error has occurred while running an API import. The ERRORED_ROWS step 20003:ER_500141, parameter number 1 must contain the value BIND in attribute 1.'

    The same issue.
    Need help.
    Also checked bne.log, no additional information.
    <bne:document xmlns:bne="http://www.oracle.com/bne">
    <bne:message bne:type="DATA" bne:text="BNE_VALID_ROW_COUNT" bne:value="11" />
    <bne:message bne:type="DATA" bne:text="BNE_INVALID_ROW_COUNT" bne:value="0" />
    <bne:message bne:type="ERROR" bne:text="An error has occurred while running an API import"
    bne:cause="The ERRORED_ROWS step 20003:ER_500165, parameter number 1 must contain the value BIND in attribute 1."
    bne:action="" bne:source="BneAPIImporter" >
    <bne:context bne:collection="collection_1" />
    </bne:message><bne:message bne:type="STATUS"
    bne:text="No rows uploaded" bne:value="" >
    <bne:context bne:collection="collection_1" /></bne:message>
    <bne:message bne:type="STATUS" bne:text="0 rows were invalid" bne:value="" >
    <bne:context bne:collection="collection_1" /></bne:message></bne:document>

  • Failed to update in the Item Master Form ATO field checked

    Hi All ,
    I am trying to implement B2B ( Back to Back Order ) and to implement the B2B the ATO should be checked irrespective of Manufacturing is installed or not.
    Now the problem is I am able to update some of the item but failed to update some of the item and it gives error " the Sales Order Line is opened you can not
    check the ATO".
    Now I did to avoid this I updated the columns BUILD_IN_WIP_FLAG to 'Y' and REPLENISH_TO_ORDER_FLAG = 'Y' in the Item master table .
    And I was successfully able made further transaction of the open sales order line.
    I wanted to know to updating the field BUILD_IN_WIP_FLAG to 'Y' and REPLENISH_TO_ORDER_FLAG = 'Y' will impact our bussiness in Future.
    Regards,
    Sharad

    Hello Sharad,
    First thing, if you are implementing B2B in your system then your organization is a Manufacturing organization or distribution organization?
    If this is not a Manufacturing organization, then the item should be a Buy Item along with ATO attribute enabled. So that the B2B requisition created & then PO.
    If you are implementing Assemble to Order in Manufacturing organization, then your ordered item should be a make item not a buy item. For this sub assembly or finally assembly you need to define the bill, routing etc. After that once you book the ATO sales order, the work order will be created. & the process continues.
    The error "the Sales Order Line is opened you cannot check the ATO", comes when you are having open sales order exists & you are trying to update item attributes. It is always advisable to close all the sales order lines in this case before changing the same.
    Unless & until you are using BOM & WIP in your organization, change of BUILD_IN_WIP_FLAG will not affect. Please make sure not to update these attributes from backend using database update script.
    Regards,
    Jyoti Ranjan Mohanty

  • Need to convert the binary data in blob field to readable format

    Hi,
    We need to convert the Binary data in the BLOB field to readable format and need to display it in Oracle Apps Environment,does anybody come across the similar requirement.
    please advise, thanks in advance.
    Regards,
    Babu.

    You could use standard Attachments functionality here ... if the blob is not in FND_LOBS, insert into FND_LOBS, fnd_attached_documents etc to enable viewing via "Attachments" to the entity the blob is related to.
    Gareth

  • Need to split the output into files

    Hi,
    I have a query regarding splitting the output into different files. Please help to resolve that.
    I have have select query query...
    SELECT INDEX_NAME FROM DBA_INDEXES WHERE TABLE_NAME=<Table Name>;
    If it returns less than 4 indexes then we have create one table and have to move those into the files.
    For example...
    File_1.sql
    ====
    index1
    index2
    index3
    If select statement returns more than 4 indexes then we have create 4 files and have to splict those indexes and has to move to those 4 files.
    For example....
    If select statement returns 13 records then...
    File_1.sql File_2.sql File_3.sql File_4.sql
    ===== ====== ======= =======
    index1 index4 index7 index10
    index2 index5 index8 index11
    index3 index6 index9 index12
    index13
    Index no need to be in order in any file and any file can I extra index in it.
    Can be ok if we have any procedure or shell script. Please help me on this?
    We are using 10.2.0.1 oracle db. Please let me know if you need any thing else?
    Thanks
    Pathan

    Are you trying to put the output from SQL reports in different files?
    Some reporting tools can do this.
    You have a couple of options to do this.
    Some reporting tools support the functinality to write to different files.
    Another way is to write a PL/SQL procedure using UTL_FILE, which can open multiple files based on your conditions and to write to them as you need to.
    An older, less elegant solution is to write nested SQL*PLUS scripts spooling to different files with the queries you need. A top level script would invoke the others, something like (untested)
    --in first script
    @subscript1
    @subscript2
    --in subscript1.sql
    spool whatever.lst
    select *
       from dual;
    ...

  • In OWB I need to update the target table with same field for match/update

    In OWb I am trying to update the target table with the match and the update on the same field can this be done. I am getting a error match merge error saying you cannot update and match on the same field. But in SQl my select is
    Update table
    set irf = 0
    where irf = 1
    and process_id = 'TEST'
    Hwo do i do this in OWB.

    table name is temp
    fields in the table
    field1 number
    field2 varchar2(10)
    field3 date
    values in the table are example
    0,'TEST',05/29/2009
    9,'TEST',05/29/2009
    0,'TEST1',03/01/2009
    1,'TEST1',03/01/2009
    In the above example I need to update the first row field1 to 1.
    Update temp
    set field1 = 1
    where field1 = 0
    and field2 = 'TEST'
    when I run this I just need one row to be updated and it should look like this below
    1,'TEST',05/29/2009
    9,'TEST',05/29/2009
    0,'TEST1',03/01/2009
    1,'TEST1',03/01/2009
    But when I run my mapping I am getting the rows like below the second row with 9 also is getting updated to 1.
    1,'TEST',05/29/2009
    1,'TEST',05/29/2009
    0,'TEST1',03/01/2009
    1,'TEST1',03/01/2009

  • PM Reports: Need to find the sum of a particular field in the output.

    Hello Experts,
                          I have an issue. I have developed the report to calculate the power per ton. It is PM module.
    Input is : DATE & Measuring Point.
    Output required is : For a particular date , What is the power consumed per ton.
    Its is calculated by the formula Power consumed per day /  Production.
    I have multiple entries for production ( because different material are used )  per date and a single entery for power (because power is taken as total power consumed per day)
    Hence im getting the output as
    For example:
    date                power            production         power/ton
    01.03.2011      5000                    100                  50.00
    01.03.2011      5000                      50                 100.00
    01.03.2011      5000                      25                 200.00
    01.03.2011      5000                      75                  66.66
    The desired result is
    date                power            production         power/ton
    01.03.2011      5000                    250                  20.00
    I need to sum the production field.
    How can I achieve this ?
    Please help.

    Hello
    Rotate the loop and use event so on change just clear the variable based date condition .
    take 2  temp variable for summation
    clearing the total and moving value on permanent variable means modifying the itab.
    loop at .
    *Clear
    on change <datefield>.
    modify itab from wa  transporting <field name> .
    clear <total field>.
    endon.
    *Total
    t_prd  = t_prd + production..
    t_power = t_power + power .
    endloop.

  • How to generate a trigger in the CIF on ECC custom field ?

    Hi
    We have an intercompany scenario in ECC where we use a custom transaction to convert the stock transfer order into a sales order (at the source plant).
    As the 2 objects are not technically linked in ECC, we modified the CIF in order to delete the stock transfer during the transfer for the Source location in APO, so we only see the sales order at this location and not anymore the STO.
    However this custom transaction is not modifying any standard field in the stock transfer at the point of conversion, therefore there is no trigger to APO generated.
    Do you know an easy way to generate this trigger ? we tried with the bapi po_change to modify some standard fields, but no field is really secured to play with. We'd rather prefer to generate a trigger out of a custom field.
    Thanks in advance,
    Fanny

    Hi Fanny ,
    Here is a thought .
    You want to delete the sto in APO because  you dont want the demand to double dip. That is after you have converted the sto to a sales order using your custom program , unless you delete the sto your demand will show up both in so and sto which is necessarily a duplication of demand.
    But there is no need to delete the sto for that. You can make the demand element of the sto as not relevant to pegging . After converting your sto to so , if you mark the demand of the sto as non relevant to pegging then , sto demand will not be accounted for when calculating the stock availability and the demand element will not be displayed in the planning book also. So the only impact in this case will be that the order will be visible in the receipts view though it will not affect the stock . I think this will serve your purpose. Just give it a thought.
    But if you decide to follow this approach, you have to put in custom code to pick the relevant sto's and mark them as non- relevant to pegging. Also you have to configure the ATP category corresponding to the sto to pick the confirmed quantity and display the same in the planning book . Otherwise the sto demand will show up in the planning book.
    Thanks
    Saradha

  • Where it is possible to change the value separator in Custom Field?

    Hello,
    This is a question around the "Custom Fields" and "Lookup Table"
    I linked a "Custom Field" to a "Lookup Table".
    I select the option "Allow multiple values to be selected from lookup table"
    When I used this "Custom Field" in a view, the selected values are separated by a comma ",".
    Where it is possible to change this value?
    I saw another project server where the character is a semi-column ";" and I would like to test with ";".
    Thank you in advance
    Pascal Jean

    Hi,
    This will be triggered by your regional settings.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |
    Hello,
    Thank you for the answer.
    Do you mean the "local regional settings"?
    Because, depending on the PWA site I'm connected to I don't have the same values. I'm obviously using the same workstation.
    Regards

  • How to enhance the standard search with custom field?

    Hi all,
    I would like to know the general optimal procedure to enhance the standard searches like Opportunity search or Lead search.
    I've gone through some of the threads here. Some suggest, to add the new field using AET and copy the IMPL class of the search and then code the custom logic. Some say, append the new field to the structure of the search object and then implement the BADI.
    I'm actually a bit confused to understand the correct procedure.
    Can someone please help me with a generic procedure to enhance the standard search with a custom field?
    Thanks in advance.

    Hi Maren,
    Once I have got the same development. I have followed the below steps, please check with this. Let me know for further inputs.
      Add new field using Append structure of type ‘XXX’ in search
      Create BADI implementation for Enhancement spot ‘ES_CRM_RF_Q1O_SEARCH’ and include filter ‘BTQOPP’
      Put your logic in BADI implementation – SEARCH method
      Add it in WebUI configuration
      Remove the operator if required
    Regards,
    Swadini Sujanaranjan

Maybe you are looking for

  • How to make more than one version in XCode?

    So i have already created an app and summited version 1.0 to the app store it was approved and is now live on the app store. I also have created version 1.1 with minor improvments and released that one with an update as well and is also now live. My

  • My iPhone 4 isn't being detected by iTunes or My computer.

    i have an iphone 4, and randomly my iPhone wasn't being detected by iTunes or my computer. i tried resetting the settings on my device, and the "apple mobile  device" settings on my computer and still nothing. I'm worried because i'm buying a iPhone

  • Extending an Existing Instantiated Object and ClassCastException

    I am trying to wrap a class around an object that is returned from a third party. "Requirement" is a class that extends "Dispatch". "Dispatch" is a class that is returned from the third party. I am getting a class ClassCastException error. requiremen

  • Dynamic scipt files and SET VERIFY in XE

    Hope someone can help. I am going through the Oracle sql fundamentals course an have tried to run the following in 10g express: select * from &table_name; Keep getting the following error: ORA-00903: invalid table name Also tried using SET VERIFY ON

  • Uninstalling an application in Creative Cloud

    How can I uninstall the Adobe Premiere Pro CS6 in my Creative Cloud? The Premiere Pro application is in my computer but the configuration doesn't want to work, so I want to uninstall it and then, reinstall it.