BAPIs for Create and Change Classes

Hi experts,
Is there any BAPI to Create or to Change the classes.
Thanks,
kruthik.

Hi
Class Creation first u need to check whether the class is alreay created or nor for that use the below BAPI
CALL FUNCTION 'BAPI_CLASS_EXISTENCECHECK'
      EXPORTING
        CLASSTYPE = CLASSTYPENEW
        CLASSNUM  = CLASSNUMNEW
      TABLES
        RETURN    = RETURN.
    CLEAR RETURN.
    READ TABLE RETURN WITH KEY TYPE = 'S'.
    IF SY-SUBRC = 0.
      MESSAGE RETURN-MESSAGE TYPE 'I'.
    ELSE.
CALL FUNCTION 'BAPI_CLASS_CREATE'
        EXPORTING
          CLASSNUMNEW          = CLASSNUMNEW
          CLASSTYPENEW         = CLASSTYPENEW
          CLASSBASICDATA       = CLASSBASICDATA
        TABLES
          RETURN               = RETURN
          CLASSDESCRIPTIONS    = CLASSDESCRIPTIONS1
          CLASSCHARACTERISTICS = CLASSCHARACTERISTICS.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          WAIT = 'X'.
for Changing the class
CALL FUNCTION 'BAPI_CLASS_CHANGE'
    EXPORTING
      CLASSNUM                = CLASSNUM
      CLASSTYPE               = CLASSTYPE
      KEYDATE                 = SY-DATUM
      CLASSBASICDATA          = CLASSBASICDATA
      CLASSBASICDATANEW       = CLASSBASICDATANEW
    TABLES
      RETURN                  = RETURN
      CLASSDESCRIPTIONS       = CLASSDESCRIPTIONS1
      CLASSDESCRIPTIONSNEW    = CLASSDESCRIPTIONSNEW
      CLASSCHARACTERISTICSNEW = CLASSCHARACTERISTICSNEW.
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' .

