BDC OR BAPI - FOR FB01 T-CODE

Dear all,
I am facing one problem for upload the data from excel to FB01 T-code..
here my excel sheet is like this
Doc Date Posting date Doc type Posting key GL account Amount Posting key GL account Amount
03.04.2010     03.04.2010          40     60011     8391                          50 & GL & TAX again repeate....
04.04.2010     04.04.2010          40     60011     5496     40     60012     2198   50 & GL & TAX
05.04.2010     05.04.2010          40     60011     7887     40     60012     0        50 & GL & TAX
How should i do the program.....
plz give me any bapi program or bdc program for this type excel sheet....
plz help me..
Regards
margani

Posting FI documents is one of the more frequently discussed topics here, please search before posting. Do not expect complete solutions for requirements, always work yourself first.
Thread locked.
Thomas

Similar Messages

  • Which BAPI for FB01

    Hi,
    which is BAPI for FB01 which will help me to update following fields. like
    1) Doc Date
    2) Doc Type
    3) company Code
    4)Currency Key
    5)Referen
    6)Posting Key
    7) G/L account
    8) Speical G/L indicatior
    9)Profit Center
    10)Sales Doc. with sample code.
    thanks.

    Hi,
    it may help u.
    BAPI for FB01
    Thanks,
    Sree.

  • Bapi for a t.code

    Hi All,
    Wat are the different ways of finding a BAPI for any transaction code?
    Thanks
    John

    Hi
        If you mean that you need to know what BAPI's a particular tranx uses, which I can only assume that's what you mean, then you should access the code behind the transaction and search for 'CALL'. That normally is the standard method that think that most people use.
    Suppose you want to find the bapi for creating a sales order, you usually use transaction VA01 for this.
    1. Find out the package of the transaction.
    Start Va01 go to system --> status.
    Double click on transaction
    Package is VA
    Open this package in SE80
    Open business engineering-->Business object types
    Find the BO which sounds the most appropriate
    I would suggest BUS2032 Sales Order
    Double click.
    Open methods.
    Find the released method with from data or something similar in the name
    , Createfromdat2
    Position the cursor in it and click the program button
    Scroll down to find the bapi used in this method
    With this way you can also find out programs and FM's
    2. Start va01 go to system-->status
    Double click transaction VA01
    Double click on package
    Read the application component. (this is SD-SLS Sales)
    Then open the transaction BAPI
    Sales and distribution>Sales>sales order
    createfromdat2

  • BAPI FOR PP03 T.CODE

    Hi Experts,
    I want BAPI for pp03 T.code ....
    Please inform me if any one knows ...
    Its urgenttttt ,
    Thanks & Regards ,
    dattu malge

    Hi there,
    Have you managed to find a BAPI for PP03?
    Please let me know.
    Thanks and Regards,
    Preneshen Govender

  • BAPI for FB01

    Hi,
    I am using bapi  BAPI_ACC_DOCUMENT_POST.. for FB01 but i am not getting Two fields
    PstKy (Posting Key for the Next Line Item) and  SGL Ind (Special G/L Indicator for the Next Line Item)
    is any other bapi avilabel for this...
    or please give me sample bapi for FB01 or BAPI_ACC_DOCUMENT_POST.
    <removed by moderator>
    Thanks.
    Edited by: Mike Pokraka on Aug 4, 2008 2:40 PM

    Hi
    The posting keys are setted by the BAPI in according to the item type (customer, vendor and G/L) and the sign of amount.
    The BAPI usually uses the standard posting key: 01/11; 40/50, 21/31.
    If it needs a different posting keys it needs to assign them to a certain operation key (field KOTSL): u can do it in the table T030B.
    Anyway u should consider u can use the BTE RWBAPI01 in order to set own data into FI interfaces.
    Max
    Edited by: max bianchi on Jun 20, 2008 11:16 AM

  • BAPI for updating tax code for purchase order..

    Hi friends,
      I have one requirement to change tax code for multiple Purchase order but the
    thing is they should not go for release.So what should I prefer BDC or BAPI.
      I am thinking to implement it through BAPI, but I don't know what procedure to follow.
    If somebody can provide me a small guiding steps or code then it will be very helpful for me..
    Thnaks in advance..
    Useful answers will be rewarded with points....
    Regards,
    Rajesh Akarte

    Hi Friend,
    BAPI_ACC_PURCHASE_ORDER_CHECK  Accounting: Check Purchase Order                                         
    BAPI_ACC_PURCHASE_ORDER_POST   Accounting: Post Purchase Order  
    MEWP                           BAPIs Purchase order                                                     
    BAPI_PO_CREATE                 Create Purchase Order                                                    
    BAPI_PO_GETDETAIL              Display Purchase Order Details                                           
    BAPI_PO_GETITEMS               List Purchase Order Items                                                
    BAPI_PO_GETITEMSREL            List Purchase Orders for Release (Approval): New as of 4.0A              
    BAPI_PO_GETRELINFO             Display Detailed Release (Approval) Information on Purchase Order        
    BAPI_PO_GET_LIST               List Purchase Orders - Only up to 4.0A                                   
    BAPI_PROCOPERATION_GETCATALOGS Determine Valid Catalogs as Value Help                                   
    BAPI_PROCOPERATION_GETINFO     Analysis of Objects to be Generated in Purchasing                        
    <b>AND</b>
    Use condition type NAVS with access sequence 0003 to default the taxcode in the purchase order item using conditions. Materials Management -> Purchasing -> Purchasing order processing ->define screen layout at document level. Search for the transaction ME21.Double click on ME21. Then search for TaxCode
    Use condition type NAVS with access sequence 0003 to default the taxcode in the purchase order item using conditions.
    A2: Go to IMG.
    Materials Management -> Purchasing -> Purchasing order processing ->define screen layout at document level.
    Search for the transaction ME21.Double click on ME21. Then search for TaxCode. It is advisable to configure also the info record. The tax code should be a required entry, and whatever you specify here will be the default value in the Purchase order.
    Materials Management -> Purchasing -> Purchasing info record -> define screen layout.
    When you get here you search for the transaction ME12 ,double click here; search for Input VAT indicator.
    Regards ,
    Kumar.

  • What is exact BAPI for FB01 transaction......

    Hi,
       Currently i got requirement to upload transactional data into FB01 using BAPI. I used BAPI_acc_gl_posting_post but it applicable only for GLs, but i want to upload Vendors, Customers, assets, Materials.. Please tell me apropriate BAPI for the requirement. Its urgent.
    Thanks in advance...........
    Regards,
    Chinna.

    Thanks Atish....
        I have written code using BAPI_ACC_DOCUMENT_POST. But it is not posting and it is not generating Object Key...
    Please go thru the code and tell the solutions....
    Thanks in Advance......
    REPORT  zk_fi_fb01                     .
    Data: v_objkey(20) type c.
    Data: Docheader type BAPIACHE09.
    Data: ACCOUNTGL LIKE BAPIACGL09 occurs 0 with header line,
         ACCOUNTRECEIVABLE like BAPIACAR09,
          ACCOUNTPAYABLE like BAPIACAP09 occurs 0 with header line,
          CURRENCYAMOUNT like BAPIACCR09 occurs 0 with header line,
          RETURN like BAPIRET2 occurs 0.
    Data: obj_typ like BAPIACHE09-OBJ_TYPE,
          OBJ_KEY like BAPIACHE09-OBJ_KEY,
          OBJ_SYS like BAPIACHE09-OBJ_SYS.
    Data: gv_belnr type belnr_d.
    Data:file_Na type String.
    Data: lsys like TBDLS-LOGSYS.
    *START OF SELECTION
    START-OF-SELECTION.
    *CALL FUNCTION 'NUMBER_GET_NEXT'
    EXPORTING
       nr_range_nr                  = '19'
       object                       = 'RF_BELEG' "'FIAA-BELNR'
      QUANTITY                      = '1'
      SUBOBJECT                     = '7777'
      TOYEAR                        = '2007'
      IGNORE_BUFFER                = ' '
    IMPORTING
      NUMBER                        = gv_belnr
    QUANTITY                      =
    RETURNCODE                    =
    *CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
    IMPORTING
      OWN_LOGICAL_SYSTEM                   = lsys
    EXCEPTIONS
      OWN_LOGICAL_SYSTEM_NOT_DEFINED       = 1
      OTHERS                               = 2
    *IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    *concatenate gv_belnr '7777' '2007' into v_objkey.
    *Filling Document Header Details
    *Docheader-OBJ_TYPE = 'BEBD'.
    *Docheader-OBJ_key = V_objkey.
    *Docheader-OBJ_SYS = lsys.
    *docheader-BUS_ACT = 'RFBU'.
    Docheader-USERNAME = sy-uname.
    Docheader-COMP_CODE = '7777'.
    Docheader-DOC_DATE   = '20070725'.
    Docheader-PSTNG_DATE = '20070725'.
    Docheader-FISC_YEAR = '2007'.
    *DOCHEADER-OBJ_KEY_R = 'X'.
    Docheader-DOC_TYPE = 'KR'.
    *Item data for ACCOUNTGL
    ACCOUNTGL-ITEMNO_ACC = '0000000001'.
    ACCOUNTGL-GL_ACCOUNT = '0000000102'.         "99900
    ACCOUNTGL-DOC_TYPE   = 'KR'.
    ACCOUNTGL-COMP_CODE  = '7777'.
    ACCOUNTGL-FISC_YEAR  = '2007'.
    ACCOUNTGL-PSTNG_DATE = '20070725'.
    ACCOUNTGL-DE_CRE_IND = 'S'.
    append ACCOUNTGL.
    ACCOUNTGL-ITEMNO_ACC = '0000000002'.
    ACCOUNTGL-GL_ACCOUNT = '0000400002'.         "99900
    ACCOUNTGL-DOC_TYPE   = 'KR'.
    ACCOUNTGL-COMP_CODE  = '7777'.
    ACCOUNTGL-FISC_YEAR  = '2007'.
    ACCOUNTGL-PSTNG_DATE = '20070725'.
    ACCOUNTGL-DE_CRE_IND = 'H'.
    append ACCOUNTGL.
    *Account payable
    ACCOUNTPAYABLE-ITEMNO_ACC = '0000000001'.
    ACCOUNTPAYABLE-GL_ACCOUNT = '0000000102'.
    ACCOUNTPAYABLE-COMP_CODE  = '7777'.
    append ACCOUNTPAYABLE.
    ACCOUNTPAYABLE-ITEMNO_ACC = '0000000002'.
    ACCOUNTPAYABLE-GL_ACCOUNT = '0000400002'.
    ACCOUNTPAYABLE-COMP_CODE  = '7777'.
    append ACCOUNTPAYABLE.
    *Currency Amount
    CURRENCYAMOUNT-ITEMNO_ACC = '0000000001'.
    CURRENCYAMOUNT-CURRENCY_ISO = 'INR'.
    MOVE 1000 TO CURRENCYAMOUNT-AMT_DOCCUR.
    Append CURRENCYAMOUNT.
    CURRENCYAMOUNT-ITEMNO_ACC = '0000000002'.
    CURRENCYAMOUNT-CURRENCY_ISO = 'INR'.
    MOVE '1000-' to CURRENCYAMOUNT-AMT_DOCCUR.
    Append CURRENCYAMOUNT.
    clear CURRENCYAMOUNT.
    clear ACCOUNTGL.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
      EXPORTING
        documentheader          = Docheader
      CUSTOMERCPD             =
      CONTRACTHEADER          =
    IMPORTING
       OBJ_TYPE                =  obj_typ
       OBJ_KEY                 =  obj_key
       OBJ_SYS                 =  obj_sys
      tables
       ACCOUNTGL               = ACCOUNTGL
      ACCOUNTRECEIVABLE       =
      ACCOUNTPAYABLE          = ACCOUNTPAYABLE
      ACCOUNTTAX              =
        currencyamount          = CURRENCYAMOUNT
      CRITERIA                =
      VALUEFIELD              =
      EXTENSION1              =
        return                  = return.
    if sy-subrc = 0.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
       WAIT          = ' '.
    endif.
    if sy-subrc = 0.
    WRITE: / OBJ_KEY,
             OBJ_TYP,
             OBJ_SYS.
    endif.

  • Bapi for Updating T.code F-44

    Hi Gurus,
    I have to update T.code F-44. Is there any Bapi for this or can i go for BDC?
    Kindly suggest me..
    thanks in advance..
    Krishna

    Thanks for ur response Anji Reddy garu,
    I've tried to check up this given FM but could'nt find it here in my sap system both in QAS and in DEV more  the FM <b>Bapi_payit_post_clearing</b> is also not available here in my sap system what could be the problem it should display this standard FM if available right but its say FM does not exit......Can u do me a favour of forwarding the source code for both the FM's so that i can create a new customizing FM if its fits my requirement.....

  • Function modules and BAPIs for a transactio code

    Hi friends,
    How i can find  the List of function modules and BAPIs being used for a particular transaction code?
    for example: I would like to find List function modules and BAPIs being used for the Transaction code
    "FBRA"(Reset cleared items)?
    Any sort of help on this will be helpful.
    Thanks,
    Punjaala

    hi Anjaneyulu,
    open the t-code --> and go to menu system->status-->select the program and open the program-->
    selct the tree structure----in the left side the includes screen and function module everthing will show..
    or
    open the t-code --> and go to menu system->status-->select the program and open the program-->
    go to attributes and select the Package..
    next----
    go to se80--> enter the package --> and dispalay it shows the list of Program , include transaction function modules and bapi's under the pakage
    Regards,
    Prabhudas

  • BAPI For J1IG T.Code

    Hi,
    please give me correct BAPI For J1IG T.CODE

    Hello,
    Please check the following BAPI's
    BAPI_EXCINV_CREATE_FROMDATA BAPI for creating Excise invoice from data
    BAPI_EXCISEINVOICE_GETLIST Excise invoice - List of all excise invoices
    hope this helps
    Regards,
    Sachin

  • BDC or BAPI for Actual period Locking

    Hi,
    Thank You very much for reading this query.
    I have to deveop the SE38 program with a selection screen which should contain following fields.
    1) Controlling Area
    2) Fiscal period,
    3) Fiscal year
    4) Version,
    5) Actual/Plan
    6) Lock/Unlock
    7) Business transaction.
    My requirement is if user creates a variant by giving proper values and runs the job, it should lock the given the business transactions.Functionally this task will be done by functional people in OKP1 transaction code (CO-Controlling.)
    Please suggest me if any BAPI is there and shall I go ahead with BDC.
    The problem if i go with BDC is, some times user may scroll down the table control depending on the given values. So how to satisfy this condition.
    Thanks and Regards,
    K.krishna Chaitanya.

    Hi Krishna,
    I know this is an old post, but in case someone else comes across it while searching for a solution to this same problem (as I did), Sanjeev Kumar has written a document, Automate Period Opening in SAP which, among other things, discusses using report RKCOOKP1 (Set Period Locks in Batch) to set or delete period locks in controlling (OKP1). In addition to scheduling a job for RKCOOKP1 as the document demonstrates, you could also call RKCOOKP1 programmatically with SUBMIT report ... AND RETURN.
    Cheers,
    Amy

  • BAPI for cross company-code stock transport order

    Hello experts,
    I need to create cross company-code stock transport orders, is there any bapi that can perform this? If you guys have some sample code it will be great.
    PD: i found the bapi BAPI_PO_CREATE1, but i don't really know if it'll work for this requirement.

    Hi Team,
    I have created two company codes 5000 and 5005 and then assigned the plants 5000 and 5005 to company code respectively.
    Here my supplying plant is 5005 and receiving plant is 5000.
    Also I have created a vendor 1000 with account group 0007 and assigned the supplying plant 5005 to it.
    1. How do we assign sales and distribution (SD) organizational units to the supplying plant?
    2. Whether we have to create customer master (using Tcode XD01) for the supplying plant?
    3. While creating the customer master, the company code and sales area (sales organization, distribution channel, division) must be of supplying company code / plant?
    4. Whether we have to create customer master for receiving plant?
    5. While assigning the customer master to plant, which sales area info (sales organization, distribution channel, division) has to give?
    Please give the detail from customer master creation and assigning it to plant.
    Thanks in advance,
    Regards,
    Shyjith
    REPLY -
    Hi Shyjith,
    1. Create vendor 1000 as internal vendor in company code 5000 & assign supplying plant 5005 in additional data in Purchasing tab.
    2. Create receiving plant as 5000 as internal customer in company code 5005 & respective sales area of 5005 , if you have no other numbre range for internal customer.
    3.In SPRO do the following settings,
      a.efine shipping data for both receiving & supplying plant --- SPRO - MM -- Purchasing -- Purchase order --- Set up stock transport order -- define shipping data for plants
       b. Assign delivery type as NLCC to supplying plant 5005.
    Craete Purchase order with vendor as 1000 & plant in purchase order as 5000 ( If not defined any external number for customer)
    Please note if you have defined external muber for customer 5000, the n you have to define that number, when you will be defining shipping data for receiving plant as customer.
    Thanks,
    Charu

  • Reg. BAPI for FB01

    Hi Friends,
       I tried to create accounting document from the babi 'BAPI_ACC_DOCUMENT_POST'. In a one line item i need to give withholding tax information. How to pass this value to this bapi. I passed the withholding tax info in the ACCOUNTTAX parameter. But that is not working.
    thanks in advance.
    regards
    sritkanth

    go through this code
    data:gt_accountgl type table of bapiacgl09 with header line,
         gt_accountpayable type table of bapiacap09 with header line,
         gt_currencyamount type table of bapiaccr09 with header line,
         gt_return type table of bapiret2 with header line.
    data:wa_documentheader type bapiache09,
           vcounter type i.
    tables:bdcmsgcoll.
      TABLE TO READ FILE DATA
    data:   begin of gt_uploadfile occurs 0,
           input(200) type c,
           end of gt_uploadfile,
             TABLE FOR DOWNLOAD FILE
           begin of gt_downloadfile occurs 0,
            output type string,
           end of gt_downloadfile,
         TO HOLD HEADER DATA
           begin of gt_header occurs 0,
           counter(1),
           identifier(2),
           bukrs(5),
           accnt(10),
           bldat like sy-datum,
           budat like sy-datum,
           wrbtr(10),
           end of gt_header,
           begin of gt_item occurs 0,
           counter(1),
           identifier(2),
           hkont(10),
           wrbtr(10),
           kostl(10),
           end of gt_item,
        INTERNAL TABLE TOI DISPLAY ERRORS.
          begin of gt_summery occurs 0,
          identifier(2),
          bukrs(5),
          accnt(10),
          msgv1 like bdcmsgcoll-msgv2,
          msgv2 like bdcmsgcoll-msgv2,
          msgnr type string,
          end of gt_summery,
          v_upload type string,
          v_download type string,
          msg type string,
          v_hkont type string,
          v_kostl type string,
          date1 type datum,
          date2 type datum,
    v_refkey like   bapiache09-obj_key.
    *CREATING SELECTION CREITERIA
    parameters:p_gfile like ibipparms-path,
               p_test as checkbox.
              P_DFILE LIKE IBIPPARMS-PATH.
    at selection-screen on value-request for p_gfile.
      perform f4help_upload.
    *AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_DFILE.
    PERFORM F4HELP_DOWNLOAD.
    start-of-selection.
      v_upload = p_gfile.
    V_DOWNLOAD = P_DFILE.
      perform uploadfile.
      perform  sendinto_head_item.
      perform buildbapi.
    end-of-selection.
      perform disp_report.
    *&      Form  F4HELP
          text
    -->  p1        text
    <--  p2        text
    form f4help_upload .
      call function 'F4_FILENAME'
       exporting
      PROGRAM_NAME        = SYST-CPROG
      DYNPRO_NUMBER       = SYST-DYNNR
         field_name          = 'P_GFILE'
       importing
         file_name           = p_gfile
    endform.                                                    " F4HELP
    *&      Form  F4HELP_DOWNLOAD
          text
    -->  p1        text
    <--  p2        text
    form f4help_download .
    CALL FUNCTION 'F4_FILENAME'
      EXPORTING
      PROGRAM_NAME        = SYST-CPROG
      DYNPRO_NUMBER       = SYST-DYNNR
        FIELD_NAME          = 'P_DFILE'
      IMPORTING
        FILE_NAME           = P_DFILE
    endform.                    " F4HELP_DOWNLOAD
    *&      Form  UPLOADFILE
          text
    -->  p1        text
    <--  p2        text
    form uploadfile .
      call function 'GUI_UPLOAD'
        exporting
          filename                      = v_upload
      FILETYPE                      = 'ASC'
    HAS_FIELD_SEPARATOR           = '|'
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
      VIRUS_SCAN_PROFILE            = VIRUS_SCAN_PROFILE
      NO_AUTH_CHECK                 = ' '
    IMPORTING
      FILELENGTH                    = FILELENGTH
      HEADER                        = HEADER
        tables
          data_tab                      = gt_uploadfile
       exceptions
         file_open_error               = 1
         file_read_error               = 2
         no_batch                      = 3
         gui_refuse_filetransfer       = 4
         invalid_type                  = 5
         no_authority                  = 6
         unknown_error                 = 7
         bad_data_format               = 8
         header_not_allowed            = 9
         separator_not_allowed         = 10
         header_too_long               = 11
         unknown_dp_error              = 12
         access_denied                 = 13
         dp_out_of_memory              = 14
         disk_full                     = 15
         dp_timeout                    = 16
         others                        = 17
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.                    " UPLOADFILE
    *&      Form  SENDINTO_HEAD_ITEM
          text
    -->  p1        text
    <--  p2        text
    form sendinto_head_item .
      loop at gt_uploadfile.
        if gt_uploadfile-input+0(1) = '1'.
          split gt_uploadfile-input at cl_abap_char_utilities=>horizontal_tab
          into
                gt_header-counter
                gt_header-identifier
                gt_header-bukrs
                gt_header-accnt
                gt_header-bldat
                gt_header-budat
                gt_header-wrbtr.
          append gt_header.
          clear gt_header.
        else.
          split gt_uploadfile-input at cl_abap_char_utilities=>horizontal_tab
       into   gt_item-counter
              gt_item-identifier
              gt_item-hkont
              gt_item-wrbtr
              gt_item-kostl.
          append gt_item.
          clear gt_item.
        endif.
       BREAK-POINT.
      endloop.
    endform.                    " SENDINTO_HEAD_ITEM
    *&      Form  BUILDBAPI
          text
    -->  p1        text
    <--  p2        text
    form buildbapi .
      loop at gt_header.
       GT_HEADER-BUDAT = sy-datum - 5.
       GT_HEADER-BLDAT = sy-datum.
        vcounter = 1.
        gt_header-wrbtr = gt_header-wrbtr  * -1.
    *FILLING INPORTING PARAMETER STRUCTURE.
        wa_documentheader-comp_code = gt_header-bukrs.
        wa_documentheader-doc_date = gt_header-bldat.
        wa_documentheader-pstng_date = gt_header-budat.
        wa_documentheader-username = sy-uname.
        wa_documentheader-bus_act = 'RFBU'.
        wa_documentheader-doc_type = 'KR'.
        gt_accountpayable-itemno_acc = vcounter.
        gt_accountpayable-vendor_no =  gt_header-accnt.
        append gt_accountpayable.
        clear gt_accountpayable.
        gt_currencyamount-itemno_acc = vcounter.
        gt_currencyamount-currency = 'INR'.
        gt_currencyamount-amt_doccur = gt_header-wrbtr.
        append gt_currencyamount.
        clear gt_currencyamount.
        loop at gt_item where identifier = gt_header-identifier.
          vcounter = vcounter + 1.           .
          gt_accountgl-itemno_acc = vcounter.
          call function 'CONVERSION_EXIT_ALPHA_INPUT'
            exporting
              input  = gt_item-hkont
            importing
              output = gt_item-hkont.
          gt_accountgl-gl_account = gt_item-hkont.
          call function 'CONVERSION_EXIT_ALPHA_INPUT'
            exporting
              input  = gt_item-kostl
            importing
              output = gt_item-kostl.
          gt_accountgl-costcenter = gt_item-kostl.
          gt_accountgl-pstng_date = gt_header-budat.
          append gt_accountgl.
          clear gt_accountgl.
          gt_currencyamount-itemno_acc = vcounter.
          gt_currencyamount-currency = 'INR'.
          gt_currencyamount-amt_doccur = gt_item-wrbtr.
          append gt_currencyamount.
          clear gt_currencyamount.
        endloop.
        call function 'BAPI_ACC_DOCUMENT_POST'
          exporting
            documentheader          = wa_documentheader
          CUSTOMERCPD             = CUSTOMERCPD
          CONTRACTHEADER          = CONTRACTHEADER
         importing
          OBJ_TYPE                = OBJ_TYPE
           obj_key                 =  v_refkey
          OBJ_SYS                 = OBJ_SYS
          tables
           accountgl               = gt_accountgl
          ACCOUNTRECEIVABLE       = ACCOUNTRECEIVABLE
           accountpayable          = gt_accountpayable
          ACCOUNTTAX              = ACCOUNTTAX
            currencyamount          = gt_currencyamount
          CRITERIA                = CRITERIA
          VALUEFIELD              = VALUEFIELD
          EXTENSION1              = EXTENSION1
            return                  = gt_return
          PAYMENTCARD             = PAYMENTCARD
          CONTRACTITEM            = CONTRACTITEM
          EXTENSION2              = EXTENSION2
          REALESTATE              = REALESTATE
        break-point.
        if p_test is initial.
          call function 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          = WAIT
    IMPORTING
      RETURN        = RETURN
        endif.         .
      endloop.
    endform.                    " BUILDBAPI
    *&      Form  disp_report
          text
    -->  p1        text
    <--  p2        text
    form disp_report .
      loop at gt_return.
        write:/ gt_return-type,
       gt_return-id,
       gt_return-number,
       gt_return-message,
       gt_return-log_no,
       gt_return-log_msg_no,
       gt_return-message_v1,
       gt_return-message_v2,
       gt_return-message_v3,
       gt_return-message_v4,
       gt_return-parameter,
       gt_return-row,
       gt_return-field,
       gt_return-system.
      endloop..
    endform.                    " disp_report
    reward points if helpful........

  • BDC or BAPI for me01 and me02 please read the requirement below

    Hi Experts
    I am having one requirement ,that
    I need to write a BDC program for Source list
    My alt file is having 3 filed with
    matnr werks lifnr
    if the material no and werks are same and the lifnr is not existing then it has to add the new vendor with the material and werks to the source list
    if matnr  werks and lifnr are not existing then need to create a new source list
    flat file
    10000001 4200 0230000000
    10000001 4200 0230000000
    10000001 4200 0230000000
    10000001 4200 0230000001
    10000002 4210 0230000002
    see in this flat file I'm having two diffrent vendors
    suppose in eord table existing
    matnr , werks,lifnr
    10000001   4200 0230000000
    so nw it has to check for whether vendor is existing or not if existing nothing to do if not then it has to add the new vendor
    if matnr werks and lifnr or not existing then it has to create new source list       
    means create the vendor
    Is there any BAPI or any sample prog is thr    please provide me
    WILL GIVE YOU POINTS IMMEDIATELY
    Thanks in advance

    Hi
    You can search in SDN for regarding Table Control and also go through the below links:
    Here are some of the links
    Re: Handling The Table Control while working with BDC
    Re: how do we handle BDC table control
    Re: how to create bdc with table control
    Regards,
    Vishwa.

  • BDC or BAPI for Transaction  IFCU

    Is it possible to do a BDC for transaction IFCU.IF not is there a Bapi to put the measurment documents for an equipment

    you can try function module ITOB_CONSUMPTION_UPDATE

Maybe you are looking for

  • How to display images in BI Publisher from a LONG data type

    We are storing images in Oracle Database as LONG data type. When I am giving query in BI Publisher and view the XML generated, I am getting the following error. name was started with an invalid character. Error processing resource 'http://....... <X_

  • Dynamic creation of class objects?

    I have a requirement where in at runtime I would know the class name, method name, properties, interface..and coding lines to be put into a method? Can anyone suggest a way to create the consumable central class object with these details, activate it

  • Webutil HOST function

    Hi, everyone. I am trying to write some client_host commands in Oracle Forms 10g. I finished all I need in my application, but there is one problem. I need raise some notepad files on client file system. But problem is I MUST raise file without raise

  • Adobe Pro 9

    Hi I had to reformat my PC. Trying to update my Adobe Pro 9 now but I am unable to find the very first update, 9.1. Adobe - Acrobat 9 Pro Extended : For Windows Can a fellow Adobe Pro user help me with this one ? Flyingfsih551

  • Will not search for a word in pdf file. Using Windows 7

    Like most I have used Acrobat reader for viewing PDF files for years.  I recently upgraded to Windows 7 from XP.  I have tried to search a PDF file for a word and it always comes up with none found even though I search for a word that is displayed in