Uploading customer invoice posting data from a flatfile(oracle)  into  FB01

Hi,
      i have to upload the customer invoice data from a flat file and post into FB01.
      if any body worked with this plz send me the sample code regarding customer invoice.i have the following fields
BLDAT-BKPF     
BLART-BKPF     
BUKRS-BKPF     
BUDAT-BKPF     
MONAT-BKPF     
WAERS-BKPF     
BELNR-BKPF     
XBLNR-BKPF     
BKTXT-BKPF     
GSBER-BSEG     
BSCHL-BSEG     
HKONT-BSEG     Gl Account|
DMBTR-BSEG     Amount     |
HKONT-BSEG     GL Account
DMBTR-BSEG     amount
HKONT-BSEG     
DMBTR-BSEG     
HKONT-BSEG     
DMBTR-BSEG     
HKONT-BSEG     
DMBTR-BSEG     
HKONT-BSEG     
DMBTR-BSEG     
HKONT-BSEG     
DMBTR-BSEG     
HKONT-BSEG     
DMBTR-BSEG     
HKONT-BSEG     
DMBTR-BSEG     
HKONT-BSEG     
DMBTR-BSEG     
KOSTL-BSEG     
PRCTR     
SGTXT     Text
BSCHL-BSEG     
LIFNR-BSEG     Vendor account(Employee No.)
                PART II
SAP TABLE     Field description
XBLNR-BKPF     Reference
GSBER-BSEG     Business Area
BLDAT-BKPF     Document Date
KUNNR-KNA1     Cusomer Number
AUFNR-COBL     Order Number
HKONT-BSEG     Gl Account
DMBTR-BSEG     Amount
for tax, insurace ,freight etc.,    a seperate Gl account is created.
regards
veni

hi,
use report rfbibl00:
1) look documentation with se38
2) use structures bgr00, bbkpf, bbseg
3) look sample-prg RFBIBLT0
A.
Message was edited by:
        Andreas Mann

