How can I update some field values after entering mat. number in purc. req?

Hi.
We want Account Assignment Category field to come as "K" for some material numbers. After we enter material number in ME51N screen, if material number is one of our "K" related materials, Account Assignment Category field should be updated automatically as "K".
Account assignment tab becomes active in item level after entering "K" and we want "cost center" field to be filled in that tab according to given material number.
These fields can be updated during creating or when saving the purchase requisions. Any suggessions please?
Regards.

Hi faramozza ,
you can achieve this by implementing either customer exit or BADI.
In purchase requisition context these could be useful:
Customer Exit:
MEREQ001
BADI:
ME_PROCESS_PR_REQ
Regards
REA

Similar Messages

  • How can i transfer a field value in the main report to its sub-report?

    <p><font face="Arial" size="2">How can i transfer a field value in the main report to its sub-report?</font></p><p><font face="Arial" size="2">Please eloberate with example if possible!</font></p><p><font face="Arial" size="2">Thanks...</font></p><p> </p>

    <p>You can do a couple of things - one would be to pass the information using the data linking expert.  Right click on the subreport, choose &#39;Change Subreport Links&#39; and select the field(s) you are wanting to pass to the subreport.  CRW will build parameters and a record selection formula for you in the subreport, and if that&#39;s what you want, then great.  But you can also remove the selection formula from the subreport and work with the parameter fields in the subreport however you would like.</p><p>Alternatively, you can look to passing Shared variables back and forth from the main and subreport.  this link talks about the method to do this: http://diamond.businessobjects.com/node/251</p><p> </p>

  • How can i update the registry values...????

    Dear Sir,
    Can any JGuru tell me how can I update registry key value using my Java program?

    You may try to use Runtime.getRuntime().exec( ...) to execute Window API.

  • How can we update current ins value to match insurance depr area?

    Hello - I need some advice, please.  On an asset that was transferred within a company code, the current insurable value on the insurance tab in master data is showing DOUBLE the insurance value that is showing in the insurance depreciation area.  How can we update the current insurable value to the correct amount?  Thank you for your help.
    Heidi

    Hi,
    As advised above by Bernhard, you should not select COPY check box in the below path.
    SPRO -> FA-> AA-> Master Data -> Screen Layout -> Define Screen Layout for Asset Master Data -> Define Screen Layout for Asset Master Data....
    Here select the screen layout, which is assigned to the questioned asset's asset class and click on LOGICAL FIELD GROUPS.
    Select LFG 08 - Insurance and click on FIELD GROUP RULES.
    For the field groups 62, 64, and 78, you should deselect check box COPY and SAVE.
    Cheers,
    Srinu

  • How can I update data fields in a merged document ?

    Hi,
    I'm looking for a way to update the values of data fields in a merged document with a script just as you can do with the user interface.
    I don't find any method like "updateDataFields ()" in the DataMerge object.
    Si I try to invoke the menu action "Update Data Fields", but it fails. The script error message is: "Error 53762, the script is not active." On the contrary, the action works if I use the interface.
    Can anyone help me?
    Thanks in advance,
    FredIsnard
    PS : I work with CS5.5 and JavaScript.

    Hi!
    You might be looking for this one:
    DataMerge.mergeRecords (outputOversetReportFile: File )
    Merges records and produces an optional overset report.
    outputOversetReportFile: Data Type: File
    The path to the file in which to store the overset report. (Optional)
    Best regards,
    Andreas

  • How can i update a field in "Additional A "in sales order

    dear all
    I have stuck to update a filed  in Additional A in sales order .Can any one tell me how can i reach this additional A through SPRO?.
    Yeasin

    there are two additional A fields one is at item level and second is at header level.
    if u want to add field in additional a header level then go to Sales and Distribution ==> Master Data ==> Business Partners ==> Customers ==> Sales ==> Maintain Reserve Fields In Customer Master.
    and if u want to add field in additional A Item level then go to Logistics - General ==> Material Master ==> Settings for Key Fields ==> Data Relevant to Sales and Distribution ==> Define Material Groups .
    Thanks & Regards,
    Ratish

  • How can I add some fields with LSMW standard program(Direct methods)

    Is this possible to add some fields with LSMW standard program?I like to upload data for MM01 using LSMW direct method,but some fields are not in standard program.How can I solve this problem?kindly help me pls.....

    Hi
    I think this should be possible. While doing LSMW, when the first record is uploaded system reads the fields ans stores them.
    Regards]
    Aravind

  • How can I add form field value to the file name in save as dialog box

    I do not want the form to be saved automatically, just want the form to auto populate the "file name" only.
    A little background on the forms I want to use:  My company has 70 retail outlets, I'll use one of our pdf forms called an "Incident Report" as an example.  I would like for a store manager to be able to complete the form, then email the form to the main office (I already have javascript to add field values and form name to the email subject line), once the main office receives it, I want for them to be able to file the pdf electronically on our server.  We have mutliple forms that we use so I do not want any of the forms to automatically save anywhere, (at this time anyway) I just want the office personnel to be able to click "save as" (or whatever they will need to click) and the form automatically add certain field values from the pdf they have received, of which will be different each time the form is sent to the office (Date, store #, employee name etc.) in addition to the name of the form in the "File name" of the "Save As" dialog box.  The main office employees will decide into which server file the pdf should be saved.
    I'm using Acrobat 8 professional, the stores and office personnel use Adobe reader.
    One little note:  We currently print and file a lot of paper on a daily bases, as soon as I can get this to work, we are going green.
    Me and a lot of trees in this will really apprecitate any help you can give with this!  :-)

    You might want to take a look at the document "Developing Acrobat Applications Using JavaScript" (js_developer_guide.pdf) which is part of the Adobe Acrobat SDK, which can be downloaded here. Read the "Privileged versus non-privileged context" (p. 45ff.). You will find an example for "Executing privileged methods in a non-privileged context". Should be almost exactly what you are looking for.
    Small Outline: For security reasons ("the user always has to know what's going on") you are not allowed to use the "Doc.saveAs"-method without the user permission (--> in a non-privileged context). In order to reach the goal of a privileged context you can use a trusted function. You do this by creating a JavaScript file (*.js) in either the Application-JavaScript-Folder (default location on Windows systems: "%ProgramFiles%\Adobe\Acrobat 10.0\Acrobat\Javascripts") or the User-JavaScript-Folder (default location on Windows systems: "%AppData%\Adobe\Acrobat\10.0\JavaScripts"). Add the following content to the new file:
    myTrustedBrowseForDoc = app.trustedFunction( function ( oArgs ) {
         app.beginPriv();
              var myTrustedRetn = app.browseForDoc( oArgs );
         app.endPriv();
         return myTrustedRetn;
    myTrustedSaveAs = app.trustedFunction( function ( doc, oArgs ) {
         app.beginPriv();
              var myTrustedRetn = doc.saveAs( oArgs );
         app.endPriv();
         return myTrustedRetn;
    The developer guide actually wants you to add this content to the existing "config.js" file. I recommend creating a new file, since its easier to deploy in a network. Either way, every client/user who needs to be able to save documents this way, needs this JavaScript Code in his Application/User-JavaScript-Folder.
    Within the Acrobat Document, which you want to obtain a certain file name, you can now use the trusted functions "myTrustedBrowseForDoc" and "myTrustedSaveAs" to store the file. To call the trusted functions and deliver the file name you can either you use a form field (button) or you add a new menu item. Add the following JavaScript Action to the button/menu item and change "Roller Coaster" to the name of the field which contains the value which you want to become the new file name:
    var fileName = this.getField("Roller Coaster").valueAsString;
    try {
         var oRetn = myTrustedBrowseForDoc({bSave: true, cFilenameInit: fileName + ".pdf"});
         try {
              myTrustedSaveAs(this, { cPath: oRetn.cPath, cFS:oRetn.cFS });
         catch(e) {
              console.println("Save not allowed, perhaps readonly.");
    catch(e) {
    console.println("User cancelled Save As dialog box");
    Good Luck!

  • How can i transfer some fields from one table to another using a trigger

    hi,
    i have two tables;sales and accounts.i want in my accounts form to enter salesid which is then validated and if it exists in the sales table, some fields are copied to the accounts table automatically.how do i go about this.thanx

    hi,
    the code u gave me is not running.let me explain in
    detail.i have two tables;sales and accounts in my
    database (oracle 9i).each have a corresponding form
    in the developer window.these tables are linked using
    saleid.this id is entered and saved in the
    database.when the person is paying in the cash
    office,the saleid on an invoice form is entered on
    the accounts form.it is supposed to search the sales
    table and if the ids match,some records are extracted
    from the sales table to the accounts form instead of
    the accounts clerk entering the details all over
    again.these details will be used to generate a
    receipt an then the record on the accounts form is
    saved to the database.the contents of the two tables
    are:
    sales(saleid(pk),startno,endno,quantity,amount,saledat
    e)
    accounts(receiptno(pk),saleid,startno,endno,quantity,a
    mount).
    please advice and thanks very muchWhat does it mean "not running" ?
    Sure, it is running.
    Did you tested my example ?
    And it does exactly what you need.
    You didn't provided table structures and insert statements,
    that's why i showed you the method on 2 emp- tables.
    But it is exactly, what do you need.
    Change my emp_1 on your sales,
    and my emp_2 on your accounts,
    and compare the results.
    If you cannot directly copy and paste
    and say to your teacher / chief "My homework / task is ready"
    it doesn't mean, that the solution didn't provided ...

  • How can I manipulate a parameter value after user input

    Post Author: fsu304
    CA Forum: Crystal Reports
    I have a parameter that is used in my sql command and I want to be able to change the value of it if it reach a certian criteria.  For example the user enters the string "FDT" i want to change the parameter to equal "7" before it gets sent to the database to gather the records.  How can I accomplish this??
    Any help would be awesome.
    Heath

    Post Author: yangster
    CA Forum: Crystal Reports
    the easiest way to achieve this would be to create a lookup table that represents the value you have entered to mean something else in your primary selectionso your table would be a simple value, descriptionthe parameter the user enters 'FDT' = 7 in the table, it is then joined back to your initial queary and will only return you results for 7you can't create if statements with a commandand you cannot use a case statement with a parameterthe other alternative would be to write a procedure that takes in your value and converts it then runs your sql

  • After add a field catalog,how can I post the field value to IPC??

    Hi,experts,I've created a field catalog "ZPRD_CHANGED"(I  ZPRD_CHANGED D D ZCHG_FLAG(CHAR1))in IMG pricing,and also assigned the value to it
    in method "ITEM_COMMUNICATION_STRUCTURE" in mplementation  "ZCRM_COND_COM_BADI" of BADI "CRM_COND_COM_BADI".
    LIke this:
    DATA: lr_obj type ref to ZL_BT115IT__ITEMS_CN00.
      create object lr_obj.
      CS_ACS_I_COM-ZPRD_CHANGED = lr_obj->zprd_chg_flg.
    After that,in the java codings of user exit in IPC,I add below codings:
    public BigDecimal overwriteConditionValue(
         IPricingItemUserExit pricingItem,
         IPricingConditionUserExit pricingCondition)
      String prodchanged = pricingItem.getAttributeValue("ZPRD_CHANGED");
    But it seems that it doesn't work,variable "productchanged" can not get the value posted from method "ITEM_COMMUNICATION_STRUCTURE" in mplementation  "ZCRM_COND_COM_BADI".
    What's the problem?Can anybody suggest??
    Thanks in advance.
    Jerry.

    Hi Jerry,
    did you register the attribute in the customizing for the user exits? Transaction /SAPCND/UEASS. You need to register the attribute on Implementations and Formula level.
    Best Regards,
    Michael
    P.S. Guess you are already aware of the userexit guide attached to note 809820.

  • How can I get some specific value from AP

    Hello,
    I have AP 350 or 1100 and management software CISCO WORKS for WINDOWS. I need for our customer information how he can get some SNMP specific information OID like signalstrange or something another specific OID. We can get traps from AP but it's not what we can.
    Do you know somebody any helps?
    Thank you
    David

    For Windows
    Download MG-SOFT Corporation's MIB-Browser, its evlauation version.
    Download the AP MIBs from Cisco.
    Compile the MIBs using the MG-SOFTs MIB-Explorer and then you see the OID values and expalnations.

  • How to auto-update the field 'filename' after a "Save As..."?

    It is very convenient to have the filename of a document in a header or footer sometimes. At times it is helpful to also include it elsewhere. So I 'Insert / Filename' to insert text fields with the filename as necessary.
    If I change the document and save it with a new name, it is most annoying to have to manually update every place in the document the text field occurs.
    I cannot find where the control(s) is/are to make the update automatic.
    Thanks for any suggestions you can make.
    Pages '09 (version 4.1 (923) )
    MacOS X 10.6.8

    Double click on the inserted filename.
    Click either of the checkboxes in the options window that opens.
    The name will update.
    Click the same checkbox again to toggle that part of the name to the original state.
    Click away from the options window to dismiss it.
    Regards,
    Barry
    PS: Learned this today from the Pages '09 User Guide, a very useful PDF file which you can download via the Help menu in Pages. Thanks for making me look.

  • How can I pass Flex Field value to the Call Wrap Up screen?

    Hello helpers,
    I am trying to get a value from the 'Flex Field' passed over to the 'Call Wrap Up' screen by using Form Personalization.
    Oracle was configured by a subcontractor and therefore I do not know what the exact name of the textfield is in the Flex Field however the label is 'Method of Contact'. When i set 'Show Custom Events' to 'On', I get the response: 'CSXXXRC.INCIDENT_TRACKING.STATUS_CODE:WHEN-NEW-ITEM-INSTANCE' When i enter a value in the Method of Contact field in the Flex Field.
    Can anyone help?
    I am a complete Newbie to Oracle.... I only know a bit about Oracle Form Personalization.
    Any help would be much appreciated,
    S

    Seems like you're talking about a from from the eBusiness-suite. There are special rules for that, ask your question in the eBusiness-suite-forum OA Framework

  • How can I update a customized table from a text document?

    Hi,
    I am one sample file. The file is an text document. From this .txt file how can I update a customized table in SAP.
    How can I Update the fields in the Customized table.
    Thanks & Regards,
    NManohar.

    use the Function module GUI_UPLOAD or WS_UPLOAD and give the path and the file name from where the data has to be uploaded. in table parameter give the iternal table
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                      =
      FILETYPE                      = 'ASC'
      HAS_FIELD_SEPARATOR           = ' '
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
      VIRUS_SCAN_PROFILE            =
      NO_AUTH_CHECK                 = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
      tables
        data_tab                      =
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_READ_ERROR               = 2
      NO_BATCH                      = 3
      GUI_REFUSE_FILETRANSFER       = 4
      INVALID_TYPE                  = 5
      NO_AUTHORITY                  = 6
      UNKNOWN_ERROR                 = 7
      BAD_DATA_FORMAT               = 8
      HEADER_NOT_ALLOWED            = 9
      SEPARATOR_NOT_ALLOWED         = 10
      HEADER_TOO_LONG               = 11
      UNKNOWN_DP_ERROR              = 12
      ACCESS_DENIED                 = 13
      DP_OUT_OF_MEMORY              = 14
      DISK_FULL                     = 15
      DP_TIMEOUT                    = 16
      OTHERS                        = 17
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    and finally use insert command to update the database table with the data

Maybe you are looking for

  • How to display IR field value in HTML

    All, I have an interactive report and in the region header part I want to display a value of employee number for which this IR has been called, my HTML Looks like this in region header but it display "Employee Number:#EMPLOYEE_NUMBER# " and does not

  • Transporting Webservice DataSources -

    Hi We are unable to successfully transport any of our webservice Datasources, or anything related to them. The tansport logs are not giving any exact clue about why the error is occuring, and what we can do about it... Is there any specific technique

  • If I create a smart folder in iPhoto, and then delete it, are the pictures gone?

    I am still trying to figure iPhoto out. I just created a "Smart Folder" and it imported some of my photos. I decided to delete that folder. Did that delete the pictures or are they still somewhere else in iPhoto or on my computer? Thanks!

  • No Code Hinting in Air

    When I use AIR in the eclipse IDE I cant get any code hinting to show if I am using an AIR application. If its a Flex application its fine. Even if I have two applications open I can just click in the non-AIR window and code hinting is working and cl

  • How do I find what jars are being used...?

    Hi all, I'm wondering if any of you could help me. I am looking for a method or tool that helps to find what library jars are being used within an application to try and help me erradicate unneccesary files since I find myself in a scenario similar t