Doubt in BAPI:BAPI_SALESORDER_CREATEFROMDAT1

How to pass alternate tax classification under billing header???

Hi Prajwal,
Please check this link
RFC and BAPI Interfaces to SAP Systems
http://help.sap.com/saphelp_45b/helpdata/en/cf/8ccab761ea11d2804a00c04fada2a1/content.htm
BAPI's are the remote enabled Function modules which are defined in the Business Object Repository (BOR) as the methods of the business objects.I can say BAPI is the subset of RFC. RFC connects to the other system via BAPI and vice versa.
BAPI methods are RFC enabled function modules. The difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. in this case u only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call.Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs.BAPI is having all Key fields, methods, interfaces etc.
Best regards,
raam

Similar Messages

  • Doubt in BAPI

    Hi All I have a doubt in BAPI.
    I have created a function module which is remote enabled module. I didnu2019t create any BAPI using Tcode SWO1 or BAPI. Am using this function module in my VB code to get the data from SAP, Its working fine am getting all data from SAP database.
    My Question is since we can use sap Function module (which is remote enabled module) with out creating BAPI. Then what is the use of creating BAPI.?    
    If we click on radio button Remote enabled module is that function module act as BAPI?
    Please help me.
    Regards
    Prajwal K.

    Hi Prajwal,
    Please check this link
    RFC and BAPI Interfaces to SAP Systems
    http://help.sap.com/saphelp_45b/helpdata/en/cf/8ccab761ea11d2804a00c04fada2a1/content.htm
    BAPI's are the remote enabled Function modules which are defined in the Business Object Repository (BOR) as the methods of the business objects.I can say BAPI is the subset of RFC. RFC connects to the other system via BAPI and vice versa.
    BAPI methods are RFC enabled function modules. The difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. in this case u only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call.Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs.BAPI is having all Key fields, methods, interfaces etc.
    Best regards,
    raam

  • Hi guys doubt on bapi please reply

    hi,
    i have doubt on which import parameters to be used in the bapi BAPI_ACC_GL_POSTING_REV_POST we have posting date and document no with us we are confused about what import parameters to be sent as an input to this bapi...........
    reward will be given for nice reply...............

    Give any field string (variable) of type BAPIACREV
    Finally it will give these values..
    Reversal document number:
    o OBJ_TYPE Sender ID
    o OBJ_KEY Reference number of the reversal document (source
    document)
    o OBJ_SYS Logical system
    o OBJ_KEY_R Reference number of the document to be reversed.
    i gave the sender id as bkpff which i was using as obj type for posting.
    is obj_key the new unassigned document number in the row.
    obj_sys gave the specific logical system.
    obj_key_r can i give any document number generated during gl posting using bapi_acc_gl_posting_post
    i even specified the other parameters such as posting date and reversal type but no reversal is done...........need more clarification on this .....
    reward is sure..........

  • Doubt about BAPI

    Hi Experts,
    I have one doubt. I want to Attach document to the material of a particular BAPI  that have been existed in the sap r/3 system.Which BAPI wil work for this to attach a document to the material.Please let me know . Its very urgent.
    Helpful Answers wil be reward
    Regards
    Khanna

    Hi.
    Both of the listed BAPI's have no functionality/option to link a document!
    Can anyone suggest a BAPI/RFC to link a Document while creating a Material? Also, You can link a Document to a Material by "BAPI_DOCUMENT_CHANGE2".

  • Doubt in BAPI - BAPI_TRANSACTION_COMMIT

    Hi Gurus,
    I am posting material from customer storage palce to activate storage location through the follwo\ing BAPI-
    BAPI_TRANSACTION_COMMIT.
    in that i got error as follow
    Material 30000004 not maintained in plant SUND
    Material 30000005 not maintained in plant SUND
    Material 30000006 not maintained in plant SUND
    Material 30000007not maintained in plant SUND
    Material 30000008 not maintained in plant SUND
    BUt if i post through MIGO trasaction directly means, no errors occur.
    only through BAPI the above error occurs.
    Help me to Solve this problem.
    Thank in Advance.
    Regards,
    Bhuvana.

    Hi,
      Sit with your functional consultant .May be the plant parameters have been maintained for your plant
    under Inventory management and Physical inventory If not pl maintain the same in SPRO.
    Regards
    Kiran Sure

  • Doubt on bapi

    Hi all   suppose if iwant to upload a material using bapi,  than how can i know the FM's that are avialable for this..

    Hi Gurus
    I am using the extension parameters of BAPI to load some customized fields for the object-BUILDING in REAL ESTATE MODULE using LSMW-BAPI.
    Here's the code-
    *Target Field: E1BPPAREX-VALUEPART1 Data part of BAPI extension paramet
    DATA:
    lt_extension_in TYPE TABLE OF bapiparex,
    ls_extension_in TYPE bapiparex,
    ls_ci_data TYPE rebd_building_ci.
    ls_ci_data-zgisx = hsouthernwater-zgisx.
    ls_ci_data-zgisy = hsouthernwater-zgisy.
    ls_ci_data-zdeed = hsouthernwater-zdeed.
    ls_ci_data-zland = hsouthernwater-zland.
    ls_ci_data-zsite = hsouthernwater-zsite.
    ls_extension_in-structure = 'CI_DATA'.
    ls_extension_in-valuepart1 = ls_ci_data.
    CALL METHOD cl_abap_container_utilities=>fill_container_c
    EXPORTING
    im_value = ls_ci_data
    IMPORTING
    ex_container = ls_extension_in-valuepart1
    EXCEPTIONS
    OTHERS = 0.
    e1bpparex-valuepart1 = ls_extension_in-valuepart1.
    I AM GETTING THE ERROR IN THE LINE-
    ls_extension_in-valuepart1 = ls_ci_data.
    SAYING THAT
    ls_extension_in-valuepart1 and ls_ci_data. are mutually not convertible
    I have written the same code for 3 objects in RE-The code was working fine in those objects.But in object- building i am getting this error..
    Anyone out there please help me regarding this..
    Thanks in advance

  • Doubt in BAPI abt FICO

    Hi All
    I had posted the document in FICO but corresponding to that i m trying to execute BAPI_ACC_DOCUMENT_POST but i m facing some problem i had given all the mandatory values in BAPI but some error is coming in Obj Type field..
    when i posted the document some details are auto generated in which reference transaction is also there but when i m using that value in the bapi error is getting generated--- error in document : BKPF is not the correct value & no item information transferred into Account 
    pls solve my problem its urgent..
    Thanks
    Anushree

    Hi,
    If have the desire to learn FICO, first you try to understand the business process in financial terms.
    Its not that much tough in financeial side, you try to learn Finace from scratch.
    All the best for you...
    Venkatesh.

  • Lsmw doubt in Bapi method

    hi experts,
         I am new for LSMW, i know the first 2 method, How to use BAPI in lsmw,( For example creation of BOM).
        Point will be sure.
    thanks,
    Regards,
    Gowri

    A standard test report is attached to BAPI CREATEFROMDAT2, as shown in transaction SXDA/Goto/DX-Program library/Sales order/CreateFromDat2 (Its name is SD_CREATE_TEST_DATA). You can use it as follows:
    Run SXDA/Goto/DX- tools/
    object type = BUS2032
    Program type = bapi
    program = CREATEFROMDAT2
    file type = physical
    file name = <give a name here, say order.txt>
    Select From test program pushbutton and the test report is ran and downloads already existing orders to your file name. You can display it or even change it.

  • Some doubt on bapi

    hi
    1)if want to use bapi, we must check the function module in method, right? why so many people use the function module in the abap program?
    2)what is the difference for bapi FM and other common FM?
    thanks

    BAPI are RFC enabled function modules. the difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. in this case u only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs. Whenever possible, a standardized BAPI must be used in preference to an individual BAPI.
    The following standardized BAPIs are provided:
    Reading instances of SAP business objects
    GetList ( ) With the BAPI GetList you can select a range of object key values, for example, company codes and material numbers.
    The BAPI GetList() is a class method.
    GetDetail() With the BAPI GetDetail() the details of an instance of a business object type are retrieved and returned to the calling program. The instance is identified via its key. The BAPI GetDetail() is an instance method. BAPIs that can create, change or delete instances of a business object type
    The following BAPIs of the same object type have to be programmed so that they can be called several times within one transaction. For example, if, after sales order 1 has been created, a second sales order 2 is created in the same transaction, the second BAPI call must not affect the consistency of the sales order 2. After completing the transaction with a COMMIT WORK, both the orders are saved consistently in the database.
    Create( ) and CreateFromData! ( )
    The BAPIs Create() and CreateFromData() create an instance of an SAP business object type, for example, a purchase order. These BAPIs are class methods.
    Change( )
    The BAPI Change() changes an existing instance of an SAP business object type, for example, a purchase order. The BAPI Change () is an instance method.
    Delete( ) and Undelete( ) The BAPI Delete() deletes an instance of an SAP business object type from the database or sets a deletion flag.
    The BAPI Undelete() removes a deletion flag. These BAPIs are instance methods.
    Cancel ( ) Unlike the BAPI Delete(), the BAPI Cancel() cancels an instance of a business object type. The instance to be cancelled remains in the database and an additional instance is created and this is the one that is actually canceled. The Cancel() BAPI is an instance method.
    Add<subobject> ( ) and Remove<subobject> ( ) The BAPI Add<subobject> adds a subobject to an existing object inst! ance and the BAPI and Remove<subobject> removes a subobject from an object instance. These BAPIs are instance methods.
    Check these Links out
    http://searchsap.techtarget.com/ateQuestionNResponse/0,289625,sid21_cid558752_tax293481,00.html
    http://www.sap-img.com/abap/interview-question-on-bapi-rfc-abap-objects-tables.htm
    http://www.sap-img.com/fu033.htm
    http://www.sap-img.com/abap/ale-bapi.htm
    REgards,
    Kishore

  • Hi guys doubt on bapi

    hi ,
    i was doing a report suing BAPI_MATERIAL_SAVEDATA..
    Actually the input to the bapi are ..
    1. header data.
    2. plant data
    3. plant data indicator
    after giving the input we r getting a error that the "season value for a material number is not found"..we have checked that the season value in matnr table is  empty..we are using mara,marc table ....but will that pick the values from any table declared default in the bapi itself ..........
    please help me on this i am new to bapi...

    Hi
    It seems for material ARMC 3251-001 the field season is not maintained or passed
    hence it says that field is missing, supply that field and see
    Reward points for useful Answers
    Regards
    Anji

  • DOUBT REGARDING BAPI

    i went through basics of BAPIS
    but iam unable to understand how exactly bapi will interact with external systems
    can any one explain clearly how bapis will interact with non SAP system
    please guys explain me with a simple business object example
    pls tell me how the coding will be in both the systems
    pls i need to learn more abt bapis i hope ur explanation will help me a lot in understanding this bapis.

    Hi Harish,
    Please check these links
    Distribution Using BAPIs
    http://help.sap.com/saphelp_nw04/helpdata/en/17/eb18c879ebd54798921ecbd2268a8e/content.htm
    Process Flow of Mass Data Transfer Using BAPIs
    http://help.sap.com/saphelp_nw04/helpdata/EN/4c/4c0e90725311d396a80004ac96334b/content.htm
    Generating the BAPI-ALE Interface
    http://help.sap.com/saphelp_nw04/helpdata/en/4c/4c0e8a725311d396a80004ac96334b/frameset.htm
    BAPI/ALE Integration
    http://help.sap.com/saphelp_nw04/helpdata/en/43/b46c4b53c111d395fa00a0c94260a5/content.htm
    Best regards,
    raam

  • Doubt in BAPI uploadation

    Hi experts,
    While uploading PO data using BAPI, In Itemx table all the fields uploading will have x but item field should have value? why it is?

    Hi,
    With the ITEMSX you tell the bapi which fields are to be inserted or changed. If you don't set the x the values of the fields from ITEMS are not taken into account.
    Regards,
    Bert

  • Doubt reg BAPI

    Hi all,
    can anyone tell me what all data needs to be passed to bapi BAPI_RESERVATION_CREATE.
    any could me a sample code
    Thanks

    Hai Swathi
    Check the following Code
    DATA: BEGIN OF RES_HEAD.
             INCLUDE STRUCTURE BAPIRKPFC.
    DATA: END OF RES_HEAD.
    DATA: H_RSNUM LIKE RKPF-RSNUM.
    DATA: BEGIN OF RES_ITEM OCCURS 10.
             INCLUDE STRUCTURE BAPIRESBC.
    DATA: END OF RES_ITEM.
    DATA: BEGIN OF RETURN OCCURS 10.
             INCLUDE STRUCTURE BAPIRETURN.
    DATA: END OF RETURN.
    DATA: BEGIN OF PROT_RS OCCURS 10,
             MATERIAL LIKE BAPIEBAN-MATERIAL.
             INCLUDE STRUCTURE BAPIRETURN.
    DATA: END OF PROT_RS.
      CALL FUNCTION 'BAPI_RESERVATION_CREATE'
           EXPORTING
                RESERVATION_HEADER = RES_HEAD
           IMPORTING
                RESERVATION        = H_RSNUM
           TABLES
                RESERVATION_ITEMS  = RES_ITEM
                RETURN             = RETURN
           EXCEPTIONS
                OTHERS             = 0.
    Auswertung der aufgetretenen Fehler und Fortschreiben Protokoll
      LOOP AT RETURN.
        ERROR_RS = 'X'.
        MOVE-CORRESPONDING RETURN TO PROT_RS.
        PROT_RS-MATERIAL = RES_ITEM-MATERIAL.
        APPEND PROT_RS.
      ENDLOOP.
    Regards
    Sreeni

  • Doubt about BAPI FM

    Hi ALL
    Can any body tell me how this FM works..
    Can i use it to get the Scheduling agreement details from this
    CALL FUNCTION 'BAPI_PO_GETDETAIL'
      EXPORTING
        PURCHASEORDER                    = W_EBELN
       ITEMS                            = 'X'
      ACCOUNT_ASSIGNMENT               = ' '
      SCHEDULES                        = ' '
      HISTORY                          = ' '
      ITEM_TEXTS                       = ' '
      HEADER_TEXTS                     = ' '
      SERVICES                         = ' '
      CONFIRMATIONS                    = ' '
      SERVICE_TEXTS                    = ' '
      EXTENSIONS                       = ' '
    IMPORTING
       PO_HEADER                        = THEADER
      PO_ADDRESS                       =
    TABLES
      PO_HEADER_TEXTS                  =
       PO_ITEMS                         = TEKPO
      PO_ITEM_ACCOUNT_ASSIGNMENT       =
      PO_ITEM_SCHEDULES                =
      PO_ITEM_CONFIRMATIONS            =
      PO_ITEM_TEXTS                    =
      PO_ITEM_HISTORY                  =
      PO_ITEM_HISTORY_TOTALS           =
      PO_ITEM_LIMITS                   =
      PO_ITEM_CONTRACT_LIMITS          =
      PO_ITEM_SERVICES                 =
      PO_ITEM_SRV_ACCASS_VALUES        =
      RETURN                           =
      PO_SERVICES_TEXTS                =
      EXTENSIONOUT                     =

    Just pass the PO number the BAPI will get everything else for you.
    CALL FUNCTION 'BAPI_PO_GETDETAIL1'
          EXPORTING
            purchaseorder = gs_tagpo_exists-ebeln
          IMPORTING
            poheader      = gs_bapipo_header
          TABLES
            return        = gt_bapipo_return
            poitem        = gt_bapipo_item
            poschedule    = gt_bapipo_schedule
            poaccount     = gt_bapipo_account.
    Cheers
    VJ

  • Doubts with BAPI

    Hi,
    1) Can we use both Tables and Changing parameters while creating Function modules and BAPI? Please tell the difference b/w Tables and Changing?
    2) Is it mandatory that we should pass internal tables with out header line through FM and BAPI?
    3) Is it mandatory that Parameters that we pass should be "pass by value"?
    Thanks in advance...

    HI..,
    1)We can use TABLES but we should not use CHANGING ...
    Changing is in a way BY REFERENCE onli...
    2)We can pass internal tables With header line also to the BAPI function module..
    3)Yes it is mandatory that we need to pass the parameters only by Value ... Because RFC enabled function modules doesnot support "By Reference".
    reward if it helps u...
    sai ramesh

