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........

Similar Messages

  • 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

  • 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.

  • 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.

  • Reg bapi for xd01 txn

    Dear Freinds,
    Pls let me know the BAPI for XD01 appl ( customer master)
    Regards,
    Manoj

    Tnx for reply...
    But i am having 258 fields to upload fm flat file and all the fields are not in the BAPI function modules ..
    How to get remaining fields which are not in the BAPI FM.
    PLs help

  • 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

  • Reg:Bapi for mass creation of production order/confirmation

    Dear Experts,
    I wanted to know with the following BAPI is it possible to create Multiple production orders for different semifinshed Materials along with material availability check and other functions similar to CO01 transaction.
    I knew there are standard transactions for mass confirmation for production orders. But i need a confirmation on this BAPI . As i am planning to go-ahed with ,mass creation of production order creation / Order confirmation in single custom transaction.Need back flush activity even supported.
    BAPI_PRODORD_CREATE to create the orders.
    BAPI_PRODORD_RELEASE to release the orders.
    BAPI_PRODORDCONF_GET_TT_PROP to get the default data for the confirmation.
    BAPI_PRODORDCONF_CREATE_TT to ost the confirmation of production order.
    Along with this BAPI do i need to commit any other BAPI to carry out back flush for components.
    Need your suggestions to take it further.
    Regards,
    Daya.

    Dear SAP Daya
    If the issue has been solved, please close this thread.
    You have already mentioned that the issue has been resolved, thefore, you should not ask for help on another thread before closing this one, as it looks like you are trying to force people to answer your threads.
    Users are always trying to answer as many threads as possible on good will we don't need this kind of "incentive".
    Please read carefully the The SCN Rules of Engagement, especially point 8:
    Be responsive. If an SCN member has answered your question, please mark the answer as "helpful” or “correct”. Mark the discussion as “answered,” so that other members can find the answers more easily
    Also, I checked your old threads and I could observe that there is only one closed. Please review your old threads and close those already solved.
    BR
    Caetano

  • Reg bapi for creation of purchase order

    hai to all,
    i have to upload purchase orders from  legacy file to R/3 system
    certain order having more than 50 line items
    so please any one send me <b>stardard bapi program or bdc program for me21n</b> transaction which will suitable for my senario.
    please send asap
    regards
    vijay

    hai
    i am trying to create po using bapi
    the following code explains
    constants : c_x value 'X'.
      data: del_date type sy-datum.
      data: pohead  type bapimepoheader.
      data: poheadx type bapimepoheaderx.
      data: exp_head type bapimepoheader.
      data: t_return_out  type table of bapiret2 with header line,
            wa_return_out  TYPE bapiret2.
      data: poitem  type table of bapimepoitem with header line.
      data: poitemx type table of bapimepoitemx with header line.
      data: posched  type table of bapimeposchedule with header line.
      data: poschedx type table of bapimeposchedulx with header line.
      data: ex_po_number type bapimepoheader-po_number.
    Header Level Data
      pohead-comp_code = '1011'.
      pohead-doc_type   = 'NB'     .
      pohead-creat_date = sy-datum   .
      pohead-vendor = 'A1138'.
      pohead-purch_org = 'DOMS'.
      pohead-pur_group = 'MFR'.
      pohead-langu      = sy-langu   .
      pohead-doc_date   = sy-datum.
      poheadx-comp_code  = c_x.
      poheadx-doc_type   = c_x.
      poheadx-creat_date = c_x.
      poheadx-vendor     = c_x.
      poheadx-langu      = c_x.
      poheadx-purch_org  = c_x.
      poheadx-pur_group  = c_x.
      poheadx-doc_date   = c_x.
    Item Level Data
      poitem-po_item  = 1.
      poitem-material = '000000000100001079'.
      poitem-plant    = 'HO01'.
    poitem-stge_loc = ''.
      poitem-quantity = 1.
      append poitem.
      poitemx-po_item    = 1.
      poitemx-po_itemx   = c_x.
      poitemx-material   = c_x.
      poitemx-plant      = c_x .
      poitemx-stge_loc   = c_x .
      poitemx-quantity   = c_x .
      poitemx-tax_code   = c_x .
      poitemx-item_cat   = c_x .
      poitemx-acctasscat = c_x .
      append poitemx.
    Schedule Line Level Data
    posched-po_item        = 1.
    posched-sched_line     = 1.
    posched-del_datcat_ext = 'D'.
    del_date = sy-datum + 1.
    write del_date to posched-delivery_date.
    posched-deliv_time     = '000001'.
    posched-quantity       = 1.
    append posched.
    poschedx-po_item        = 1.
    poschedx-sched_line     = 1.
    poschedx-po_itemx       = c_x.
    poschedx-sched_linex    = c_x.
    poschedx-del_datcat_ext = c_x.
    poschedx-delivery_date  = c_x.
    poschedx-quantity       = c_x.
    append poschedx.
      call function 'BAPI_PO_CREATE1'
           EXPORTING
                poheader         = pohead
                poheaderx        = poheadx
                testrun          = ' '
           IMPORTING
                exppurchaseorder = ex_po_number
                expheader        = exp_head
           TABLES
                return           = t_return_out
                poitem           = poitem
                poitemx          = poitemx.
               poschedule       = posched
               poschedulex      = poschedx.
    call function 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
               wait = 'X'.
    if not ex_po_number is initial.
       call function 'DEQUEUE_ALL'.
    else.
       call function 'DEQUEUE_ALL'.
       message i036.
    endif.
    **endform. " create_po
    IF ex_po_number IS NOT INITIAL.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
          PERFORM show_result.
    ELSE.
          CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
          PERFORM show_result.
        ENDIF.
    *&      Form  show_result
          text
    -->  p1        text
    <--  p2        text
    FORM show_result .
      LOOP AT t_return_out INTO wa_return_out.
        write : ex_po_number.
        WRITE : / wa_return_out-type,
                / wa_return_out-id,
                / wa_return_out-number,
                / wa_return_out-message,
                / wa_return_out-log_no,
                / wa_return_out-log_msg_no,
                / wa_return_out-message_v1,
                / wa_return_out-message_v2,
                / wa_return_out-message_v3,
                / wa_return_out-message_v4,
                / wa_return_out-parameter,
                / wa_return_out-row,
                / wa_return_out-field,
                / wa_return_out-system.
      ENDLOOP.
    <b>iam geting the error such that</b>
    E                                                                            
    BAPI                                                                         
    001                                                                          
    No instance of object type PurchaseOrder has been created. External reference:
    000000                                                                       
    PurchaseOrder                                                                
    POHEADER                                                                     
            1                                                                 
    E                                                                         
    ME                                                                        
    062                                                                       
    Account assignment mandatory for material 100001079 (enter acc. ***. cat.)
    000000                                                                    
    100001079                                                                 
    POITEM                                                                    
    <b>how to correct this error</b>
    regards
    vijay

  • Reg: BAPI for HR

    Hi Experts,
    Please help me onthis.
    To which InfoType does it belong (both HR US and HR INT.)
    Which BAPI is used or available to read the information? (both HR US and HR INT.)
    Which BAPI is used or available to write the e-mail address? (both HR US and HR INT.)
    Which BAPI is used or available to write the different phone numbers (telephone, telex, pager, mobile, fax) (HR INT. only)
    Is it correct the default BAPI will only return objects that are ACTIVE? Is there a BAPI available that will return person objects, independent of their status? (this is needed to be able to provision the AD account in a disabled state right after the HR record creation. This way HP has the time to finish the configuration of that AD account and mailbox BEFORE the person starts working for SaraLee) A BAPI is needed that returns objects whether or not the object are ACTIVE.
    I am waiting for ur reply
    Thanks & Regards,
    ABAP

    Hi,
    you can check with this function module.
    BAPI_HRMASTER_SAVE_REPL_MULT,
    RH_CALL_BAPI_HRMD_APPL.
    Regards,
    Shamma

  • Reg:bapis for abap-hr

    Hi Gurus,
    Cna iget the bapis used for the HR module in abap-hr
    programming ....
    Thanks & Regards
    Suman

    Hi,
    Goto Txcode-BAPI->in the left side of the screen click on Alphabetical tab -> Scroll down you will get lot of BAPIs regarding employee, HR master data replication and all.
    Cheers!!
    VEnk@

  • Reg : BAPI For FB60

    Hi All,
    Can Any one Tell me which bapi should i use for fb60 transaction i have tried BAPI_INCOMINGINVOICE_PARK but it is asking PO as mandatory field but i don't have po for this scenario.
    i have tried BAPI_ACC_DOCUMENT_POST but its not having a export parameter to give the invoice number.
    So can anyone suggest me which bapi i have to go without referring the po.
    Regards,
    Karthik.

    Hi Sudharshan,
    Thanks For your quick response could you provide any sample program for this type of scenario so that it is easy to understand .I have tried BAPI_ACC_DOCUMENT_POST but in the ACCOUNTTAX  tables its asking me to fill the posting date but its not there ,so can you provide any sample program.

  • Reg: BAPI for FB02

    Hi ABAP Gurus,
    Could you please let me know of whether there is a bapi defined for the transaction FB02.
    Thanks,
    Kishore

    Hi Mukesh,
    I need to change the Reference key and the reason code using the transaction FB02.
    I can do the same using the BDC but screen numbers keep changing based on the company code.
    I need to know whether it is possible to do same using the bapi.
    Thanks,
    Kishore

  • Reg:BAPI for updation of Progress parameter and status profile

    Hi,
    Can anybody suggest name of BAPI used for updating "progress parameter" & "Status Profile" in actvity.
    With Regards
    Rohit Prakash

    Hi Ammar,
    I have checked both BAPI but BAPI are not working as per our requirement.
    Firstly we wanted to update progress parameter like measurement method(progress version,method plan,method actual) & POC weight into activity but as per BAPI given by you there is no any field available related to measurement method(progress version,method plan,method actual).
    And secondly we wanted to update status profile residing in Activity tab not in network header or WBS.
    Waiting for some more input related to  query.
    With Regards
    Rohit Prakash

  • Intercompany posting issue through bapi for FB01

    Hi,
    I am facing an issue for intercompany document posting.
    I have created a Z program in which I am using BAPI_ACC_DOCUMENT_POST for posting. The document is posted if we post within same company code. But for intercompany it gives error saying: 'G/L account XXX requires a valid tax code' even if for that account tax category is *.
    Please share your valuable inputs on this issue.

    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

  • Reg:BAPI for sales order creation

    Dear All,
    I am not able to populate  Order Quantity in Sales Oder
    from bapi BAPI_SALESORDER_CREATEFROMDAT2
    in which structure the order quantity field will be there.
    In the structure BAPISDITM there is a field TARGET_QTY but it is not  populeting in Cumulative Order Quantity in Sales Units.
    In the structure BAPISCHDL there is a field REQ_QTY
    is it Cumulative Order Quantity in Sales Units.
    please can you tell me which is the field for Order Quantity througn bapi in BAPI_SALESORDER_CREATEFROMDAT2.
    thanks
    mars

    Pass the quantity in ORDER_SCHEDULES_IN-REQ_QTY.  Also update the field ORDER_SCHEDULES_INX-REQ_QTY with value 'X'.
    Regards
    Vinod

Maybe you are looking for

  • Business Rules Unavailable

    I am unable to gain access to the CAPEX module predefined business rules. I've updated shared services allowing the selected user user rights to planning and business rules. However, they still do not show up in workspace. For instance: I'm using For

  • Where can i find the Weblogic Server 10.0 MP2 64-Bit for linux enviroment?

    Can anyone help me with finding the location of download for the Weblogic 10.0 MP2 64-bit for linux.

  • How to generate the documentation of nested private class?

    When I generate the documentation with the flag -private (the less restrictive), I get only the javadoc class block comment for the nested classes, is there any way to see the information about fields, operations, constructors, etc. I am using jdk 1.

  • Not the right language

    It´s grazy - I have a movie in German language, bought from iTunes, on my iMac. After I copied the movie to my Apple TV the language ist English! The other movies I copied to Apple TV, bought from iTunes also, are still in German. Any Idea?

  • Can't reinstall Tiger on Mac Pro

    We have a Mac Pro 1,1 with OS 10.4.11 on it. It is heavily corrupted and we want to wipe it and reload the OS. I tried 10.5 disks, but they cannot be used on this machine, so I tried the Tiger disks, but they said the same thing. I noticed that they