I want to update bstrf-(rounding value )in MRP 1 and  eisbe (safety stock) value in mrp2

i am a beginner and i want to update these fields in mm02 transaction and i am trying to use
md_mrp_level_change_data , function module can some one please help me with the code or procedure

Yes, it should update the fields. You need to pass values to parameters " PLANTDATA" and " "PLANTDATAX".Have a look at following sample code:
data mat type mara-matnr VALUE '000000009900000000'.
data:header TYPE BAPIMATHEAD,fore TYPE BAPI_MPOP_GA,
       forecast TYPE BAPI_MPOP,forecastx TYPE BAPI_MPOPX,return TYPE TABLE OF BAPIRET2 WITH HEADER LINE,msg TYPE TABLE OF BAPI_MATRETURN2,
       plant type BAPI_MARC,plnt type BAPI_MARC_GA,plantx type BAPI_MARCX.
CALL FUNCTION 'BAPI_MATERIAL_GETALL'
   EXPORTING
     material                         = mat
*   COMPANYCODE                      =
*   VALUATIONAREA                    =
*   VALUATIONTYPE                    =
    PLANT                            = 'XYZ'
*   STORAGELOCATION                  =
*   SALESORGANISATION                =
*   DISTRIBUTIONCHANNEL              =
*   WAREHOUSENUMBER                  =
*   STORAGETYPE                      =
*   LIFOVALUATIONLEVEL               =
*   MATERIAL_EVG                     =
*   KZRFB_ALL                        =
  IMPORTING
*   CLIENTDATA                       =
    PLANTDATA                        = plnt
*   FORECASTPARAMETERS               = fore
*   PLANNINGDATA                     = plant
*   STORAGELOCATIONDATA              =
*   VALUATIONDATA                    =
*   WAREHOUSENUMBERDATA              =
*   SALESDATA                        =
*   STORAGETYPEDATA                  =
*   PRODUCTIONRESOURCETOOLDATA       =
*   LIFOVALUATIONDATA                =
  TABLES
*   MATERIALDESCRIPTION              =
*   UNITSOFMEASURE                   =
*   INTERNATIONARTICLENUMBERS        =
*   MATERIALTEXT                     =
*   TAXCLASSIFICATIONS               =
*   EXTENSIONOUT                     =
    RETURN                           = return
MOVE-CORRESPONDING plnt to plant.
header-material = mat.
plant-SAFETY_STK = 2.
plantx-plant = plant-plant.
plantx-SAFETY_STK = 'X'.
header-mrp_VIEW = 'X'.
CLEAR:return[],return.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
   EXPORTING
     headdata                   = header
*   CLIENTDATA                 =
*   CLIENTDATAX                =
    PLANTDATA                  = plant
    PLANTDATAX                 = plantx
*   FORECASTPARAMETERS         = forecast
*   FORECASTPARAMETERSX        = forecastx
*   PLANNINGDATA               =
*   PLANNINGDATAX              =
*   STORAGELOCATIONDATA        =
*   STORAGELOCATIONDATAX       =
*   VALUATIONDATA              =
*   VALUATIONDATAX             =
*   WAREHOUSENUMBERDATA        =
*   WAREHOUSENUMBERDATAX       =
*   SALESDATA                  =
*   SALESDATAX                 =
*   STORAGETYPEDATA            =
*   STORAGETYPEDATAX           =
*   FLAG_ONLINE                = ' '
*   FLAG_CAD_CALL              = ' '
*   NO_DEQUEUE                 = ' '
*   NO_ROLLBACK_WORK           = ' '
  IMPORTING
    RETURN                     = return
  TABLES
*   MATERIALDESCRIPTION        =
*   UNITSOFMEASURE             =
*   UNITSOFMEASUREX            =
*   INTERNATIONALARTNOS        =
*   MATERIALLONGTEXT           =
*   TAXCLASSIFICATIONS         =
    RETURNMESSAGES             = msg
*   PRTDATA                    =
*   PRTDATAX                   =
*   EXTENSIONIN                =
*   EXTENSIONINX               =
Also check following link
http://scn.sap.com/thread/3366978 
Regards

