BAPI for material creation which returns the new material number

Hi,
I need a single BAPI or a remote enabled function module to create a material which would return the new Material number generated.
Regards,
Tanveer S.

Hi
if this scenario should occur:
run BAPI_MATERIAL_GETINTNUMBER  and get next material number
run BAPI_MATERIAL_SAVEDATA and get an error when creating.
Is there a way to rollback the internal number range?!
ROLLBACK WORK doesn't seem to work and, if the  BI_SAVEDATA returns with the error, the next try will have the material number X+1, although X  was never used.

Similar Messages

  • Bapi for Delivery Creation from Sales Order

    Hi
    I have multiple sales order and i want to create 1 outbound delivery from it just like what Vl10A is doing.
    Can i have BAPI or fumctiona module for same.
    Best Regards
    Subham

    Check this thread:BAPI for Delivery Creation
    Also search the forums..there are many threads addressing the same issue.
    Regards,
    Kiran

  • Linked Server :: OLE DB provider "OraOLEDB.Oracle" for linked server "ABC" returned message "New transaction cannot enlist in the specified transaction coordinator. ".

    Hello All,
    As mentioned in title, i am stuck up with that articular error from last three days,
    i have following scenario, my SQL server 2008, my oracle 10g are on both same machine with OS Windows Server 2008.
    the following error generated on my management studio when i execute my procedure written in my SQL server. Following is original source code snippet after error massage.
    OLE DB provider "OraOLEDB.Oracle" for linked server "ORCL" returned message "New transaction cannot enlist in the specified transaction coordinator. ".
    Msg 50000, Level 16, State 2, Procedure PROC_MIGRATE_MST_FRM_ORA_SQLSERVER, Line 43
    The operation could not be performed because OLE DB provider "OraOLEDB.Oracle" for linked server "ORCL" was unable to begin a distributed transaction.
    BEGIN TRY
    -- MIGRATION OF PR_COMPANY_MH START
    BEGIN TRANSACTION T1
    PRINT 'mILAN NNNNNNNNN 11'
    INSERT INTO PROD.PR_COMPANY_MH
    SELECT * FROM OPENQUERY(ORCL, 'SELECT * FROM PR_COMPANY_MH WHERE SQL_FLG = ''N'' ')
    PRINT 'mILAN NNNNNNNNN 12'
    UPDATE OPENQUERY(ORCL, 'SELECT SQL_FLG FROM PR_COMPANY_MH WHERE SQL_FLG = ''N''')
    SET SQL_FLG = 'Y'
    --EXECUTE ('UPDATE PROD.PR_COMPANY_MH SET SQL_FLG = ''Y'' ') AT [ORCL]
    PRINT 'mILAN NNNNNNNNN 13'
    COMMIT TRANSACTION T1
    -- MIGRATION OF PR_COMPANY_MH END
    END TRY
    BEGIN CATCH
    PRINT 'mILAN NNNNNNNNN 14'
    ROLLBACK TRANSACTION T1
    PRINT 'mILAN NNNNNNNNN 15'
    SELECT
    @ErrorNumber = ERROR_NUMBER(),
    @ErrorSeverity = ERROR_SEVERITY(),
    @ErrorState = ERROR_STATE(),
    @ErrorLine = ERROR_LINE(),
    @ErrorProcedure = ISNULL(ERROR_PROCEDURE(), '-');
    PRINT 'mILAN NNNNNNNNN 16'
    SELECT @ErrorMessage = ERROR_MESSAGE();
    RAISERROR (@ErrorMessage, @ErrorSeverity, @ErrorState, @ErrorNumber, @ErrorProcedure)
    PRINT 'mILAN NNNNNNNNN 17'
    END CATCH
    this perticular part is raising that error, and i had tried every configuartion on my local machine related to MS DTC.
    When i remove my transaction code, its work just fine no exception raise, but when i use then i.e. BEGIN TRAN, COMMITE TRAN, AND ROLLBACK TRAN. its giving me error, other wise its fine.
    Please Help or disscus or suggest why my transaction base code is not woking????
    thanks in advance.
    Regards,
    Milan

    Sorry again, I am new on any kind of forum, so i am learning now, following is the error massage generated by SQL Server. and its not
    an architecture problem, i had just included my complete architecture to be more informative while asking for the solution or suggestion. My real problem is T-SQL, i think and its related to Distributed queries raise in SQL Server in Oracle Link Server.
    OLE DB provider "OraOLEDB.Oracle"
    for linked server "ORCL" returned message "New transaction cannot enlist in the specified transaction coordinator. ".
    Msg 50000, Level 16, State 2, Procedure PROC_MIGRATE_MST_FRM_ORA_SQLSERVER,
    Line 43
    The operation could not be performed because OLE
    DB provider "OraOLEDB.Oracle" for linked server "ORCL" was unable to begin a distributed transaction.

  • Error when I create the New material Master (MM01) for New Plant.

    Dear experts,
    I got the error when I create the New material Master (MM01) for New Plant.
    Error:  Valuation Area 2800 Not yet productive with Material Ledger.
    So Pl send me the solution asap.
    Venkata Raju Khottari

    Hi,
    Have u assinged Plant to Company code?
    If u say no, use T.code OX18.
    Regards,
    Murali
    Assign points if it is useful.

  • Which of the NEW iphones is better for travel? which phone (and/or plan) will let me put in a foreign sim card?

    which of the NEW iphones (5s or 5c) is better for travel from U.S. to europe/asia? which phone (and/or plan) will let me put in a foreign sim card?

    http://support.apple.com/kb/ht1937
    Accoprding to Apple's information, all UK phones are sold as locked to the carrier you got it from, so yours is ALREADY locked to T-Mobile (activation has nothing to do with whether a phone is sold as locked or not).
    However, it looks like, from Apple's listing, that they also support unlocking, but you will need to contact them about doing that.  There may be restrictions, like so many months under contract first, or a fee, or whatever rules they apply to unlocking.  Or there may be none and you just need to ask them to do it.
    Regardless, you need to contact T-Mobile and ask them about how to get an unlock request processed by them.  And do it before you leave - much more difficult to deal with once you are far removed from their network.

  • BAPI for ARTICLE creation in IS-Retail

    I am creating an Article using BAPI_MATERIAL_MAINTAINDATA_RT by passing below parameters for Basic view.
    1.material type
    2.merchandise category
    3.material category
    4.description
    5.uom
    6.transportation grp
    7.loading grp.
    8.valuation class
    9.tax class
    Also marked X in respective places in structures clientdatax,plantdatax,headdatax etc.
    Anyhow still it showing errors like "key field of table MARA missing"
    I am able to create article from MM41 using above 9 fields.
    What fields shd be passed to this BAPI to create an ARTICLE?
    OR ANY OTHER BAPI/RFC FM EXIST TO CREATE ARTICLE?
    Please help me in this regard.
    Regards,
    Kiran

    Hi Bjorn,
    I have to call BAPI for Article creation from Portal front end.
    so I cant use BAPI_RETAILMATERIAL_CREATE as it goes to MM41 when we execute.
    So I am using BAPI_MATERIAL_MAINTAINDATA_RT to create article.
    I passed all mandatory data which is required to create a article with basic view.
    Using MM41, I am able to create but with this BAPI iam unable to create article.
    Could you please tell me what are the required parameters to be passed in addition to my fields which I  specified below:
    I passed
    HEADDATA--material type,merch.category, material category,basic view marked x.
    MATERIAL DESC--material description
    CLIENT DATA--uom,transportation grp, tax class
    CLIENTDATAX---marked X in above fields
    PLANTDATA-loading grp
    PLANTDATAX-marked x for above field
    ADDL CLIENTDATA--valuation class
    ADDLCLIENTDATAX--marked X for v class
    Please help me in this regard.
    Regards,
    Kiran.

  • How can I know the new Material Master has been created?

    Does anyone have been tried about how to trigger the new Material Master has been created at a time interaval(maybe an hour or a day)?
    I want to transfer the new Material Master within a given period from SAP R/3 4.6C to .NET Application through standard BAPI or RFC and .NET Connector 2.0. How can I do?
    Any suggestion is wellcome. Thank You.

    Thank you Jiri Ehrlich for answering my question..
    I choose the third way as you suggest..
    ".. 3) Create your own ABAP function to export whole Material Master, call this function from your .NET application and do synchronizing on .NET side (so your .NET application will be RFC client).."
    I've tried RFC that retrieve Material Detail by using BAPI_MATERIAL_GETLIST. It works fine but if I want to retrive the new Material or modified within a given period of time(for example 15 or 30 minutes). How I can do? Is there any standard BAPI or RFC to call from .NET or I have to write new RFC.
    I have little background of ABAP so help me please. If I have to create new RFC, is there any ABAP Function to call or which table I can retrive those information.
    Anyone can suggest?? Thanks in advance

  • HT5367 Does anyone know if I can download this version of Java - for OS X 2012-005 - the new Java update is a total mess and it is preventing me from working... need to go back :-(

    Does anyone know if I can download this version of Java - for OS X 2012-005 - the new Java update is a total mess for me and is preventing me from working remotely...  :-( really need to go back to older Java, don't have the Time Machine set up ...  Thx

    I wonder if it's a variation of this, of which I've seen many different symptoms...
    http://km.support.apple.com/library/APPLE/APPLECARE_ALLGEOS/TS4135/TS4135_01-osx _1072-login_window-001-en.png
    Resolution
    Move the mouse or trackpad cursor over the center area of the login window so you can see the user icons. Click on the icon of the user that you would like to login as, type in the user's password, and press Return.
    If the login window is configured to show only the name and password fields, type in the user's name and password into the fields, and press Return (even if you cannot see the rest of the login window).
    Additional Information
    This issue will not occur if the display is not sleeping when the account is logged out. Use the steps below to confirm that the account is not configured to log out automatically while the display is sleeping:
    Open System Preferences > Security & Privacy > General.  Click the padlock to unlock the preference pane and enter your admin password. Click the Advanced button at the bottom, then see if the option "Log out after N minutes of inactivity" (where N is the number of minutes) is enabled.
    Open System Preferences > Energy Saver and configure Display Sleep to occur after the account is logged out, by dragging the slider to a number of minutes that is greater than N was set to in the previous step.
    Important: If automatic log out is not needed, disable "Log out after Nminutes of inactivity" in System Preferences > Security & Privacy > General. This will also prevent the issue.
    http://support.apple.com/kb/TS4135?viewlocale=en_US

  • I have been editing a document on my MacBook Pro and iPad, which has the newer versions of Pages. Now, I cannot open on My MacBook. It says I need a newer version of OS. However, I'm not showing a newer version being availabe!!! Can anyone help???

    I have been editing a document on my MacBook Pro and iPad, which has the newer versions of Pages. Now, I cannot open on My MacBook. It says I need a newer version of OS. However, I'm not showing a newer version being availabe!!! Can anyone help???

    That is Pages for iPad v2.0, which Pages '09 v4.3 can't read.
    You need to either stick with the older version of Pages on the iPad or get Pages 5 for the Mac which is only available if you are running OSX 10.9 Mavericks.
    Unfortunately that is not the end of your woes because Apple has made iCloud convert the files to Pages 5 now, and Pages 5 has over 90 features deleted on top of doing a shocking job of converting older Pages files.
    Peter

  • Entourage error "The server for my email acount returned the error "Login Failed". Your username/password or security settings may be incorrect. Would you like to try re-entering your password?"

    I have 1 user on a Mac who just started having a pop up message when opening entourage "The server for my email acount returned the error "Login Failed".
    Your username/password or security settings may be incorrect. Would
    you like to try re-entering your password?" I know the settings are right because the users mail works on iPhone,iPad,an windows machine. I have deleted entourage plist and also tried a new user same message appears in new user.

    See thread here:
    https://discussions.apple.com/message/23175721#23175721
    It worked for me.

  • Function or method which returns the full PDC path of webdynpro iview

    Hi All,
    I have created a webdynpro application and created a webdynpro Iview in portal and attached this view to a role.  I am looking for any standard function module or method which returns the full PCD path of the webdynpro iview, when it executed from portal.
    Regards,
    H.K.Hayath Basha.

    Well in ABAP, we don't have portal APIs to access potal catalog info.
    The only available Portal Interface is IF_WD_PORTAL_INTEGRATION
    Abhi

  • Need a FM which returns the last modified date& time

    Hi,
    Kindly Suggest me if any Function Module is there which returns the last modified date& time for tables HRP1000 and HRP1001.
    Rgds
    Kishor.C

    just check the following tables..
    CDHDR - Change document header
    CDPOS - Change document items
    you can use this function module..
    BPCT_CHANGEDOCUMENT_DISPLAY
    Edited by: Arunima Rudra on Apr 14, 2009 4:49 PM

  • Is there any BAPI  FOR TASKLIST CREATION OF ANY EQUIPMENT ?

    Dear Sir,
    Is there any BAPI  FOR TASKLIST CREATION OF ANY EQUIPMENT .
    Thanks.
    Regards,
    Pooja Joshi.

    Hello Pooja
    Perhaps the following link may be useful:
    <a href="http://www.sapfans.com/forums/viewtopic.php?p=906052">FAQ: Plant Maintenance and Customer Service BAPIs</a>
    Regards
      Uwe

  • Hello how can i transfer photo for my old computer to the new one

    hello how can i transfer photo for my old computer to the new one

    If your computers are connected to the same network, you can turn on Sharing to allow you to see the contents of one from the other and do transfers. If there is no network, you can use "target disk mode" explained here: http://support.apple.com/kb/PH13842
    Otherwise, you will need to use external storage such as a USB flash drive.

  • What can I use my Droid Charge for, after I upgrade to the new Samsung Galaxy S2 for VZW on Sept 8?

    what can I use my Droid Charge for, after I upgrade to the new Samsung Galaxy S2 for Verizon on September 8?
    I guess it can run fine on Wi-Fi and become a media player.... or is there a market for 1-month-old Droid Charge phones?
    How much trade-in value can I get from VZW or BestBuy or Amazon?
    Thanks!

    http://www.droid-life.com/2011/08/03/leaked-verizon-roadmap-reveals-potential-launch-dates-for-stratosphere-vigor-bionic-and-more/
    DROID Bionic:  (9/8 launch) – You already know everything about this device, don’t you?
    Samsung Stratosphere:  (9/8 launch) – 4G LTE device running Android 2.3
    HTC Vigor:  (10/6 launch) – Will replace the HTC Thunderbolt
    LG Revolution 2:  (10/20 launch) – Will replace the original Revolution
    Samsung Galaxy Tab P8 (November launch) – Could be the 8.9″ Galaxy Tab?
    Samsung Illusion:  (9/29 launch) – 3G smartphone running Android 2.3
    Samsung Plato:  (January launch) – whatever it is, it was pushed to 2012
    HTC Bliss:  (9/29 launch) – Lower end Android 2.3 device; the chick phone?
    Motorola XOOM 4G LTE:  (9/8 launch) – Assuming this is the date that the 4G LTE upgrade starts. Also when the 4G LTE version will be in stores.

Maybe you are looking for