How to use BAPI to receive goods instead of MB01(move type 101)

I'd like to use BAPI_GOODSMVT_CREATE to receive goods,
(from OEM factory ),
but it can't deduct Bill Of Material AUTO,like packing materials when receive goods,
or is there any BAPI to deduct packing materials?
how?
thanks,experts!
Edited by: MF Z on Dec 1, 2008 6:18 AM

I want a BAPI which can deduct BOM(like carton,envelope  ) automatically ,
Is there any way to use BAPI to receive goods?
thanks for all reply!

Similar Messages

  • Goods receipt for return PO - MB01-Movement type 101-161

    Hi guys!
    I have one problem with output determination for goods movement (movement type 101 with internal movement type 161).
    I used SAP Note 426554 and for as I know the output determination customizing is ok:
    output type WE03, collective slip, access sequence 0003 , condition table: 72 Transaction/Printed Version/Print ID, Transaction/event type: WE, movement type: 101 - 161, Print indicator: 1Material document printout – 2 Return delivery, Transmission time-spot of the condition record (1 to 4):1-3, print indicator (RM07M-XNAPR) is set manually and maintained as NDR parameter in user master record, Output type print parameter is Plant/storage location (7), printer determination is customized.
    At header level, the document created with MB01 with reference to a return PO, doesn't have the XNAPR parameter (don't know why - it is set when using MB01). It may be this one the reason for not having any output message to print. For movement type 101 (in reference to a PO) all works fine. Just for 101-161 movement type the system doesn't create any output type.
    Do you have some suggestions? What should I do..what else soul I check?
    Thanks.
    Message was edited by:
            Florina Cheta

    Have a look at any of the following notes:-
    1)  Note 171989 - Sales-order-related productn: Custmr exit COPCP002
    2)  Note 520000 - FAQ: Valuated special stocks
    3)  Note 557582 - User exit and valuated sales order stock
    4)  Note 580228 - Incorrect prices for materials procured externally
    5)  Note 983193 - Docu:Externally procurd material in valtd sales order stock
    thanks
    G. Lakshmipathi

  • How to use BAPI function module for maintaing product type to material

    Hi,
    Can you pls suggest me how to use BAPI Fuction module CCAP_REV_LEVEL_MAINTAIN
    for maintaining the product type for the material using change number.
    Pts will be rewarded.
    Best Regards,
    Padhy

    Hi,
    Can you pls suggest me how to use BAPI Fuction module CCAP_REV_LEVEL_MAINTAIN
    for maintaining the product type for the material using change number.
    Pts will be rewarded.
    Best Regards,
    Padhy

  • How to use bapi response in XI

    HI ALL,
             Can any one suggest me, how to use bapi response in XI as a sender.
    I m using bapi BAPI_BCA_BANKSTATEMENT_EXECUTE , I am executing  this bapi manually ,but want to use this BAPI RESPONSE in XI as a sender and map it with receiver.
    can i have any idea about how to do it, or can i have the idoc which is used by this bapi BAPI_BCA_BANKSTATEMENT_EXECUTE.
    THANX
    HONEY

    Hi Honey,
    Have a look at these
    -Configuring the Sender RFC Adapter - step by step
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    -Troubleshooting - RFC and SOAP scenarios
    /people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009
    -sender RFC (forum thread)
    Is it possible to use the RFC sender adapter for asynchronous calls?
    Regards,
    Sreenivas

  • How to use BAPI with Decision Dialogue

    Hi Gurus
    would you please let me know how to use BAPI with decision dialogue in guided procedure .
    I have a BAPI checking logon credentials for the user . how to use this BAPI for making decisions that is if the logon is correct then perform one process else go to logon screen again .
    Thanks in advance
    Regards Namita

    Hi Namita,
    1. Follow the steps mentioned in section <a href="http://help.sap.com/saphelp_crm50/helpdata/en/33/198141f906040de10000000a1550b0/frameset.htm">Exposing an RFC-Enabled Function Module as a Callable Object</a> to use the BAPI as a Callable Object.
    2. Follow the steps mentioned in tutorial # 93 and 93a in the CAF Tutorial Center for the decision part.
    Hope these helps.
    Nilay

  • How to use Bapi

    Hi
    How to use bapis
    BAPI_COMPANYCODE_GET_PERIOD
    BAPI_CCODE_GET_FIRSTDAY_PERIOD'
    BAPI_GL_ACC_GETPERIODBALANCES'

    BAPI_COMPANYCODE_GET_PERIOD:
    To retrieve the fiscal year variant for a given date u can use the following function module
    Retrieve fiscal year and period
    The below code shows how to use function modules BAPI_COMPANYCODE_GET_PERIOD and
    DETERMINE_PERIOD to retrieve fiscal year and fiscal period for a specific date.
    *: Report: ZFISCALYR :
    *: Author: www.SAPdev.co.uk :
    *: Date : 2004 :
    *: Description: Demonstrates how to return the corresponding fiscal :
    *: year and posting period for a company code and posting :
    *: date or posting date and fiscal year variant. :
    REPORT zfiscalyr NO STANDARD PAGE HEADING.
    TABLES: ekko.
    PARAMETERS: p_bukrs TYPE ekko-bukrs,
    p_bedat TYPE ekko-bedat.
    DATA: gd_fiscalyr TYPE bapi0002_4-fiscal_year,
    gd_fiscalp TYPE bapi0002_4-fiscal_period.
    DATA: gd_fiscalyr2 TYPE T009B-BDATJ,
    gd_fiscalp2 TYPE bapi0002_4-fiscal_period.
    DATA: gd_periv TYPE t009-periv.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    get fiscal year and period - (requires date and company code)
    CALL FUNCTION 'BAPI_COMPANYCODE_GET_PERIOD'
    EXPORTING
    companycodeid = p_bukrs
    posting_date = p_bedat
    IMPORTING
    fiscal_year = gd_fiscalyr
    fiscal_period = gd_fiscalp.
    Alternative fiscal year function module
    - (requires date and fiscal year variant code from T009 table)
    gets first entry in fiscal year variant table (will need to choose
    correct one from table rather than just using first entry)
    SELECT SINGLE periv
    FROM t009
    INTO gd_periv.
    get fiscal year and period
    CALL FUNCTION 'DETERMINE_PERIOD'
    EXPORTING
    date = p_bedat
    PERIOD_IN = '000'
    version = gd_periv
    IMPORTING
    period = gd_fiscalp2
    year = gd_fiscalyr2
    EXCEPTIONS
    period_in_not_valid = 1
    period_not_assigned = 2
    version_undefined = 3
    OTHERS = 4.************************************************************************
    *END-OF-SELECTION.
    END-OF-SELECTION.
    WRITE:/ 'From function module: BAPI_COMPANYCODE_GET_PERIOD',
    / 'Fiscal year is:', gd_fiscalyr,
    / 'Fiscal period is:', gd_fiscalp.
    SKIP.
    WRITE:/ 'From function module: DETERMINE_PERIOD',
    / 'Fiscal year is:', gd_fiscalyr2,
    / 'Fiscal period is:', gd_fiscalp2.
    how to get the fiscal year
    BAPI_CCODE_GET_FIRSTDAY_PERIOD:
    CALL FUNCTION 'BAPI_CCODE_GET_FIRSTDAY_PERIOD'
    EXPORTING
    companycodeid = v_bukrs
    fiscal_period = marv-lfmon
    fiscal_year = marv-lfgja
    IMPORTING
    first_day_of_period = v_postdate
    return = i_return1.
    BAPI
    function module which could calculate the previous month's start date.....
    BAPI_GL_ACC_GETPERIODBALANCES:
    Transactions or BAPI for GL account
    Please give me reward point...

  • How to use BAPI to add a new version for a claim number in WTY transaction.

    How to use BAPI to add a new version for a claim number in WTY transaction.
    I am using  function module " BAPI_WARRANTYCLAIM_ADD_VERSION ".
    It needs to copy all contents of previous version to a new version.
    While doing so i am unable to copy fields like valic valoc etc. Any ways by which  i can copy this values.
    WTY will update PNWTYH , PNWTYV and PVWTY tables.
    Thanking you,
    Lokesh.

    Hi Vishnu,
    You can do that through EEWB. Please go through SAP Note 484597. You would get the details of using Easy Enhancement Work bench.
    Rewards point if you think this info is useful
    Regards,
    Dipender Singh

  • Will you tell me how to use BAPI "L_TO_CREATE_POSTING_CHANGE",please?

    Will you tell me how to use BAPI "L_TO_CREATE_POSTING_CHANGE" ,please?
    Is lt06 bapi "L_TO_CREATE_POSTING_CHANGE"&#65311;

    just do a where used list of the FM and see how its used in those programs.
    one of the programs where it is used = RLLQ0200
    Regards
    Raja

  • Hello !  pls give some ti[ps how to use bapi's for data uploading?

    hello !
      pls give some ti[ps how to use bapi's for data uploading?
    regards,
    Arjun

    Hi,
    See the below report extract:
    where it_data is having uploaded data.
    LOOP AT<b> it_data</b> INTO wa_data.
        line_count = sy-tabix.
        "Date Validation
        CONCATENATE wa_data-uplft_date4(4) wa_data-uplft_date2(2) wa_data-uplft_date+0(2)
        INTO wa_data-uplft_date.
        "READ TABLE it_ekko INTO wa_ekko WITH KEY lifnr = wa_data-vendor.
        LOOP AT it_ekko_temp INTO wa_ekko_temp WHERE lifnr = wa_data-vendor.
          IF wa_ekko_temp-kdatb <= wa_data-uplft_date AND wa_ekko_temp-kdate >= wa_data-uplft_date.
            MOVE-CORRESPONDING wa_ekko_temp TO wa_ekko.
            APPEND wa_ekko TO it_ekko.
          ENDIF.
        ENDLOOP.
        "IF sy-subrc = 0 AND wa_ekko-kdatb <= wa_data-uplft_date AND wa_ekko-kdate >= wa_data-uplft_date.
        LOOP AT it_ekko INTO wa_ekko.
          wa_data_header-pstng_date = wa_data-uplft_date.
          wa_data_header-doc_date = sy-datum.
          wa_data_header-bill_of_lading = wa_data-bill_of_lad.
          wa_data_header-ref_doc_no = wa_data-del_no.
          CONCATENATE wa_data-header_text1 '-'
                      wa_data-header_text2 '-'
                      wa_data-header_text3 '-'
                      wa_data-header_text4
                      into wa_data_header-HEADER_TXT.
          IF wa_data-indicator = 'Y'.
            wa_data_item-material = '000000000000200568'.
          ELSE.
            wa_data_item-material = '000000000000200566'.
          ENDIF.
          LOOP AT it_ekpo INTO wa_ekpo WHERE ebeln = wa_ekko-ebeln AND matnr = wa_data_item-material.
            "Collect Item Level Data
            wa_data_item-plant = '1000'.
            wa_data_item-stge_loc = '1001'.
            wa_data_item-move_type = '101'.
            wa_data_item-vendor = wa_data-vendor.
            wa_data-qnty = wa_data-qnty / 1000.
            wa_data_item-entry_qnt = wa_data-qnty.
            wa_data_item-po_pr_qnt = wa_data-qnty.
            wa_data_item-entry_uom = 'KL'.
            wa_data_item-entry_uom_iso = 'KL'.
            wa_data_item-orderpr_un = 'KL'.
            wa_data_item-orderpr_un_iso = 'KL'.
            wa_data_item-no_more_gr = 'X'.
            wa_data_item-po_number = wa_ekpo-ebeln.
            wa_data_item-po_item = wa_ekpo-ebelp.
            wa_data_item-unload_pt = wa_data-unload_pt.
            wa_data_item-mvt_ind = 'B'.
            APPEND wa_data_item TO it_data_item.
            CLEAR wa_data_item.
          ENDLOOP.
          CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
            EXPORTING
              goodsmvt_header = wa_data_header
              goodsmvt_code   = goodsmvt_code
              testrun         = 'X'
            TABLES
              goodsmvt_item   = it_data_item
              return          = return.
          READ TABLE return INTO wa_return WITH KEY type = 'S'.
          IF sy-subrc <> 0.
            DESCRIBE TABLE return LINES sy-tfill.
            IF sy-tfill = 0.
              CALL FUNCTION <b>'BAPI_GOODSMVT_CREATE'</b>   
            EXPORTING
                  goodsmvt_header = wa_data_header
                  goodsmvt_code   = goodsmvt_code
                  testrun         = ' '
                TABLES
                  goodsmvt_item   = it_data_item
                  return          = return.
              CALL FUNCTION <b>'BAPI_TRANSACTION_COMMIT'</b>
               EXPORTING
                 WAIT          = 'X'
              IMPORTING
                RETURN        =
            ENDIF.
          ENDIF.
          LOOP AT return INTO wa_return.
            WRITE: 'Messsage TYPE  ', wa_return-type,
                  /,'ID  ', wa_return-id,
                  /, 'Number  ', wa_return-number,
                  /, 'Message  ', wa_return-message,
                  /, 'Long Text  ', wa_return-message_v1,
                                    wa_return-message_v2,
                                    wa_return-message_v3,
                                    wa_return-message_v4,
                 /, 'Failed at line', line_count.
          ENDLOOP.
          CLEAR: wa_ekko, wa_ekpo, wa_data, it_data_item[], wa_data_header.
        ENDLOOP.
    Reward if useful!

  • How to use JavaMail to receive incomming email?

    Hello,
    I am a year 3 student and doing a final year project about web hosting.
    I want to know how to use JavaMail to receive and treat the incomming email. It means that the incoming email how to process and store the "message" in the recipient "folder" in the "store" class.
    If you have any optinions or examples or suggestion, please contact me.
    Thank you for your attention....

    First, it would be better to post questions about JavaMail in the JavaMail forum and not in the JSP forum.
    Second, the JavaMail download comes with a set of examples, including some that cover exactly what you ask.

  • How to set receiving batch mandatory in MIGO-mov type 303

    Hi gurus,
    We want to set receiving batch mandatory in MIGO-mov type 303.
    We already made this field (UMCHA) as Required in OMJJ under Field selection-Enjoy and Field selection (from 201)/Batch search procedure, but when do transaction, the field still not even appear. Can you help to know how to do that?
    Many thanks in advance

    Hello HongNguyen ,
    Please try the following customzing path in your system if you haven't already:
    - Transaction SPRO
       - IMG
         - Materials Management
          -  Inventory Management and Physical Inventory
            - Settings for Enjoy Transactios
               - Settings for Goods Movements (MIGO)
                  -   Field Selection per Mvt Type
    Please check your settings for Movement Type 303 and see if they are set to "Mandatory".
    I hope this information has been helpful.
    Best Regards,
    Frank

  • Automatic PO form goods receipt without reference Movement type 501

    Hi,
    My client receive sample material from the vendor that is without reference to PO, but upon approval of sample the vendor has to make the payment for which i do not have the reference document number.
    To arive at the solution i wanted to generate automatic PO for movement type 501, for which i have checked the movement type settings, 501- automatic PO, i ahve maintained the info record, and during GR for movement type 501 i enter the vendor even than system is not generating any PO in backend, I have centraalised purchase organization assigned to the plant.
    can anyone suggest me if i am missing any settings,
    Suggestions willbe worth appreciating..\
    Thanks
    Sarf

    Hi,
    You need to configure the following steps for creating automatic PO in MIGO transaction.
    1.Activate the auto PO in Material and Vendor Master.
    2. Maintain the Info record.
    3.Assign the Standard Purchase organisation for the plant you want to create auto Po.
       Path: ENTERPRISE STRUCTURE-ASSIGNMENT-MATERIALS MANAGEMENT-ASSIGN STANDARD PURCHASE ORG FOR PLANT.
    4. Activate create PO automatically for movement type (101,501).
    Path: MM-INVENTORY MANAGEMENT AND PHYSICAL INVENTORY-GOODS RECEIPT-CREATE PURCHASE ORDER AUTOMATICALLY - here you can activate for the mvt type you want.
    5.In MIGO screen, goto menu Settings and click default values , you will get a screen where you can check the mvt type 101,501... are maintained in mvt type column. if not you just enter the mvt type which you want. and click adopt tab.
    6. Now you do GR using 501 mvt type and give the material and vendor ..
    It will work.
    Regards,
    abi

  • MIGO Goods Receipt - error with Movement Types on GR from Inbound Delivery

    Hi,
    I am getting an error message when processing a Goods Receipt (MIGO) against an Inbound Delivery with as 2 lines with different movement types, a standard 101 and a 970 (the latter being a user defined movement type for free goods).
    The error message I get is 'Movement type 970 is not allowed; only 101 is allowed
    Message no. BORGR622'
    This error message only occurs with a Goods Receipt against an Inbound Delivery, we are able to process a similar Goods Receipt using MIGO against a Purchase Order, with two different movement types 101 and 970, without any issues. 
    It is only a problem with a GR against an Inbound Delivery which is necessary in our MM solution.
    As anybody and ideas how to resolve this?  I cannot see anything obvious in config, and have not spotted any SAP OSS notes either.
    I should mention that we can process a single line Inbound Delivery and Goods Receipt for the Movement Type 970 also!

    Thanks for the reply.  The Price Control Indicator is 'S'.
    The solution was set up at my company before I joined, but the different movement type is to enable the free goods stock to make a Finance posting to a Bonus Stock GL Account.  Bonus stock sale update the same account.
    As I mention the '970' movement type worked fine with Goods Receipt against a Purchase Order (it was coded into to the user exit). 
    The MM procedures were changed to use the Inbound Delivery matched to the PO, this had a result that when the Goods receipt was posted in MIGO it posted as 101 movement, as the PO number was not being recognised.
    By making a further change to the user exit we able to suggest the '970' movement type, but now get the BORGR622 error I refer to.
    '511' is not possible against an inbound delivery either.

  • Stk posting change for Material received in movement type 101

    Experts,
    A material received in Mov type:101 / Inspection type : 01 and rejected during Inspection was posted in To Reserves instead of Return Delivery.
    How to change the posting to Return delivery stock from Reserves stock.
    Regards,
    RPV.

    Dear,
    First check reservation is created against reserv stock of material.
    You can check reservation with MB23.
    If yes than delete it first and than create return delivery for material with MIGO.
    Regards,
    Mahesh Wagh.

  • Fixing automatic printing of material document for goods movement type 101

    Hi experts,
    I have a situation, where I want to fix automatically printing of material documents good receipt and transfer posting related to movement type :
    101- GR for plant XYZW to the printer AB12 with output type WE03 " GR note version 3" Language EN.
    311 - transfer posting plant XYZW to the printer AB12 with output type ZUGT language EN.
    Please provide pointers!!

    Hi Biju,
    Thanks a lot for the information. But I a facing a problem, I have maintained the Plant/Storage/Condition type in OMJ3 with printer also maintained in it.
    But, I am not able to generate output when I am doing MIGO for the Purchase order.
    I have to go MB02, maintain output type 'WE03' and printer-PL56 in the message tab of material document and then only i can see the spool is generated in SP01.
    My output condition type is maintained in MN21, with following parameters; Trans/Event type: WE,  Print Version: 3, Print Item: 6 for output type WE03.
    Moreover, Do I need to maintain the new printer in the printer settings.
    Please help me in getting the material document print output at MIGO only.

Maybe you are looking for

  • HELP...iPod nano (first generation) skipping songs, then....frozen

    I need some advice. I have a 1st generation nano, (I also use it with the Nike + if that matters), it was skipping songs, and just playing whatever it wanted, so I just restored it, and now it is froze on the screen "language". I have also tried to r

  • Use a SQL 2012 database server with Reporting Services 2008?

    Hello, we have a SQL Server 2008 R2 Reporting Services Standard server with the reporting databases running on a SQL Server 2008 Standard database server. I would like to upgrade the database server to SQL Server 2012 before I upgrade the reporting s

  • Post Install steps for htmldb 1.6.1

    I am done with a new installation on RHL - 10g DB install on ORACLE_HOME1 - Standalone 9.0.4 Http Server for the CCD on ORACLE_HOME2 - Install of HTMLDB 1.6.0 and later patch of 1.6.1 error free I am following the post installation steps for configur

  • Cant log into icloud from my macbook

    I keep getting this =( im running version 10.7.3. I already tried resetting my pw & nothing. Any suggestions?..

  • WIP not cleared after TECO and KKAX run

    Hello all, I am facing a problem in clearing the WIP. The process order is of 11600 kgs,Delivered is 11681kgs.User confirmed qty for 11600 kgs and later issued the 81 kg through MB31. I made the order TECO and run transaction KKAX.Still it shows WIP