Similar Messages

  • I have iPhone4 and Windows 7 Home Premium. My iphone can't backup: message 'couldn't backup because the iphone disconnected'. It started when i wanted to update to iphone3,1_5.0_9A334_restore.ipsw and I received a 3002 error. Exhausted trying everything

    I have iPhone4 and Windows 7 Home Premium. iPhone can't backup: message 'couldn't backup because the iphone disconnected'. It started when i wanted to update to iphone3,1_5.0_9A334_Restore.ipsw and I received a 3002 error. Sync seems to work OK. Have exhausted the online discussions and tried everything. Please help

    Try runing iTunes in admin mode. That fixed the issue for me. You can either right click on the shortcut on your desktop and choose to run as an admin each time you launch it or go to the advanced tab under security on the program itself and click the run as admin every time.

  • I have a question? I update my macbook pro but every time I do and I go back to where it says software update it says that if I want to update my pro I just did, and Im using Mac Os X snow leopard is it that I have to upgrade to lion?

    I have a question? I update my macbook pro but every time I do and I go back to where it says software update it says that if I want to update my pro I just did, and Im using Mac Os X snow leopard is it that I have to upgrade to lion?

    It also says view updates, so select that option and see what it wants to update.

  • Hi. I just wanted to update my 3 apps PS, Brigde and Indesign. After doing that I wasn't ablle to open Brigde??? PS and Indesign works fine. Further more the Application Manager does not seem to register the updates I have made. Everytime I open the compu

    Hi. I just wanted to update my 3 apps PS, Brigde and Indesign. After doing that I wasn't abble to open Brigde??? PS and Indesign works fine. Further more the Application Manager does not seem to register the updates I have made on Indesign and PS. Everytime I open the computer MacIBook 4.1, OS 10.6.7) it looks like I haven't updated software? Please help! Kurt

    Moving this discussion to the Bridge General Discussion forum.
    Kurt Rodahl Hoppe I would recommend reviewing Updates repeatedly applied | CC which discusses how to apply the updates successfully.

  • Recently changed my primary e-mailadress. When opening i-Tunes store in te left upper corner my changed adress is visible.However whwn I want to update apps on my i-Phone and / or i-Pad my old emaildress appears and I cannot log in on i-Tunes store.

    Why appears my old emailadress when I want to update apps on my i-Phone and / or i-Pad?

    Try tapping on your id at the bottom of the Featured tab in the App Store apps on your phone and iPad and log out of your account on them, and then log back in with the updated version of your account so as to 'refresh' the account on them

  • My iTunes won't update on my computer. I have windows vista. I can open iTunes and when I click "check for updates" it asks if I want to update to iTunes 11.1.5 and I click "Download iTunes" but then nothing happens. What's wrong?

    My iTunes won't update on my computer. I have windows vista. I can open up itunes and when I click on "check for updates" it asks if I want to download iTunes version 11.1.5 and I click "Download iTunes" but then nothing happens. Sometimes uptop the loading bar will appear but for only a split second. I have tried restarting, shutting down, I cannot figure out why it won't download. What's happening and how do I fix it?

    Try updating using an iTunesSetup.exe (or iTunes64Setup.exe) installer file downloaded from the Apple website:
    http://www.apple.com/itunes/download/

  • HT201210 I received a pop up asking if I wanted to update my software. I accepted and the (long) process started. Then the update "crashed" and I was told an unknown error had occurred.

    I received a 'pop up' asking if I wanted to update the software in my iPhone. As I always accept these messages to keep my phone up-to-date, I accepted.
    A long (25minute) process started, but at the end of it, the process "crashed" saying an unknown error had been encountered!.NOTHING has changed with my computer of my iPhone, so I say this is an Apple problem. I cannot start or use my phone now - all that shows on the screen is the iTunes logo and a connectivity graphic - see attached photo

    Hi Kalaivani Krish18,
    If you are having issues with your iPhone attempting to update, you may want to try the troubleshooting steps in this article -
    Resolve iOS update and restore errors in iTunes
    http://support.apple.com/kb/TS1275
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • Inserting sequence value from JDBC and getting the same value back

    Hi: Gurus I have a table whose primary key is a sequence. I wonder how to make sure I get the same sequence value back for current transaction so I update the other table whose foreign key is the sequence value from first table.
    E.g lets say I do this
    String query_insert = INSERT INTO table1 (column1, ....) VALUES (HIGHLIGHT_ID_SEQ.nextval, ...);
    pstmt = con.prepareStatement(query_insert);
    pstmt.executeUpdate();
    How I make sure no other transaction update the sequence value so I can read the last inserted sequence value and update the second table with this value
    String query_select = "SELECT HIGHLIGHT_ID_SEQ.currval FROM DUAL";
    pstmt = con.prepareStatement(query_select);
    Regards,
    Rashid.

    <rant>No version again. I wonder why people requiring help want to stay anonymous and never want to type their version, only 4 digits. In this case, jdbc, not only the version of the driver is important, but also it's type. Waving a magic wand again? </rant>
    Look up the returning into clause of the insert statement in the sql reference manual for your version.
    Sybrand Bakker
    Senior Oracle DBA

  • Any way to set color for value in chart and still filter out values (but retain colors)?

    Is there any way that I can hard code a color into a chart and still filter out values?
    I have 5 divisions, each with a specific color.  I have put them into a stacked column chart and it looks fine.  My issue arises when I try to filter out some of the divisions.  The colors do not stay with the specified divisions.
    Ex.)
      Div 1 = Red
      Div 2 = Green
      Div 3 = Black
    When I filter out Div 1, this is what I see:
    Div 2 = Red
    Div 3 = Green
    I have tried standard delivered filter panel, and check-boxes using CHART_1.setDataSelection( )
    It seems like the color hard coding in the "additional" properties of the chart are not tied to the value, but are determined by sort order.  Any help is greatly appreciated

    Hi,
    There is one Possibility bu not By chart .
    It will look like chart but will use Text box .
    Lets say you have 5 Divisions & 3 Key figures .
    Then You need 5 * 3 = 15 Text box .
    Arrange them in 5 columns and 3 rows type of view .
    now .
    set fix width for all .
    set the height & position by coding
    You need to set this type of code for filter selection also .

  • Safety Stock Value

    Hi all,
    I am using the BAPI - '<b>BAPI_PBSRVAPS_GETDETAIL2</b>' to get <b>Safety</b> <b>Stock</b> Value. I am passing the key figure as '<b>SAFTY</b>'. But I am getting an error as 'An error occurred in data selection'.
    What might be the reason for this?
    Thanks and Regards.
    Selva
    Edited by: Wilian Segatto on Jan 20, 2010 2:59 PM

    Create a new KF for Safety Stock Stock as a permanent object and add it in the planning area administration
    Remember to Change the macros associated with this Key Figutre. There is a macro that does the macro calcultion for Safety Stock
    There would be other macros as well which use Safety as a basis

  • I want to update forms in the response file and save it. Sometimes it works, but often I need to save the response file in another name. Very inconsequent! How come?

    I have a form that I am sending out and compiling in the response file. These forms I also want to be able to update after receiving them (when I have them in the response file).
    But when I do the updates I need to re-save the response file with another name? The strange thing is that sometimes I can just update and save exactly the way I want it. But most of the time I get the message "This file may be read-only, or another user may have it open. Please save the document with a different name or in a different folder."
    Can someone please help me to figure out how to solve this issue. I know that I am the only one that has the file open. I am encountering the same issue in both Acrobat Pro 9 and Acrobat Pro X. (File was created in Acrobat Pro 9)

    Good day!
    A simple Paste does not work for you?
    It should place the clipboard content as a new Layer which you can then move around.
    If there is any chance that the elements need to be scaled, rotated etc. I would prefer to place them as Smart Objects (File > Place …) and do the masking that is specific to the images themselves in those.
    Regards,
    Pfaffenbichler

  • After FF update the page setup is gone and back to default values

    we use FF as default browser for our web application (desktop), delivering it as default browser on the hardware we deliver and as the advised web browser for desktops.
    The very annoying thing is that after updates to newest versions (it lately happened with update to FF 24) the page settings are not kept.
    Instead they are back to the default values as if it was a new installation. We use the page settings to have clean prints. That is: without disturbing headers and footers and with margins to 0 (zero).
    I 've been searching for a while why this happens and could find a solution. As customers are vigorously complaining now, we have to reconsider our browser policy.

    0.03937" isn't that 1mm?
    Those "size" values will be displayed in inches if the Letter / Legal / other American paper sizes are set, and in mm for the "A" paper sizes used elsewhere. So if someone would be using A4, a 1mm setting would appear as 1.0 - not 0.03937 .
    From what I have seen, only 2 digits after the decimal point should appear. Those ''(or similar)'' with 15 digits has been mentioned frequently here as occurring with broken printer settings.
    As far as "why" with a fresh installation, I have no idea. Any chance your company is using a custom Firefox configuration file (cfg) to set your own default prefs? And those old prefs are configured as the default for all your installations? ''One way to check that would be to create a new Profile and see if those prefs appear automatically in the new Profile before printing anything. No printing prefs should appear as "user set" - or maybe only those??''
    Until a few weeks ago "we" weren't aware that those prefs had changed with Firefox 6.0. This support article - https://support.mozilla.org/en-US/kb/fix-printing-problems-firefox - needed to be edited, after a user mentioned that he didn't have the ''older'' preferences and that article was misleading. I started investigating with every version from Firefox 2.0 up to Firefox (Nightly) 27.0, and discovered those prefs had been changed in Firefox 6.0 over 2 1/2 years ago. I had a number of other support contributors verify my findings in the Contributors forum; this article was edited as a result.<br />

  • I wanted to update my iphone 4s to ios7 and its stuck at connect to itunes and i cant even restore it on itunes!!! what should i do?

    i updated my iphone 5 successfully but itryed to update my moms iphone as well which is the iphone 4s jailbroken and as it was charging and she was updating it through her phone the 'connect to itunes' logo came on and so i connected it to itunes. When i connect it, it said that i had to restore before i connected it to itunes. I  tryed restoring it a thousand times and it always ends up saying that it cant be restored, i connect it to itunes and it doesnt even show me the iphone summary. Please if anyone of you has the same problem and u fixed it and found a way to fix it please tell me how !!!!

    Once the Device is asking to be Restored with iTunes... it is too late to save anything... and you must continue with the Recovery...
    See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...  Be sure to Follow ALL the Steps...
    Take your time... Pay particular attention to Steps 3 and 4.
    After you have Recovered your Device...
    Re-Sync your Content or Restore from the most recent Backup...
    Restore from Backup  >  http://support.apple.com/kb/ht1766
    Note:
    Make sure you have the Current Version of iTunes Installed on your computer
    iTunes free download from www.itunes.com/download

  • I have this app and it updated by it self and I didn't want the update the app is called "Cops And Robbers Mine Mini Game" is their a way I can have it not updated?

    I don't like the update can u plz help me find a way to have the old update back!…

    Hello! Unfortunately, MusicFree got removed from the app store, along with all the other music downloader apps. We hope to release a new version of it, but it will not have the downloading capabilities.

  • How to include the value of the discount in the stock value ?

    Hi Friends;
    Is it possible to include the value of the discount (SKTO price condition) in the value of the stock when receiving a purchase order with MIGO
    How can I accomplish this?
    Best regards

    Like this?
    Done using chart Inspector.
    For details, see Chapter 7,  Creating Charts from Numerical Data in the Numbers '09 User Guide. The guide may be downloaded via the Help menu in Numbers.
    Regards,
    Barry

