What is the field for good receipts?

hi friends
i got the requirement to create the goods receipts
what is the field for good receipts
plz tell me how to create it
thanks in advance
Edited by: Alvaro Tejada Galindo on Feb 25, 2008 5:33 PM

adapt this to your own requirements.  
Structures for BAPI
data: gm_header type bapi2017_gm_head_01.
data: gm_code type bapi2017_gm_code.
data: gm_headret type bapi2017_gm_head_ret.
data: gm_item type table of
bapi2017_gm_item_create with header line.
data: gm_return type bapiret2 occurs 0.
data: gm_retmtd type bapi2017_gm_head_ret-mat_doc.
clear: gm_return, gm_retmtd. refresh gm_return.
Setup BAPI header data.
gm_header-pstng_date = sy-datum.
gm_header-doc_date = sy-datum.
gm_code-gm_code = '01'. " MB01
Write 551 movement to table
clear gm_item.
move '101' to gm_item-move_type .
move '000000000040001234' to gm_item-material.
move '1' to gm_item-entry_qnt.
move 'EA' to gm_item-entry_uom.
move '0004' to gm_item-plant.
move '4000' to gm_item-stge_loc.
move '201' to gm_item-move_reas.
Determine cost center per plant
case xresb-werks.
when '0004'.
move '0000041430' to gm_item-costcenter.
when '0006'.
move '0000041630' to gm_item-costcenter.
when '0007'.
move '0000041731' to gm_item-costcenter.
when '0008'.
move '0000041830' to gm_item-costcenter.
endcase.
append gm_item.
Call goods movement BAPI
call function 'BAPI_GOODSMVT_CREATE'
exporting
goodsmvt_header = gm_header
goodsmvt_code = gm_code
importing
goodsmvt_headret = gm_headret
materialdocument = gm_retmtd
tables
goodsmvt_item = gm_item
return = gm_return.
call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = 'X'.