Maybe you are looking for

  • How to get our HP Officejet 7310 All-in-One to print using the network option

    The network printing initially stopped working on Win XP. I now use Win 7 Enterprise.  I have uninstalled the printer from my PC, restarted the machine, went through the add new printer device wizard and still no network printing capability.  I curre

  • To view the data in open hub destination

    Hi all, Can anyone help me out how to check the data in open hub destination file. These are the details: Destination: File Type of file : Logical file Application Server file name : XXXXXXX If it was file name, i know it has to be checked in AL11 wi

  • Windows 2008 R2 (64Bit) RDS & SRWC 2.2- Session Mobility

    Hello, I am experiencing some problems with the latest SunRay Software 5 (with SRWC 2.2) and Windows 2008 R2 (64Bit) in a terminal server farm situation. The setup is configured to use RDS Session Broker (the customer is not using MS NLB). The actual

  • Native C++ metod, problem with attributes declared in other meth of Class

    Hi guys, I have an interesting question for you. I have a big C++ program, with many classes and methods..., and a java program which uses one of the methods(for the moment!) of a class.I compiled the java program, created a .h file, changed a little

  • Enabled MenuID

    Hai to All I Have Customize the Sales Enquiry Screen. I have Add the Matrix in Sales Enquiry Screen. How to Give the Delete Row option ( Menu )  that particular Matrix... other wise How to enable the DeleteRow Menu?? Thanks & Regards Madhu