BAPI or Material and Purchasing Data

Do you know if SAP had any BAPIs that can be used to download materials by plant?  The BAPI must send back the description, UOM/ISOCODE, purchasing value key, and manufacturer part number.  Are there any views for the material stock by plant that are indexed? 
Also we  are using BAPI_PO_GET_DETAIL and PO_GETITEM.  The BAPIs together would have all the information that what we needed.  Do you know of another BAPI that would retrieve the same information that these two BAPIs retrieve (account assignment and history totals and List of the Pos line items).  Do you know of an indexed view of EKPO and EKKO.

Dear All,
Was wondering in ECC6 EHP4 if there is any screen exit or enhancement where I can sort the icon for return item status in the return documetnt screen by it status like open or delete. Also is there is a possibility to hide certain status from this field and only display the one that we wanted only.
Regards ,
Ku Ibrahim

Similar Messages

  • Export Material and Price Data with IDOC or BAPI?

    Hi SAP Experts,
    I found two ways to implement a Master Material and Price Export to an external system, first with IDOC MATMAS01 and Idoc COND_A with an enhancement VKOE0001 PRICING CONDITION.
    Here I don't know how I can match a material with tht sales price?
    And the second one with the BAPI. But how I create a BAPI for Material and Sales Price?
    And which is the better way?
    Thanks and Bye,
    Frederic

    Amit,
    it seems that the FU BAPI_MATERIAL_SAVEDATA is only for Create and Change Material Master Data. Is that correct?
    I've following Use Case, I will send e.g. one Material with the sales price to an external system (later all material with their sales price). And for that case I'm searching for a solution. Can you bring me on the correct way to implement something like that.
    I would be very pleased if you can help me.
    Bye,
    Frederic

  • 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

  • Export Material and Price Data

    Hi SAP Experts,
    I found two ways to implement a Master Material and Price Export to an external system, first with IDOC MATMAS01 and Idoc COND_A with an enhancement VKOE0001 PRICING CONDITION.
    Here I don't know how I can match a material with tht sales price?
    And the second one with the BAPI. But how I create a BAPI for Material and Sales Price?
    And which is the better way?
    Thanks and Bye,

    Hi Frederic,
    I think you have posted the question in the wrong Forum. I think, you should post it in ABAP forum to get the answer.
    Thanks and Regards
    Nitin jain

  • MDG - Material and Financial Data Models

    Hi,
    Can anyone help me to get standard business content as per latest version for MDG-Material and MDG-Financial Data Models.
    Thanks,
    Narendra

    Please go through the below link it talks about all the latest updates.
    Configuration and Enhancement of SAP Master Data Governance

  • Vendor Accounting and Purchase data

    Hi all
    I would like to know, if is it possible to understand from some exit or badi, if a user is saving purchasing data or accounting data in tcode xk02.
    Thanks and regards

    Hi Gabriele, in method CHECK_ALL_DATA you have available data have changed and you can compare them with those in Tables.
    In  method CHECK_DATA_CHANGED you know if changes made.
    Regards.

  • Problem with material and document date in sales order

    Hi All,
    I am working in ECC 6.0 .I am facing problem with two fields when in enter in to sales order(tcode:va01)
    1.A material comes automatically in line item.
    2.Document date also comes as 27.03.2008 instead of todays date in each order i create.
    I think its not related to configuration.I think its related to some modifications through exits or enhancement points.could someone suggest me a where to check and solve that.
    Your's suggestion is appreciated.

    Hi Sharad,
    Check MV45AFZZ include in se38..It is a user exit for basic validation on sales...We may be able to find some code there (if screen data is predefined by code as mentioned)
    Hope it helps
    Regards
    Byju

  • Wrong serial and purchase date for applecare, what should I do

    I purchased my iMac on 31st OCT 2010, when it's reaching the end of its first year I wanted to buy an applecare, but unfortunately non of the apple dealers didn't had the apple care plans and they asked me to wait few weeks, on around Nov 11 apple care came to the stores and for the first time I checked my warranty period online, it stated Nov 21st as my warranty expiring period, so on 18th of Nov I bought the apple care and registered under the same serial which I checked online, today my iMAC's HDD died and I went to a apple authorized service center to repair it. Guys at the service center said that my iMac is not covered by apple care and after few arguments I realized that I've mistyped the serial (I've typed S instead of 5 duh.) However some other iMac is registerd using my apple care and when I check the dates it says his/her imac's warranty will be expiring on 21st Nov 2013. I checked the apple support site and saw that I can get a refund for my apple care purchase, is that the best option?, is there a way to buy the apple care plan for my mac? clearly there has been a mistake from my end, but there was no apple care plans available when I needed a one. Any thoughts? Thanks in advance.

    Call Apple and ask to speak to Agreements Administration, who may be able to help you with this.

  • Sales and Purchase analysis, sort by date default

    Hello,
    Is there a way to default the sales and purchase analysis reports to show the most recent orders first vs. the oldest orders first in the list?  I am refering to the reports that appear when you are in Item Master Data, and then click on the graphs in the Sales Data and Purchasing data tabs.
    Thank you

    Hi,
    You may double click the column header to change the sort.
    Thanks,
    Gordon

  • URGENT : can any one please give me BAPI related material

    Hi there,
    please help me i am a new learner to BAPI i dont know any thing about it can any one please send me the BAPI related material  and also related videos or screen cams if available.

    http://www.sapmaterial.com/?gclid=CN322K28t4sCFQ-WbgodSGbK2g....>ALL
    STEP BY STEP for BAPI
    http://sap-img.com/abap/bapi-step-by-step-guidance.htm
    BAPI Programming Guide
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
    BAPI User Guide
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
    http://techrepublic.com.com/5100-6329-1051160.html#
    http://www.sap-img.com/bapi.htm
    http://www.sap-img.com/abap/bapi-conventions.htm
    http://www.sappoint.com/abap/bapiintro.pdf
    http://ifr.sap.com/catalog/query.asp
    http://www.****************/Tutorials/BAPI/BAPIMainPage.htm
    step by step BAPI Creation with screen shots.
    http://www.sapgenie.com/abap/bapi/example.htm
    BAPI Programming guide: -
    http://help.sap.com/saphelp_nw04/helpdata/en/e0/9eb2370f9cbe68e10000009b38f8cf/frameset.htm
    BAPI user guide: -
    http://help.sap.com/saphelp_46c/helpdata/en/7e/5e115e4a1611d1894c0000e829fbbd/frameset.htm
    BAPI STEP BY STEP PROCEDURE: -
    http://www.sap-img.com/abap/bapi-step-by-step-guidance.htm
    Example:-
    http://www.erpgenie.com/abap/bapi/example.htm
    PDF download: -
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/200dd1cc-589e-2910-98a9-bb2c48b78dfa
    list of all bapis
    http://www.planetsap.com/LIST_ALL_BAPIs.htm
    for BAPI's
    http://www.sappoint.com/abap/bapiintro.pdf
    http://www.sappoint.com/abap/bapiprg.pdf
    http://www.sappoint.com/abap/bapiactx.pdf
    http://www.sappoint.com/abap/bapilst.pdf
    http://www.sappoint.com/abap/bapiexer.pdf
    http://service.sap.com/ale
    http://service.sap.com/bapi
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
    http://www.planetsap.com/Bapi_main_page.htm
    http://www.topxml.com/sap/sap_idoc_xml.asp
    http://www.sapdevelopment.co.uk/
    http://www.sapdevelopment.co.uk/java/jco/bapi_jco.pdf
    Also refer to the following links..
    http://www.sap-img.com/bapi.htm
    http://www.sap-img.com/abap/bapi-conventions.htm
    http://www.planetsap.com/Bapi_main_page.htm
    http://www.sapgenie.com/abap/bapi/index.htm
    Checkout !!
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
    http://techrepublic.com.com/5100-6329-1051160.html#
    http://www.****************/Tutorials/BAPI/CustomBAPICreation2/page1.htm
    There are 5 different steps in BAPI.
    Create BAPI Structure
    Create BAPI Function Module or API Method.
    Create BAPI object
    Release BAPI Function Module.
    Release BAPI object.
    Step1. Creating BAPI Structure:
    Go to <SE11>.
    Select Data Type & Enter a name.
    Click on Create.
    Note: Always BAPI should be in a development class with request number (Not Local Object).
    Select Structure & hit ENTER.
    Enter the fields from your database. Make sure that the first field is the Primary Key Field.
    Then SAVE & ACTIVATE.
    Step 2. Creating BAPI module:
    Enter TR.CODE <SE37>.
    Before entering any thing, from the present screen that you are in, select the menu
    Goto -> Function Groups -> Create Group.
    Enter a name (Note: This name Must start with ZBAPI)
    Let this screen be as it is and open another window and there, enter TR.CODE <SE80).
    Click on the Third ICON that says Inactive Objects.
    Select the group that you just created and click on Activate.
    Notice that the group you created will disappear from the list of inactive objects.
    Go back to <SE37> screen and enter a name and hit <ENTER>. Then enter the group name that you just created and activated.
    NOTE: When you release a function module the respective group will be attached to that particular application. It cannot be used for any other application. NEVER include an already existing group that is attached to another module.
    Now click on the first Tab that says ATTRIBUTES and select the radio button that says remote-enabled module since we will be accessing this from any external system.
    Then click on the second tab that says IMPORT.
    Enter a PARAMETER NAME, TYPE and the structure you created in the first step. Also select the check box ‘Pa’. All remotely enabled functional modules MUST be Pa enabled, where Pa means ‘Passed by Value’ and if you don’t select ‘Pa’, then that means it will be passed by reference..
    Then click on tab that says EXPORT.
    Enter the following as is in the first three fields
    RETURN TYPE BAPIRETURN (These 3 field values are always same)
    Here also select ‘Pa’ meaning Pass by value.
    Note: BAPIRETURN contains structure with message fields.
    Then SAVE and ACTIVATE.
    Step 3. Creating BAPI object:
    Enter Tr.Code <SWO1> (Note. It is letter ‘O’ and not Zero).
    Enter a name and then click on create. Enter details.
    NOTE: Make sure that that Object Type and Program name are SAME.
    Enter Application ‘M’, if you are using standard table Mara. If you are using your own database then select ‘Z’ at the bottom.
    Then hit <ENTER>.
    Now we have to add ‘Methods’. High light METHODS and then select the following from the menu:
    Goto Utilities -> API Methods -> Add Methods.
    Enter function Module name and hit <ENTER>.
    Select the second FORWARD ARROW button (>)to go to next step.
    Check if every thing looks ok and again click on FORWARD ARROW button (>).
    Then select ‘YES’ and click on <SAVE>.
    Now on a different screen goto TR.CODE <SE37>. Enter Function Module name and select from the top menu Function Module -> Release -> Release.
    Goback to TR.CODE <SWO1>.
    Here select the menu combination shown below in the same order.
    Edit -> Change Release Status -> Object Type Component -> To Implemented.
    Edit -> Change Release Status -> Object Type Component -> To Released.
    Edit -> Change Release Status -> Object Type -> To Implemented.
    Edit -> Change Release Status -> Object Type -> To Released.
    Then click on <SAVE>.
    Then click on Generate Button (4th button from left hand side looks like spinning wheel).
    Then Click on the button that says ‘PROGRAM’ to see the source code.
    To check if this is present in work flow goto TR.CODE <BAPI>.
    Here it shows business object repository.
    First click on the middle button and then select “ALL” and hit ENTER.
    Goto tab ALPHABETICAL and look for the object that you created. This shows that the BAPI object has been created successfully
    BAPI/RFC Interface
    A remote function call is a call to a function module running in a system different from the caller's.
    The remote function can also be called from within the same system (as a remote call), but usually caller and callee will be in different systems.
    In the SAP System, the ability to call remote functions is provided by the Remote Function Call interface system (RFC). RFC allows for remote calls between two SAP Systems (R/3 or R/2), or between an SAP System and a non-SAP System.
    RFC consists of the following interfaces:-
    A calling interface for ABAP programs
    Any ABAP program can call a remote function using the CALL FUNCTION...DESTINATION statement. The DESTINATION parameter tells the SAP System that the called function runs in a system other than the caller's.
    RFC communication with the remote system happens as part of the CALL FUNCTION statement.
    RFC functions running in an SAP System must be actual function modules, and must be registered in the SAP System as "remote".
    When both caller and called program are ABAP programs, the RFC interface provides both partners to the communication. The caller may be any ABAP program, while the called program must be a function module registered as remote.
    Calling interfaces for non-SAP programs
    When either the caller or the called partner is a non-ABAP program, it must be programmed to play the other partner in an RFC communication.
    To help implement RFC partner programs in non-SAP Systems, SAP provides-
    External Interfaces
    RFC-based and GUI-based interfaces can be used by external programs to call function modules in SAP R/2 or R/3 systems and execute them in these systems.
    Vice versa, ABAP programs in R/2 or R/3 can use the functions provided by external programs via these interfaces.
    Reward points..

  • Report for special prourement type and GR date

    Hi Gurus,
    Is there a report in SAP that gives us the special prourement type for a material and the date which they were goods receipted into our stock?
    thanks
    Anusha

    No std report available for this kind of seleciton
    either youhave to write the query or custom program
    make joint with MSEG adn MARC for query

  • Question about purchasing data of business partner in SRM 7.0

    When we create vendor in ECC with transaction XK01, we can create pruchasing view and company code view of vendor.
    But in SRM 7.0, I have not find any place abount company code and purchasing data about business partner?
    Any one could provide some suggestions?
    Tanks in advance!

    Hi Justin,
    As in previously releases, SRM 5.0 f.e., not all business partner data available in ECC is replicated in to the SRM procurement system (this can be enhanced via developments). The business partner structure in SAP SRM is different from the ECC business partner structure. SAP SRM business partner data only uses 1 view which holds all the data a vendor can have (BP function: vendor). There aren't any views/tabs in SRM.
    Company code and purchasing data is determined via organisational schema (ppoma_bbp) and a company and purchasing organization have their own business partner master record in SAP SRM as well.
    Note: Certain vendor business partner settings/parameters are better to maintain via the web transaction 'maintain business partner'.
    Hope this helps.
    Kind regards,
    Tim
    Edited by: T. Schuffelen on Mar 21, 2011 11:45 AM

  • Material and Price export to an External System

    I've a Problem, I will send Materials with sales Price from SAP to an external System. I will use the IDOC MATMAS01, but I can't send the price with it? Is that correct? How I can send the sales Price for each Material? Is it possible to send more than one Material (mass export) with MATMAS01 per process? Or I had to define a Product or Price Catalog?
    Or is there a better way by using a BAPI for this use case? Which BAPI?
    Thanks

    Thanks for the answers, now I've two ways to implement that, first with IDOC MATMAS01 and Idoc COND_A with an enhancement VKOE0001 PRICING CONDITION. And the second one with the BAPI.
    Which is the better way?
    And how I create a BAPI for Material and Sales Price?
    Thanks

  • Refurbished iPod Touch didn't come with warranty, has wrong purchase date

    So I bought a refurbished iPod Touch 5G a couple of weeks ago (in September). For some reason the serial number for the iPod shows up as being out of warranty and also states that it was purchased in May. Has anyone else ever had issues with the warranty and purchase date info being mixed up for their refurb? It became an issue for me because the iPod's screen was flickering. I took it to the Apple store, where they could see that the records were incorrect, but could do nothing about it. They replaced the iPod and zeroed out the replacement fee so it didn't cost me anything, but my iPod still officially lacks a warranty and has the wrong purchase date associated with it. I wish I knew who to talk to to get this cleared up.
    I should add that I bought my iPod from the online Apple store, so this is all within their system.
    Message was edited by: ekalter

    Kappy,
    Thanks for you reponse. The serial number for my iPod brought up the following information at the Apple store:
    Warranty Status: Out of Warranty(OW)
    Model: IPOD TOUCH (5TH GENERATION)
    Date of Purchase: 06-May-13
    ...but I ordered the iPod online on September 21st. They had to bypass their system in order to give me my free replacement. I'm concerned that if I have a problem again in the future I will not get my 1 year of warranty coverage. It seems to me like someone failed to change some information associated with this iPod when they processed my order for the refurbished model.

  • Regarding : Material document data and PO data do not match (Plant)

    Hi Gurus,
    Please go through this BAPI program.
    While uploading it is giving an error ' Material document data and PO data do not match (Plant) '.
    Please help regarding this issue.For all Other moment types it is working fine except this 351 moment type.
    dATA: i_excel TYPE truxs_t_text_data. "work table for excel upload
    DATA: BEGIN OF it_itab OCCURS 100,
          docdate(10),
          postdate(10),
          mvt_type(3), "Movement Type
          plant(4), "Plant
          lgort(4),
          pur_doc(10), "Purchase Document No
          po_item(3), "Purchase Document Item No
          material(18), "Material Number
         delnote(16),
          erfmg(13),
          uom(3),
         lfmng(13), "Quantity
          batch(10) TYPE c,
          vfdat TYPE vfdat,
          END OF it_itab.
    DATA: it_goodsmvt_head TYPE TABLE OF bapi2017_gm_head_01      INITIAL SIZE 100,
          it_goodsmvt_code TYPE TABLE OF bapi2017_gm_code         INITIAL SIZE 100,
          it_goodsmvt_item TYPE TABLE OF bapi2017_gm_item_create  INITIAL SIZE 100.
    DATA: wa_goodsmvt_head LIKE LINE OF it_goodsmvt_head,
          wa_goodsmvt_code LIKE LINE OF it_goodsmvt_code,
          wa_goodsmvt_item LIKE LINE OF it_goodsmvt_item.
    DATA: w_mat_doc  TYPE bapi2017_gm_head_ret-mat_doc,
          w_year     TYPE bapi2017_gm_head_ret-doc_year.
    DATA: BEGIN OF it_errmsg_goodsmvt OCCURS 10.
            INCLUDE STRUCTURE bapiret2.
    DATA: END OF it_errmsg_goodsmvt.
    DATA : obj_type LIKE bapiache09-obj_type,
           obj_key  LIKE bapiache09-obj_key,
           obj_sys  LIKE bapiache09-obj_sys.
    DATA: v_date1 TYPE sy-datum.
    DATA: v_date2 TYPE sy-datum.
    DATA: w_lines TYPE i.
    DATA: errflag.
    SELECTION-SCREEN BEGIN OF BLOCK bk1 WITH FRAME TITLE text-100.
    PARAMETERS: p_file TYPE  rlgrap-filename.
    SELECTION-SCREEN END OF BLOCK bk1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          field_name = 'P_FILE'
        IMPORTING
          file_name  = p_file.
    Start-of-selection processing
    START-OF-SELECTION.
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
          i_line_header        = 'X'
          i_tab_raw_data       = i_excel
          i_filename           = p_file
        TABLES
          i_tab_converted_data = it_itab[]
        EXCEPTIONS
          conversion_failed    = 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.
      LOOP AT it_itab.
        REFRESH it_goodsmvt_head.
        REFRESH it_goodsmvt_item.
        CONCATENATE it_itab-docdate6(4) it_itab-docdate3(2) it_itab-docdate+0(2) INTO v_date1.
        CONCATENATE it_itab-postdate6(4) it_itab-postdate3(2) it_itab-postdate+0(2) INTO v_date2.
        wa_goodsmvt_head-pstng_date = v_date2.
        wa_goodsmvt_head-doc_date   = v_date1.
       wa_goodsmvt_head-ref_doc_no = it_itab-delnote.
    wa_goodsmvt_head-pr_uname   = sy-uname.
        APPEND wa_goodsmvt_head TO it_goodsmvt_head.
    Maintain it_goodsmvt_code
        wa_goodsmvt_code-gm_code    = '04'.
    Maintain it_goodsmvt_item
    *LOOP AT it_itab.
    IF wa_goodsmvt_item-po_number IS INITIAL.
        wa_goodsmvt_item-po_number    = it_itab-pur_doc.
        wa_goodsmvt_item-move_type    = it_itab-mvt_type.
        wa_goodsmvt_item-MOVE_PLANT      = it_itab-plant.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = it_itab-material
          IMPORTING
            output = it_itab-material.
        wa_goodsmvt_item-material     = it_itab-material.
        wa_goodsmvt_item-stge_loc     = it_itab-lgort.
        wa_goodsmvt_item-po_item      = it_itab-po_item.
        wa_goodsmvt_item-entry_qnt    = it_itab-erfmg.
        wa_goodsmvt_item-ENTRY_UOM_ISO    = it_itab-uom.
       wa_goodsmvt_item-po_pr_qnt    = it_itab-lfmng.
        wa_goodsmvt_item-batch        = it_itab-batch.
        wa_goodsmvt_item-expirydate   = it_itab-vfdat.
       wa_goodsmvt_item-NO_MORE_GR   = 'X'.
        wa_goodsmvt_item-mvt_ind      = 'B'.
        APPEND wa_goodsmvt_item TO it_goodsmvt_item.
        CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
          EXPORTING
            goodsmvt_header  = wa_goodsmvt_head
            goodsmvt_code    = wa_goodsmvt_code
          IMPORTING
            materialdocument = w_mat_doc
          TABLES
            goodsmvt_item    = it_goodsmvt_item
            return           = it_errmsg_goodsmvt.
    Process of commit work
        IF it_goodsmvt_head[] IS NOT INITIAL.
          DESCRIBE TABLE it_goodsmvt_head LINES w_lines.
        ENDIF.
        IF it_goodsmvt_item[] IS NOT INITIAL.
          DESCRIBE TABLE it_goodsmvt_item LINES w_lines.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
            EXPORTING
              wait = 'X'.
        IMPORTING
        RETURN        =
          CLEAR errflag.
          READ TABLE it_errmsg_goodsmvt INDEX 1.
          IF it_errmsg_goodsmvt-type EQ 'E'.
            WRITE:/'Error in function', it_errmsg_goodsmvt-message.
            errflag = 'X'.
          ELSE.
            WRITE:/ it_errmsg_goodsmvt-message.
          ENDIF.
          IF errflag IS INITIAL.
            COMMIT WORK AND WAIT.
            IF sy-subrc NE 0.
              WRITE:/ 'Error in updating'.
              EXIT.
            ELSE.
              WRITE:/ 'Material Document created successfully and the Document Number for the Material',
                      wa_goodsmvt_item-material,'is:', w_mat_doc, w_year.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDLOOP.

    Hey,
    Just wanted to post that in my case this was the error of MVT_IND field in item table. When I made it from 'B' to blank then it worked.
    Mine is solved....
    Thanks

Maybe you are looking for

  • Error in using aggregate function in Outer Query in Siebel Analytics

    Hi, When I am using aggregate function in outer query in Siebel Analytics I am facing error. Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P:OI2DL65P State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSE

  • Reg.Negative delivery cost problem in PO release

    Dear Friends '' PO cannot be released due to negative delivery costs" this is my client requirement, I am unable to understand this. Please explain and give the solution. Thanks Rajakumar.K

  • Help with password for voicemail

    new phone trying to set up voicemail and don't remember old password

  • Cannot display certain french glyphs running in Chinese NT 4.0

    I have got a java application which supports english, french, german, spanish, italian languages. I have translations properties files which is loaded for the language the application is installed in(ResourceBundle, et al). I have a new requirement t

  • Mini/Preview WEB AS versions

    I have Mini SAP 6.2 installed in my notebook and it works fine. Now I would like to replace it by the 6.4 version of WEB AS with both Java and Abap stacks. I know there is a version of the web AS preview 6.4 for linux. What is the difference (if any)