Similar Messages

  • Error "Post the HUs for goods receipt so that they can be transfer "

    Hi Gurus,
    I am facing a problem while doing PGR the inbound delivery,
    I am moving stock from one SLOC (AY02- HU Managed) to Another SLOC
    (AA99-
    Non HU). Inbound delivery is created .
    I did automatic packing and packed the HU generated and saved the
    inbound delivery. While doing PGR I am getting error "Post the HUs for
    goods receipt so that they can be transfer posted Message no.
    HUFUNCTIONS254". Kindly Assist
    Steps for Reconstruction    
    1) MB1B post with 311 movement type.
    2) delivery gets created.
    3) pack the HU's automatically and HU's were generated, save the inbound.
    4) Do PGR .
    Regards
    Gopi

    Hello,
    There is a "concept problem". You are not doing a reception, you are posting an issue. After running MB1B system should create an Outbound delivery.
    In a HU-managed storage location you should use existing HU in order to pack the delivery. Instead of generate new HUs in the OD, try to pack existing ones.
    Regards

  • What is the field for sales order type?

    pls tell me what is the field for sales order type??
    and from which table........urgent

    Hi,
    Field for sales order type is AUART in table TVAK
    the Parent table for Sales order type is TVAK.
    Best regards,
    raam

  • Mandatory fields for Goods Receipt

    HI Experts
    i would like to know , wat are all the mandatory fields to update for Goods receipt in SAP.

    Material
    QTy
    Plant
    Storage Location

  • The tcode for goods receipt for PO

    Hi Experts,
    Could you tell me is the tcode 'MIGO' is for the 'Goods Receipt'?
    Thnx,

    Hi all,
    I have checked in MB03, MIGO, MIGO_GR....but it's not showing up anywhere in these transactions.
    Is it storing in any other place in SAP, please advise me.
    Thnx much,

  • What is the field for checking authorization block in payment card

    Hi experts,
    I am using BAPI_SALESDOCU_CREATEFROMDATA to create debit memo requests.My requirement is to check the checkbox 'authorization block in VA02 ->header->payment cards.But i could not find that field in BAPI as well as in this table.I am picking credit card data from FPLTC table,
    There is one field called checkbox in BAPI.Is it the same field im in search,the what is the corresponding field in FPLTC table.
    Please advice,
    Thanks and regards,
    Meena

    Meena,
    As I recall the Authorization Block field (FPLA-AUST5) is set based on a response code field in field CC_REACT_T.  If you set this value to 'C' (which stands for "Unsuccessful: set authorization lock") then SAP will set FPLA-AUST5 to 'X' in FORM ZAHLUNGSKARTEN_AUTHORISIEREN in program MV45AF0Z_ZAHLUNGSKARTEN_AUTHOR in the following section of code:
    Stop-Flag setzten
          IF DA_XFPLT_AUTH_NEW-REACT = REACT_STOP.
            XFPLA-AUST5 = 'X'.
          ENDIF.
        ENDLOOP.
    Eric Bushman
    [Paymetric|http://www.paymetric.com]

  • Report to check the stock transfer goods receipts

    Hi,
    We do stock stansfer from plant to plant using UB PO type and using 351 and then do the MIGO for Goods receipt.
    User would like to check the list of Goods receipt done from a specific plant XYZ, HOW to check this? as there is no option available in MB51 for the supplying plant.

    There's no standard report which fully covers your requirement. If MB51 is no acceptable for you, you have to create your own report. E.g.
    - SQ01/SQ02 --> using data tables MKPF & MSEG
    - you can also copy MB51 (MB51 --.> ZMB51; program: RM07DOCS) and modify it according to your requirement (add desired field(s) to selection screen and layout.
    /issuing plant is stored in MSEG-UMWRK/

  • Create Automatic Reservation for Goods receipt of FG

    When an order is created, the components from the store are reserved automatically. It implies automatic reservation for good issue.
    What about AUTOMATIC reservation for goods receipt of finished product? Is it possible to make automatic reservation in PP for goods receipt of finished product, when finished product is ready?
    I know that manual reservation for goods receipt of finished product can be done by using MB21 (521).
    Thanks in advance.

    Your requirement is a little bit confusing...
    If you have production order, why do you need GR-reservation for the to-be produced material? The production order itself is a GR-MRP element nad you can post the GR agains it.
    If you don't have production order, I understand you need something to plan the GR.
    But it seems you want to have both the PrdOrd and the GR-reservation --> you will have the same thing twice in your system.

  • Capture  & Post Invoice at the time of Goods Receipt in one Step

    Hi,
    We are doing the following for Goods Receipt (as decided by other consultant)
    1. Goods Receipt (Only Part I) - currently being done by Stores
    2. Capture Invoice (J1IEX) - currently being done by Purchase
    3. Post Invoice (J1IEX) -  currently being done by Finance
    We tried to capture & Post Invoice in single step at the time of Goods Receipt. The system is allowing us to do so. Can we do the goods receipt & capture & post invoice at the time of GR only.
    What is the difference or benefit in doing GR & capturing invoice separately?
    Regards,

    >
    PK wrote:
    > Hi,
    >
    > We are doing the following for Goods Receipt (as decided by other consultant)
    > 1. Goods Receipt (Only Part I) - currently being done by Stores
    > 2. Capture Invoice (J1IEX) - currently being done by Purchase
    > 3. Post Invoice (J1IEX) -  currently being done by Finance
    >
    > We tried to capture & Post Invoice in single step at the time of Goods Receipt. The system is allowing us to do so. Can we do the goods receipt & capture & post invoice at the time of GR only.
    >
    > What is the difference or benefit in doing GR & capturing invoice separately?
    >
    > Regards,
    Hi PK,
    Standard SAP provides different stages based on business criticality.
    Since a warehouse person may not be aware of Excise functionalities he should only be allowed to capture the invoice, however Posting excise credit is a critical business function hence site Excise clerks should be allowed for these rights.
    However based on business scenario or size of business the same can be done at one place.
    So as your business demands the process can be changed with that. However criticality of the matter & process lies with the business finally. 
    There are scenarios where actual material reciept is short at times hence credit allowed has to be reduced than original, there may be scenarios where a critical excisable product may have wrong chapter heading maintained at PO level which needs to be changed at credit availment/capture stages to show correct chapter in excise registers...
    these all cases support the process to be splitted & responsibilities segrigated....
    Hope it assits....
    regards
    ak

  • MPN Material Field in Goods Receipt for Purchase Order

    Hi,
    I have created PO for MPN material "MFG-A" for IM material " 123". ( ECC 6.0)
    Already the material "123" is maintained with other MPN material "MFG-B"
    The have checked the " MPN Change" check box in the respective Mfg Part profile( IMG: OMPN) 
    While I am doing goods receipt, the MPN material field is in display mode.
    But in other system the field is in change mode.
    Default the system will show "MFG-A" as the MPN material is maintained in PO.
    But I need to  change the MPN materail at the time of GR.
    I would like to change the MPN material from "MFG-A" to "MFG-B" while doing GR time.
    kindly guide me what are the settings required to change MPN Material Field in Goods Receipt.
    Thanks in Advance,
    Kumar.

    Hi,
    I have maintained all the settings.
    But the issue was, I have not put the field "MPN material" (GOITEM-EMATN) as input field in field selection group in Inventory management.( it was in display mode )
    Once I have changed to input option, I can able to change the MPN material while GR.
    Regards,
    Kumar

  • What are the field names for below mentioned

    Hello Friends
    What are the fields names for below tables
    in EKKO
    Purchase Document Date
    Net Value of the purchase document.
    In EKPO
    Item Description
    From which place We bought it. (It means in Sales Items there we can know from which plant we sold the goods, like in EKPO, there is any field like this)
    Please let we are defining the report to find out the stock availability for perticular storage location using select Options plant, company code, material no.
    How many tables involve her to build this report. and also field names, they come under which table.
    Please send me this information ASAP. PLz Plz Plz..........
    Regards
    Praveen

    You can check the fields of these tables via SE11
    Purchase Document Date  -  EKKO-BEDAT
    Item Description  -  EKPO-TXZ01
    Net price per item - EKPO-NETPR.
    Regards,
    Rich Heilman

  • Can I know what is the process for us to do Good Return from customer?

    Can I know what is the process for us to do Good Return from customer?

    hi
    this ques need to be posted in sd forum..
    to answer this u can use order type RE to create Return order and then u can do the goods receipt..
    or u can use the process mentioned in first reply.
    regards
    CMM

  • What is the tcode for creating material receipt

    Hi,
    what is the tcode for creating material receipt & payment to the vendor

    Hi,
    You recieve your material from the vendor and do a Goods Reciept in MIGO with mvt 101. You can even enter via T-Code - MB1C.
    Once you get your Invoice for this reciept from your vendor, you then do invoice verification in MIRO.
    After verification, if there is no blocking of the invoices and is posted and released, a accounting document is released during the posting of MIRO. These documents are then referred by FI pals, who are responsible for the payment.
    Hope this gives you a clear picture.
    Anand
    Message was edited by:
            Anand.B.K.

  • What is the field and Table for "Batch Class" and "Class Type" in QM.

    Hi All,
    What is the field and Table for "Batch Class" and "Class Type" in QM.
    Thanks,

    Hi,
      For batch class the class type value is '023' . This you can find from KLAH table and the fileld for class type is KLART..
    And also all the data related to batch class are found in tables INOB, KLAH,KKSK and for the characeteristics of batch materials you can refer AUSP table.
    In INOB table, for batch class, you need to give 023 in KLART field and  value MCH1 in OBTAB filed.
    Please check this and let me know if this you need any more details?

  • What is the field "INFTY" in the structure P0006 used for?

    Hi HR Experts,
    The PSKEY vs PAKEY is the field INFTY. So what is the field INFTY in the structure P0006 used for?
    Thanks!
    Anthony

    The PSKEY is related to teh PSNNNN structure that is associated with the data of a given info type.  the PSKEY holds INFTY for processing info type data genericaly in background programs through generic structures,  IE: pass any info type structure to a FM.  This INFTY field allowed the programs to know which info type structure is being processed unlike the PAKEY which is used to save infotype data in the back end system at the DB level.
    thanks.
    JB

Maybe you are looking for