Similar Messages

  • Bapi For creation and change for Vendor Master and Customer Master

    I am looking for BAPI to create and change  Vendor Master and Customer Master which will not take me to standard SAP transaction but will work in the background
    Explanation: BAPI to delete material (BAPI_MATERIAL_DELETE) take you to standard SAP screen of T-Code MM06  but BAPI to create material (BAPI_MATERIAL_SAVEDATA) creates material in the background i.e. does not take you to standard SAP screen of T-Code MM01
    So in my case (i.e. to create and change  Vendor Master and Customer Master ) I want BAPI which would work like BAPI to create material (BAPI_MATERIAL_SAVEDATA)

    For general information,to find BAPIs associated with any business object :
    Transaction : BAPI - choose alphabetical tab - Find customer - (right side choose - tools - create bapi list and search ) , you will get all the BAPIs associated with this particular business  object
    Mathews

  • How to give authorization for create and change particular Condition Type

    Hi...
       In my requirement is , Only one user can be authorized to create and change a particular condition type 'ZABC' in vk11 and vk12 .
    For remaining condition type can be used as in normal .
    How to do this ? How to give authorization for a particular user for particular condition type ?
    Plz guide me ..
    Thanks in advance .
    Deepa .

    Hi Deepa ,
    u can check A.Object V_KOND_VEA, in user profile u can assign condition type or tables.
    have a word with ur basis guy , so he can help u in better way.
    aand also ref FM SD_COND_AUTH_CHECK
    Regards
    Prabhu

  • Table for Created and Changed Requests...

    Dear all,
    I need a program to fetch the created date and changed date for given
    1. Tcodes
    2. tables
    3. structures
    4. domains
    5. bapi
    6. badi
    7. smartforms
    8. scripts
    etc.
    Can you plz suggest me from which table i could get all these details.
    I tried TRDIR and i have got the dates for reports.
    Regards
    Sivaprasad...
    best suggestions will be rewarded with points.
    Edited by: Sivaprasad ML on Aug 4, 2008 2:20 PM

    Hi,
    Check this out
    RSRREPDIR                Directory of all reports
    TADIR                          Directory of Repository Objects
    TCDIR                          Control Directory
    TDDIR                          Active field exits for data elements
    TFDIR                          Function Module
    Thanks,
    Muthu

  • Can we use IDOC_INPUT_ Message type for creating and changing the document

    Hi,
    I have a requirement to create or change the requisition data.
    Can I use IDOC_INPUT_PREQCR01 function module for both the purpose.
    OR shall I go for custom function module by using BAPI function modules to create or change the data.
    Please help me in this regarding.
    Answers will be rewarded.
    Thank you.
    Eswar

    Hello Eswar
    You could use the IDoc processing function module if you had the data already available in the IDoc specific format (which is unlikely). This would mean you are receiving the IDoc data from another SAP system.
    Instead, check the BAPI explorer (transaction BAPI) if you can find an appropriate BAPI.
    Regards,
      Uwe

  • BAPIs to create and change the BOM

    Hi experts,
    Is there any BAPI to Create or to Change the BOM
    Thanks,
    kruthik.

    Hi ,
    For Routing Create 'BAPI_ROUTING_CREATE'.
    For char change BAPI_CHARACT_CHANGE.
    Edited by: Selva M on Feb 24, 2010 11:38 AM

  • Bapi for create Engineering Change Management (ECR)

    Hi abapers,
    do you know a function module to create ECR? (Not CM!)
    Thx

    nobody knows a bapi for CC31 transaction?
    Edited by: Andrea Peruffo on Sep 9, 2008 3:13 PM

  • BAPI for Create and Delimit Organizational management infotype

    hi
    exist bapi can to create and delimit OM object(HRP1000) or
                              Relationships(HRP10001)
    some one can give me a demo code !
    help!
    thank you very much!

    close

  • JDBC to iDOC (DEBMAS) for create and change.

    Hi all,
    I have this problem...
    my Scenario: JDBC(MultiBase) -> iDoc (Debmas06).
    with iDoc DEBMAS06, i'm creating customers...
    but the POS can send the same customer again...
    XI process it but... show an error... because, the STCD1 is already created...
    so i'm thinking use one interface with the iDoc and a BAPI(BAPI_CUSTOMER_CHANGEFROMDATA1) for this purpose...
    but somebody told me (in SDN) than with debmas I can change a customer... but I can't find information about how to do it... everybody talk about.. the change in SAP and then send it to POS... but... in the other way????
    any help, any info??
    thanks a lot.
    Regards

    > if you change customer with IDOC do you use the same sales tax as
    > the customer already has? and then you have this error ?
    yes, I'm using the same Sales Tax... and when see in trx WE02 the iDoc, it say's: "
    No batch input data for screen SAPLID_TAXNUM 1000"
    SAP give this error only when I use two times the same STCD1.
    so i assume, than can't use the iDoc for change an unique customer...
    but may be I'm wrong and this error, tell me another thing.. i don't know.
    > if not did you try leaving this field empty? as BAPI cannot change it anyway...
    but thinking logically how the iDoc will find the customer than I want to change??????
    may be I have to use my look up.. ask if  the customer "XXXX" exists, and if it is true, don't use the STCD1 and use the KUNNR ?????????
    Thanks

  • FM or BAPI for creating/deleting condition records for an output type

    Hi all,
               what is the FM or BAPI for creating and deleting the condition records for a Z(custom) output type.

    You can use trasaction SXDA_TOOLS.....
    object type BUS3003
    program type BINP
    program/method RM06IBI0
    but the fields must be sequentially written in the txt, with every space inclusive....

  • Function module which uses both BAPI's for sales order create and change

    Please name the function module which uses both BAPI's for sales order create and change.
    BAPI_SALESORDER_CREATEFORMDAT2
    BAPI_SALESORDERCHANGE

    Yup.
    you must write a piece of code for this.
    with if else condition.first check if SO is exsist than use second FM to change it else create new SO from first FM.
    logic somethig like this.
    Amit.

  • Standard BAPI/RFC for create and create material

    Hi All,
    Can you please let me know what standard RFC/BAPIs can be used to create and change Material Master from Portal/ WebDynrpo for Java.
    Thanks,
    Vamshi

    BAPI_MATERIAL_SAVEDATA

  • User Exit For PR Create and Change

    Hi,
       Please help me for finding User Exit while creating Purchase Requisiton(Me51/Me51n)  and aslo changing Purchase Requisiton(Me52/Me52n).
    Mainly i want to exit for validating Plant and material code while creating and changing PR.
    Thanks,
    Sunil sahoo

    Hi,
    Use the exists
    M06B0001  Role determination for purchase requisition release
    M06B0002  Changes to comm. structure for purchase requisition release
    Regards,
    Nandha

  • BAPI for COSS and COSP Table to Create and Update

    Hi,
    Is there a BAPI for COSS and COSP for creating and/or updating these tables?
    Thanks

    hi ,
    u dont have any bapis for updatign specific tables
    bapis are generally used for updating a transaction i mean number of tables
    where is the use of the tables u can search bapis in transaction bapi
    and where are the tables used i guess in fi/co so u can search under them
    regards
    afzal

  • Is there a Business Object for Sales Order Create and Change VA01 and VA02

    Hi experts -
    I am looking for a business object for Sales order create and change VA01 and VA02 respectively?
    Thanks,
    Mark

    Hi Mark,
    I think this question is best answered in [SAP Solutions|/community [original link is broken]; Forums.
    - Subhodeep
    Edited by: Subhodeep on Aug 29, 2009 11:14 AM

Maybe you are looking for

  • Adobe Web Premium CS4 setup.exe not working (upgrade)

    Just bought and downloaded Web Premium upgrade, extracted with no issue, ran setup.exe and the mouse flickered but nothing happened. No service listed in taskmanager, nothing. After googling a while, I used msconfig to turn off everything possible on

  • Using 6533 DIO32HS, is it possible to use double buffered output with varying pauses?

    I'm using Level-Ack handshaking to transmit data. Currently, I'm hooked up to a loop-back on the DIO32HS card. If I don't use double-buffering, I end up with pauses in data transmission, so I need to use double buffering. Unfortunately, I can't seem

  • Any send is-retail material and transaction codes

    Hi, i am new to is-retail. i need is-retail material and transaction codes. 1.how can i found article hierarchy? 2.transaction code for article creation? 3.transaction for country, zone, state, city, store, concepts? 4.transaction code for product ca

  • Why is DVI displayed at startup?

    For a few seconds at startup or when starting from sleep mode, the computer displays "DVI" in a small retangular square.  After looking at this a few hundred times and waiting all those seconds, it does not look normal and has become annoying.  Any i

  • Class not found, Jar not executing

    Hello, I created a JAR file and cannot execute it by running java -jar myjarfile.jar. I get no error message and it does not execute. If I extract the JAR, and run my main class with java packagename.myclass it works fine If I run javaw myjarfile.jar