Similar Messages

  • Outbound delivery date in June and customer invoice post in July,tax rate?

    Hi Experts
    tax rate (June)=22%
    tax rate (july)=24%
    issue is Outbound delivery date in June and customer invoice post in July,so sytem taking tax rate =24% instead of 22%.Because outbound delivery is happened in June.
    Please let me know that,
    1)how system picking tax rate on base like billing date or service render date or ...?
    2)how to take tax rate (june)=22% in July posting.
    regards
    sachin

    Tax Rate is picked based on the pricing date.
    You need to check with your SD collegue to configure the pricing date to be equal to outbound delivery date to pick the outbound delivery date based tax rates.
    Regards,
    Gaurav

  • Which Bapi is available for uploading Customer Invoice and Payments in SAP

    Dear Friends.
    I want to upload Customer Invoices and Incoming Payments in the System.
    Currently i have written a BDC-Session Program to Upload this data.
    I have took the recording of tcode f-22 for Invoices, f-27 for credit memo and f-28 for payments and developed the required BDC program.
    Its working fine.
    Since the Volume of the data is huge .. ie around 50,000 daily, it takes too much time.
    Also i am not able to have a proper error log.
    I would like to know from you, whether there is any bapi available to upload this data (invoices,credit memo and payments).
    OR is there any other faster and proper error log maintaining scenario available.
    I appreciate for all your helps and informations.
    Thanks
    Kuna.

    Hi,
    could u please send me the f-28 upload program.
    Thanks in advance.
    Regards
    suni

  • Uploading the data from a flat file into ztable

    Hi,
    I have a requirement where I have to upload the data from 2 flat files into 2 z tables(ZRB_HDR,ZRB_ITM).From the 1st flat file only data for few fields have to be uploaded into ztable(ZRB_HRD) .Fromthe 2nd flat file data for all the fields have to me uploaded into ztable(ZRB_ITM). How can I do this?
    Regards,
    Hema

    hi,
    declare two internal table with structur of your tables.
    your flat files should be .txt files.
    now make use of GUI_UPLOAD function module to upload your flatfile into internal tables.
    CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename            = 'c:\file1.txt'
          has_field_separator = 'X'
        TABLES
          data_tab            = itab1
        EXCEPTIONS
          OTHERS              = 1.
    use this function twice for two tables.
    then loop them individually and make use of insert command.

  • Need to POST data from a desktop client to a server.

    Hello all, it's been awhile since I've posted here, so I hope everyone has been doing well.
    I have cross posted this here java - Need to POST data from a client application to my server - Stack Overflow but no answers, and since SO has been extremely slow for the questions I've been asking I am posting here.
    Here is the post:
    I know the title is probably a common question, but I am a bit confused on everything I'm trying to do, so I am trying to piece it together, and figured a common title would be better than a confusing one.
    I am basically developing a web application and one part of that is a file uploader. I am using Apache Commons File Upload via the Streaming API, and that all works fine, except I need to access the file I'm uploading, because that contains data to additional files to upload.  I.e., Read File A, get paths to images, upload images with File A to server and save on server.  The API can be found here http://commons.apache.org/proper/commons-fileupload/streaming.html
    I was told there is a security risk via the web and would be impossible via a browser, since the user needs to select all files to upload, i cannot tell the browser to upload additional files, so I am left with a client side option.
    I am confused if there is a special library I need, or as I have been seeing threads that talk about using the built in UrlConnection Class or http://hc.apache.org/
    I basically need to be able to read the file, which technically gives me a path to a Database on the user's system which I then read to get the additional images.  After I get all of that I then  need to post the data as a multipart form as that is what the FileUpload requires.
    form method="POST" enctype="multipart/form-data" action="fup.cgi">
      File to upload: <input type="file" name="upfile"><br/>
      Notes about the file: <input type="text" name="note"><br/>
      <br/>
      <input type="submit" value="Press"> to upload the file!
    </form>
    This is the example found in the Overview section of the Fileupload which can be accessed from the link above.
    There wouldn't be an issue if the users uploaded all of the data themselves, but since I have to do some of it automatically it causes some "concerns/issues."
    Basically these files are created and packaged from another application, so the images, and the db will always be in the same place, and that file that they are uploading is a file the other program creates, so everything will always be known, I just need to upload it, and then POST it as enctype="multipart/form-data" So that my servlet can read it and save it on my server.
    So I would appreciate it if anyone had any suggestions on where to begin my journey with this.  I have heard of a few applications like curl and wget that are used for this, but those seem to be more C based.  As mentioned earlier it seeems the httpcomponets from apache might work well, but I want to make sure.
    I appreciate all the help, thank you for your time all.

    It's not possible to read from a file without using classes from the core API*. You'll have to get clarification from your instructor as to which classes are and are not allowed.
    [http://java.sun.com/docs/books/tutorial/essential/io/]
    *Unless you write a bunch of JNI code to replicate what the java.io classes are doing.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to obtain the house bank in the customer invoice posted by FB70?

    Hi All,
    Could anyone tell me how to obtain a certain house bank in the customer invoice posted by FB70?
    I've made a test. I've filled an house bank in master data of the customer (company data). When I've posted the invoice by FB70, i've expected finding it in the item.... instead it wasn't there...
    Cuold anyone help me?
    Thanks
    gandalf

    Dear,
    The House bank will not reflect in customer invoice, it is used in outgoing or incoming payments.

  • LSMW Upload FI DOC POSTING data problem (FB013,  RFBIBL01)

    Hello,
    I have to upload FI DOC POSTING data with LSMW.
    I'm using a batch input with the program RFBIBL01.
    In the step "Create batch input session", I get the following error:
    FB006     Session 1 : Transferred client 00M differs from system client 500
    FB015     ... Session record ...
    FB014     ... BGR00-STYPE 0
    FB014     ... BGR00-GROUP ###########5
    FB014     ... BGR00-MANDT 00M
    FB014     ... BGR00-USNAM ISCOB 0
    FB014     ... BGR00-START 0000000X
    FB014     ... BGR00-XKEEP /
    FB014     ... BGR00-NODATA
    FB013     ....Editing was terminated
    Does anyone know how to solve this error?
    Kind regards,
    Mahnk

    hi,
    pls refer to the error message:
    FB014 ... BGR00-GROUP ###########<b>5</b>
    FB014 ... BGR00-MANDT <b>00</b><i>M</i>
    FB014 ... BGR00-USNAM ISCOB 0
    00M sounds strange for a client?!
    here is a displacement!!!!
    the 5 in group belongs to the mandant and the M to the usnam i think
    <b>so change structure BGR00</b>
    A.
    pls reward useful answers
    thank you!
    Message was edited by: Andreas Mann

  • Upload data from excel to oracle table

    Hi,
    if i'm user and using an application and i want to upload data from excel to oracle table on button click . Is it possible by using sql loader.
    If yes then please clarify it .
    is it possible from client end.
    thanks
    kam

    Yes it is possible using SQL*LDR, External tables and ORCL Export Utility. Though I didn't try Export Utility to load the external files.
    SQLLdr sysntax:
    Create a control file.
    It looks like this
    Load data
    Infile 'source.dat' 
    Into Table tablename
    Fields terminated by ',' optionally enclosed by '"'
    {code}
    then use sqlldr command from your OS.
    {code}
    sqlldr userid/password@sid control = filename.ctl, data = source.dat, log = logname.log, bad = badname.log, discard = discardname.discard
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • *Journal Entries while uploading the vendor master data from legacy system*

    hi SAP Folks,
    can any one of you tell me the journal entries while uploading the vendor master data from legacy system to SAP system.
    Eg: legacy system is having 10000 vendors list, 1 reconciliation account and $ 1000000. while uploading all these data from legacy system to SAP what are the journal entries we get.
    thanks in advance.
    Edited by: ravindranath manikonda on Nov 24, 2008 1:12 PM

    Hi
    you will be having  only one entry logically
    i.e. Opening Bal. clrng A/c Dr.
           To Vendor A/c Cr.
    regards

  • Error while posting data from SCM to XI

    Dear Expertise,
    I got a requirement where I need to post data from SCM to XI server. From SCM
    side it is an ABAP proxy. When I tested the scenario and checked in the MONI of
    SCM I got an error. But SCM is correctly configured pointing to XI under Tcode
    SM59 (SM59 --> Connection Type H (HTTP Connection to ABAP System) -->with
    correct user credentials and PIPE line URL of XI server).
    Please let me know is this the correct settings for ABAP proxy for connecting
    from SCM system to XI system.
    Error Dump in SXMB_MONI:
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Integration Server
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">HTTP_RESP_STATUS_CODE_NOT_OK</SAP:Code>
      <SAP:P1>401</SAP:P1>
      <SAP:P2>Unauthorized</SAP:P2>
      <SAP:P3 />
      <SAP:P4 />
    <SAP:AdditionalText><!DOCTYPE html PUBLIC"-//W3C//DTD HTML 4.01Transitional//EN">
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>HTTP response contains status code 401 with the description Unauthorized Authorization error while sending by HTTP (error code: 401, error text: Unauthorized)</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Thanks in Advance,
    Gujjeti

    HI
    Check these
    For Error: HTTP_RESP_STATUS_CODE_NOT_OK 401 Unauthorized
    Description: The request requires user authentication
    Possible Tips:
    • Check XIAPPLUSER is having this Role -SAP_XI_APPL_SERV_USER
    • If the error is in XI Adapter, then your port entry should J2EE port 5<System no>
    • If the error is in Adapter Engine
    –then have a look into SAP note- 821026, Delete the Adapter Engine cache in transaction SXI_CACHE Goto --> Cache.
    • May be wrong password for user XIISUSER
    • May be wrong password for user XIAFUSER
    – for this Check the Exchange Profile and transaction SU01, try to reset the password -Restart the J2EE Engine to activate changes in the Exchange Profile After doing this, you can restart the message

  • How can we post data from CRM to SAP using ABAP proxies???

    Hi ,
      Can anyone hep me to create interface for the following scenario How can we post data from CRM to SAP using ABAP proxies???, can I find any document ???????
    Thanks in advance
    Andy

    Andy,
    Please look at these weblogs.
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    /people/ravikumar.allampallam/blog/2005/03/03/creating-purchase-order-idoc-through-xi
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    These should give a good idea about implementing Proxies.
    Regards,
    Ravi

  • Upload GL accont master data from legasy to SAP R/3

    Hello Gurus,
                        I have a requirement to write a BDC program for uploading GL account master data from legacy system to SAP R/3 database using FS00 transaction.Please can you help me with this?
    Regards,
    Kalpana.

    Hello,
    Goto Transaction SHDB, then create one new recording then do the simple recording and save that recording in one program and use as per your requirement.
    you can also use existing program suggested by Rob.
    Regards,
    Sujeet

  • How To validate Excise Invoice Posting date(J1iin)  equals to Billing Date

    Hi Experts
    I have required to validate Excise invoice Posting Date(J1iin) should be equal to Biiling date . Can anyone suggest me which user exit i will use for it.
    Waiting 4 reply.
    Regards
    Prateek

    using FM    J_1I7_USEREXIT_EXCISE_BEF_SAVE

  • Upload material and contract data from file in CCM 2.0

    Hi guys,
    This might be a difficult one!
    We have the following situation in a Client:
    We are upgrading a Requisitite catalog (working with BBP 2.0)
    to a CCM 2.0 catalog.
    In Requisite, one can upload material- and contract data from a file (it is standard funcionality) into the database.
    We need to have the same kind of funcionality in CCM 2.0 because our client does not prefer to work with XI (which is the standard SAP solution in these cases).
    How can we accomplish this? maybe with some additional ABAP coding!
    Our client is not working with Vendor Catalogs but I´m trying to see if we can use a dummy vendor catalog to accomplish material upload in CCM2 form a CSV file.
    Anyone had to face this situation before?
    If so, please provide some clues how to do it?
    Thanks in advance,
    Aart

    SAP CATALOG CSV 2.0 <;>
    Defaults;EN
    Model
    Catalog;All;;All Catalog
    DataType;DATE;DATE;Date
    Characteristic;Z_ACTION;/CCM/NAME;false;Action
    Characteristic;/CCM/PRODUCT_ID;/CCM/ID;false;Part Number
    Characteristic;/CCM/SHORT_DESCRIPTION;/CCM/DESCRIPTION;false;Description
    Characteristic;Z_MATERIAL_TYPE;/CCM/ID;false;Material Type
    Characteristic;/CCM/MINIMUM_QUANTITY;/CCM/MINIMUM_QUANTITY;false;Order Unit
    Characteristic;Z_CONTENT;/CCM/MINIMUM_QUANTITY;false;Content
    Characteristic;/CCM/LEAD_TIME;/CCM/LEAD_TIME;false;Lead Time
    Characteristic;Z_SUPPLIER_ID;/CCM/ID;false;Supplier Number
    Characteristic;Z_SUPPLIER_NAME;/CCM/NAME;false;Sup Name
    Characteristic;Z_P_GROUP;/CCM/ID;false;Purchasing Group
    Characteristic;Z_P_ORG;/CCM/ID;false;Purchasing Org
    Characteristic;/CCM/CONTRACT_ID;/CCM/ID;false;Contract Number
    Characteristic;/CCM/CONTRACT_ITEM_ID;/CCM/ID;false;Contract Item
    Characteristic;/CCM/PRODUCT_GROUP;/CCM/ID;false;Product Category
    Characteristic;/CCM/PRICE;/CCM/PRICE;true;Price
    Characteristic;Z_DATE;DATE;false;Date
    Characteristic;/CCM/LONG_DESCRIPTION;/CCM/LONG_DESCRIPTION;false;Long Description
    Characteristic;/CCM/PICTURE;/CCM/ATTACHMENT;false;Picture
    Schema;All;Z_ACTION;Z_MATERIAL_TYPE;Z_CONTENT;Z_SUPPLIER_ID;Z_SUPPLIER_NAME;Z_P_GROUP;Z_P_ORG;Z_DATE;All Schema
    Category;10000300;;;ABC
    Category;10000400;;;DEF

  • Latest posting date from table MKPF

    hi all,
    I want to retrive the latest posting date from table MKPF. Here I am using the MARD,MSEG,MKPF tables to get the latest posting date.
    if not it_mard[] is initial.
    select amblnr amjahr amatnr awerks algort bbudat
      into table it_mseg_mkpf
       from mseg as a mkpf as b
       on amblnr = bmblnr
      and amjahr = bmjahr
      for all entries in it_mard
      where a~matnr = it_mard-matnr
      and    a~werks = it_mard-werks
      and   a~lgort   = it_mard-lgort.
    if sy-subrc eq 0.
    sort it_mseg_mkpg decending by matnr werks lgort budat.
    endif.
    loop at it_mard.
    clear it_mkpf_mseg.
    read table it_mseg_mkpf with key matnr = it_mard-matnr
                                                      werks  = it_mard=werks
                                                      lgort    = it_mard-lgort
                                                      binary search.
         if sy-subrc eq 0.
         it_final-budat = it_mseg_mkpf-budat.
         endif.
    endloop.
    from the above code  i need to rereive the latest posting date    , but when I am reading from internal table it is giving the sy-subrc is 4.  i know when we use binary search , the standard table should be ascedning order. but here I need to use descedning order.
    please hhelp i this.
    regards,
    Ajay

    Hi,
    1. Check Storage location (LGORT) value available in the internal
        table it_mseg_mkpf. Some case no value.
    2. Remove the binary search after u try again. Like below.
    loop at it_mard.
    clear it_mkpf_mseg.
    read table it_mseg_mkpf with key matnr = it_mard-matnr
                                                      werks = it_mard=werks
                                                       lgort  = it_mard-lgort.
    if sy-subrc eq 0.
    it_final-budat = it_mseg_mkpf-budat.
    endif.
    endloop.
    3. sort it_mseg_mkpg DESCENDING BY budat matnr werks lgort.
    4. For all material (it_mard) may be or may not be there in the MSEG table.
        So for some case SY-SUBRC = 4  will give.
    Thanks,
    Durai.V
    Edited by: Durai V on Sep 9, 2008 6:50 AM

Maybe you are looking for