BAPI - BAPI_ACC_ DOCUMENT_POST details

hi all,,,
        i am using BAPI_ACC_ DOCUMENT_POST for Gl Upload,, i need to know the bapi works functionally,, also need to know abt net debit/credit balances .. whether the bapi itself takes care this part (or) we need to code for Balancing ..
thanking in advance..
Krishna

thanks nagesh
i had rewarded points to u ,, i need a small clarifications , i need to handle line items, if more than 950 line items , iam posting as another document ,, how to balance the document (i.e.) debit and credit ..
thanking in advance..

Similar Messages

  • Need of bapi for getting details of material strage locations

    hi all,
    i need one bapi which gives details of for how many storage locations the material has been extended for particular plant..

    hi
    this is a sample bapi for getdetails.
    DATA : P0008 LIKE P0008.
    DATA : ONDATE TYPE SY-DATUM.
    SELECT SINGLE * FROM PA0008
    INTO CORRESPONDING FIELDS OF P0008
    WHERE PERNR = ITAB-PERNR
    AND BEGDA <= ONDATE
    AND ENDDA >= ONDATE.
    DATA : WAGETYPES LIKE BAPIP0008P OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'BAPI_BASICPAY_GETDETAIL'
    EXPORTING
    EMPLOYEENUMBER = PERNR
    SUBTYPE = P0008-SUBTY
    OBJECTID = P0008-OBJPS
    LOCKINDICATOR = P0008-SPRPS
    VALIDITYBEGIN = P0008-BEGDA
    VALIDITYEND = P0008-ENDDA
    RECORDNUMBER = P0008-SEQNR
    TABLES
    WAGETYPES = WAGETYPES.
    regards
    sravani yendru

  • FM/BAPI for MPLA details

    Hi all,
             Is there any FM/BAPI to get the mpla details giving the equipment number.? I need OBJNR field of MPLA.. I have the equnr.. For this I am using a select query :
    1) fetch warpl(M plan no) from mpos giving the equi.
    2) pass the 'WARPL' to MPLA tabel and get OBJNR field..
    But this is not performance efficient. Can u suggest me any FM/ BAPI for this?
    Thanks,
    Vasuki

    Answered

  • Function or BAPI for Resource Detail Selection on Bussiness Event

    Hello,
    I want to do a initial data load of Business Events (TEM). I need to load its resources in a detail form (dates and hours when resource is used by this business event). Does anybody knows any BAPI, function or class that load data in this detail form?.
    I just want to replicated how works PSV2 (or PV10) transaction when you push the resource selection button, select the resource type and a detailed selection but as funtion or BAPI.
    Regards,

    HI Zafar,
    How did you resolve this issue??
    We are working on the same issue, could you please share the possible solution with us.
    Thanks,
    Adi.

  • BAPI - Tax Classifications Details

    Hi Experts,
    When we create material using "MM01", say we are choosing Basic Data 1 and Sales : Sales Org Data 1 Views. After entering details like Plant, sales organization and Dist channel and enter to create material details.
    When u go to Sales : Sales Org 1 section, down under u can see Tax Data.
    Here most of details are populated like Country, Key, Tax category, tax info. Only taxkm needs to be selected. Which is either 1 or 0.
    Now same case, i am doing using BAPI_MATERIAL_SAVEDATA.
    I need to create materials and also tax class.
    I am passing taxkm = 1. However when i execute that BAPI, it says Tax category is missing.
    If u see using MM01, Those details are populated automatically.
    So i am unable to draw any links between this. Checked if Those details are populated automatically from MARC or MARD or MARA or MVKE tables, but no links.
    Can anyone suggest me on that please as how can i use BAPI_MATERIAL_SAVEDATA to update Tax classification with TAXKM value 1 for all materials created.
    Thank You,

    The FM STEUERTAB IDENTIFY will return the country and category for the required tax classifications. I used it in my BAPI_MATERIAL_SAVEDATA calling program.
    CALL FUNCTION 'STEUERTAB_IDENTIFY'
         EXPORTING
    *     KZRFB                       = ' '
           VKORG                       = im_material_create-SALES_ORG
           BUKRS_VKORG                 = im_material_create-SALES_ORG
           VTWEG                       = im_material_create-DISTR_CHAN
         TABLES
           STEUERTAB                   = lt_STEUERTAB
    *   EXCEPTIONS
    *     WRONG_CALL                  = 1
    *     VKORG_BUKRS_NOT_FOUND       = 2
    *     STEUERTAB_EMPTY             = 3
    *     OTHERS                      = 4
       IF SY-SUBRC <> 0.
    * Implement suitable error handling here
       ENDIF.
    LOOP AT lt_STEUERTAB into ls_STEUERTAB.
       move ls_STEUERTAB-ALAND to ls_TAXCLASSIFICATIONS-DEPCOUNTRY.
       move ls_STEUERTAB-TATYP to ls_TAXCLASSIFICATIONS-TAX_TYPE_1.
       move '1' to ls_TAXCLASSIFICATIONS-TAXCLASS_1.
       append ls_TAXCLASSIFICATIONS to lt_TAXCLASSIFICATIONS.
    ENDLOOP.

  • BAPI for complete details of Process Order including characterstic

    Hi All,
    I need a BAPI for getting complete information of Process order including characterstics and its process instruction. I have got BAPI BAPI_PROCORD_GETDETAIL which returns all the information except order operation characterstics and "characterstics process instructions".
    Is there is any BAPI which can return these 2 details for a given process order.
    Thanks ,
    Abhishek

    Thanks Rajesha for your reply , but here i need Process instruction and its corresponding characterstics for a particular process order.
    Let me explain you the scenario , I have a Process order PO-001 , for PO-001 i have defined 1 operation OP-001 and a phase PH-001.
    For the phase PH-001 i have assigned process instructions PI-001 (You can assign process instructon by selecting a phase and then click on the button Process Instruction below).
    By double clicking on PI-001 you can get process characterstics for that selected PI-001.
    Now i need a BAPI which can return me PI-001 and its corresponding characterstics if i pass PO-001 in that BAPI.
    Thanks & Regards,
    Abhishek
    Edited by: ABHISHEK BAJPAI on Sep 29, 2010 7:30 AM

  • Bapi for item details

    Hi all,
       Can any body tell name of the standard bapi so that if i pass the item number then I can get the item rate & item available quantity. Please help me with an example. (What are the mandatory fields i need to pass to bapi ). Your help is reward able.

    HI
       I guess you are enquiring regarding Sales Order Item.
    If so, you can use BAPI_SALESORDER_SIMULATE to gather the pricing details and confirmation of quantity.
       Parameters to be passed would be:
    1. Header - Doc Type, Sales Org, Dist. Channel, Division
    2. Items - Material Number
    3. Partners - Atleast Sold-To Party
    4. Schedule Line - Requested Delivery Date, Quantity
      Hope the above info helps you.
    Kind Regards
    Eswar

  • I want know the RFC or BAPI for Vendor details which gives customise lfa1

    Hello Experts,
    I want to fecth the Supplier information from SAP server to PDM server (non sap) using RFC call.But the LFA1 have some customised fields..
    1) I want the RFC or BAPI which Gives the supplier details with customised fields in LFA1.
    2) How Can I code In the PDM server??I mean How can I call In the PDM script??
    Please send me how to write a script and code of the script??
    Thanks In Advance
    Preethi

    hi,
    use BAPI_VENDOR_GETDETAIL
    A.

  • HR Function /  BAPI  to add details into PB30

    Hello,
    I am trying to find a function or Bapi to input data into transaction PB30, this is basically name , address , cand number etc..
    I am currently using BDC , and I am not really happy with this approach.
    Thanks

    Hi,
    that looks good , the only thing I am not sure about is looking up the correct parameters to call the BAPI

  • BAPI for customer details like in IDoc DEBMAS

    Hi,
    I'm stuck with a problem concerning the customer data. I need to write a function that returns all information about a customer (from tables kna1, knb1, .. wrf3). Basicly everything that can be found in the IDoc DEBMAS06. So far I couldn't find a BAPI/function that does that. There are only BAPIs like BAPI_CUSTOMER_GETDETAIL which return only a very limited amount of information about a customer.
    Does anyone know a function that does that or can help in any other way?
    Thx
    Stephan
    PS: I don't want to query the database tables myself as I don't know the relations between them and don't want to select wrong data.

    Sure, here you go ... 
    DATA: ls_i_main   TYPE cmds_ei_main,
            ls_e_main   TYPE cmds_ei_main,
            lt_custs    TYPE cmds_ei_extern_t,
            ls_cust     TYPE cmds_ei_extern,
            ls_head     TYPE cmds_ei_header,
            ls_instance TYPE cmds_ei_instance.
      CONSTANTS: lc_obj_task TYPE cmd_ei_object_task VALUE 'M'.
      ls_instance-kunnr = [customer xyz].
      ls_head-object_instance = ls_instance.
      ls_head-object_task = lc_obj_task.
      ls_cust-header = ls_head.
      APPEND ls_cust TO lt_custs.
      ls_e_main-customers = lt_custs.
      CALL METHOD cmd_ei_api_extract=>get_data
        EXPORTING
          is_master_data = ls_e_main
        IMPORTING
          es_master_data = ls_i_main
          es_error       = pe_error.
    Regards
    Stephan

  • How to use BAPI 'BAPI_ACC_***_TRANS_ACQ_POST'

    Hello Experts,
    Has anyone used the said BAPI to post intercompany transfer of assets?
    Is yes, then please provide me an example of what values to put in the BAPI.
    Hope you can help me guys. Thank you and take care!

    This BAPI is designed for internal use only for Relase 4.5A. It is used when transferring an asset, if the asset to be transferred is in a different system/client. The "AcqPost" method is used to post an acquisition from a transfer within Asset Accounting. The document resulting from this transaction then triggers the update in Accounting. The following parameters are only relevant if the asset for the acquisition posting has to be created. TRANSMASTERRECDATA TRANSALLOCATIONDATA TRANSINSURANCEDATA
    check this [link|http://www.abapcode.sapbrainsonline.com/2008_04_01_archive.html]

  • BAPI for Getting details of outbound delivery or VL03N

    Hi,
    Can any one tell me whether there is a BAPI for display of outbound delivery.
    Can any one help me?
    thanks.

    Hi,
    Why do you need BAPI for displaying the delivery?
    Below 2 lines of code is enough.
    SET PARAMETER ID 'VL' FIELD 'delivery number'.
    CALL TRANSACTION 'VL03N' AND SKIP FIRST SCREEN.
    Thanks,
    Vinod.

  • BAPI to bring TAX INFO, ORDER HISTORY and PAYMENT DETAILS of a PO ??

    Hi All,
    Is there any BAPI that brings
    TAX INFO
    ORDER HISTORY and
    PAYMENT DETAILS of a PO ?
    Please let me know.
    Thnx.
    Regards,
    Nandha

    Hi,
    The BAPI exports all details required however I am not sure whether this exports payment details as well.  Kindly let me know if this exports payment details or is there any other BAPI that provide these details.
    Thnx.

  • Any  BAPIs to post Service entery details

    Hi SAP Gurus,
    I need to create an interface program to upload Service entry details received from the different system to sap.
    Details:
    Service Entry Sheet will be posted manually for the accepted services in case of Maintenance, Repair and Licensing. A batch job will be created to post the Service Entry Sheet from the file extracted out of the EPM system, based on the number of actual hours worked by each Contractor on a Project.
    Kindly inform whether any BAPI is available to post this data or I need to go for BDC method only.
    Regards
    Hari

    hi,
    chk out these BAPI's
    BAPI_SERVICENOTIFICAT_GETLIST  Select service notifications according to customer or contact person    
    BAPI_SERVICENOTIFICAT_CREATE   Create service notification   
    BAPI_SERVNOT_ADD_DATA          Added Items, Causes, Activities, Tasks, Partners of the service notif.   
    BAPI_SERVNOT_CHANGEUSRSTAT     Change the user status of a service notification                         
    BAPI_SERVNOT_CLOSE             Complete service notification                                            
    BAPI_SERVNOT_CREATE            Create service notification                                              
    BAPI_SERVNOT_DEL_DATA          Delete Items, Causes, Activities, Tasks, Partners of the service notif.  
    BAPI_SERVNOT_GET_DETAIL        Get details about a service notification                                 
    BAPI_SERVNOT_MODIFY_DATA       Modify a service notification or associated subdata                      
    BAPI_SERVNOT_POSTPONE          Postpone service notification                                            
    BAPI_SERVNOT_PUTINPROGRESS     Put in process a service notification   
    BAPI_PROC_CHAR_GET_HELPVALUES  Read allowed values for a process characteristic                         
    BAPI_PROC_CHAR_GET_LIST        Read process characteristics, incl. detail data                          
    BASB                           Service Master Record: BAPIs                                             
    BAPI_SERVICE_GET_DETAIL        Read Detailed Data for a Service Master Record                           
    BAPI_SERVICE_GET_LIST          List Display for Service Master Records     
    BAPI_SERVICE_GET_DETAIL        Read Detailed Data for a Service Master Record                           
    BAPI_SERVICENOTIFICAT_CREATE   Create service notification  
    BAPI_SERVICENOTIFICAT_GETLIST  Select service notifications according to customer or contact person
    Regards,
    Arunsri

  • Difference between BAPI and RFC?

    Difference between BAPI and RFC?
    also where to use BAPI and where to use RFC?

    Hi,
    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.
    Regards,
    Prakash

Maybe you are looking for

  • Itunes not recognizing ipod touch?

    why my ipod touch is not being recognized by itunes?

  • Can't install Outlook Connector - authentication problem

    Hello: We are not being able to install Outlook Connector in two PC's running Windows XP. After filling authentication data the installation program states that the information is not valid. With the same installation files and the same authenticatio

  • Beans graph drill down problem.

    Hi, I am currently using 10.1.2 version of BI Beans and developed a front end application for my OLAP cubes. The nice feature of 10g BIB is that we are now able to drill a graph, which was not possible in earlier 9i versions. The problem I am facing

  • MSS Apraisals

    We have NW04, EP6.0 SP09 on Windows with R/3 4.7 enterprise on MSSQL. Say you have 3 people for your orginazation. CEO = A, midlevel manager = B, and salary worker = C. Right now in MSS, manager B can perform an appraisal for C and A can appraise B.

  • Volume Control button...where is it ?

    I see two buttons on the top of my pc that look like speackers...but when I press on the one that looks like it would increase sound, nothing happens.......what am doing wrong ?