Maybe you are looking for

  • Songs in iPod App Open and Then Very Quickly Close - What's wrong?

    This just started like a phantom disease.  The only thing I've done recently was download some movie rentals.  After that (coincidence or not), I've not been able to play any music in my library.  Any play list, any song.  Touch it, it opens and then

  • Future Date Script in Acrobat, 6 months after current date

    Hey guys I have been working on this for hours and I am not sure why I cannot figure this out.  I am looking to have 1 field box in the form auto populate the current date and another field box to auto populate a date 6 months from the current date. 

  • Please help my Imac G3 233 is dead!!!

    hi there everyone i hope someone out there has a solution for me i have a imac G3 233mhz and i just use it last night no problem then the next day i try to turn it on but nothing happens as in nothing i check the cable if it plug out or something are

  • Displaying a 16bit image

    Hi...i am new to java... Can anyone tell me what is the syntax to display a 16bit image ... like for an 8bit i know that i can use....image.setRGB(i, j, new Color(blue,green,red).getRGB()); But when i am trying to display a 16bit image....its is sayi

  • Please, need desperate help! Editing issue.

    Hi there, I'm new to the forums and I've recently started using Premier Pro CS3 for a project I've been assigned with. A small problem I have though is, for example, I may have an image, video, or something visual on the screen with the 'Dip to Black