Calling BAPI in the Classes and also in Methods

hi ,
is it possible to call the BAPI function module in the classes, i am creating BSP for creating the material, i think BDC will not work properly in this case, so i want to use BAPI for creating material , so please suggest me which way is suitable for this, and let me know is it possible to use BAPI's in classes which is created throw SE24 tcode.
srujan.p

Hi,
yes, it is possible to call BAPI from method. It is just normal function module call. Generally I am trying to avoid BDC. It almost always brings some problems. There is BAPI BAPI_MATERIAL_SAVEDATA for maintaining material master data.
Cheers

Similar Messages

  • FM/Class to find the class and characterstics for a given material

    Hi All,
    Is there any Class/FM to find the class and characterstics for a given material.I tried some BAPI_OBJCL* BAPI's but lot of the BAPI's need classnum as input parameter. But i need a BAPI or tables or class which can give the class and its characterstic values for a given material.

    Hi Ben
             Try ..
    BAPI_OBJCL_GETCLASSES
    BAPI_OBJCL_CREATE

  • [svn] 2622: TextBox and TextGraphic now call applyDisplayObjectProperties() at the end of their draw() method, like all other GraphicElements.

    Revision: 2622
    Author: [email protected]
    Date: 2008-07-24 16:13:32 -0700 (Thu, 24 Jul 2008)
    Log Message:
    TextBox and TextGraphic now call applyDisplayObjectProperties() at the end of their draw() method, like all other GraphicElements. This method handles setting the visibiliy of the GraphicElement's DisplayObject, among other things.
    Note: We should make it unnecessary for each GraphicElement subclass to have to call applyDisplayObjectProperties() at the end of draw(). The GraphicElement base class should ensure that this gets called at the appropriate time.
    Group now calls draw() on graphic elements even if they are invisible, because otherwise applyDisplayObjectProperties() never gets called and the TextLines stay visible. Group was assuming that the only visible stuff in a GraphicElement is drawn with Graphics calls, which isn't the case.
    This change is OK for now because every GraphicElement currently has its own DisplayObject, but it will need to be rethought when GraphicElements share DisplayObjects.
    Reviewer: Chet
    Bug: MXMLG-206 ("Setting visible property on TextGraphic does nothing")
    QA: Peter, please add a Mustella test case for the 'visible property of TextBox and TextGraphic
    Doc: No
    Ticket Links:
    http://bugs.adobe.com/jira/browse/MXMLG-206
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextBox.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextGraphic.as

    Changes for spine–aligned head:
    public class StickManTool extends JPanel
        public StickManTool ()
            limbs [16] = new Limb (lankle, lfoot, 1);
            head = new Head2D (limbs[0]);
        protected void paintComponent (Graphics g)
            head.draw(graphics);
        private void updateLimbs (Point start, Point end)
            head.setPosition();
    class Head2D extends Ellipse2D.Double
        public static double width = 30;   // width of head
        public static double height = 40;  //height of head
        Point atlas;
        Point pelvis;
        private AffineTransform xform = new AffineTransform();
        public Head2D(Limb spine)
            super ();
            atlas = spine.movingJoint;
            pelvis = spine.fixedJoint;
            setPosition();
        public void setPosition()
            // Find angle of spine.
            double dy = atlas.y - pelvis.y;
            double dx = atlas.x - pelvis.x;
            double theta = Math.atan2(dy, dx);
            //System.out.printf("theta = %.1f%n", Math.toDegrees(theta));
            // Find center of head as extension along spine from atlas.
            double cx = atlas.x + (height/2)*Math.cos(theta);
            double cy = atlas.y + (height/2)*Math.sin(theta);
            // Move to origin of head.
            xform.setToTranslation(cx-width/2, cy-height/2);
            // Rotate head about its center.
            xform.rotate(theta+Math.PI/2, width/2, height/2);
        public void draw(Graphics2D g2)
            g2.draw(xform.createTransformedShape(this));
        public double getWidth () { return width; }
        public double getHeight () { return height; }
        public void setWidth (double widthIn) { width = widthIn; }
        public void setHeight (double heightIn) { height = heightIn; }
    }

  • Mofcomp.exe failed, delete the classes and retry compiling, 0x8004400a unexpected token at file scope, Primary DP will not validate

    I have SCCM 2012 R2 CU3. Before when I've had DP problems it was always with secondary DPs. Now I've got an issue with my primary DP. Content will not validate on the main DP, called DP1. In Monitoring Distribution Point Configuration Status there are repeated
    errors about "Failed to validate package ABC12345\\fqdn". On the site server in distmgr.log this entry repeats over and over:
    "Mofcomp.exe failed, delete the classes and retry compiling E:\program files\microsoft configuration manager\bin\64\smsdpprov.mof
    Failed to compile MOF file. Error code 2."
    The problem is I don't know what classes it's talking about, nor how to delete them, nor can I find anything directly applicable about this error. I did run "mofcomp.exe smsdpprov.mof" anyway but I get the error "error syntax 0x8004400a: unexpected
    token at file scope. Compiler returned error 0x8004400a."
    This DP1 was working fine until a few days ago. We haven't made any upgrades/changes to the server either.
    We sent a package just to DP1 and it did deploy the content, so it appears that it just can't validate.
    Thanks for any help.
    Ben JohnsonWY

    Hi,
    About the error in Mpcontrol.log, you could try to uninstall the MP, reinstall IIS components, then install MP to see if it can resolve this issue.
    If not, please have a look at the following blogs.
    Support Tip: ConfigMgr 2012 Management Point fails
    with a 500 error after working fine for a short period of time
    SCCM MP Internal Server Error ISS Call to HttpSendRequestSync
    failed for port 80 with status code 500
    From you description above, you reinstalled the DP. Did you reinstall the IIS components during the DP reinstallation? If not, please try to reinstall the IIS components.
    Best Regards,
    Joyce
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • HT4623 Please  help!  i have just update my iphone 4s with 7.4 update and my phone is now asking for a password which i dont have.  I have tried my keypad lock i used before the update and also my itunes password and neither work, how do i rectify this ??

    Please  help!  i have just update my iphone 4s with 7.4 update and my phone is now asking for a password which i dont have.  I have tried my keypad lock i used before the update and also my itunes password and neither work, how do i rectify this ???

    Did you buy this iPhone new from an authorized seller?

  • I have an iphone 5s and it is synced to itunes and works fine. previously I have downloaded audiobooks to my wifes 6th gen nano using this account - now I tunes does not recognize the device and also it seems that it is not being read by the computer?

    I have an iphone 5s and it is synced to itunes and works fine. previously I have downloaded audiobooks to my wifes 6th gen nano using this account - now I tunes does not recognize the device and also it seems that it is not being read by the computer?

    Hey Stan1958,
    Thanks for the question. I understand you are experiencing issues with your iPod nano and iTunes. Based on your symptoms, you may find the following resources helpful in resolving this issue:
    Windows
    iPod appears in Windows but not in iTunes
    iPod not recognized in 'My Computer' and in iTunes for Windows
    iTunes reports that "iTunes cannot recognize this iPod at this time"
    Thanks,
    Matt M.

  • HT201412 I am trying to personal hotspot but each time I go into it and tune it on the screen goes back to the Settings page and personal hotspot has disappeared and can not be found. I have tried restarting the phone and also a factory restore to no avai

    I am trying to personal hotspot but each time I go into it and tune it on the screen goes back to the Settings page and personal hotspot has disappeared and can not be found. I have tried restarting the phone and also a factory restore to no avail. HELP

    I had a similar issue and it was password case sensitive issue

  • I am using an iMac and i am selling it tomorrow. So i am trying to back up all my files on my transcend external HD 500GB. I am not able to create a folder in the transcend and also even if I try to copy a file in the transcend folder. It just wont happen

    I am using an iMac and i am selling it tomorrow. So i am trying to back up all my files on my transcend external HD 500GB. I am not able to create a folder in the transcend and also even if I try to copy a file in the transcend folder. It just wont happen. Please help !!
    My transcend HD is on read only mode I guess. What to do? I dont have a windows computer to check and I need to create the back up right now..

    Welcome to Apple Support Communities
    It looks like the external disk is formatted in NTFS, a format that OS X can't write in. The solution is to format the external drive in "Mac OS Extended (Journaled)" (if you are going to get a Mac), or "MS-DOS (FAT)" (if you are going to get a PC) as Format in Disk Utility > http://pondini.org/OSX/DU1.html
    Then, you will be able to copy the files you need to the external drive. Note that "MS-DOS (FAT)" doesn't support files bigger than 4 GB.
    <Edited By Host>

  • I've got an iPad and iPhone 4S, both of which are set up for facetime. When someone calls me, both the iPad and phone ring, even though the phone is set to receive facetime calls on the number and the iPad is set for an email account. why is this?

    I've got an iPad and iPhone 4S, both of which are set up for facetime. When someone calls me, both the iPad and phone ring, even though the phone is set to receive facetime calls on the number and the iPad is set for an email account.
    How can I change the setup so on the email only the iPad rings and on the phone number only the phone rings?

    No it's not stealing. They have an allowance that you can share with so many computers/devices. You'll have to authorize her computer to play/use anything bought on your acct. You can do this under the Store menu at top when iTunes is open on her computer.
    As far as getting it all on her computer....I think but I am not sure (because I don't use the feature) but I think if you turn on Home Sharing in iTunes it may copy the music to her computer. I don't know maybe it just streams it. If nothing else you can sign into your acct on her computer and download it all to her computer from the cloud. Not sure exactly how to go about that, I haven't had to do that yet. I wonder if once you authorize her computer and then set it up for automatic downloads (under Edit>Preferences>Store) if everything would download. Sorry I'm not much help on that.

  • I have tried to reinstall CS3 extended student version to my new comuter from the dvd and also from the web download but it does not work - I get the information that the server does not work- why. How should I do?

    I have tried to reinstall CS3 extended student version to my new comuter from the dvd and also from the web download but it does not work - I get the information that the server does not work- why. How should I do?

    Well the error message is in Swedish but says: The installation program database is damaged. Please contact the Adobe support (which is a hard thing to do!!). I use Windows 7 Home Premium with service pack 1.
    Från: Mylenium 
    Skickat: den 29 december 2014 16:48
    Till: Tony Bohman
    Ämne:  I have tried to reinstall CS3 extended student version to my new comuter from the dvd and also from the web download but it does not work - I get the information that the server does not work- why. How should I do?
    I have tried to reinstall CS3 extended student version to my new comuter from the dvd and also from the web download but it does not work - I get the information that the server does not work- why. How should I do?
    created by Mylenium <https://forums.adobe.com/people/Mylenium>  in Downloading, Installing, Setting Up - View the full discussion <https://forums.adobe.com/message/7050595#7050595>

  • Change the class and type in javascript or select statement of region

    Application Express 3.2.0.00.27
    I have a manually created tabular form where I need pk to be updatable or not not updateable depending on whether its a new record or not.
    I am attempting this thru 2 different ways.
    1st:
    using decode in select statement of region:
    SELECT decode(c001,NULL,APEX_ITEM.POPUP_FROM_LOV(15,c001,'AUTH_LOV',NULL,NULL,0,NULL,NULL,NULL,'YES','f15_' || '#ROWNUM#'),
    apex_item.display_and_save(15,c001,'f15_'|| '#ROWNUM#')) authid,
    apex_item.hidden(16, c002, NULL,'f16_'|| '#ROWNUM#') empid,
    -- apex_item.display_and_save(16,c002,'f16_'|| '#ROWNUM#') empid,
    apex_item.date_popup(17, rownum, c003, 'DD-MON-YYYY',20,2000,NULL,'f17_' || '#ROWNUM#')deldate,
    apex_item.textarea(18,c004,5,40,NULL,'f18_'|| '#ROWNUM#') "Delegation scope",
    apex_item.textarea(19,c005,5,40,NULL,'f19_'|| '#ROWNUM#')"Delegation limits",
    apex_item.select_list_from_lov(20,c006,'YESNO_LOV',NULL,'NO','N','%','f20_'|| '#ROWNUM#')"ORA Signed",
    apex_item.date_popup(21, rownum, c007, 'DD-MON-YYYY', 20,2000,NULL,'f21_' || '#ROWNUM#') "Del expiry",
    apex_item.date_popup(22, rownum, c008, 'DD-MON-YYYY', 20,2000,NULL,'f22_' || '#ROWNUM#') "Date removed",
    apex_item.textarea(23,c009,5,40,NULL,'f23_'|| '#ROWNUM#') "Delegation comments",
    apex_item.POPUP_FROM_LOV(24,c010,'DELEGATION_LOV',NULL,NULL,0,NULL,NULL,NULL,'YES','f24_' || '#ROWNUM#') "Delegator",
    apex_item.display_and_save(25,c011,'f25_'|| '#ROWNUM#') status,
    -- apex_item.display_and_save(26,seq_id,'f26_'|| '#ROWNUM#') seq_id,
    apex_item.hidden(26, seq_id,NULL,'f26_'|| '#ROWNUM#') ||
    apex_item.checkbox(27, seq_id,NULL,NULL,':','f27_'|| '#ROWNUM#') chkbx
    FROM apex_collections
    WHERE collection_name = 'DELEG_COLL'
    AND c011 IN ('O','N','U','D')
    --order by c001However this approach yields this error when I try to pick a value from the lov:
    Error: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.
    My other approach is to attempt to change the type and class in javascript. I am trying this but I get an error when I attempt to change the class and type like this:
    <script type="text/javascript">
    <!--
    /* Client side validation on the Salary column */
    function changeProp(pCol) {
       var elms = document.getElementsByName(pCol);
       for (i=0; i< elms.length; i++) {
    /*       elms.style.backgroundColor = 'yellow'; */
    if (elms[i].value == null || elms[i].value == '%null%'
    || elms[i].value == '') {
    elms[i].class = 't20data';
    elms[i].type = 'hidden';
    alert('The value is' + elms[i].value);
    //-->
    </script>

    not completely duplicate...here in this thread I am stressing what I am trying to accomplish and asking for help on the javascript side.

  • Which Table, can I find the class and characteristic assigned to equipment.

    Hi all,
    I have assigned a characteristc to a class.
    And assigned this class to an equipment.
    Now in which table can i find the class assigned to this equipment.
    What is the logic to find the class and characteristic.
    Thanks in advance.
    Piyush

    Hi,
    As per above post, you can find classes. To find characteristics, Give EQUNR value in OBJEK field in AUSP table & get the ATINN value.
    Give ATINN value in ATINN field in CABN table & get ATNAM field value.
    In AUSP table, you can get the values against each characteristics as well.
    Regards,
    Maheswaran.
    Edited by: Maheswaran.K on Apr 19, 2011 9:28 AM

  • Adding all the classes and external jars in webservice WAR using servicegen

    Hi,
    Can someone please tell me how do I include all the classes and my external jar files to the ear/war file that is created using servicegen. I don't see any option in servicegen tag where I can include my classes and jar files to the ear/war file. The war it creates only contains the web service implementation class but I want to all the classes in the service code and jars in the same war. Any ideas on how to do that instead of putting in the classpath.
    here is the snippet of my build file
    <servicegen
           destEar="${deploy}/myservice.ear"
           warName="myservice.war">
           <service
             javaClassComponents="com.ws.service.TestService"
             targetNamespace="http://xmlns.test.com/tool/myservice"
             serviceName="myservice"
             serviceURI="/myservice"
             style="document"
             protocol="http"
             expandMethods="True">
           </service>
          <classpath>
            <pathelement path="${classes}"/>
            <pathelement path="${lib}/*.jar"/>
         <pathelement path="C:/bea/weblogic92/server/lib/webserviceclient.jar"/>
          </classpath>      
    </servicegen>
    ..........................Thanks

    Hi,
    The work around I am using to overcome this problem is Unzipping th ear/war file created by servicegen task and including all the classes. Then creating the ear file again by creating a new ant target.
    I know this is not a neater way, but this works for me.

  • What are the classes and interface in JDBC

    Please anybody tell me
    What are the Classes in JDBC?
    and
    What are the Interfaces in JDBC?
    Will you please show the classes in one table and interfaces in one table. Plesae
    regards
    pooja.

    Hi jeyan,
    Very more thanks. I am searching lot of time in net to exactly get the classes and interface in jdbc. Now you have given helpful link.
    thank you.
    regards
    pooja

  • I have the first ipad and it won't recognize the charger and also the computer won't recognize the ipad when I plug it in to sync. Any ideas why?

    I have the first ipad and it won't recognize the charger and also the computer won't recognize the ipad when I plug it in to sync. Any ideas why?

    If your using the same cable for your wall charger as you are for your computer, than the problem is probably within the cable (if there isn't visible damage to the cable of coarse). The quockest solution would be to buy your self a new cable. There is probably nothing wrong with your wall adapter, so just the cable will do.

Maybe you are looking for

  • Lightroom 3 Export to JPEG issue ( please help) (photo attached)

    Hello,      I have been going crazy trying to solve this issue and can't find a solution. I am using Lightroom 3.4.1 on a Mac running 10.6.7. In Lightroom I am editing raw images from a Canon 7D. I tweak and adjust the images to my liking but when I

  • Setting up SCM and Procurement

    Hi, I have SCM installed in R12 and I need to set  up SCM and Procurement. Could someone advice me whcih document I need to follow. Expectgin help from experts. Thanks Seb

  • Need help sending message on 6110

    I only just sent a message on my nokia 6110, and about 5 mins later i went to send another text and it wont let me reply or send new txt. I cannot also view my contact list.

  • 27" runs hot in target display mode

    Anyone else notice this..I use my 27" imac in Target Display Mode for my Mac Pro only and for some reason the fans slowly ramp up..especially the cpu unit to at least 1500. I find this odd as no processing is done and I doubt the GPU is used either.

  • Anti spam for email on web pages

    I am in the process of building a text only version of my site which will display sensibly on a Blackberry. One problem I have encountered is that I use Syronex anti-spam protection on the email addresses in the pages. This does not appear to work on