How can forbid changing data when using BAPI  'BAPI_MATERIAL_SAVEREPLICA'?

I am using BAPI  'BAPI_MATERIAL_SAVEREPLICA' to creat material master data in batch.
But this BAPI also can be used for change mode.
How to forbid the change of MAT data when use this BAPI?
TKS a lot~~
I am looking foward to your response~~~

you have to find out what the user did before your program goes ahead and starts the BAPI.

Similar Messages

  • How can forbid changging data when using BAPI  'BAPI_MATERIAL_SAVEREPLICA'?

    I am using BAPI  'BAPI_MATERIAL_SAVEREPLICA' to creat material master data in batch.
    But this BAPI also can be used for change mode.
    How to forbid the change of MAT data when use this BAPI?
    TKS a lot~~
    I am looking foward to your response~~~
    Edited by: lorryhappy on Dec 22, 2009 11:35 AM

    Hi
    You can achieve it in another way..
    Before Passing Data to BAPI , Check whether the material is existing or not..
    If material is existing (Present in Material Master Tables e.g. MARA ) using
    data: l_matnr like mara-matnr.
    Select single matnr from mara into l_matnr.
    IF sy-subrc EQ 0.
    " Material is existing ==> Do Not Pass to BAPI
    else.
    " Material is NOT existing ==> Pass to BAPI for creation.
    endif.
    Repeat above logic for every material in batch..
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7
    ilesh Nandaniya

  • How can you change data on a SQL 2012 application database that uses availability groups from BizTalk server?

    If you use the WCF-SQL adapter it is recommend that you set UseAmbientTransaction to true if you are changing data. I think this requires MSDTC to be enabled on the SQL server that you are changing the data on. (http://msdn.microsoft.com/en-us/library/dd787981.aspx)
    I think that Availability groups does not support MSDTC. (http://msdn.microsoft.com/en-us/library/ms366279.aspx).
    How can you change data on a SQL 2012 application database that uses availability groups from BizTalk server?

    Hi,
    Yes, Availability groups doesn't support MSDTC. Please refer to the similar discusison which maybe helpfull:
    http://dba.stackexchange.com/questions/47108/alwayson-ag-dtc-with-failover
    http://stackoverflow.com/questions/17179221/msdtc-in-always-on-availability-groups

  • How can I change dates to the UK format, DD/MM/YY, in Mac Numbers?

    How can I change dates in Mac Numbers to the UK format of DD/MM/YY? When I correct them individually they automatically return to the US format.

    Open System Preferences, then click the "Languages & Region" pane in the first row.
    Change the Region from "United States" to "United Kingdom"

  • How can I change the value used in a Criteria Rule in a Subscription agent

    Dear mobile heroes.... How can I change the value used in a Criteria Rule in a Subscription agent in a quality environment? (CRM 70 SP04).
    I have built a subscription agent in dev, which uses a static where clause to filter activity_object on VKORG. I need to filter on a different VKORG value in the quality environment, but when I change the value of the sales org, the change is not saved. I have tried this even non 'activated'  subscription agents, but it still does not appear possible to change and save the changes.
    This poses a big problem because the VKORG value I want to use does not even exist in the dev environment, so I could not even rebuild in dev and transport the new agent to quality. Can anyone help me?

    Too old to care now.

  • How can I generate data when the link is click on?

    i have written a stackoverflow question ,
    would like some input if you have any , thanks, i would like to stay away from using jquery
    http://stackoverflow.com/questions/23143436/how-can-i-generate-data-when-the-link-is-click -on/23143813?noredirect=1#23143813

    I think you need to rephrase your question and be more specific. Also for me the images you are referring to do not exist. From your question I am interpreting it as "how do I program?"

  • How Can I Change Posting Periods using DI

    Hello All,
    How Can I Change Posting Periopds using DI.
    When Connecting to B1 Company DB , I would like to change default Posting Periods.
    My SBO is 2005B.PL41.
    Best Regards,
    TAK

    Hi,
    Please take a look at the CompanyService Object in the DI help file. and check for the UpdateFinancePeriod method.
    Hope it helps,
    Vasu Natari.

  • Icloud lists 2 email addresses. How can I change it to use just one.

    icloud lists 2 email addresses.  How can I change it to use just one?

    Sign out of iCloud on the iCloud system prefs. Then, sign in with your new.
    However, purchases from iTunes and the Mac App store are forever tied to the old AppleID. There is no way to change that short of deleting the old purchases and purchasing new under the new AppleID.
    Based on everything that has happened lately with people using social engineering to gain access to other people’s AppleID’s, you need to speak to someone at Apple regarding your account. If you think you knew the answers to your questions and you are not getting emails anymore, someone may have gained access to your old account and has changed all of that info.

  • How can i create slaes order using BAPI

    hi all,
    i didnt work on BAPIS .how can i create sales order using BAPI here i should pass Z values.
    Moderator message : FAQ, search for available information. Thread locked.
    Edited by: Vinod Kumar on Sep 13, 2011 12:22 PM

    Hi!
    There are a lot of answered threads regarding your question. Try searching first. Below is a sample link.
    BAPI_SALESORDER_CREATEFROMDAT2
    Regards,
    Steph
    Edited by: stephquion on Sep 13, 2011 8:25 AM

  • How can I change data carriers on my ipad?

    How can I change data carriers on my ipad mini?

    Get a plan from a different carrier and insert the sim they give you.

  • How can i change date and time after importing a file

    hello
    i'm importing AVI files first in iMovie because Final doesn't support (other question i put in) but when i see the scenes form 1993 they have the date 2004.
    i believe 2004 is the date i put them on the computer.
    Now i looked in the help files Final Cut Pro but cant find anything to adjust the date and time.
    it works well in iMovie using the help files:
    Right-click the clip you wish to edit and click Adjust Clip Date and Time from the menu that appears. Or click on Archive and than adjust date and time
    But as i said i cant import the files in FCP have to import them to  iMovie files adjust the date and than import to Final Cut Pro but than de changes i made to the date and time  are gone and in FCP 2004 is again the date of the file!!!
    Question how can i Change in Final Cut Pro the date and time in a same way as iMovie does?
    Jemajoro

    OK, I think I understand what you are saying but it still does not look like it is doing it as you describe.
    Here is another screen shot.
    Note that all clips in "2007 August" event have the date of Aug x, 2007.
    Yet, the event "2007 August" still shows up under the 2012 "folder" (is that the right terminology?).
    The newest clip in this event is Aug 31, 2007 so shouldn't it be categorized as 2007 and not 2012?
    I think you know this but I am using the following feature:
    Go to the sprocket icon under the events.
    Select "Group events by date" and then by "group events by year and month"
    Thanks again for all the help

  • How can i change date format in portal?

    how can i change the date format in the portal to dd-mmm-yyyy format 
    (e.g. 02-MAR-2007 or 02/ MAR/ 2007)
    i know that i have to change one of the properties listed in the path
    (systen administration->system config->Knowledge management-> content management->global services->property metadata->properties)
    but which property should i change and what should I modify it to?
    Nikhil

    Hi Nikhil,
    please have a look at SAP note <a href="https://service.sap.com/sap/support/notes/816761">816761</a> for solving this.
    Hope it helps,
    Robert

  • How can I change the email used in iphoto

    how can i change the email that is used for iphoto? it goes to my email account that's connected to flickr but i want to have it different as a default. help or suggestions?

    Go to iPhoto's General preference pane and select the email client in the Email photos using: menu.
    Click to view full size
    OT

  • How can we change search engine using DISM

    sir how can we change search engine from "bing" to "Google" in offline image using DISM. what is that DISM command?

    Hi,
    There is no such command to achieve what you want.
    Regards,
    Blair Deng
    Blair Deng
    TechNet Community Support

  • I forgot my security questions; how can I change them when I can't seem to use my rescue email?

    So I've forgotten my security questions, and for some reason there is no option for me to use my email to change them when editing my apple ID, though many other users seem to find this solving their problem. Is there some other way I could do this online? If possible, I would prefer not to call apple support.
    Thanks to anyone who can help.

    The Three Best Alternatives for Security Questions and Rescue Mail
         If you do not have success with one, then try another:
            1.  Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
            2.  Call Apple Support in your country: Customer Service: Contact Apple support.
            3.  Rescue email address and how to reset Apple ID security questions.
    A substitute for using the security questions is to use 2-step verification:
    Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID.

Maybe you are looking for

  • Advice on best way to setup Disaster Recovery for SOA Suite 10.1.3.4

    Hi Everyone, I need some advice on the best way to setup Disaster Recovery for a SOA Suite 10.1.3.4 install deploying JSF/ADF OC4J applications. The way we are trying to do it at the moment is manually copy the "applications" and "applications-deploy

  • Re: Error in rebate condition G/L account assignment at the time of invoice

    Hi,Guru's am new this forum, while creating Invoice am getting this error as " Error in A/c Determination ",and by checking the A/c det.Analysis it'ssaying that " 10     125     Accruals condition: The second G/L account is missing " I entered the G/

  • HELP: Flash Error Parameter is incorrect.

    Hi. I really need help on this...I am working as a teacher in Singapore and I am currently doing a project for our school. I am using the Adobe CS4 Design Premium. I am using Adobe Flash CS4 for the project I am doing. Adobe Flash CS4 crash often and

  • Multiple master blocks populating the same detail blocks

    Hey guys. Im doing something a little weirder than I usually do but I can't get it to work correctly and im wondering if any of you have accomplished this before. I have a call center application which processes applications by either the application

  • Footnotes in iAuthor

    I know that in Pages one can add footnotes to the text. But is it correct that iAuthor does not provide this feature? Or do I miss something here.