BAPI Upload

Q) tell me process of  J1id T.Code (Excise Rate Maintenance)
    upload using BAPI.

Tell You? are you asking for help or a re you a teacher taking class?
HeHeHe no wonder you received zero responce.
Any ways where do you all guys come from?

Similar Messages

  • BAPI Upload Excel to SAP R/3

    Hello,
    i don't if this is the best place to put this topic, but here he goes.
    I have a excel workbook and i have 3 buttons, one to connect remotely to Sap, one to download a table from a RFC function e another to upload data to another table in a rfc function.
    The download is working well but the upload no. Here is the code:
    DOWNLOAD(Working):
    Private Sub DOWNLOAD_Click()
        On Error Resume Next
        ' The required BAPI
        Set objTable = Nothing
        Set objTeste = objBAPIControl.Add("ZPD_TESTE_EXCEL")
        If objTeste.Call Then
            Set objTable = objTeste.Tables("T_INTER")
            For i = 1 To objTable.RowCount
                ActiveSheet.Cells(8 + i, 1) = objTable.Cell(i, 1)
                ActiveSheet.Cells(8 + i, 2) = objTable.Cell(i, 2)
                ActiveSheet.Cells(8 + i, 3) = objTable.Cell(i, 3)
                ActiveSheet.Cells(8 + i, 3) = objTable.Cell(i, 4)
                ActiveSheet.Cells(8 + i, 3) = objTable.Cell(i, 5)
            Next i
        Else
            MsgBox "Erro a chamar a função."
        End If
    ' objTable.AppendGridData
    End Sub
    UPLOAD(Not working):
    Private Sub UPLOAD_Click()
        On Error Resume Next
        ' The required BAPI
        Set objTable2 = Nothing
        Set objTeste2 = objBAPIControl.Add("ZPD_TESTE_EXCEL_UP")
        If objTeste2.Call Then
            Set objTable2 = objTeste2.Tables("T_INTER")
            For i = 1 To ActiveSheet.RowCount
                objTable2.Cell(i, 1) = ActiveSheet.Cells(8 + i, 1)
                objTable2.Cell(i, 2) = ActiveSheet.Cells(8 + i, 2)
                objTable2.Cell(i, 3) = ActiveSheet.Cells(8 + i, 3)
                objTable2.Cell(i, 4) = ActiveSheet.Cells(8 + i, 4)
                objTable2.Cell(i, 5) = ActiveSheet.Cells(8 + i, 5)
            Next i
        Else
            MsgBox "Erro a chamar a função."
        End If
    End Sub

    Hi Ricardo,
    Have you looked this FM <b>ALSM_EXCEL_TO_INTERNAL_TABLE</b>?
    Regards,
    Ferry Lianto

  • Sales Order Inquiry bapi upload problem

    Hi All..
    when iam trying to upload SO inquiry sample data through bapi iam getting these Errors :
    Material 1423 is not defined for sales org.1000,  distr.chan.12,  language DE
    Error in SALES_ITEM_IN 000000
    Sales document  was not changed.
    but i defined 1423 material in sales org.1000,  distr.chan.12.
    here is my abap code.
    *& Report  ZSAMPLE
    REPORT  zsample.
    DATA:lt_header LIKE bapisdhd1 OCCURS 0 WITH HEADER LINE,
         lt_inquiry_items_in LIKE bapisditm OCCURS 0 WITH HEADER LINE,
         lt_inquiry_items_inx LIKE bapisditmx OCCURS 0 WITH HEADER LINE,
         lt_header_x LIKE bapisdhd1x OCCURS 0 WITH HEADER LINE,
         lt_partners LIKE bapiparnr OCCURS 0 WITH HEADER LINE,
         lt_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
    lt_header-doc_type = 'ZSJ1'.
    lt_header-sales_org = '1000'.
    lt_header-distr_chan = '12'.
    lt_header-division = '00'.
    lt_header-purch_date = '20081121'.
    lt_header-purch_no_c = '7654321'.
    APPEND lt_header.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        input  = lt_header-doc_type
      IMPORTING
        output = lt_header-doc_type.
    APPEND lt_header.
    lt_header_x-updateflag = 'U'.
    lt_header_x-doc_type = 'X'.
    lt_header_x-sales_org = 'X'.
    lt_header_x-distr_chan = 'X'.
    lt_header_x-division = 'X'.
    lt_header_x-purch_date = 'X'.
    lt_header_x-purch_no_c = 'X'.
    APPEND lt_header_x.
    *lt_inquiry_items_in-currency = 'USD'.
    *lt_inquiry_items_in-ITM_NUMBER = '0010'.
    *lt_inquiry_items_in-plant = '0001'.
    lt_inquiry_items_in-material = '000000000000001423'.
    lt_inquiry_items_in-itm_number = '000010'.
    *lt_inquiry_items_in-exchg_rate = '1000000'.
    APPEND lt_inquiry_items_in.
    lt_inquiry_items_inx-updateflag = 'U'.
    lt_inquiry_items_inx-ITM_NUMBER = 'X'.
    lt_inquiry_items_inx-PLANT = 'X'.
    lt_inquiry_items_inx-material = 'X'.
    lt_inquiry_items_inx-itm_number = 'X'.
    APPEND lt_inquiry_items_inx.
    lt_partners-partn_role = 'SH'.
    lt_partners-partn_numb = '0000000149'.
    APPEND lt_partners.
    CALL FUNCTION 'BAPI_INQUIRY_CREATEFROMDATA2'
      EXPORTING
    SALESDOCUMENTIN               = ' '
        inquiry_header_in             = lt_header
        inquiry_header_inx            = lt_header_x
      SENDER                        =
      BINARY_RELATIONSHIPTYPE       =
      INT_NUMBER_ASSIGNMENT         =
      BEHAVE_WHEN_ERROR             =
      LOGIC_SWITCH                  =
      TESTRUN                       =
      CONVERT                       = ' '
    IMPORTING
      SALESDOCUMENT                 =
      TABLES
       return                        = lt_return
       inquiry_items_in              = lt_inquiry_items_in
       inquiry_items_inx             = lt_inquiry_items_inx
        inquiry_partners              = lt_partners
      INQUIRY_SCHEDULES_IN          =
      INQUIRY_SCHEDULES_INX         =
      INQUIRY_CONDITIONS_IN         =
      INQUIRY_CONDITIONS_INX        =
      INQUIRY_CFGS_REF              =
      INQUIRY_CFGS_INST             =
      INQUIRY_CFGS_PART_OF          =
      INQUIRY_CFGS_VALUE            =
      INQUIRY_CFGS_BLOB             =
      INQUIRY_CFGS_VK               =
      INQUIRY_CFGS_REFINST          =
      INQUIRY_TEXT                  =
      INQUIRY_KEYS                  =
      EXTENSIONIN                   =
      PARTNERADDRESSES              =
    READ TABLE lt_return WITH KEY type = 'E'.
    WRITE : /5 lt_return-type, 20 lt_return-id , 30 lt_return-number , 50 lt_return-message.
    IF sy-subrc NE 0.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        WAIT          =
      IMPORTING
        RETURN        =
    ENDIF.
    Thank you,
    Madhu Rao.

    hi
    Use FM conversion_exit_alpha_input... and give the number exactly as the size of the field.. if there are any prefix 0's which are not given in the field.. the BAPI wont execute..
    if it is in the database as 00001423 and ur giving it as 1423...it wont take it...
    Check the master table of material to see how it is stored in database.
    and pass exact value.
    Regards,
    Vishwa.

  • Re: BAPI uploading data

    Hi  Experts,
           I want to how exactly BAPI's are used as interfaces and for data transfering . Please provide me example codes for uploadinfg data into r/3 using BAPI's.
    Thanks in advance.
    Points will be awrded surely.
    Rgds
    Umakanth

    Hi umakanth  ,
    A BAPI is defined as a method of an SAP Business Object.
    To use a BAPI method, an application program only needs to know how to call the method; that is, it needs to know the method's interface definition. A BAPI interface is defined by:
    Import parameters
    Export parameters
    Import/export (table) parameters
    The BAPIs in the R/3 System are currently implemented as function modules, all of which are held in the Function Builder. Each function module underlying a BAPI:
    · Supports the Remote Function Call (RFC) protocol
    · Has been assigned as a method to an SAP Business Object in the BOR
    · Is processed without returning any screen dialogs to the calling application
    steps involved in BAPI
    In the application hierarchy of the BAPI Browser you can display all the SAP business object types for which BAPIs have been implemented:
    Tools ->Business Framework -> BAPI Browser : BAPI45.
    Expand the nodes and the subordinate nodes of one of the application components
    To open an object type, double-click on it.
    To display a list of the key fields of the object, expand the node Key fields
    To display a list of the BAPIs available for this SAP business object type, expand the node Methods
    To display the parameters of a BAPI, expand the node for the BAPI and then the Parameters node
    Eg Program:
    BAPI_GOODSMVT_CREATE to post Goods Movement
    The following is an abap program making used of the BAPI function BAPI_GOODSMVT_CREATE to do Goods Receipts for Purchase Order after importing the data from an external system.
    * BAPI TO Upload Inventory Data
    * GMCODE Table T158G - 01 - MB01 - Goods Receipts for Purchase Order
    *                      02 - MB31 - Goods Receipts for Prod Order
    *                      03 - MB1A - Goods Issue
    *                      04 - MB1B - Transfer Posting
    *                      05 - MB1C - Enter Other Goods Receipt
    *                      06 - MB11
    * Domain: KZBEW - Movement Indicator
    *      Goods movement w/o reference
    *  B - Goods movement for purchase order
    *  F - Goods movement for production order
    *  L - Goods movement for delivery note
    *  K - Goods movement for kanban requirement (WM - internal only)
    *  O - Subsequent adjustment of "material-provided" consumption
    *  W - Subsequent adjustment of proportion/product unit material
    report zbapi_goodsmovement.
    parameters: p-file like rlgrap-filename default
                                     'c:sapdataTEST.txt'.
    parameters: e-file like rlgrap-filename default
                                     'c:sapdatagdsmvterror.txt'.
    parameters: xpost like sy-datum default sy-datum.
    data: begin of gmhead.
            include structure bapi2017_gm_head_01.
    data: end of gmhead.
    data: begin of gmcode.
            include structure bapi2017_gm_code.
    data: end of gmcode.
    data: begin of mthead.
            include structure bapi2017_gm_head_ret.
    data: end of mthead.
    data: begin of itab occurs 100.
            include structure bapi2017_gm_item_create.
    data: end of itab.
    data: begin of errmsg occurs 10.
            include structure bapiret2.
    data: end of errmsg.
    data: wmenge like iseg-menge,
          errflag.
    data: begin of pcitab occurs 100,
            ext_doc(10),           "External Document Number
            mvt_type(3),           "Movement Type
            doc_date(8),           "Document Date
            post_date(8),          "Posting Date
            plant(4),              "Plant
            material(18),          "Material Number
            qty(13),               "Quantity
            recv_loc(4),           "Receiving Location
            issue_loc(4),          "Issuing Location
            pur_doc(10),           "Purchase Document No
            po_item(3),            "Purchase Document Item No
            del_no(10),            "Delivery Purchase Order Number
            del_item(3),           "Delivery Item
            prod_doc(10),          "Production Document No
            scrap_reason(10),      "Scrap Reason
            upd_sta(1),            "Update Status
          end of pcitab.
    call function 'WS_UPLOAD'
      exporting
        filename                      = p-file
        filetype                      = 'DAT'
    * IMPORTING
    *   FILELENGTH                    =
      tables
        data_tab                      = pcitab
    * EXCEPTIONS
    *   FILE_OPEN_ERROR               = 1
    *   FILE_READ_ERROR               = 2
    *   NO_BATCH                      = 3
    *   GUI_REFUSE_FILETRANSFER       = 4
    *   INVALID_TYPE                  = 5
    *   OTHERS                        = 6
    if sy-subrc <> 0.
      message id sy-msgid type sy-msgty number sy-msgno
              with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      exit.
    endif.
    gmhead-pstng_date = sy-datum.
    gmhead-doc_date = sy-datum.
    gmhead-pr_uname = sy-uname.
    gmcode-gm_code = '01'.   "01 - MB01 - Goods Receipts for Purchase Order
    loop at pcitab.
      itab-move_type  = pcitab-mvt_type.
      itab-mvt_ind    = 'B'.
      itab-plant      = pcitab-plant.
      itab-material   = pcitab-material.
      itab-entry_qnt  = pcitab-qty.
      itab-move_stloc = pcitab-recv_loc.
      itab-stge_loc   = pcitab-issue_loc.
      itab-po_number  = pcitab-pur_doc.
      itab-po_item    = pcitab-po_item.
      concatenate pcitab-del_no pcitab-del_item into itab-item_text.
      itab-move_reas  = pcitab-scrap_reason.
      append itab.
    endloop.
    loop at itab.
      write:/ itab-material, itab-plant, itab-stge_loc,
              itab-move_type, itab-entry_qnt, itab-entry_uom,
              itab-entry_uom_iso, itab-po_number, itab-po_item,
                                                  pcitab-ext_doc.
    endloop.
    call function 'BAPI_GOODSMVT_CREATE'
      exporting
        goodsmvt_header             = gmhead
        goodsmvt_code               = gmcode
    *   TESTRUN                     = ' '
    * IMPORTING
        goodsmvt_headret            = mthead
    *   MATERIALDOCUMENT            =
    *   MATDOCUMENTYEAR             =
      tables
        goodsmvt_item               = itab
    *   GOODSMVT_SERIALNUMBER       =
        return                      = errmsg
    clear errflag.
    loop at errmsg.
      if errmsg-type eq 'E'.
        write:/'Error in function', errmsg-message.
        errflag = 'X'.
      else.
        write:/ errmsg-message.
      endif.
    endloop.
    if errflag is initial.
      commit work and wait.
      if sy-subrc ne 0.
        write:/ 'Error in updating'.
        exit.
      else.
        write:/ mthead-mat_doc, mthead-doc_year.
        perform upd_sta.
      endif.
    endif.
    *       FORM UPD_STA                                                  *
    form upd_sta.
      loop at pcitab.
        pcitab-upd_sta = 'X'.
        modify pcitab.
      endloop.
      call function 'WS_DOWNLOAD'
        exporting
          filename                      = p-file
          filetype                      = 'DAT'
    * IMPORTING
    *   FILELENGTH                    =
        tables
          data_tab                      = pcitab
    * EXCEPTIONS
    *   FILE_OPEN_ERROR               = 1
    *   FILE_READ_ERROR               = 2
    *   NO_BATCH                      = 3
    *   GUI_REFUSE_FILETRANSFER       = 4
    *   INVALID_TYPE                  = 5
    *   OTHERS                        = 6
    endform.
    REWARD POINTS IF HELPFUL
    ~Lakshmiraj~

  • Bapi upload of service pr data

    Hi Experts,
    I am new to bapi and am uploading service pr data using bapi while updating program is activated but data is not updating, in debugging it comes errors like this,
      LPR0000002 instance of object type purchase requisation has been created.external reference #1,
      LPR0000002Please enter material number or account assignment category,
      LPR0000002Item category  not allowed with document type ZSER,
      LPR0000002Please enter document number and item together.
    i tried in many ways but still its coming can you help me in this way.
    Thnaks,

    Hi Joe,
    I am not using Service Charge Settlement, but I had a look in RE-FX course book and I found the following info:
         You use the participation group to group together rental objects participating in a service charge settlement. You can use the participation group as a reference for the service charge settlement and address each group of rental objects individually.
         The participation group is a group of rental objects that participate in a particular settlement.
         Example: Charges for water are only relevant for the apartments. You define a participation group containing just these rental objects.
         The following objects can be assigned to participation groups:
         Rental objects
         Business entities
         Buildings
         Property
         Participation groups
         If objects containing rental objects are assigned, these rental objects are automatically assigned to the participation group. This means that if a building is assigned to the participation group, all the rental objects contained in it are also automatically assigned.
         The participation group specifies if the rental object participates in service charge settlement. All rental objects that are assigned to a participation group participate in the distribution of costs.
         If there is no occupancy contract for a rental object, then the costs are posted either to the rental object, or to the cost center for vacancy costs (if it is entered in the posting parameters).
         If there is an occupancy contract for the rental object, then the costs are automatically passed on to the tenant.
    Have you created such participation groups and assigned them to your RE objects?
    Hope this helps
    KR,
    Severina

  • Bapi - upload data for infotypes 0016 and 0019

    hello,
    Please let me know bapi to upload data for infotypes 0016 and 0019 as i am unable to find any bapi for this infotypes.
    Please use a more meaningful subject in future - I've edited it for you this time.
    Edited by: Matt on Nov 6, 2008 12:08 PM

    Hi Sunny,
    My suggestion is go txcode BAPI.
    After this in the left side of the window complete information on BAPIs will be available search out in Human resource you may get the BAPI, in the mean while some one may help you.
    Cheers!!
    VEnk@

  • Doubt in BAPI uploadation

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

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

  • How to specify a rental object on a contract during a BAPI upload (LSMW)

    Using the BAPI BUS1505 (Flexible Real Estate Contract) and method CREATE, you have the option of specifying the rental objects on the contract.
    The target structure is E1BP_RE_OBJECT_REL_DAT and the fields are
    CONTRACT_OBJECT_TYPE           Business Object Type of Contract Object
    CONTRACT_OBJECT_ID             ID Part of Contract Object            
    VALID_FROM                     Date: Relationship Valid From         
    VALID_TO                       Date: Relationship Valid To           
    OBJECT_GROUP_TEXT              Name of Object Groups                 
    OBJECT_GROUP_NUMBER            Group Number                          
    INFORMATIONAL_ASSIGNMENT       Informational Assignment              
    What "ID part of contract object" must I specify if I want to specify a rental object?
    The issue is that rental objects contain 3 parts and not 1:
    - Company Code
    - Business Entity
    - Rental Object Number
    I have tried to specify the number in the format "IMPPLL0000102300030003"
    where "PPLL" is the company code, "1023" is the business entity and "30003" is the rental object number, but this or any other code is not working. The error is "Rental object was not entered (REBDRO027)
    Cheers
    Joe

    it looks like the "db.select" method automatically puts select onto the start of the query.
    So just
    ResultSet rs = db.select("* FROM customer");
    ResultSet rs = db.select("* FROM customer WHERE color = 'yellow' ");would probably work
    The executeQuery method accepts any valid SQL that would run on the database.
    If you want to use parameters I would recommend you use a JDBC PreparedStatement
    http://java.sun.com/docs/books/tutorial/jdbc/basics/index.htmlCheers,
    evnafets

  • BAPI upload character data

    Hi,
    I am uploading character data in a input file using the Business object BUS1088 using LSMW. I am able to generate the IDOCs but when the IDOCs are posted at the inbound, I am getting an error 51 'application document not posted'. Can someone figure this out.
    Points assured.
    Thanks.

    Hi Raju,
    Pls check the IDOC # with status 51 in Inbox through txn <b>WE05</b>. In status record display, you will find the reason for error. Probably some field could not have been determined leading the error.
    Cheers,
    Vikram
    Pls reward for helpful replies!!

  • BAPI/BADI for mass upload

    Hi Everybody,
        I want to mass upload all the entries in EK01 and EK02 from an excel file (or any legacy system)rather than manually entering all the details which consumes a lot of time.Althogh we can do it through LSMW  but if there could be a a BAPI/BADI/program to do the same.  Please suggest me the same.
    Regards,
    Richa Tyagi
    Edited by: Richa  Tyagi on Feb 22, 2011 6:43 AM

    Its an IMG ( customizing ) activity hence you wont find BAPI / upload programme for the same .
    Only tool which i feel for the requirement mentioned is LSMW . As you wont be configuring your system on a frequently basis , its rather a one time activity .
    Regards ,
    Dewang

  • How to post or use fi upload bapis

    hi everybody,
      this is giri i need some help in bapis upload report. its related to fi module, here i have given details regarding this below. in how to pass data to bapi i dont know .and this bapi containig idoc segenets like IDOC Segment - BAPIACHE08,IDOC Segment - BAPIACAR09 and IDOC Segment - BAPIACGL08.
    the main use of this program is it take flat file from application or presentation server and then post thru bapi function module, can i use above idoc structures or seperately i can build a structure.pls its urgent req.
    some details abt this:
    The program should be able to generate postings in FI AR in the specific company code similar to the postings generated using standard SAP transaction code F-22 (Invoice) or F-27 (Credit Memo) or an on account AR payment posting.The above transactions are the online transactional equivalent of this interface. In order to accommodate the volume, standard SAP delivered BAPI – Z_BAPI_ACC_DOCUMENT_POST that corresponds to these transactions will be utilized.

    Hi Kamal Shaik,
    YES.
    If new GL is active, all standard FI functions and transactions will populate the FAGLFLEX tables.
    For this purpose, all standard modules use
      CALL FUNCTION 'FAGL_CHECK_GLFLEX_ACTIVE'
        IMPORTING
          e_glflex_active = gv_newgl_active.
    to decide what tables are relevant.
    We used  FUNCTION 'BAPI_ACC_GL_POSTING_POST' for posting successfully including FAGLFLEXT update.
    Regards,
    Clemens

  • Error While Uploading Salary (F-02)

    Hi,
    While Uploading Salary Using the BAPI Upload Program it shows an error
    ' No hierarchy variant assigned to FM area 2000 '
    Where in the same program works fine in the other client (DEV)
    could someone tell me what would be the problem? and whats the solution..?

    Hi ,
    i think this would be becoz of client dependancy .Is there a node with mandt in associated table in which you are uploading salary ?

  • Need to Post Components in Production Order in MB1A through BAPI as Planned Good Issue

    Hi ,
    I have created a Program to upload data s for MB1A through BDC , it works fine, but for huge data s it takes more time.  alternatively created one more Program which updates through BAPI Function Module  "BAPI_GOODSMVT_CREATE".  It works fine , but one issue noted, after posting through Function Module , components are posted as Unplanned Goods Issue.   I need to post the components as " Planned Goods Issue" instead of "Unplanned Goods Issue " . This can viewed through Tcode : C003
    Below are the  inputs passed for BAPI Function Moduel
    **&------Header Contents of bapi Upload-------------------&*
    header-pstng_date = sy-datum.                                              " Posting date
    header-doc_date    = sy-datum.                                             " Document Date
    header-header_txt  = '000001002280'.                                     " Header text
    header-pr_uname   = sy-uname.                                            " User Name
    header-ref_doc_no  = '000001002280'.                                    " Header Ref. Doc. No.
    CONCATENATE sy-uname sy-uzeit c_method INTO  header-ref_doc_no_long SEPARATED BY '-'.  " Refer  Text
    *Item Data
    wa_item-material   = '000000000010000800'.                             "Material
    wa_item-plant      = '3910'.                                              "Plant
    wa_item-stge_loc   = 'WIP'.                                            "Storage Location
    wa_item-move_type  = '261'.                                            "Movement Type
    wa_item-entry_qnt  = '1'.                                                  "Quantity
    wa_item-entry_uom  = 'PC'.                                              "Unit
    *wa_item-res_item  =  1.                                                  "Reservation Item
    *wa_item-reserv_no =                                                      " Reservation Number
    wa_item-batch      = '0000011027'.                                    "Batch No
    *wa_item-mvt_ind   = 'F'.                                                  "Movement Indicator
    *wa_item-stck_type = 'F'.                                                 "Stock Type
    wa_item-orderid    = '000001002260'.                                 "Order ID
    wa_item-prod_date  = SY-DATUM.
    *wa_item-GL_Account = '610000'.                                     "GL Account
    *TRANSLATE wa_item-batch TO UPPER CASE.
    *APPEND wa_item TO it_item.
    c_code = '03'.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
    EXPORTING
    goodsmvt_header       = header
    goodsmvt_code         = c_code
    TABLES
    goodsmvt_item         = it_item
    goodsmvt_serialnumber = it_sno
    return                = return.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
          wait = 'X'.
        commit work and wait.
    Even i tried to pass "Movement Indicator , GL Account etc" , Still not able to fix the issue. Can anyone suggest how to post the Production Order components as "Planned Goods Issue".  I am not sure any other values to be password.
    BR,
    Murali

    I have made something like your :
    * Alimtentation de la BAPI de mouvement de stock MM.
    move : sy-datum        to ls_header-pstng_date ,
            sy-datum        to ls_header-doc_date ,
    * Indique le code mouvement
            '03'            to lw_code.      " 03 normalement, mais je veux que ca plante
    loop at lt_ltap
          into ls_ltap.
       move : ls_ltap-matnr   to ls_item-material ,
              ls_ltap-werks   to ls_item-plant ,
              ls_ltap-lgort   to ls_item-stge_loc ,
              '261'           to ls_item-move_type ,
              ls_ltap-vsolm   to ls_item-entry_qnt ,
              ls_ltap-meins   to ls_item-entry_uom ,
              i_ltak_vb-benum to ls_item-orderid ,
              i_ltak_vb-rsnum to ls_item-reserv_no ,
              ls_ltap-rspos   to ls_item-res_item ,
              ls_ltap-rsart   to ls_item-res_type.
       append ls_item to lt_item.
       clear  ls_item.
    endloop.
    I have to put the reservation number to have it works.
    Fred

  • Bapi_goodsmvt_create: no error return, but no document created!

    Hi guys!
    I have i weired problem.
    I'm using the bapi_goodsmvt_create to create a goods receipt document for a standard order.
    The simulation works fine, no error or warning return, the bapi_goodsmvt_create  without simulation flag works fine, bapi_transaction_commit returns no error as well, BUT: the document was not created.
    Any idea about the problem?

    Commit the work ..
    This code might help u
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
        EXPORTING
          goodsmvt_header       = wa_header
          goodsmvt_code         = wa_gm_code
        IMPORTING
          goodsmvt_headret      = tbl_export
          materialdocument      = matdoc
          matdocumentyear       = year
        TABLES
          goodsmvt_item         = tbl_item
          goodsmvt_serialnumber = tbl_serial
          return                = return.
      WRITE AT 10 'STATUS OF BAPI UPLOAD' COLOR 2 INTENSIFIED ON .
      SKIP 2.
      LOOP AT return ASSIGNING <fs_return>.
        IF <fs_return>-type EQ 'E'.
          WRITE AT 10 'Error in function:' COLOR 6 INTENSIFIED OFF.
          WRITE AT 28 <fs_return>-message .
          SKIP 1.
          err_flag = 'X'.
        ELSE.
          WRITE AT 10 <fs_return>-message .
          SKIP 1.
        ENDIF.
      ENDLOOP.
      IF err_flag IS INITIAL.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
        IF sy-subrc NE 0.
          WRITE:/ 'Error in updating'.
          EXIT.
        ELSE.
          WRITE:/
    'Number of Material Document created through BAPI:',tbl_export-mat_doc.
          WRITE:/ 'Material Document Year':, tbl_export-doc_year.
        ENDIF.
      ENDIF.

  • Special Characters in SAP R/3 System

    Hi All,
    I need some help to handle the below situation.
    I need some help in XI. Below is the message from SXMB_MONI
    This is FILE to BAPI UPLOAD Scenario. The bolded characters above have special characters (First letter of the Bolded part).
    The values are getting uploaded in BAPI but when I check in R/3 system, I can see the values as Guss-Achsbr####, Bremsbelag-Verschlei########
    Edited by: Srinivasa Babu Mutyala on Aug 14, 2008 11:06 AM

    Hi,
    please have a look at this thread:
    special character
    Regards
    Patrick

Maybe you are looking for